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()
327 int space = __tty_buffer_request_room(port, goal, flags); in tty_insert_flip_string_fixed_flag() local
330 if (unlikely(space == 0)) in tty_insert_flip_string_fixed_flag()
332 memcpy(char_buf_ptr(tb, tb->used), chars, space); in tty_insert_flip_string_fixed_flag()
334 memset(flag_buf_ptr(tb, tb->used), flag, space); in tty_insert_flip_string_fixed_flag()
335 tb->used += space; in tty_insert_flip_string_fixed_flag()
336 copied += space; in tty_insert_flip_string_fixed_flag()
337 chars += space; in tty_insert_flip_string_fixed_flag()
365 int space = tty_buffer_request_room(port, goal); in tty_insert_flip_string_flags() local
368 if (unlikely(space == 0)) in tty_insert_flip_string_flags()
370 memcpy(char_buf_ptr(tb, tb->used), chars, space); in tty_insert_flip_string_flags()
371 memcpy(flag_buf_ptr(tb, tb->used), flags, space); in tty_insert_flip_string_flags()
372 tb->used += space; in tty_insert_flip_string_flags()
373 copied += space; in tty_insert_flip_string_flags()
374 chars += space; in tty_insert_flip_string_flags()
375 flags += space; in tty_insert_flip_string_flags()
427 int space = __tty_buffer_request_room(port, size, TTYB_NORMAL); in tty_prepare_flip_string() local
429 if (likely(space)) { in tty_prepare_flip_string()
434 memset(flag_buf_ptr(tb, tb->used), TTY_NORMAL, space); in tty_prepare_flip_string()
435 tb->used += space; in tty_prepare_flip_string()
437 return space; in tty_prepare_flip_string()