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()
225 while ((next = smp_load_acquire(&buf->head->next)) != NULL) { in tty_buffer_flush()
226 tty_buffer_free(port, buf->head); in tty_buffer_flush()
227 buf->head = next; in tty_buffer_flush()
229 buf->head->read = buf->head->commit; in tty_buffer_flush()
415 receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count) in receive_buf() argument
418 unsigned char *p = char_buf_ptr(head, head->read); in receive_buf()
421 if (~head->flags & TTYB_NORMAL) in receive_buf()
422 f = flag_buf_ptr(head, head->read); in receive_buf()
465 struct tty_buffer *head = buf->head; in flush_to_ldisc() local
477 next = smp_load_acquire(&head->next); in flush_to_ldisc()
481 count = smp_load_acquire(&head->commit) - head->read; in flush_to_ldisc()
485 buf->head = next; in flush_to_ldisc()
486 tty_buffer_free(port, head); in flush_to_ldisc()
490 count = receive_buf(tty, head, count); in flush_to_ldisc()
493 head->read += count; in flush_to_ldisc()
532 buf->head = &buf->sentinel; in tty_buffer_init()