Lines Matching refs:aen_head
650 if (tw_dev->aen_head == tw_dev->aen_tail) { in tw_aen_complete()
651 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_complete()
652 tw_dev->aen_head = TW_Q_START; in tw_aen_complete()
654 tw_dev->aen_head = tw_dev->aen_head + 1; in tw_aen_complete()
811 if (tw_dev->aen_head == tw_dev->aen_tail) { in tw_aen_drain_queue()
812 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_aen_drain_queue()
813 tw_dev->aen_head = TW_Q_START; in tw_aen_drain_queue()
815 tw_dev->aen_head = tw_dev->aen_head + 1; in tw_aen_drain_queue()
939 if (tw_dev->aen_head == tw_dev->aen_tail) { in tw_chrdev_ioctl()
942 tw_aen_code = tw_dev->aen_queue[tw_dev->aen_head]; in tw_chrdev_ioctl()
943 if (tw_dev->aen_head == TW_Q_LENGTH - 1) { in tw_chrdev_ioctl()
944 tw_dev->aen_head = TW_Q_START; in tw_chrdev_ioctl()
946 tw_dev->aen_head = tw_dev->aen_head + 1; in tw_chrdev_ioctl()