Lines Matching refs:N_TTY_BUF_SIZE
80 #define ECHO_DISCARD_WATERMARK N_TTY_BUF_SIZE - (ECHO_BLOCK + 32)
112 u8 read_buf[N_TTY_BUF_SIZE];
113 DECLARE_BITMAP(read_flags, N_TTY_BUF_SIZE);
114 u8 echo_buf[N_TTY_BUF_SIZE];
132 #define MASK(x) ((x) & (N_TTY_BUF_SIZE - 1))
171 size_t size = N_TTY_BUF_SIZE - tail; in tty_copy()
254 if (N_TTY_BUF_SIZE - read_cnt(ldata) >= TTY_THRESHOLD_THROTTLE) in n_tty_check_throttle()
325 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE); in reset_buffer_flags()
1530 size_t n = min(count, N_TTY_BUF_SIZE - head); in n_tty_receive_buf_real_raw()
1720 room = N_TTY_BUF_SIZE - (ldata->read_head - tail); in n_tty_receive_buf_common()
1805 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE); in n_tty_set_termios()
1973 n = min3(head - ldata->read_tail, N_TTY_BUF_SIZE - tail, *nr); in copy_from_read_buf()
2035 size = min_t(size_t, tail + n, N_TTY_BUF_SIZE); in canon_copy_from_read_buf()
2042 if (eol == N_TTY_BUF_SIZE && more) { in canon_copy_from_read_buf()
2050 if (n > N_TTY_BUF_SIZE) in canon_copy_from_read_buf()
2051 n += N_TTY_BUF_SIZE; in canon_copy_from_read_buf()
2098 tail &= (N_TTY_BUF_SIZE - 1); in canon_skip_eof()