Lines Matching refs:report

335 	struct hid_report *report;  in hid_submit_out()  local
340 report = usbhid->out[usbhid->outtail].report; in hid_submit_out()
343 usbhid->urbout->transfer_buffer_length = hid_report_len(report); in hid_submit_out()
365 struct hid_report *report; in hid_submit_ctrl() local
371 report = usbhid->ctrl[usbhid->ctrltail].report; in hid_submit_ctrl()
375 len = ((report->size - 1) >> 3) + 1 + (report->id > 0); in hid_submit_ctrl()
404 usbhid->cr->wValue = cpu_to_le16(((report->type + 1) << 8) | in hid_submit_ctrl()
405 report->id); in hid_submit_ctrl()
484 usbhid->ctrl[usbhid->ctrltail].report->type, in hid_ctrl()
520 static void __usbhid_submit_report(struct hid_device *hid, struct hid_report *report, in __usbhid_submit_report() argument
530 if (usbhid->urbout && dir == USB_DIR_OUT && report->type == HID_OUTPUT_REPORT) { in __usbhid_submit_report()
536 usbhid->out[usbhid->outhead].raw_report = hid_alloc_report_buf(report, GFP_ATOMIC); in __usbhid_submit_report()
541 hid_output_report(report, usbhid->out[usbhid->outhead].raw_report); in __usbhid_submit_report()
542 usbhid->out[usbhid->outhead].report = report; in __usbhid_submit_report()
585 usbhid->ctrl[usbhid->ctrlhead].raw_report = hid_alloc_report_buf(report, GFP_ATOMIC); in __usbhid_submit_report()
590 hid_output_report(report, usbhid->ctrl[usbhid->ctrlhead].raw_report); in __usbhid_submit_report()
592 usbhid->ctrl[usbhid->ctrlhead].report = report; in __usbhid_submit_report()
629 static void usbhid_submit_report(struct hid_device *hid, struct hid_report *report, unsigned char d… in usbhid_submit_report() argument
635 __usbhid_submit_report(hid, report, dir); in usbhid_submit_report()
654 static int hid_set_idle(struct usb_device *dev, int ifnum, int report, int idle) in hid_set_idle() argument
657 HID_REQ_SET_IDLE, USB_TYPE_CLASS | USB_RECIP_INTERFACE, (idle << 8) | report, in hid_set_idle()
751 struct hid_report *report; in usbhid_init_reports() local
758 list_for_each_entry(report, &report_enum->report_list, list) in usbhid_init_reports()
759 usbhid_submit_report(hid, report, USB_DIR_IN); in usbhid_init_reports()
763 list_for_each_entry(report, &report_enum->report_list, list) in usbhid_init_reports()
764 usbhid_submit_report(hid, report, USB_DIR_IN); in usbhid_init_reports()
787 struct hid_report *report; in hid_find_field_early() local
792 list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list) { in hid_find_field_early()
793 for (i = 0; i < report->maxfield; i++) { in hid_find_field_early()
794 field = report->field[i]; in hid_find_field_early()
815 usbhid_submit_report(hid, field->report, USB_DIR_OUT); in usbhid_set_leds()
825 struct hid_report *report; in hid_find_max_report() local
828 list_for_each_entry(report, &hid->report_enum[type].report_list, list) { in hid_find_max_report()
829 size = ((report->size - 1) >> 3) + 1 + hid->report_enum[type].numbered; in hid_find_max_report()
1239 static int usbhid_idle(struct hid_device *hid, int report, int idle, in usbhid_idle() argument
1250 return hid_set_idle(dev, ifnum, report, idle); in usbhid_idle()