Home
last modified time | relevance | path

Searched refs:hsdev (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.4/drivers/hid/
Dhid-sensor-hub.c51 struct hid_sensor_hub_device *hsdev; member
102 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument
114 callback->hsdev->start_collection_index) && in sensor_hub_get_callback()
116 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback()
118 *hsdev = callback->hsdev; in sensor_hub_get_callback()
128 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument
133 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback()
139 callback->hsdev == hsdev) { in sensor_hub_register_callback()
148 callback->hsdev = hsdev; in sensor_hub_register_callback()
170 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument
[all …]
Dhid-sensor-custom.c38 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()
[all …]
/Linux-v5.4/drivers/ata/
Dsata_dwc_460ex.c151 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.4/include/linux/
Dhid-sensor-hub.h89 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.4/drivers/rtc/
Drtc-hid-sensor-time.c49 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()
247 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe()
257 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe()
[all …]
/Linux-v5.4/drivers/iio/orientation/
Dhid-sensor-rotation.c147 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
164 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
184 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
191 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
209 hsdev->usage, in dev_rot_parse_report()
215 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
235 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local
245 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
248 switch (hsdev->usage) { in hid_dev_rot_probe()
262 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_dev_rot_probe()
[all …]
Dhid-sensor-incl-3d.c114 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
208 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument
237 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument
244 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
254 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
264 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
287 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()
[all …]
/Linux-v5.4/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c164 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value()
185 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value()
224 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
229 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value()
247 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value()
276 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
282 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value()
387 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument
391 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval()
405 static void hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_report_latency_info() argument
[all …]
Dhid-sensor-trigger.c101 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state()
106 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
110 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
123 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state()
124 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
128 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
136 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
143 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
152 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
200 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work()
[all …]
/Linux-v5.4/drivers/iio/accel/
Dhid-sensor-accel-3d.c140 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local
141 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
153 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
154 hsdev->usage, address, report_id, in accel_3d_read_raw()
231 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
255 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
289 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
298 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
316 hsdev->usage, in accel_3d_parse_report()
322 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
[all …]
/Linux-v5.4/drivers/iio/humidity/
Dhid-sensor-humidity.c63 humid_st->common_attributes.hsdev, in humidity_read_raw()
123 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument
138 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument
157 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument
164 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report()
181 sensor_hub_input_get_attribute_info(hsdev, in humidity_parse_report()
202 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local
210 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
213 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe()
224 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe()
[all …]
/Linux-v5.4/drivers/iio/temperature/
Dhid-sensor-temperature.c64 temp_st->common_attributes.hsdev, in temperature_read_raw()
121 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument
136 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument
154 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() argument
161 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report()
178 sensor_hub_input_get_attribute_info(hsdev, in temperature_parse_report()
199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local
207 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe()
210 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe()
221 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe()
[all …]
/Linux-v5.4/drivers/iio/light/
Dhid-sensor-prox.c84 prox_state->common_attributes.hsdev, in prox_read_raw()
162 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
179 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
202 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
209 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report()
223 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
233 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
249 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local
258 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe()
261 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX, in hid_prox_probe()
[all …]
Dhid-sensor-als.c104 als_state->common_attributes.hsdev, in als_read_raw()
182 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument
199 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument
224 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument
231 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report()
252 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
271 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local
279 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
282 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe()
296 ret = als_parse_report(pdev, hsdev, in hid_als_probe()
[all …]
/Linux-v5.4/drivers/iio/pressure/
Dhid-sensor-press.c88 press_state->common_attributes.hsdev, in press_read_raw()
166 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
183 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument
206 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument
213 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report()
232 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report()
251 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local
260 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
263 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
278 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
[all …]
/Linux-v5.4/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c113 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
192 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
209 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
237 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
246 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
270 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
289 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local
297 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
300 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe()
315 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe()
[all …]
/Linux-v5.4/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c165 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw()
286 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
301 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
342 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
358 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
443 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()
463 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
483 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local
495 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe()
[all …]
/Linux-v5.4/Documentation/hid/
Dhid-sensor.rst94 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,