Lines Matching refs:read_head

92 	size_t read_head;  member
136 return ldata->read_head - ldata->read_tail; in read_cnt()
308 *read_buf_addr(ldata, ldata->read_head) = c; in put_tty_queue()
309 ldata->read_head++; in put_tty_queue()
325 ldata->read_head = ldata->canon_head = ldata->read_tail = 0; in reset_buffer_flags()
961 if (ldata->read_head == ldata->canon_head) { in eraser()
971 ldata->read_head = ldata->canon_head; in eraser()
975 ldata->read_head = ldata->canon_head; in eraser()
987 while (MASK(ldata->read_head) != MASK(ldata->canon_head)) { in eraser()
988 head = ldata->read_head; in eraser()
1008 cnt = ldata->read_head - head; in eraser()
1009 ldata->read_head = head; in eraser()
1028 size_t tail = ldata->read_head; in eraser()
1067 if (ldata->read_head == ldata->canon_head && L_ECHO(tty)) in eraser()
1267 set_bit(MASK(ldata->read_head), ldata->read_flags); in n_tty_receive_handle_newline()
1269 smp_store_release(&ldata->canon_head, ldata->read_head); in n_tty_receive_handle_newline()
1306 while (MASK(tail) != MASK(ldata->read_head)) { in n_tty_receive_char_canon()
1339 if (ldata->canon_head == ldata->read_head) in n_tty_receive_char_canon()
1402 if (ldata->canon_head == ldata->read_head) in n_tty_receive_char_special()
1439 if (ldata->canon_head == ldata->read_head) in n_tty_receive_char()
1534 size_t head = MASK(ldata->read_head); in n_tty_receive_buf_real_raw()
1539 ldata->read_head += n; in n_tty_receive_buf_real_raw()
1648 smp_store_release(&ldata->commit_head, ldata->read_head); in __receive_buf()
1715 room = N_TTY_BUF_SIZE - (ldata->read_head - tail); in n_tty_receive_buf_common()
1722 ldata->read_head--; in n_tty_receive_buf_common()
1806 set_bit(MASK(ldata->read_head - 1), ldata->read_flags); in n_tty_set_termios()
1807 ldata->canon_head = ldata->read_head; in n_tty_set_termios()
1810 ldata->commit_head = ldata->read_head; in n_tty_set_termios()