Lines Matching refs:intr_idx
88 atomic_t intr_idx; member
156 int intr_idx; in iowarrior_callback() local
175 intr_idx = atomic_read(&dev->intr_idx); in iowarrior_callback()
177 aux_idx = (intr_idx == 0) ? (MAX_INTERRUPT_BUFFER - 1) : (intr_idx - 1); in iowarrior_callback()
181 if ((intr_idx != read_idx) in iowarrior_callback()
194 aux_idx = (intr_idx == (MAX_INTERRUPT_BUFFER - 1)) ? 0 : (intr_idx + 1); in iowarrior_callback()
203 offset = intr_idx * (dev->report_size + 1); in iowarrior_callback()
208 atomic_set(&dev->intr_idx, aux_idx); in iowarrior_callback()
263 int intr_idx, read_idx; in read_index() local
266 intr_idx = atomic_read(&dev->intr_idx); in read_index()
268 return (read_idx == intr_idx ? -1 : read_idx); in read_index()
761 atomic_set(&dev->intr_idx, 0); in iowarrior_probe()