Lines Matching refs:read_tail
117 size_t read_tail; member
133 return ldata->read_head - ldata->read_tail; in read_cnt()
230 n = ldata->commit_head - ldata->read_tail; in chars_in_buffer()
232 n = ldata->canon_head - ldata->read_tail; in chars_in_buffer()
260 if (ldata->icanon && ldata->canon_head == ldata->read_tail) in n_tty_check_throttle()
336 ldata->read_head = ldata->canon_head = ldata->read_tail = 0; in reset_buffer_flags()
1721 size_t tail = smp_load_acquire(&ldata->read_tail); in n_tty_receive_buf_common()
1800 ldata->line_start = ldata->read_tail; in n_tty_set_termios()
1802 ldata->canon_head = ldata->read_tail; in n_tty_set_termios()
1937 return ldata->canon_head != ldata->read_tail; in input_available_p()
1939 return ldata->commit_head - ldata->read_tail >= amt; in input_available_p()
1972 size_t tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1); in copy_from_read_buf()
1975 n = min(head - ldata->read_tail, N_TTY_BUF_SIZE - tail); in copy_from_read_buf()
1984 smp_store_release(&ldata->read_tail, ldata->read_tail + n); in copy_from_read_buf()
1987 (head == ldata->read_tail)) in copy_from_read_buf()
2032 n = min(*nr + 1, smp_load_acquire(&ldata->canon_head) - ldata->read_tail); in canon_copy_from_read_buf()
2034 tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1); in canon_copy_from_read_buf()
2070 smp_store_release(&ldata->read_tail, ldata->read_tail + c); in canon_copy_from_read_buf()
2074 ldata->line_start = ldata->read_tail; in canon_copy_from_read_buf()
2175 tail = ldata->read_tail; in n_tty_read()
2266 if (tail != ldata->read_tail) in n_tty_read()
2433 if (ldata->canon_head == ldata->read_tail) in inq_canon()
2436 tail = ldata->read_tail; in inq_canon()