Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/iio/orientation/
Dhid-sensor-rotation.c145 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
162 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
182 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
189 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
207 hsdev->usage, in dev_rot_parse_report()
213 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
233 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local
243 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
246 switch (hsdev->usage) { in hid_dev_rot_probe()
260 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_dev_rot_probe()
[all …]
Dhid-sensor-incl-3d.c112 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
189 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument
206 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument
235 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument
242 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
252 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
262 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
285 sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
304 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local
314 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe()
[all …]
/kernel/linux/linux-5.10/drivers/iio/accel/
Dhid-sensor-accel-3d.c141 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local
142 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
154 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
155 hsdev->usage, address, report_id, in accel_3d_read_raw()
232 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
256 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
290 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
299 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
317 hsdev->usage, in accel_3d_parse_report()
323 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
[all …]
/kernel/linux/linux-5.10/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.c103 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state()
108 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
112 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
125 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state()
126 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
130 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
138 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
145 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
154 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
202 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work()
[all …]
/kernel/linux/linux-5.10/drivers/iio/temperature/
Dhid-sensor-temperature.c65 temp_st->common_attributes.hsdev, in temperature_read_raw()
122 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 …]
/kernel/linux/linux-5.10/drivers/iio/humidity/
Dhid-sensor-humidity.c64 humid_st->common_attributes.hsdev, in humidity_read_raw()
124 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 …]
/kernel/linux/linux-5.10/drivers/iio/light/
Dhid-sensor-prox.c85 prox_state->common_attributes.hsdev, in prox_read_raw()
164 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
181 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
204 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
211 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report()
225 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
235 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
242 hsdev->usage, in prox_parse_report()
256 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local
265 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe()
[all …]
Dhid-sensor-als.c102 als_state->common_attributes.hsdev, in als_read_raw()
180 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument
197 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument
222 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument
229 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report()
250 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
269 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local
277 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
280 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe()
294 ret = als_parse_report(pdev, hsdev, in hid_als_probe()
[all …]
/kernel/linux/linux-5.10/drivers/iio/pressure/
Dhid-sensor-press.c86 press_state->common_attributes.hsdev, in press_read_raw()
164 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
181 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument
204 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument
211 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report()
230 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report()
249 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local
258 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
261 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
276 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
[all …]
/kernel/linux/linux-5.10/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c111 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
190 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
207 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
235 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
244 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
268 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
287 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local
295 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
298 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()
[all …]
/kernel/linux/linux-5.10/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c163 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw()
284 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
299 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
340 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
356 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
441 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
451 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
461 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
481 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local
493 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe()
[all …]
/kernel/linux/linux-5.10/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,