Lines Matching refs:hsdev

46 	struct hid_sensor_hub_device *hsdev;  member
193 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
198 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
206 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
212 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
221 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
227 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
250 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store()
256 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
262 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
318 ret = sensor_hub_get_feature(sensor_inst->hsdev, in show_value()
358 sensor_inst->hsdev, in show_value()
359 sensor_inst->hsdev->usage, in show_value()
416 ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id, in store_value()
424 static int hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_sensor_capture_sample() argument
433 hid_err(sensor_inst->hsdev->hdev, "Skipped remaining data\n"); in hid_sensor_capture_sample()
437 hid_dbg(sensor_inst->hsdev->hdev, "%s received %d of %d\n", __func__, in hid_sensor_capture_sample()
447 header.usage_id = hsdev->usage; in hid_sensor_capture_sample()
466 static int hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, in hid_sensor_send_event() argument
499 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; in hid_sensor_custom_add_field()
543 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_fields() local
550 hsdev->start_collection_index) && in hid_sensor_custom_add_fields()
552 hsdev->end_collection_index))) { in hid_sensor_custom_add_fields()
572 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_attributes() local
573 struct hid_device *hdev = hsdev->hdev; in hid_sensor_custom_add_attributes()
764 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_probe() local
775 sensor_inst->hsdev = hsdev; in hid_sensor_custom_probe()
779 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_sensor_custom_probe()
807 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_probe()
815 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_remove() local
821 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_remove()