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()
466 receive_buf(struct tty_ldisc *ld, struct tty_buffer *head, int count) in receive_buf() argument
468 unsigned char *p = char_buf_ptr(head, head->read); in receive_buf()
471 if (~head->flags & TTYB_NORMAL) in receive_buf()
472 f = flag_buf_ptr(head, head->read); in receive_buf()
508 struct tty_buffer *head = buf->head; in flush_to_ldisc() local
520 next = smp_load_acquire(&head->next); in flush_to_ldisc()
524 count = smp_load_acquire(&head->commit) - head->read; in flush_to_ldisc()
528 buf->head = next; in flush_to_ldisc()
529 tty_buffer_free(port, head); in flush_to_ldisc()
533 count = receive_buf(disc, head, count); in flush_to_ldisc()
536 head->read += count; in flush_to_ldisc()
575 buf->head = &buf->sentinel; in tty_buffer_init()