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()
754 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
760 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
771 event_index = tw_dev->error_index; in twa_chrdev_ioctl()
773 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
793 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
795 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
822 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
824 if (!tw_dev->error_index) { in twa_chrdev_ioctl()