/Linux-v5.15/drivers/hid/ |
D | hid-sensor-hub.c | 50 struct hid_sensor_hub_device *hsdev; member 101 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument 113 callback->hsdev->start_collection_index) && in sensor_hub_get_callback() 115 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback() 117 *hsdev = callback->hsdev; in sensor_hub_get_callback() 127 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument 132 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback() 138 callback->hsdev == hsdev) { in sensor_hub_register_callback() 147 callback->hsdev = hsdev; in sensor_hub_register_callback() 169 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument [all …]
|
D | hid-sensor-custom.c | 40 struct hid_sensor_hub_device *hsdev; member 187 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 192 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state() 200 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 206 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 215 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state() 221 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state() 243 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store() 249 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() 255 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store() [all …]
|
/Linux-v5.15/drivers/ata/ |
D | sata_dwc_460ex.c | 151 struct sata_dwc_device *hsdev; member 168 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev) 216 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local 220 dws->dma_dev = hsdev->dev; in sata_dwc_dma_get_channel_old() 228 dev_err(hsdev->dev, "%s: dma channel unavailable\n", in sata_dwc_dma_get_channel_old() 237 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() argument 242 hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old() 243 if (!hsdev->dma) in sata_dwc_dma_init_old() 246 hsdev->dma->dev = &pdev->dev; in sata_dwc_dma_init_old() 247 hsdev->dma->id = pdev->id; in sata_dwc_dma_init_old() [all …]
|
/Linux-v5.15/include/linux/ |
D | hid-sensor-hub.h | 89 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv); 90 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv); 91 int (*capture_sample)(struct hid_sensor_hub_device *hsdev, 94 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id, 104 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev); 112 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev); 126 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 138 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 155 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 178 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev, [all …]
|
/Linux-v5.15/drivers/iio/position/ |
D | hid-sensor-custom-intel-hinge.c | 114 struct hid_sensor_hub_device *hsdev; in hinge_read_raw() local 118 hsdev = st->common_attributes.hsdev; in hinge_read_raw() 129 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw() 130 hsdev->usage, in hinge_read_raw() 192 static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, in hinge_proc_event() argument 211 static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, in hinge_capture_sample() argument 237 struct hid_sensor_hub_device *hsdev, in hinge_parse_report() argument 245 ret = sensor_hub_input_get_attribute_info(hsdev, in hinge_parse_report() 268 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_hinge_probe() local 279 st->common_attributes.hsdev = hsdev; in hid_hinge_probe() [all …]
|
/Linux-v5.15/drivers/rtc/ |
D | rtc-hid-sensor-time.c | 49 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, in hid_time_proc_event() argument 76 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_time_capture_sample() argument 135 struct hid_sensor_hub_device *hsdev, in hid_time_parse_report() argument 142 if (sensor_hub_input_get_attribute_info(hsdev, in hid_time_parse_report() 200 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time() 225 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_time_probe() local 236 time_state->common_attributes.hsdev = hsdev; in hid_time_probe() 239 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe() 249 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() 259 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe() [all …]
|
/Linux-v5.15/drivers/iio/common/hid-sensors/ |
D | hid-sensor-attributes.c | 159 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value() 180 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value() 219 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value() 224 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value() 242 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value() 265 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_rel_value() 294 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value() 300 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value() 325 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity_rel.report_id, in hid_sensor_write_raw_hyst_rel_value() 331 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_rel_value() [all …]
|
D | hid-sensor-trigger.c | 91 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state() 96 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 100 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 113 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state() 114 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 118 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state() 126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 133 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state() 142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state() 187 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work() [all …]
|
/Linux-v5.15/drivers/iio/accel/ |
D | hid-sensor-accel-3d.c | 144 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local 145 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 157 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 158 hsdev->usage, address, report_id, in accel_3d_read_raw() 235 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument 259 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument 293 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument 302 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report() 320 hsdev->usage, in accel_3d_parse_report() 337 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_accel_3d_probe() local [all …]
|
/Linux-v5.15/drivers/iio/orientation/ |
D | hid-sensor-rotation.c | 145 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument 167 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument 198 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument 205 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report() 223 hsdev->usage, in dev_rot_parse_report() 237 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local 247 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe() 250 switch (hsdev->usage) { in hid_dev_rot_probe() 264 ret = hid_sensor_parse_common_attributes(hsdev, in hid_dev_rot_probe() 265 hsdev->usage, in hid_dev_rot_probe() [all …]
|
D | hid-sensor-incl-3d.c | 121 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 191 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument 214 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument 248 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument 255 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 265 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 275 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report() 306 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local 316 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe() 319 ret = hid_sensor_parse_common_attributes(hsdev, in hid_incl_3d_probe() [all …]
|
/Linux-v5.15/drivers/iio/temperature/ |
D | hid-sensor-temperature.c | 70 temp_st->common_attributes.hsdev, in temperature_read_raw() 127 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument 141 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument 159 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() argument 166 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report() 196 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local 204 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() 207 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe() 220 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe() 241 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TEMPERATURE, in hid_temperature_probe() [all …]
|
/Linux-v5.15/drivers/iio/humidity/ |
D | hid-sensor-humidity.c | 69 humid_st->common_attributes.hsdev, in humidity_read_raw() 129 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument 143 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument 162 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument 169 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report() 199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local 207 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe() 210 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe() 223 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe() 244 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY, in hid_humidity_probe() [all …]
|
/Linux-v5.15/drivers/iio/light/ |
D | hid-sensor-prox.c | 87 prox_state->common_attributes.hsdev, in prox_read_raw() 166 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument 183 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument 206 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument 213 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report() 235 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local 244 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe() 247 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX, in hid_prox_probe() 263 ret = prox_parse_report(pdev, hsdev, in hid_prox_probe() 294 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PROX, in hid_prox_probe() [all …]
|
D | hid-sensor-als.c | 113 als_state->common_attributes.hsdev, in als_read_raw() 191 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 241 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument 248 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report() 277 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local 285 als_state->common_attributes.hsdev = hsdev; in hid_als_probe() 288 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe() 304 ret = als_parse_report(pdev, hsdev, in hid_als_probe() 336 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe() [all …]
|
/Linux-v5.15/drivers/iio/pressure/ |
D | hid-sensor-press.c | 97 press_state->common_attributes.hsdev, in press_read_raw() 167 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument 187 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument 214 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument 221 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report() 248 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local 257 press_state->common_attributes.hsdev = hsdev; in hid_press_probe() 260 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe() 277 ret = press_parse_report(pdev, hsdev, in hid_press_probe() 309 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PRESSURE, in hid_press_probe() [all …]
|
/Linux-v5.15/drivers/iio/gyro/ |
D | hid-sensor-gyro-3d.c | 118 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 189 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument 211 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument 244 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument 253 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report() 285 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local 293 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe() 296 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe() 313 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe() 344 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D, in hid_gyro_3d_probe() [all …]
|
/Linux-v5.15/drivers/iio/magnetometer/ |
D | hid-sensor-magn-3d.c | 168 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw() 282 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument 304 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument 350 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument 366 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 453 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report() 473 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local 485 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe() 488 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe() 501 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe() [all …]
|
/Linux-v5.15/Documentation/hid/ |
D | hid-sensor.rst | 94 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, 102 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, 110 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev, 123 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 132 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 141 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
|