Lines Matching refs:error_index
382 event = tw_dev->event_queue[tw_dev->error_index]; in twa_aen_queue_event()
420 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event()
422 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event()
755 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
761 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
772 event_index = tw_dev->error_index; in twa_chrdev_ioctl()
774 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
794 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
796 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
823 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
825 if (!tw_dev->error_index) { in twa_chrdev_ioctl()