Lines Matching refs:error_index
384 event = tw_dev->event_queue[tw_dev->error_index]; in twa_aen_queue_event()
422 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event()
424 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event()
757 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
763 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
774 event_index = tw_dev->error_index; in twa_chrdev_ioctl()
776 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
796 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
798 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
825 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
827 if (!tw_dev->error_index) { in twa_chrdev_ioctl()