Lines Matching refs:error_index
387 event = tw_dev->event_queue[tw_dev->error_index]; in twa_aen_queue_event()
425 if ((tw_dev->error_index + 1) == TW_Q_LENGTH) in twa_aen_queue_event()
427 tw_dev->error_index = (tw_dev->error_index + 1 ) % TW_Q_LENGTH; in twa_aen_queue_event()
759 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
765 event_index = (tw_dev->error_index - 1 + TW_Q_LENGTH) % TW_Q_LENGTH; in twa_chrdev_ioctl()
776 event_index = tw_dev->error_index; in twa_chrdev_ioctl()
778 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
798 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
800 if (!tw_dev->error_index) { in twa_chrdev_ioctl()
827 start_index = tw_dev->error_index; in twa_chrdev_ioctl()
829 if (!tw_dev->error_index) { in twa_chrdev_ioctl()