Lines Matching refs:error_index
380 event = tw_dev->event_queue[tw_dev->error_index]; in twa_aen_queue_event()
418 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event()
420 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event()
750 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
756 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
767 event_index = tw_dev->error_index; in twa_chrdev_ioctl()
769 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
789 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
791 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
818 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
820 if (!tw_dev->error_index) { in twa_chrdev_ioctl()