• Home
  • Raw
  • Download

Lines Matching refs:tail

168 static void tty_copy(struct tty_struct *tty, void *to, size_t tail, size_t n)  in tty_copy()  argument
171 size_t size = N_TTY_BUF_SIZE - tail; in tty_copy()
172 void *from = read_buf_addr(ldata, tail); in tty_copy()
627 size_t tail; in __process_echoes() local
632 tail = ldata->echo_tail; in __process_echoes()
633 while (MASK(ldata->echo_commit) != MASK(tail)) { in __process_echoes()
634 c = echo_buf(ldata, tail); in __process_echoes()
644 if (MASK(ldata->echo_commit) == MASK(tail + 1)) in __process_echoes()
651 op = echo_buf(ldata, tail + 1); in __process_echoes()
657 if (MASK(ldata->echo_commit) == MASK(tail + 2)) in __process_echoes()
659 num_chars = echo_buf(ldata, tail + 2); in __process_echoes()
685 tail += 3; in __process_echoes()
690 tail += 2; in __process_echoes()
696 tail += 2; in __process_echoes()
708 tail += 2; in __process_echoes()
729 tail += 2; in __process_echoes()
746 tail += 1; in __process_echoes()
753 while (ldata->echo_commit > tail && in __process_echoes()
754 ldata->echo_commit - tail >= ECHO_DISCARD_WATERMARK) { in __process_echoes()
755 if (echo_buf(ldata, tail) == ECHO_OP_START) { in __process_echoes()
756 if (echo_buf(ldata, tail + 1) == ECHO_OP_ERASE_TAB) in __process_echoes()
757 tail += 3; in __process_echoes()
759 tail += 2; in __process_echoes()
761 tail++; in __process_echoes()
765 ldata->echo_tail = tail; in __process_echoes()
1051 size_t tail = ldata->read_head; in eraser() local
1060 while (MASK(tail) != MASK(ldata->canon_head)) { in eraser()
1061 tail--; in eraser()
1062 c = read_buf(ldata, tail); in eraser()
1325 size_t tail = ldata->canon_head; in n_tty_receive_char_special() local
1330 while (MASK(tail) != MASK(ldata->read_head)) { in n_tty_receive_char_special()
1331 echo_char(read_buf(ldata, tail), tty); in n_tty_receive_char_special()
1332 tail++; in n_tty_receive_char_special()
1653 size_t tail = smp_load_acquire(&ldata->read_tail); in n_tty_receive_buf_common() local
1655 room = N_TTY_BUF_SIZE - (ldata->read_head - tail); in n_tty_receive_buf_common()
1660 overflow = ldata->icanon && ldata->canon_head == tail; in n_tty_receive_buf_common()
1915 size_t tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1); in copy_from_read_buf() local
1917 n = min(head - ldata->read_tail, N_TTY_BUF_SIZE - tail); in copy_from_read_buf()
1920 unsigned char *from = read_buf_addr(ldata, tail); in copy_from_read_buf()
1969 size_t tail, canon_head; in canon_copy_from_read_buf() local
1979 tail = ldata->read_tail & (N_TTY_BUF_SIZE - 1); in canon_copy_from_read_buf()
1980 size = min_t(size_t, tail + n, N_TTY_BUF_SIZE); in canon_copy_from_read_buf()
1983 __func__, *nr, tail, n, size); in canon_copy_from_read_buf()
1985 eol = find_next_bit(ldata->read_flags, size, tail); in canon_copy_from_read_buf()
1986 more = n - (size - tail); in canon_copy_from_read_buf()
1994 n = eol - tail; in canon_copy_from_read_buf()
2003 __func__, eol, found, n, c, tail, more); in canon_copy_from_read_buf()
2005 tty_copy(tty, *kbp, tail, n); in canon_copy_from_read_buf()
2034 size_t tail, canon_head; in canon_skip_eof() local
2037 tail = ldata->read_tail; in canon_skip_eof()
2040 if (tail == canon_head) in canon_skip_eof()
2044 tail &= (N_TTY_BUF_SIZE - 1); in canon_skip_eof()
2045 if (!test_bit(tail, ldata->read_flags)) in canon_skip_eof()
2047 if (read_buf(ldata, tail) != __DISABLED_CHAR) in canon_skip_eof()
2051 clear_bit(tail, ldata->read_flags); in canon_skip_eof()
2437 size_t nr, head, tail; in inq_canon() local
2442 tail = ldata->read_tail; in inq_canon()
2443 nr = head - tail; in inq_canon()
2445 while (MASK(head) != MASK(tail)) { in inq_canon()
2446 if (test_bit(tail & (N_TTY_BUF_SIZE - 1), ldata->read_flags) && in inq_canon()
2447 read_buf(ldata, tail) == __DISABLED_CHAR) in inq_canon()
2449 tail++; in inq_canon()