Lines Matching refs:field
86 s32 index, s32 report_id, struct hid_field *field) in sensor_hub_fill_attr_info() argument
90 info->units = field->unit; in sensor_hub_fill_attr_info()
91 info->unit_expo = field->unit_exponent; in sensor_hub_fill_attr_info()
92 info->size = (field->report_size * field->report_count)/8; in sensor_hub_fill_attr_info()
93 info->logical_minimum = field->logical_minimum; in sensor_hub_fill_attr_info()
94 info->logical_maximum = field->logical_maximum; in sensor_hub_fill_attr_info()
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()
254 report->field[field_index]->report_count < 1) { 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()
356 struct hid_field *field; in hid_sensor_get_usage_index() local
363 field = report->field[field_index]; in hid_sensor_get_usage_index()
364 for (i = 0; i < field->maxusage; ++i) { in hid_sensor_get_usage_index()
365 if (field->usage[i].hid == usage_id) in hid_sensor_get_usage_index()
366 return field->usage[i].usage_index; in hid_sensor_get_usage_index()
383 struct hid_field *field; in sensor_hub_input_get_attribute_info() local
398 field = report->field[i]; in sensor_hub_input_get_attribute_info()
399 if (field->maxusage) { in sensor_hub_input_get_attribute_info()
400 if (field->physical == usage_id && in sensor_hub_input_get_attribute_info()
401 (field->logical == attr_usage_id || in sensor_hub_input_get_attribute_info()
402 field->usage[0].hid == in sensor_hub_input_get_attribute_info()
404 (field->usage[0].collection_index >= in sensor_hub_input_get_attribute_info()
406 (field->usage[0].collection_index < in sensor_hub_input_get_attribute_info()
411 field); in sensor_hub_input_get_attribute_info()
497 i, report->field[i]->usage->collection_index, in sensor_hub_raw_event()
498 report->field[i]->usage->hid, in sensor_hub_raw_event()
499 (report->field[i]->report_size * in sensor_hub_raw_event()
500 report->field[i]->report_count)/8); in sensor_hub_raw_event()
501 sz = (report->field[i]->report_size * in sensor_hub_raw_event()
502 report->field[i]->report_count)/8; in sensor_hub_raw_event()
504 report->field[i]->usage->collection_index]; in sensor_hub_raw_event()
509 report->field[i]->physical, in sensor_hub_raw_event()
510 report->field[i]->usage[0].collection_index, in sensor_hub_raw_event()
517 report->field[i]->usage->hid || in sensor_hub_raw_event()
519 report->field[i]->logical)) { in sensor_hub_raw_event()
529 if (report->field[i]->logical) in sensor_hub_raw_event()
531 report->field[i]->logical, sz, ptr, in sensor_hub_raw_event()
535 report->field[i]->usage->hid, sz, ptr, in sensor_hub_raw_event()