Lines Matching refs:N_TTY_BUF_SIZE
59 #define N_TTY_BUF_SIZE 4096
82 #define ECHO_DISCARD_WATERMARK N_TTY_BUF_SIZE - (ECHO_BLOCK + 32)
106 u8 read_buf[N_TTY_BUF_SIZE];
107 DECLARE_BITMAP(read_flags, N_TTY_BUF_SIZE);
108 u8 echo_buf[N_TTY_BUF_SIZE];
126 #define MASK(x) ((x) & (N_TTY_BUF_SIZE - 1))
165 size_t size = N_TTY_BUF_SIZE - tail;
248 if (N_TTY_BUF_SIZE - read_cnt(ldata) >= TTY_THRESHOLD_THROTTLE)
319 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
1514 size_t n = min(count, N_TTY_BUF_SIZE - head);
1704 room = N_TTY_BUF_SIZE - (ldata->read_head - tail);
1789 bitmap_zero(ldata->read_flags, N_TTY_BUF_SIZE);
1957 n = min3(head - ldata->read_tail, N_TTY_BUF_SIZE - tail, *nr);
2019 size = min_t(size_t, tail + n, N_TTY_BUF_SIZE);
2023 if (eol == N_TTY_BUF_SIZE && more) {
2031 if (n > N_TTY_BUF_SIZE)
2032 n += N_TTY_BUF_SIZE;
2076 tail &= (N_TTY_BUF_SIZE - 1);