Lines Matching refs:report
58 struct hid_report *report; in sensor_hub_report() local
60 list_for_each_entry(report, &hdev->report_enum[dir].report_list, list) { in sensor_hub_report()
61 if (report->id == id) in sensor_hub_report()
62 return report; in sensor_hub_report()
193 struct hid_report *report; in sensor_hub_set_feature() local
202 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_set_feature()
203 if (!report || (field_index >= report->maxfield)) { in sensor_hub_set_feature()
212 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
223 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
228 hid_hw_request(hsdev->hdev, report, HID_REQ_SET_REPORT); in sensor_hub_set_feature()
241 struct hid_report *report; in sensor_hub_get_feature() local
252 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_get_feature()
253 if (!report || (field_index >= report->maxfield) || in sensor_hub_get_feature()
254 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
258 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_get_feature()
262 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
264 report->field[field_index]->report_count; in sensor_hub_get_feature()
271 val_ptr = (u8 *)report->field[field_index]->value; in sensor_hub_get_feature()
272 for (i = 0; i < report->field[field_index]->report_count; ++i) { in sensor_hub_get_feature()
277 report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
279 buffer_index += (report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
298 struct hid_report *report; in sensor_hub_input_attr_get_raw_value() local
301 report = sensor_hub_report(report_id, hsdev->hdev, in sensor_hub_input_attr_get_raw_value()
303 if (!report) in sensor_hub_input_attr_get_raw_value()
319 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_input_attr_get_raw_value()
355 struct hid_report *report; in hid_sensor_get_usage_index() local
359 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in hid_sensor_get_usage_index()
360 if (!report || (field_index >= report->maxfield)) in hid_sensor_get_usage_index()
363 field = report->field[field_index]; in hid_sensor_get_usage_index()
382 struct hid_report *report; in sensor_hub_input_get_attribute_info() local
396 list_for_each_entry(report, &report_enum->report_list, list) { in sensor_hub_input_get_attribute_info()
397 for (i = 0; i < report->maxfield; ++i) { in sensor_hub_input_get_attribute_info()
398 field = report->field[i]; in sensor_hub_input_get_attribute_info()
411 report->id, in sensor_hub_input_get_attribute_info()
472 struct hid_report *report, u8 *raw_data, int size) in sensor_hub_raw_event() argument
485 report->id, size, report->type); in sensor_hub_raw_event()
486 hid_dbg(hdev, "maxfield:%d\n", report->maxfield); in sensor_hub_raw_event()
487 if (report->type != HID_INPUT_REPORT) in sensor_hub_raw_event()
491 if (report->id) in sensor_hub_raw_event()
496 for (i = 0; i < report->maxfield; ++i) { in sensor_hub_raw_event()
498 i, report->field[i]->usage->collection_index, in sensor_hub_raw_event()
499 report->field[i]->usage->hid, in sensor_hub_raw_event()
500 (report->field[i]->report_size * in sensor_hub_raw_event()
501 report->field[i]->report_count)/8); in sensor_hub_raw_event()
502 sz = (report->field[i]->report_size * in sensor_hub_raw_event()
503 report->field[i]->report_count)/8; in sensor_hub_raw_event()
505 report->field[i]->usage->collection_index]; in sensor_hub_raw_event()
510 report->field[i]->physical ? report->field[i]->physical : in sensor_hub_raw_event()
511 report->field[i]->application, in sensor_hub_raw_event()
512 report->field[i]->usage[0].collection_index, in sensor_hub_raw_event()
519 report->field[i]->usage->hid || in sensor_hub_raw_event()
521 report->field[i]->logical)) { in sensor_hub_raw_event()
531 if (report->field[i]->logical) in sensor_hub_raw_event()
533 report->field[i]->logical, sz, ptr, in sensor_hub_raw_event()
537 report->field[i]->usage->hid, sz, ptr, in sensor_hub_raw_event()