Lines Matching defs:report

88     struct hid_report *report;

92 list_for_each_entry(report, &hid->report_enum[k].report_list, list)
94 for (i = 0; i < report->maxfield; i++) {
95 for (j = 0; j < report->field[i]->maxusage; j++) {
96 usage = report->field[i]->usage + j;
179 * @field: the HID report field to calculate resolution for
286 #define HID_BATTERY_QUIRK_FEATURE (1 << 1) /* ask for feature report */
465 dev->battery_report_id = field->report->id;
470 * We have to wait for the device to report it on its own.
551 /* Ignore if report count is out of bounds. */
1609 if (field->report->type == HID_OUTPUT_REPORT) {
1873 * 0x31 and 0x32) report multiple keys, even though a localized keyboard
1875 * report constant 0. As all map to the same keycode, they'd confuse
1885 /* report the usage code as scancode if the key status has changed */
1898 void hidinput_report_event(struct hid_device *hid, struct hid_report *report)
1912 struct hid_report *report;
1915 list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list)
1917 for (i = 0; i < report->maxfield; i++) {
1918 *field = report->field[i];
1932 struct hid_report *report;
1936 list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list)
1938 for (i = 0; i < report->maxfield; i++) {
1939 field = report->field[i];
1953 struct hid_report *report;
1958 list_for_each_entry(report, &hid->report_enum[HID_OUTPUT_REPORT].report_list, list)
1960 for (i = 0; i < report->maxfield; i++) {
1961 field = report->field[i];
1977 struct hid_report *report;
1988 * field->report is accessed unlocked regarding HID core. So there might
2000 report = field->report;
2004 return hid->ll_driver->request(hid, report, HID_REQ_SET_REPORT);
2007 /* fall back to generic raw-output-report */
2008 len = hid_report_len(report);
2009 buf = hid_alloc_report_buf(report, GFP_KERNEL);
2014 hid_output_report(report, buf);
2015 /* synchronous output report */
2018 hid_hw_raw_request(hid, report->id, buf, len, HID_OUTPUT_REPORT, HID_REQ_SET_REPORT);
2062 static bool __hidinput_change_resolution_multipliers(struct hid_device *hid, struct hid_report *report,
2070 if (report->maxfield == 0) {
2074 for (i = 0; i < report->maxfield; i++) {
2075 __s32 value = use_logical_max ? report->field[i]->logical_maximum : report->field[i]->logical_minimum;
2081 if (report->field[i]->report_count != 1) {
2085 for (j = 0; j < report->field[i]->maxusage; j++) {
2086 usage = &report->field[i]->usage[j];
2094 * report we need to fill in the bits from the
2102 if (!get_report_completed && report->maxfield > 1) {
2107 hid_hw_request(hid, report, HID_REQ_GET_REPORT);
2112 report->field[i]->value[j] = value;
2153 /* Ignore if report count is out of bounds. */
2310 struct hid_report *report;
2322 list_for_each_entry(report, &hid->report_enum[k].report_list, list)
2324 for (i = 0; i < report->maxfield; i++) {
2325 if (report->field[i]->hidinput == hidinput) {
2326 report->field[i]->hidinput = NULL;
2335 static struct hid_input *hidinput_match(struct hid_report *report)
2337 struct hid_device *hid = report->device;
2342 if (hidinput->report && hidinput->report->id == report->id) {
2350 static struct hid_input *hidinput_match_application(struct hid_report *report)
2352 struct hid_device *hid = report->device;
2357 if (hidinput->application == report->application) {
2365 static inline void hidinput_configure_usages(struct hid_input *hidinput, struct hid_report *report)
2369 for (i = 0; i < report->maxfield; i++) {
2370 for (j = 0; j < report->field[i]->maxusage; j++) {
2371 hidinput_configure_usage(hidinput, report->field[i], report->field[i]->usage + j);
2385 struct hid_report *report;
2417 list_for_each_entry(report, &hid->report_enum[k].report_list, list)
2419 if (!report->maxfield) {
2423 application = report->application;
2426 * Find the previous hidinput report attached
2427 * to this report id.
2430 hidinput = hidinput_match(report);
2432 hidinput = hidinput_match_application(report);
2442 hidinput_configure_usages(hidinput, report);
2445 hidinput->report = report;
2448 list_add_tail(&report->hidinput_list, &hidinput->reports);