Lines Matching refs:space
96 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail() local
98 return max(space, 0); in tty_buffer_space_avail()
309 size_t space = __tty_buffer_request_room(port, goal, need_flags); in __tty_insert_flip_string_flags() local
312 if (unlikely(space == 0)) in __tty_insert_flip_string_flags()
315 memcpy(char_buf_ptr(tb, tb->used), chars, space); in __tty_insert_flip_string_flags()
318 memcpy(flag_buf_ptr(tb, tb->used), flags, space); in __tty_insert_flip_string_flags()
319 flags += space; in __tty_insert_flip_string_flags()
321 memset(flag_buf_ptr(tb, tb->used), flags[0], space); in __tty_insert_flip_string_flags()
327 tb->used += space; in __tty_insert_flip_string_flags()
328 copied += space; in __tty_insert_flip_string_flags()
329 chars += space; in __tty_insert_flip_string_flags()
356 size_t space = __tty_buffer_request_room(port, size, false); in tty_prepare_flip_string() local
358 if (likely(space)) { in tty_prepare_flip_string()
363 memset(flag_buf_ptr(tb, tb->used), TTY_NORMAL, space); in tty_prepare_flip_string()
364 tb->used += space; in tty_prepare_flip_string()
367 return space; in tty_prepare_flip_string()