Lines Matching refs:hsdev
38 struct hid_sensor_hub_device *hsdev; member
184 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
189 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
197 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
203 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
212 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
218 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
240 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store()
246 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
252 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
307 ret = sensor_hub_get_feature(sensor_inst->hsdev, in show_value()
347 sensor_inst->hsdev, in show_value()
348 sensor_inst->hsdev->usage, in show_value()
404 ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id, in store_value()
412 static int hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_sensor_capture_sample() argument
421 hid_err(sensor_inst->hsdev->hdev, "Skipped remaining data\n"); in hid_sensor_capture_sample()
425 hid_dbg(sensor_inst->hsdev->hdev, "%s received %d of %d\n", __func__, in hid_sensor_capture_sample()
435 header.usage_id = hsdev->usage; in hid_sensor_capture_sample()
454 static int hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, in hid_sensor_send_event() argument
487 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; in hid_sensor_custom_add_field()
531 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_fields() local
538 hsdev->start_collection_index) && in hid_sensor_custom_add_fields()
540 hsdev->end_collection_index))) { in hid_sensor_custom_add_fields()
560 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_attributes() local
561 struct hid_device *hdev = hsdev->hdev; in hid_sensor_custom_add_attributes()
752 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_probe() local
763 sensor_inst->hsdev = hsdev; in hid_sensor_custom_probe()
767 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_sensor_custom_probe()
795 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_probe()
803 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_remove() local
809 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_remove()