Lines Matching refs:n
16 int n; in read_key() local
122 n = (unsigned char)buffer[-1]; in read_key()
123 if (n == 0) { in read_key()
141 n = safe_read(fd, buffer, 1); in read_key()
142 if (n <= 0) in read_key()
148 n--; in read_key()
149 if (n) in read_key()
150 memmove(buffer, buffer + 1, n); in read_key()
153 buffer[-1] = n; in read_key()
167 if (n <= i) { in read_key()
182 if (safe_read(fd, buffer + n, 1) <= 0) { in read_key()
192 n++; in read_key()
206 n = 0; in read_key()
221 while (n < KEYCODE_BUFFER_SIZE-1) { /* 1 for count byte at buffer[-1] */ in read_key()
227 if (safe_read(fd, buffer + n, 1) <= 0) { in read_key()
237 n++; in read_key()
243 && n >= 5 in read_key()
245 && buffer[n-1] == 'R' in read_key()
270 if (n <= 1) { in read_key()
274 buffer[-1] = n; in read_key()