/linux-4.19.296/drivers/hid/ |
D | hid-sensor-hub.c | 64 struct hid_sensor_hub_device *hsdev; member 115 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument 127 callback->hsdev->start_collection_index) && in sensor_hub_get_callback() 129 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback() 131 *hsdev = callback->hsdev; in sensor_hub_get_callback() 141 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument 146 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 152 callback->hsdev == hsdev) { in sensor_hub_register_callback() 161 callback->hsdev = hsdev; in sensor_hub_register_callback() 183 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument [all …]
|
D | hid-sensor-custom.c | 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() [all …]
|
/linux-4.19.296/include/linux/ |
D | hid-sensor-hub.h | 102 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 103 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 104 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 107 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 117 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 125 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 139 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 151 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 168 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 191 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, [all …]
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-hid-sensor-time.c | 62 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, in hid_time_proc_event() argument 89 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_time_capture_sample() argument 148 struct hid_sensor_hub_device *hsdev, in hid_time_parse_report() argument 155 if (sensor_hub_input_get_attribute_info(hsdev, in hid_time_parse_report() 214 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time() 239 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_time_probe() local 250 time_state->common_attributes.hsdev = hsdev; in hid_time_probe() 253 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe() 261 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() 271 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() [all …]
|
/linux-4.19.296/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 155 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 172 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 192 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument 199 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 217 hsdev->usage, in dev_rot_parse_report() 223 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 243 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local 253 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() 256 switch (hsdev->usage) { in hid_dev_rot_probe() 270 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_dev_rot_probe() [all …]
|
D | hid-sensor-incl-3d.c | 126 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 203 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument 220 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument 249 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument 256 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 266 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 276 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 299 sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 318 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local 328 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() [all …]
|
/linux-4.19.296/drivers/iio/temperature/ |
D | hid-sensor-temperature.c | 78 temp_st->common_attributes.hsdev, in temperature_read_raw() 135 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument 149 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument 167 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() argument 174 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report() 191 sensor_hub_input_get_attribute_info(hsdev, in temperature_parse_report() 212 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local 220 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() 223 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe() 234 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe() [all …]
|
/linux-4.19.296/drivers/iio/humidity/ |
D | hid-sensor-humidity.c | 77 humid_st->common_attributes.hsdev, in humidity_read_raw() 137 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument 151 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument 170 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument 177 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report() 194 sensor_hub_input_get_attribute_info(hsdev, in humidity_parse_report() 215 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local 223 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe() 226 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe() 237 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe() [all …]
|
/linux-4.19.296/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 156 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local 157 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 169 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 170 hsdev->usage, address, report_id, in accel_3d_read_raw() 247 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 271 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 306 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument 315 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 333 hsdev->usage, in accel_3d_parse_report() 339 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() [all …]
|
/linux-4.19.296/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 176 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 197 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 236 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() 241 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value() 259 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 288 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value() 294 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value() 395 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument 399 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval() 413 static void hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_report_latency_info() argument [all …]
|
D | hid-sensor-trigger.c | 114 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state() 119 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 123 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 136 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state() 137 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 141 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 149 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 156 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state() 165 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 213 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work() [all …]
|
/linux-4.19.296/drivers/iio/light/ |
D | hid-sensor-prox.c | 99 prox_state->common_attributes.hsdev, in prox_read_raw() 178 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 195 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 218 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument 225 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report() 239 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 249 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report() 256 hsdev->usage, in prox_parse_report() 270 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local 279 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe() [all …]
|
D | hid-sensor-als.c | 117 als_state->common_attributes.hsdev, in als_read_raw() 195 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument 212 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument 237 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument 244 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report() 265 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report() 284 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local 292 als_state->common_attributes.hsdev = hsdev; in hid_als_probe() 295 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe() 309 ret = als_parse_report(pdev, hsdev, in hid_als_probe() [all …]
|
/linux-4.19.296/drivers/iio/pressure/ |
D | hid-sensor-press.c | 100 press_state->common_attributes.hsdev, in press_read_raw() 178 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument 195 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument 218 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument 225 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report() 244 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report() 263 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local 272 press_state->common_attributes.hsdev = hsdev; in hid_press_probe() 275 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe() 290 ret = press_parse_report(pdev, hsdev, in hid_press_probe() [all …]
|
/linux-4.19.296/drivers/iio/gyro/ |
D | hid-sensor-gyro-3d.c | 126 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 205 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument 222 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument 250 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument 259 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 283 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 302 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local 310 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe() 313 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe() 328 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe() [all …]
|
/linux-4.19.296/drivers/iio/magnetometer/ |
D | hid-sensor-magn-3d.c | 178 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw() 299 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument 314 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument 355 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument 371 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 456 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 466 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 476 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 496 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local 508 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe() [all …]
|