Home
last modified time | relevance | path

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

/linux/drivers/hid/
H A Dhid-sensor-hub.c44 * @hsdev: Stored hid instance for current hub device.
51 struct hid_sensor_hub_device *hsdev;
102 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback()
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()
133 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback()
139 callback->hsdev in sensor_hub_register_callback()
50 struct hid_sensor_hub_device *hsdev; global() member
101 sensor_hub_get_callback(struct hid_device * hdev,u32 usage_id,int collection_index,struct hid_sensor_hub_device ** hsdev,void ** priv) sensor_hub_get_callback() argument
127 sensor_hub_register_callback(struct hid_sensor_hub_device * hsdev,u32 usage_id,struct hid_sensor_hub_callbacks * usage_callback) sensor_hub_register_callback() argument
169 sensor_hub_remove_callback(struct hid_sensor_hub_device * hsdev,u32 usage_id) sensor_hub_remove_callback() argument
190 sensor_hub_set_feature(struct hid_sensor_hub_device * hsdev,u32 report_id,u32 field_index,int buffer_size,void * buffer) sensor_hub_set_feature() argument
238 sensor_hub_get_feature(struct hid_sensor_hub_device * hsdev,u32 report_id,u32 field_index,int buffer_size,void * buffer) sensor_hub_get_feature() argument
297 sensor_hub_input_attr_read_values(struct hid_sensor_hub_device * hsdev,u32 usage_id,u32 attr_usage_id,u32 report_id,enum sensor_hub_read_flags flag,u32 buffer_size,u8 * buffer) sensor_hub_input_attr_read_values() argument
346 sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device * hsdev,u32 usage_id,u32 attr_usage_id,u32 report_id,enum sensor_hub_read_flags flag,bool is_signed) sensor_hub_input_attr_get_raw_value() argument
408 hid_sensor_get_usage_index(struct hid_sensor_hub_device * hsdev,u32 report_id,int field_index,u32 usage_id) hid_sensor_get_usage_index() argument
430 sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device * hsdev,u8 type,u32 usage_id,u32 attr_usage_id,struct hid_sensor_hub_attribute_info * info) sensor_hub_input_get_attribute_info() argument
536 struct hid_sensor_hub_device *hsdev = NULL; sensor_hub_raw_event() local
621 sensor_hub_device_open(struct hid_sensor_hub_device * hsdev) sensor_hub_device_open() argument
642 sensor_hub_device_close(struct hid_sensor_hub_device * hsdev) sensor_hub_device_close() argument
684 struct hid_sensor_hub_device *hsdev; sensor_hub_probe() local
806 struct hid_sensor_hub_device *hsdev = dev->platform_data; sensor_hub_finalize_pending_fn() local
[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_obj(dev, *hsdev->dma); in sata_dwc_dma_init_old()
230 if (!hsdev->dma) in sata_dwc_dma_init_old()
233 hsdev in sata_dwc_dma_init_old()
250 sata_dwc_dma_exit_old(struct sata_dwc_device * hsdev) sata_dwc_dma_exit_old() argument
287 struct sata_dwc_device *hsdev = hsdev_instance; dma_dwc_xfer_done() local
322 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); dma_dwc_xfer_setup() local
395 clear_interrupt_bit(struct sata_dwc_device * hsdev,u32 bit) clear_interrupt_bit() argument
407 sata_dwc_error_intr(struct ata_port * ap,struct sata_dwc_device * hsdev,uint intpr) sata_dwc_error_intr() argument
460 struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host); sata_dwc_isr() local
678 struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp); sata_dwc_clear_dmacr() local
704 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_dma_xfer_complete() local
735 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_qc_complete() local
755 sata_dwc_enable_interrupts(struct sata_dwc_device * hsdev) sata_dwc_enable_interrupts() argument
798 struct sata_dwc_device *hsdev = hsdevp->hsdev; sata_dwc_dma_get_channel() local
825 struct sata_dwc_device *hsdev; sata_dwc_port_start() local
893 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); sata_dwc_port_stop() local
950 struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc); sata_dwc_bmdma_start_by_tag() local
1042 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap); sata_dwc_hardreset() local
1119 struct sata_dwc_device *hsdev; sata_dwc_probe() local
1204 struct sata_dwc_device *hsdev = host->private_data; sata_dwc_remove() local
[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/light/
H A Dhid-sensor-prox.c76 struct hid_sensor_hub_device *hsdev; in prox_read_raw() local
91 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw()
94 *val = sensor_hub_input_attr_get_raw_value(hsdev, in prox_read_raw()
95 hsdev->usage, in prox_read_raw()
164 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
180 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
216 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
227 ret = sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
229 hsdev->usage, in prox_parse_report()
263 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_prox_probe() local
[all …]
H A Dhid-sensor-als.c126 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() local
166 hsdev, hsdev->usage, address, report_id, in als_read_raw()
241 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument
262 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument
318 struct hid_sensor_hub_device *hsdev, in als_parse_report()
329 ret = sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
365 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_als_probe()
377 als_state->common_attributes.hsdev in hid_als_probe()
304 als_parse_report(struct platform_device * pdev,struct hid_sensor_hub_device * hsdev,u32 usage_id,struct als_state * st) als_parse_report() argument
351 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_als_probe() local
433 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_als_remove() local
[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
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()
266 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_hinge_probe() local
279 st->common_attributes.hsdev = hsdev; in hid_hinge_probe()
[all …]
/linux/drivers/iio/orientation/
H A Dhid-sensor-rotation.c87 struct hid_sensor_hub_device *hsdev = rot_state->common_attributes.hsdev; in dev_rot_read_raw() local
108 ret_type = sensor_hub_input_attr_read_values(hsdev, in dev_rot_read_raw()
109 hsdev->usage, in dev_rot_read_raw()
210 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
242 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
273 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
279 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
294 hsdev->usage, in dev_rot_parse_report()
304 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_dev_rot_probe() local
318 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
[all …]
H A Dhid-sensor-incl-3d.c118 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
186 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
242 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument
249 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
259 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
269 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
296 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_incl_3d_probe() local
310 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe()
313 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_TIM in hid_time_probe()
301 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_time_remove() local
[all...]
/linux/drivers/iio/accel/
H A Dhid-sensor-accel-3d.c132 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local
133 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
145 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
146 hsdev->usage, address, report_id, in accel_3d_read_raw()
221 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
244 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
279 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
287 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
307 hsdev->usage, in accel_3d_parse_report()
317 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_accel_3d_probe() local
[all …]
/linux/drivers/iio/humidity/
H A Dhid-sensor-humidity.c69 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()
143 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample()
163 struct hid_sensor_hub_device *hsdev, in humidity_parse_report()
170 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report()
195 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe()
203 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
206 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe()
219 ret = humidity_parse_report(pdev, hsdev, humid_chan in hid_humidity_probe()
128 humidity_proc_event(struct hid_sensor_hub_device * hsdev,u32 usage_id,void * pdev) humidity_proc_event() argument
142 humidity_capture_sample(struct hid_sensor_hub_device * hsdev,u32 usage_id,size_t raw_len,char * raw_data,void * pdev) humidity_capture_sample() argument
162 humidity_parse_report(struct platform_device * pdev,struct hid_sensor_hub_device * hsdev,struct iio_chan_spec * channels,u32 usage_id,struct hid_humidity_state * st) humidity_parse_report() argument
199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_humidity_probe() local
265 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_humidity_remove() local
[all...]
/linux/drivers/iio/temperature/
H A Dhid-sensor-temperature.c70 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()
142 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample()
161 struct hid_sensor_hub_device *hsdev, in temperature_parse_report()
168 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report()
192 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe()
200 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe()
203 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe()
216 ret = temperature_parse_report(pdev, hsdev, temp_chan in hid_temperature_probe()
126 temperature_proc_event(struct hid_sensor_hub_device * hsdev,u32 usage_id,void * pdev) temperature_proc_event() argument
141 temperature_capture_sample(struct hid_sensor_hub_device * hsdev,u32 usage_id,size_t raw_len,char * raw_data,void * pdev) temperature_capture_sample() argument
160 temperature_parse_report(struct platform_device * pdev,struct hid_sensor_hub_device * hsdev,struct iio_chan_spec * channels,u32 usage_id,struct temperature_state * st) temperature_parse_report() argument
196 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_temperature_probe() local
262 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_temperature_remove() local
[all...]
/linux/drivers/iio/pressure/
H A Dhid-sensor-press.c85 press_state->common_attributes.hsdev, in press_read_raw()
153 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
173 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument
200 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument
207 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report()
233 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_press_probe() local
245 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
248 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
265 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
291 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.c106 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
174 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
195 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
229 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
237 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
267 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_gyro_3d_probe() local
279 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
282 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe()
299 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe()
324 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.c156 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw()
267 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
288 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
334 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
350 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
435 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
451 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_magn_3d_probe()
467 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe()
470 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe()
453 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_magn_3d_probe() local
536 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); hid_magn_3d_remove() local
[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,