Home
last modified time | relevance | path

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

/linux/drivers/hid/
H A Dhid-sensor-hub.c50 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 …]
/linux/drivers/ata/
H A Dsata_dwc_460ex.c141 struct sata_dwc_device *hsdev; member
158 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev)
204 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local
206 struct device *dev = hsdev->dev; in sata_dwc_dma_get_channel_old()
225 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() argument
229 hsdev->dma = devm_kzalloc(dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old()
230 if (!hsdev->dma) in sata_dwc_dma_init_old()
233 hsdev->dma->dev = dev; in sata_dwc_dma_init_old()
234 hsdev->dma->id = pdev->id; in sata_dwc_dma_init_old()
237 hsdev->dma->irq = platform_get_irq(pdev, 1); in sata_dwc_dma_init_old()
[all …]
/linux/include/linux/
H A Dhid-sensor-hub.h93 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv);
94 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv);
95 int (*capture_sample)(struct hid_sensor_hub_device *hsdev,
98 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id,
108 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev);
116 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev);
130 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
143 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev,
160 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
183 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
[all …]
/linux/drivers/iio/position/
H A Dhid-sensor-custom-intel-hinge.c113 struct hid_sensor_hub_device *hsdev; in hinge_read_raw() local
117 hsdev = st->common_attributes.hsdev; in hinge_read_raw()
128 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw()
129 hsdev->usage, in hinge_read_raw()
191 static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, in hinge_proc_event() argument
210 static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, in hinge_capture_sample() argument
236 struct hid_sensor_hub_device *hsdev, in hinge_parse_report() argument
244 ret = sensor_hub_input_get_attribute_info(hsdev, in hinge_parse_report()
265 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_hinge_probe() local
278 st->common_attributes.hsdev = hsdev; in hid_hinge_probe()
[all …]
/linux/drivers/iio/orientation/
H A Dhid-sensor-rotation.c88 struct hid_sensor_hub_device *hsdev = rot_state->common_attributes.hsdev; in dev_rot_read_raw() local
109 ret_type = sensor_hub_input_attr_read_values(hsdev, in dev_rot_read_raw()
110 hsdev->usage, in dev_rot_read_raw()
213 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
246 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
277 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
283 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
298 hsdev->usage, in dev_rot_parse_report()
308 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_dev_rot_probe() local
322 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
[all …]
H A Dhid-sensor-incl-3d.c120 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
190 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument
213 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument
247 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument
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()
274 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
301 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_incl_3d_probe() local
315 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe()
318 ret = hid_sensor_parse_common_attributes(hsdev, in hid_incl_3d_probe()
[all …]
/linux/drivers/rtc/
H A 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()
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/drivers/iio/light/
H A Dhid-sensor-prox.c77 struct hid_sensor_hub_device *hsdev; in prox_read_raw() local
92 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw()
95 *val = sensor_hub_input_attr_get_raw_value(hsdev, in prox_read_raw()
96 hsdev->usage, in prox_read_raw()
167 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
184 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
220 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
231 ret = sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
233 hsdev->usage, in prox_parse_report()
267 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_prox_probe() local
[all …]
H A Dhid-sensor-als.c127 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() local
167 hsdev, hsdev->usage, address, report_id, in als_read_raw()
242 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument
264 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument
306 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument
317 ret = sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
353 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_als_probe() local
365 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
368 ret = hid_sensor_parse_common_attributes(hsdev, in hid_als_probe()
369 hsdev->usage, in hid_als_probe()
[all …]
/linux/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c163 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value()
184 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value()
223 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
228 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value()
246 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value()
269 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_rel_value()
298 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
304 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value()
329 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity_rel.report_id, in hid_sensor_write_raw_hyst_rel_value()
335 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_rel_value()
[all …]
H A Dhid-sensor-trigger.c92 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state()
97 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
101 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
114 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state()
115 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
119 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
127 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
134 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
143 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/drivers/iio/accel/
H A Dhid-sensor-accel-3d.c133 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local
134 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
146 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
147 hsdev->usage, address, report_id, in accel_3d_read_raw()
224 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
248 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
283 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
291 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
311 hsdev->usage, in accel_3d_parse_report()
321 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_accel_3d_probe() local
[all …]
/linux/drivers/iio/temperature/
H A Dhid-sensor-temperature.c69 temp_st->common_attributes.hsdev, in temperature_read_raw()
126 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/drivers/iio/humidity/
H A Dhid-sensor-humidity.c68 humid_st->common_attributes.hsdev, in humidity_read_raw()
128 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument
142 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument
161 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument
168 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report()
198 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local
206 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
209 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe()
222 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe()
243 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_HUMIDITY, in hid_humidity_probe()
[all …]
/linux/drivers/iio/pressure/
H A Dhid-sensor-press.c86 press_state->common_attributes.hsdev, in press_read_raw()
156 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
177 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()
237 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_press_probe() local
250 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
253 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
270 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
302 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_PRESSURE, in hid_press_probe()
[all …]
/linux/drivers/iio/gyro/
H A Dhid-sensor-gyro-3d.c107 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
178 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
200 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
234 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
242 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
272 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_gyro_3d_probe() local
284 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
287 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe()
304 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe()
335 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_GYRO_3D, in hid_gyro_3d_probe()
[all …]
/linux/drivers/iio/magnetometer/
H A Dhid-sensor-magn-3d.c157 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw()
271 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
293 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
339 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
355 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
444 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
460 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_magn_3d_probe() local
476 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe()
479 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe()
492 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe()
[all …]
/linux/Documentation/hid/
H A 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,