Lines Matching refs:head
69 restart = buf->head->commit != buf->head->read; in tty_buffer_unlock_exclusive()
121 while ((p = buf->head) != NULL) { in tty_buffer_free_all()
122 buf->head = p->next; in tty_buffer_free_all()
131 buf->head = &buf->sentinel; in tty_buffer_free_all()
222 while ((next = buf->head->next) != NULL) { in tty_buffer_flush()
223 tty_buffer_free(port, buf->head); in tty_buffer_flush()
224 buf->head = next; in tty_buffer_flush()
226 buf->head->read = buf->head->commit; in tty_buffer_flush()
406 receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count) in receive_buf() argument
409 unsigned char *p = char_buf_ptr(head, head->read); in receive_buf()
412 if (~head->flags & TTYB_NORMAL) in receive_buf()
413 f = flag_buf_ptr(head, head->read); in receive_buf()
422 head->read += count; in receive_buf()
457 struct tty_buffer *head = buf->head; in flush_to_ldisc() local
465 next = head->next; in flush_to_ldisc()
471 count = head->commit - head->read; in flush_to_ldisc()
475 buf->head = next; in flush_to_ldisc()
476 tty_buffer_free(port, head); in flush_to_ldisc()
480 count = receive_buf(tty, head, count); in flush_to_ldisc()
521 buf->head = &buf->sentinel; in tty_buffer_init()