Lines Matching refs:read_head
97 tty->read_buf[tty->read_head] = c; in put_tty_queue_nolock()
98 tty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1); in put_tty_queue_nolock()
148 tty->read_head = tty->read_tail = tty->read_cnt = 0; in reset_buffer_flags()
388 if (tty->read_head == tty->canon_head) { in eraser()
399 tty->read_cnt -= ((tty->read_head - tty->canon_head) & in eraser()
401 tty->read_head = tty->canon_head; in eraser()
407 tty->read_cnt -= ((tty->read_head - tty->canon_head) & in eraser()
409 tty->read_head = tty->canon_head; in eraser()
422 while (tty->read_head != tty->canon_head) { in eraser()
423 head = (tty->read_head - 1) & (N_TTY_BUF_SIZE-1); in eraser()
433 tty->read_head = head; in eraser()
451 while (tail != tty->read_head) { in eraser()
494 if (tty->read_head == tty->canon_head) in eraser()
653 if (tty->canon_head == tty->read_head) in n_tty_receive_char()
719 while (tail != tty->read_head) { in n_tty_receive_char()
736 if (tty->canon_head != tty->read_head) in n_tty_receive_char()
752 if (tty->canon_head == tty->read_head) in n_tty_receive_char()
765 set_bit(tty->read_head, &tty->read_flags); in n_tty_receive_char()
767 tty->canon_head = tty->read_head; in n_tty_receive_char()
787 if (tty->canon_head == tty->read_head) in n_tty_receive_char()
874 N_TTY_BUF_SIZE - tty->read_head)); in n_tty_receive_buf()
875 memcpy(tty->read_buf + tty->read_head, cp, i); in n_tty_receive_buf()
876 tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); in n_tty_receive_buf()
882 N_TTY_BUF_SIZE - tty->read_head)); in n_tty_receive_buf()
883 memcpy(tty->read_buf + tty->read_head, cp, i); in n_tty_receive_buf()
884 tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); in n_tty_receive_buf()