Lines Matching refs:ix
176 int len, count, ix, lines;
201 ix = req->start;
202 while (lines < RAW3215_MAX_NEWLINE && ix != raw->head) {
203 if (raw->buffer[ix] == 0x15)
205 ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1);
207 len = ((ix - 1 - req->start) & (RAW3215_BUFFER_SIZE - 1)) + 1;
214 req->delayable = (ix == raw->head) && (len < RAW3215_MIN_WRITE);
216 ix = req->start;
223 (__u32) __pa(raw->buffer + ix);
225 if (ix + count > RAW3215_BUFFER_SIZE)
226 count = RAW3215_BUFFER_SIZE - ix;
229 ix = (ix + count) & (RAW3215_BUFFER_SIZE - 1);
459 int ix;
463 ix = (raw->head - raw->count) & (RAW3215_BUFFER_SIZE - 1);
465 ch = raw->buffer[ix];
466 ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1);
471 raw->head = ix;