Lines Matching refs:ctrlhead
239 if ((kicked = (usbhid->ctrlhead != usbhid->ctrltail))) { in usbhid_restart_ctrl_queue()
240 hid_dbg(hid, "Kicking head %d tail %d", usbhid->ctrlhead, usbhid->ctrltail); in usbhid_restart_ctrl_queue()
503 usbhid->ctrltail = usbhid->ctrlhead; in hid_ctrl()
504 } else if (usbhid->ctrlhead != usbhid->ctrltail) { in hid_ctrl()
507 if (usbhid->ctrlhead != usbhid->ctrltail && in hid_ctrl()
580 if ((head = (usbhid->ctrlhead + 1) & (HID_CONTROL_FIFO_SIZE - 1)) == usbhid->ctrltail) { in __usbhid_submit_report()
586 usbhid->ctrl[usbhid->ctrlhead].raw_report = hid_alloc_report_buf(report, GFP_ATOMIC); in __usbhid_submit_report()
587 if (!usbhid->ctrl[usbhid->ctrlhead].raw_report) { in __usbhid_submit_report()
591 hid_output_report(report, usbhid->ctrl[usbhid->ctrlhead].raw_report); in __usbhid_submit_report()
593 usbhid->ctrl[usbhid->ctrlhead].report = report; in __usbhid_submit_report()
594 usbhid->ctrl[usbhid->ctrlhead].dir = dir; in __usbhid_submit_report()
595 usbhid->ctrlhead = head; in __usbhid_submit_report()
1225 while (usbhid->ctrltail != usbhid->ctrlhead) { in usbhid_stop()