Lines Matching refs:hsdev

41 	struct hid_sensor_hub_device *hsdev;  member
188 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
193 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
201 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
207 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
216 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
222 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
244 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store()
250 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
256 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
311 ret = sensor_hub_get_feature(sensor_inst->hsdev, in show_value()
351 sensor_inst->hsdev, in show_value()
352 sensor_inst->hsdev->usage, in show_value()
406 ret = sensor_hub_set_feature(sensor_inst->hsdev, report_id, in store_value()
416 static int hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_sensor_capture_sample() argument
425 hid_err(sensor_inst->hsdev->hdev, "Skipped remaining data\n"); in hid_sensor_capture_sample()
429 hid_dbg(sensor_inst->hsdev->hdev, "%s received %d of %d\n", __func__, in hid_sensor_capture_sample()
439 header.usage_id = hsdev->usage; in hid_sensor_capture_sample()
458 static int hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, in hid_sensor_send_event() argument
491 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; in hid_sensor_custom_add_field()
535 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_fields() local
542 hsdev->start_collection_index) && in hid_sensor_custom_add_fields()
544 hsdev->end_collection_index))) { in hid_sensor_custom_add_fields()
564 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; in hid_sensor_custom_add_attributes() local
565 struct hid_device *hdev = hsdev->hdev; in hid_sensor_custom_add_attributes()
823 static int hid_sensor_custom_get_prop(struct hid_sensor_hub_device *hsdev, in hid_sensor_custom_get_prop() argument
832 ret = sensor_hub_input_get_attribute_info(hsdev, HID_FEATURE_REPORT, in hid_sensor_custom_get_prop()
833 hsdev->usage, prop_usage_id, in hid_sensor_custom_get_prop()
838 ret = sensor_hub_get_feature(hsdev, prop_attr.report_id, in hid_sensor_custom_get_prop()
841 hid_err(hsdev->hdev, "Failed to get sensor property %08x %d\n", in hid_sensor_custom_get_prop()
850 hid_sensor_custom_do_match(struct hid_sensor_hub_device *hsdev, in hid_sensor_custom_do_match() argument
878 hid_sensor_custom_properties_get(struct hid_sensor_hub_device *hsdev, in hid_sensor_custom_properties_get() argument
883 ret = hid_sensor_custom_get_prop(hsdev, in hid_sensor_custom_properties_get()
895 hid_sensor_custom_get_prop(hsdev, HID_USAGE_SENSOR_PROP_MODEL, in hid_sensor_custom_properties_get()
899 hid_sensor_custom_get_prop(hsdev, HID_USAGE_SENSOR_PROP_MANUFACTURER, in hid_sensor_custom_properties_get()
907 hid_sensor_custom_get_known(struct hid_sensor_hub_device *hsdev, in hid_sensor_custom_get_known() argument
919 ret = hid_sensor_custom_properties_get(hsdev, prop); in hid_sensor_custom_get_known()
924 if (hid_sensor_custom_do_match(hsdev, match, prop)) { in hid_sensor_custom_get_known()
939 struct hid_sensor_hub_device *hsdev, in hid_sensor_register_platform_device() argument
960 PLATFORM_DEVID_AUTO, hsdev, in hid_sensor_register_platform_device()
961 sizeof(*hsdev)); in hid_sensor_register_platform_device()
969 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_probe() local
981 sensor_inst->hsdev = hsdev; in hid_sensor_custom_probe()
986 ret = hid_sensor_custom_get_known(hsdev, &match); in hid_sensor_custom_probe()
989 hid_sensor_register_platform_device(pdev, hsdev, match); in hid_sensor_custom_probe()
1001 ret = sensor_hub_register_callback(hsdev, hsdev->usage, in hid_sensor_custom_probe()
1029 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_probe()
1037 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_sensor_custom_remove() local
1048 sensor_hub_remove_callback(hsdev, hsdev->usage); in hid_sensor_custom_remove()