Lines Matching refs:tty_buffer
39 #define TTY_BUFFER_PAGE (((PAGE_SIZE - sizeof(struct tty_buffer)) / 2) & ~0xFF)
99 static void tty_buffer_reset(struct tty_buffer *p, size_t size) in tty_buffer_reset()
120 struct tty_buffer *p, *next; in tty_buffer_free_all()
156 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc()
159 struct tty_buffer *p; in tty_buffer_alloc()
167 p = llist_entry(free, struct tty_buffer, free); in tty_buffer_alloc()
177 p = kmalloc(sizeof(struct tty_buffer) + 2 * size, GFP_ATOMIC); in tty_buffer_alloc()
196 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free()
225 struct tty_buffer *next; in tty_buffer_flush()
263 struct tty_buffer *b, *n; in __tty_buffer_request_room()
322 struct tty_buffer *tb = port->buf.tail; in tty_insert_flip_string_fixed_flag()
360 struct tty_buffer *tb = port->buf.tail; in tty_insert_flip_string_flags()
389 struct tty_buffer *tb; in __tty_insert_flip_char()
444 struct tty_buffer *tb = port->buf.tail; in tty_prepare_flip_string()
482 receive_buf(struct tty_port *port, struct tty_buffer *head, int count) in receive_buf()
518 struct tty_buffer *head = buf->head; in flush_to_ldisc()
519 struct tty_buffer *next; in flush_to_ldisc()