Lines Matching refs:tty_buffer
39 #define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)
98 static void tty_buffer_reset(struct tty_buffer *p, size_t size) in tty_buffer_reset()
119 struct tty_buffer *p, *next; in tty_buffer_free_all()
155 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc()
158 struct tty_buffer *p; in tty_buffer_alloc()
166 p = llist_entry(free, struct tty_buffer, free); in tty_buffer_alloc()
175 p = kmalloc(sizeof(struct tty_buffer) + 2 * size, in tty_buffer_alloc()
195 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free()
224 struct tty_buffer *next; in tty_buffer_flush()
262 struct tty_buffer *b, *n; in __tty_buffer_request_room()
320 struct tty_buffer *tb = port->buf.tail; in tty_insert_flip_string_fixed_flag()
355 struct tty_buffer *tb = port->buf.tail; in tty_insert_flip_string_flags()
382 struct tty_buffer *tb; in __tty_insert_flip_char()
415 struct tty_buffer *tb = port->buf.tail; in tty_prepare_flip_string()
452 receive_buf(struct tty_port *port, struct tty_buffer *head, int count) in receive_buf()
488 struct tty_buffer *head = buf->head; in flush_to_ldisc()
489 struct tty_buffer *next; in flush_to_ldisc()
526 static inline void tty_flip_buffer_commit(struct tty_buffer *tail) in tty_flip_buffer_commit()