Lines Matching refs:report
137 struct hid_report *report; in hidinput_find_key() local
141 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hidinput_find_key()
142 for (i = 0; i < report->maxfield; i++) { in hidinput_find_key()
143 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key()
144 usage = report->field[i]->usage + j; in hidinput_find_key()
552 dev->battery_report_id = field->report->id; in hidinput_setup_battery()
1335 if (field->report->type == HID_OUTPUT_REPORT) { in hidinput_configure_usage()
1483 static void hid_report_release_tool(struct hid_report *report, struct input_dev *input, in hid_report_release_tool() argument
1498 report->tool = 0; in hid_report_release_tool()
1501 static void hid_report_set_tool(struct hid_report *report, struct input_dev *input, in hid_report_set_tool() argument
1504 if (report->tool != new_tool) in hid_report_set_tool()
1505 hid_report_release_tool(report, input, report->tool); in hid_report_set_tool()
1508 report->tool = new_tool; in hid_report_set_tool()
1514 struct hid_report *report = field->report; in hidinput_hid_event() local
1570 report->tool_active |= !!value; in hidinput_hid_event()
1577 hid_report_set_tool(report, input, BTN_TOOL_RUBBER); in hidinput_hid_event()
1578 else if (report->tool != BTN_TOOL_RUBBER) in hidinput_hid_event()
1587 hid_report_release_tool(report, input, BTN_TOOL_RUBBER); in hidinput_hid_event()
1595 report->tool_active |= !!value; in hidinput_hid_event()
1601 hid_report_set_tool(report, input, BTN_TOOL_RUBBER); in hidinput_hid_event()
1602 else if (!report->tool_active) in hidinput_hid_event()
1604 hid_report_release_tool(report, input, BTN_TOOL_RUBBER); in hidinput_hid_event()
1610 report->tool_active |= !!value; in hidinput_hid_event()
1612 if (report->tool_active) { in hidinput_hid_event()
1617 if (!report->tool) in hidinput_hid_event()
1618 report->tool = usage->code; in hidinput_hid_event()
1621 hid_report_set_tool(report, input, report->tool); in hidinput_hid_event()
1623 hid_report_release_tool(report, input, usage->code); in hidinput_hid_event()
1627 report->tool_active = false; in hidinput_hid_event()
1633 report->tool_active |= !!value; in hidinput_hid_event()
1636 if (report->tool == BTN_TOOL_RUBBER) in hidinput_hid_event()
1648 report->tool_active = true; in hidinput_hid_event()
1728 void hidinput_report_event(struct hid_device *hid, struct hid_report *report) in hidinput_report_event() argument
1743 struct hid_report *report; in hidinput_find_field() local
1746 list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list) { in hidinput_find_field()
1747 for (i = 0; i < report->maxfield; i++) { in hidinput_find_field()
1748 *field = report->field[i]; in hidinput_find_field()
1759 struct hid_report *report; in hidinput_get_led_field() local
1763 list_for_each_entry(report, in hidinput_get_led_field()
1766 for (i = 0; i < report->maxfield; i++) { in hidinput_get_led_field()
1767 field = report->field[i]; in hidinput_get_led_field()
1779 struct hid_report *report; in hidinput_count_leds() local
1784 list_for_each_entry(report, in hidinput_count_leds()
1787 for (i = 0; i < report->maxfield; i++) { in hidinput_count_leds()
1788 field = report->field[i]; in hidinput_count_leds()
1804 struct hid_report *report; in hidinput_led_worker() local
1826 report = field->report; in hidinput_led_worker()
1830 return hid->ll_driver->request(hid, report, HID_REQ_SET_REPORT); in hidinput_led_worker()
1833 len = hid_report_len(report); in hidinput_led_worker()
1834 buf = hid_alloc_report_buf(report, GFP_KERNEL); in hidinput_led_worker()
1838 hid_output_report(report, buf); in hidinput_led_worker()
1842 hid_hw_raw_request(hid, report->id, buf, len, HID_OUTPUT_REPORT, in hidinput_led_worker()
1886 struct hid_report *report, bool use_logical_max) in __hidinput_change_resolution_multipliers() argument
1893 if (report->maxfield == 0) in __hidinput_change_resolution_multipliers()
1896 for (i = 0; i < report->maxfield; i++) { in __hidinput_change_resolution_multipliers()
1898 report->field[i]->logical_maximum : in __hidinput_change_resolution_multipliers()
1899 report->field[i]->logical_minimum; in __hidinput_change_resolution_multipliers()
1905 if (report->field[i]->report_count != 1) in __hidinput_change_resolution_multipliers()
1908 for (j = 0; j < report->field[i]->maxusage; j++) { in __hidinput_change_resolution_multipliers()
1909 usage = &report->field[i]->usage[j]; in __hidinput_change_resolution_multipliers()
1924 if (!get_report_completed && report->maxfield > 1) { in __hidinput_change_resolution_multipliers()
1928 hid_hw_request(hid, report, HID_REQ_GET_REPORT); in __hidinput_change_resolution_multipliers()
1933 report->field[i]->value[j] = value; in __hidinput_change_resolution_multipliers()
2135 struct hid_report *report; in hidinput_cleanup_hidinput() local
2147 list_for_each_entry(report, &hid->report_enum[k].report_list, in hidinput_cleanup_hidinput()
2150 for (i = 0; i < report->maxfield; i++) in hidinput_cleanup_hidinput()
2151 if (report->field[i]->hidinput == hidinput) in hidinput_cleanup_hidinput()
2152 report->field[i]->hidinput = NULL; in hidinput_cleanup_hidinput()
2159 static struct hid_input *hidinput_match(struct hid_report *report) in hidinput_match() argument
2161 struct hid_device *hid = report->device; in hidinput_match()
2165 if (hidinput->report && in hidinput_match()
2166 hidinput->report->id == report->id) in hidinput_match()
2173 static struct hid_input *hidinput_match_application(struct hid_report *report) in hidinput_match_application() argument
2175 struct hid_device *hid = report->device; in hidinput_match_application()
2179 if (hidinput->application == report->application) in hidinput_match_application()
2186 if ((report->application == HID_GD_SYSTEM_CONTROL || in hidinput_match_application()
2187 report->application == HID_CP_CONSUMER_CONTROL) && in hidinput_match_application()
2197 struct hid_report *report) in hidinput_configure_usages() argument
2210 for (i = 0; i < report->maxfield; i++) { in hidinput_configure_usages()
2211 field = report->field[i]; in hidinput_configure_usages()
2245 report->field[k]->slot_idx = slot_idx; in hidinput_configure_usages()
2251 for (i = 0; i < report->maxfield; i++) in hidinput_configure_usages()
2252 for (j = 0; j < report->field[i]->maxusage; j++) in hidinput_configure_usages()
2253 hidinput_configure_usage(hidinput, report->field[i], in hidinput_configure_usages()
2254 report->field[i]->usage + j, in hidinput_configure_usages()
2267 struct hid_report *report; in hidinput_connect() local
2297 list_for_each_entry(report, &hid->report_enum[k].report_list, list) { in hidinput_connect()
2299 if (!report->maxfield) in hidinput_connect()
2302 application = report->application; in hidinput_connect()
2309 hidinput = hidinput_match(report); in hidinput_connect()
2312 hidinput = hidinput_match_application(report); in hidinput_connect()
2320 hidinput_configure_usages(hidinput, report); in hidinput_connect()
2323 hidinput->report = report; in hidinput_connect()
2325 list_add_tail(&report->hidinput_list, in hidinput_connect()