Lines Matching refs:space
80 * tty_buffer_space_avail - return unused buffer space
93 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used);
94 return max(space, 0);
251 * Make at least size bytes of linear space available for the tty
319 int space = __tty_buffer_request_room(port, goal, flags);
321 if (unlikely(space == 0))
323 memcpy(char_buf_ptr(tb, tb->used), chars, space);
325 memset(flag_buf_ptr(tb, tb->used), flag, space);
326 tb->used += space;
327 copied += space;
328 chars += space;
354 int space = tty_buffer_request_room(port, goal);
356 if (unlikely(space == 0))
358 memcpy(char_buf_ptr(tb, tb->used), chars, space);
359 memcpy(flag_buf_ptr(tb, tb->used), flags, space);
360 tb->used += space;
361 copied += space;
362 chars += space;
363 flags += space;
403 * Prepare a block of space in the buffer for data. Returns the length
404 * available and buffer pointer to the space which is now allocated and
413 int space = __tty_buffer_request_room(port, size, TTYB_NORMAL);
414 if (likely(space)) {
418 memset(flag_buf_ptr(tb, tb->used), TTY_NORMAL, space);
419 tb->used += space;
421 return space;