Lines Matching full:report

59 	struct hid_report *report;  in sensor_hub_report()  local
61 list_for_each_entry(report, &hdev->report_enum[dir].report_list, list) { in sensor_hub_report()
62 if (report->id == id) in sensor_hub_report()
63 return report; in sensor_hub_report()
65 hid_warn(hdev, "No report with id 0x%x found\n", id); in sensor_hub_report()
194 struct hid_report *report; in sensor_hub_set_feature() local
203 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_set_feature()
204 if (!report || (field_index >= report->maxfield)) { in sensor_hub_set_feature()
213 hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
221 hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
224 hid_hw_request(hsdev->hdev, report, HID_REQ_SET_REPORT); in sensor_hub_set_feature()
237 struct hid_report *report; in sensor_hub_get_feature() local
248 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_get_feature()
249 if (!report || (field_index >= report->maxfield) || in sensor_hub_get_feature()
250 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
254 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_get_feature()
258 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
260 report->field[field_index]->report_count; in sensor_hub_get_feature()
267 val_ptr = (u8 *)report->field[field_index]->value; in sensor_hub_get_feature()
268 for (i = 0; i < report->field[field_index]->report_count; ++i) { in sensor_hub_get_feature()
273 report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
275 buffer_index += (report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
294 struct hid_report *report; in sensor_hub_input_attr_get_raw_value() local
297 report = sensor_hub_report(report_id, hsdev->hdev, in sensor_hub_input_attr_get_raw_value()
299 if (!report) in sensor_hub_input_attr_get_raw_value()
315 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_input_attr_get_raw_value()
351 struct hid_report *report; in hid_sensor_get_usage_index() local
355 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in hid_sensor_get_usage_index()
356 if (!report || (field_index >= report->maxfield)) in hid_sensor_get_usage_index()
359 field = report->field[field_index]; in hid_sensor_get_usage_index()
378 struct hid_report *report; in sensor_hub_input_get_attribute_info() local
392 list_for_each_entry(report, &report_enum->report_list, list) { in sensor_hub_input_get_attribute_info()
393 for (i = 0; i < report->maxfield; ++i) { in sensor_hub_input_get_attribute_info()
394 field = report->field[i]; in sensor_hub_input_get_attribute_info()
406 report->id, in sensor_hub_input_get_attribute_info()
464 * Handle raw report as sent by device
467 struct hid_report *report, u8 *raw_data, int size) in sensor_hub_raw_event() argument
479 hid_dbg(hdev, "sensor_hub_raw_event report id:0x%x size:%d type:%d\n", in sensor_hub_raw_event()
480 report->id, size, report->type); in sensor_hub_raw_event()
481 hid_dbg(hdev, "maxfield:%d\n", report->maxfield); in sensor_hub_raw_event()
482 if (report->type != HID_INPUT_REPORT) in sensor_hub_raw_event()
486 if (report->id) in sensor_hub_raw_event()
487 ptr++; /* Skip report id */ in sensor_hub_raw_event()
491 for (i = 0; i < report->maxfield; ++i) { in sensor_hub_raw_event()
493 i, report->field[i]->usage->collection_index, in sensor_hub_raw_event()
494 report->field[i]->usage->hid, in sensor_hub_raw_event()
495 (report->field[i]->report_size * in sensor_hub_raw_event()
496 report->field[i]->report_count)/8); in sensor_hub_raw_event()
497 sz = (report->field[i]->report_size * in sensor_hub_raw_event()
498 report->field[i]->report_count)/8; in sensor_hub_raw_event()
500 report->field[i]->usage->collection_index]; in sensor_hub_raw_event()
505 report->field[i]->physical, in sensor_hub_raw_event()
506 report->field[i]->usage[0].collection_index, in sensor_hub_raw_event()
513 report->field[i]->usage->hid || in sensor_hub_raw_event()
515 report->field[i]->logical)) { in sensor_hub_raw_event()
525 if (report->field[i]->logical) in sensor_hub_raw_event()
527 report->field[i]->logical, sz, ptr, in sensor_hub_raw_event()
531 report->field[i]->usage->hid, sz, ptr, in sensor_hub_raw_event()
581 * Checks if the report descriptor of Thinkpad Helix 2 has a logical in sensor_hub_report_fixup()