Lines Matching refs: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()
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 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
224 ret = hid_set_field(report->field[field_index], i, in sensor_hub_set_feature()
229 hid_hw_request(hsdev->hdev, report, HID_REQ_SET_REPORT); in sensor_hub_set_feature()
242 struct hid_report *report; in sensor_hub_get_feature() local
253 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in sensor_hub_get_feature()
254 if (!report || (field_index >= report->maxfield) || in sensor_hub_get_feature()
255 report->field[field_index]->report_count < 1) { in sensor_hub_get_feature()
259 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_get_feature()
263 report_size = DIV_ROUND_UP(report->field[field_index]->report_size, in sensor_hub_get_feature()
265 report->field[field_index]->report_count; in sensor_hub_get_feature()
272 val_ptr = (u8 *)report->field[field_index]->value; in sensor_hub_get_feature()
273 for (i = 0; i < report->field[field_index]->report_count; ++i) { in sensor_hub_get_feature()
278 report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
280 buffer_index += (report->field[field_index]->report_size / 8); in sensor_hub_get_feature()
299 struct hid_report *report; in sensor_hub_input_attr_get_raw_value() local
302 report = sensor_hub_report(report_id, hsdev->hdev, in sensor_hub_input_attr_get_raw_value()
304 if (!report) in sensor_hub_input_attr_get_raw_value()
320 hid_hw_request(hsdev->hdev, report, HID_REQ_GET_REPORT); in sensor_hub_input_attr_get_raw_value()
356 struct hid_report *report; in hid_sensor_get_usage_index() local
360 report = sensor_hub_report(report_id, hsdev->hdev, HID_FEATURE_REPORT); in hid_sensor_get_usage_index()
361 if (!report || (field_index >= report->maxfield)) in hid_sensor_get_usage_index()
364 field = report->field[field_index]; in hid_sensor_get_usage_index()
383 struct hid_report *report; in sensor_hub_input_get_attribute_info() local
397 list_for_each_entry(report, &report_enum->report_list, list) { in sensor_hub_input_get_attribute_info()
398 for (i = 0; i < report->maxfield; ++i) { in sensor_hub_input_get_attribute_info()
399 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, in sensor_hub_raw_event()
511 report->field[i]->usage[0].collection_index, in sensor_hub_raw_event()
518 report->field[i]->usage->hid || in sensor_hub_raw_event()
520 report->field[i]->logical)) { in sensor_hub_raw_event()
530 if (report->field[i]->logical) in sensor_hub_raw_event()
532 report->field[i]->logical, sz, ptr, in sensor_hub_raw_event()
536 report->field[i]->usage->hid, sz, ptr, in sensor_hub_raw_event()