Lines Matching refs:read_idx
91 atomic_t read_idx;
160 int read_idx;
182 read_idx = atomic_read(&dev->read_idx);
185 if ((intr_idx != read_idx)
200 if (read_idx == aux_idx) {
202 read_idx = (++read_idx == MAX_INTERRUPT_BUFFER) ? 0 : read_idx;
203 atomic_set(&dev->read_idx, read_idx);
268 int intr_idx, read_idx;
270 read_idx = atomic_read(&dev->read_idx);
273 return (read_idx == intr_idx ? -1 : read_idx);
283 int read_idx;
302 if ((read_idx = read_index(dev)) == -1) {
310 || (read_idx =
322 if (read_idx == -1) {
329 offset = read_idx * (dev->report_size + 1);
335 read_idx = ++read_idx == MAX_INTERRUPT_BUFFER ? 0 : read_idx;
336 atomic_set(&dev->read_idx, read_idx);
781 atomic_set(&dev->read_idx, 0);