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

/linux-master/drivers/hid/
H A Dhid-sensor-hub.c43 * @hsdev: Stored hid instance for current hub device.
50 struct hid_sensor_hub_device *hsdev; member in struct:hid_sensor_hub_callbacks_list
101 struct hid_sensor_hub_device **hsdev,
113 callback->hsdev->start_collection_index) &&
115 callback->hsdev->end_collection_index)) {
117 *hsdev = callback->hsdev;
127 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, argument
132 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev);
138 callback->hsdev
97 sensor_hub_get_callback( struct hid_device *hdev, u32 usage_id, int collection_index, struct hid_sensor_hub_device **hsdev, void **priv) argument
169 sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, u32 usage_id) argument
190 sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) argument
238 sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, u32 field_index, int buffer_size, void *buffer) argument
290 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) argument
352 hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev, u32 report_id, int field_index, u32 usage_id) argument
374 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) argument
482 struct hid_sensor_hub_device *hsdev = NULL; local
550 sensor_hub_device_open(struct hid_sensor_hub_device *hsdev) argument
571 sensor_hub_device_close(struct hid_sensor_hub_device *hsdev) argument
613 struct hid_sensor_hub_device *hsdev; local
744 struct hid_sensor_hub_device *hsdev = local
[all...]
H A Dhid-sensor-custom.c41 struct hid_sensor_hub_device *hsdev; member in struct:hid_sensor_custom
188 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev,
193 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev,
201 ret = sensor_hub_set_feature(sensor_inst->hsdev,
207 hid_err(sensor_inst->hsdev->hdev,
216 ret = sensor_hub_set_feature(sensor_inst->hsdev,
222 hid_err(sensor_inst->hsdev->hdev,
244 ret = sensor_hub_device_open(sensor_inst->hsdev);
250 sensor_hub_device_close(sensor_inst->hsdev);
256 sensor_hub_device_close(sensor_inst->hsdev);
417 hid_sensor_capture_sample(struct hid_sensor_hub_device *hsdev, unsigned usage_id, size_t raw_len, char *raw_data, void *priv) argument
459 hid_sensor_send_event(struct hid_sensor_hub_device *hsdev, unsigned usage_id, void *priv) argument
536 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; local
565 struct hid_sensor_hub_device *hsdev = sensor_inst->hsdev; local
824 hid_sensor_custom_get_prop(struct hid_sensor_hub_device *hsdev, u32 prop_usage_id, size_t prop_size, u16 *prop) argument
851 hid_sensor_custom_do_match(struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match *match, const struct hid_sensor_custom_properties *prop) argument
879 hid_sensor_custom_properties_get(struct hid_sensor_hub_device *hsdev, struct hid_sensor_custom_properties *prop) argument
908 hid_sensor_custom_get_known(struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match **known) argument
939 hid_sensor_register_platform_device(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, const struct hid_sensor_custom_match *match) argument
970 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
1038 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/include/linux/
H A 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,
100 * @hsdev: Hub device instance.
104 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev);
108 * @hsdev: Hub device instance.
112 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev);
118 * @hsdev: Hub device instance.
126 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
219 struct hid_sensor_hub_device *hsdev; member in struct:hid_sensor_common
[all...]
/linux-master/drivers/ata/
H A Dsata_dwc_460ex.c142 struct sata_dwc_device *hsdev; member in struct:sata_dwc_device_port
159 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev)
205 struct sata_dwc_device *hsdev = hsdevp->hsdev; local
207 struct device *dev = hsdev->dev;
226 struct sata_dwc_device *hsdev)
231 hsdev->dma = devm_kzalloc(dev, sizeof(*hsdev->dma), GFP_KERNEL);
232 if (!hsdev->dma)
235 hsdev
225 sata_dwc_dma_init_old(struct platform_device *pdev, struct sata_dwc_device *hsdev) argument
254 sata_dwc_dma_exit_old(struct sata_dwc_device *hsdev) argument
291 struct sata_dwc_device *hsdev = hsdev_instance; local
326 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); local
399 clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) argument
411 sata_dwc_error_intr(struct ata_port *ap, struct sata_dwc_device *hsdev, uint intpr) argument
465 struct sata_dwc_device *hsdev = HSDEV_FROM_HOST(host); local
688 struct sata_dwc_device *hsdev = HSDEV_FROM_HSDEVP(hsdevp); local
714 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); local
745 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); local
765 sata_dwc_enable_interrupts(struct sata_dwc_device *hsdev) argument
808 struct sata_dwc_device *hsdev = hsdevp->hsdev; local
835 struct sata_dwc_device *hsdev; local
903 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); local
960 struct sata_dwc_device *hsdev = HSDEV_FROM_QC(qc); local
1051 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(link->ap); local
1129 struct sata_dwc_device *hsdev; local
1217 struct sata_dwc_device *hsdev = host->private_data; local
[all...]
/linux-master/drivers/rtc/
H A Drtc-hid-sensor-time.c49 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, argument
76 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, argument
135 struct hid_sensor_hub_device *hsdev,
142 if (sensor_hub_input_get_attribute_info(hsdev,
200 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev,
225 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
236 time_state->common_attributes.hsdev = hsdev;
239 ret = hid_sensor_parse_common_attributes(hsdev,
249 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIM
134 hid_time_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, unsigned usage_id, struct hid_time_state *time_state) argument
301 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
[all...]
/linux-master/drivers/iio/position/
H A Dhid-sensor-custom-intel-hinge.c114 struct hid_sensor_hub_device *hsdev; local
118 hsdev = st->common_attributes.hsdev;
129 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev,
130 hsdev->usage,
192 static int hinge_proc_event(struct hid_sensor_hub_device *hsdev, argument
211 static int hinge_capture_sample(struct hid_sensor_hub_device *hsdev, argument
237 struct hid_sensor_hub_device *hsdev,
245 ret = sensor_hub_input_get_attribute_info(hsdev,
268 struct hid_sensor_hub_device *hsdev local
236 hinge_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct hinge_state *st) argument
347 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/light/
H A Dhid-sensor-prox.c64 struct hid_sensor_hub_device *hsdev; local
79 hsdev = prox_state->common_attributes.hsdev;
89 hsdev, hsdev->usage, address, report_id,
165 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, argument
182 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, argument
211 struct hid_sensor_hub_device *hsdev,
218 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
240 struct hid_sensor_hub_device *hsdev local
210 prox_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct prox_state *st) argument
318 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
H A Dhid-sensor-als.c138 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; local
178 hsdev, hsdev->usage, address, report_id,
253 static int als_proc_event(struct hid_sensor_hub_device *hsdev, argument
274 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, argument
316 struct hid_sensor_hub_device *hsdev,
327 ret = sensor_hub_input_get_attribute_info(hsdev,
363 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
371 als_state->common_attributes.hsdev
315 als_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, unsigned usage_id, struct als_state *st) argument
441 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/temperature/
H A Dhid-sensor-temperature.c70 temp_st->common_attributes.hsdev,
127 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, argument
141 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, argument
159 struct hid_sensor_hub_device *hsdev,
166 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
196 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
204 temp_st->common_attributes.hsdev = hsdev;
207 ret = hid_sensor_parse_common_attributes(hsdev,
220 ret = temperature_parse_report(pdev, hsdev, temp_chan
158 temperature_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct temperature_state *st) argument
262 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
[all...]
/linux-master/drivers/iio/humidity/
H A Dhid-sensor-humidity.c69 humid_st->common_attributes.hsdev,
129 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, argument
143 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, argument
162 struct hid_sensor_hub_device *hsdev,
169 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
199 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
207 humid_st->common_attributes.hsdev = hsdev;
210 ret = hid_sensor_parse_common_attributes(hsdev,
223 ret = humidity_parse_report(pdev, hsdev, humid_chan
161 humidity_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned int usage_id, struct hid_humidity_state *st) argument
265 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); local
[all...]
/linux-master/drivers/iio/orientation/
H A Dhid-sensor-rotation.c145 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, argument
167 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, argument
198 struct hid_sensor_hub_device *hsdev,
205 ret = sensor_hub_input_get_attribute_info(hsdev,
223 hsdev->usage,
237 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
247 rot_state->common_attributes.hsdev = hsdev;
250 switch (hsdev->usage) {
264 ret = hid_sensor_parse_common_attributes(hsdev,
197 dev_rot_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct dev_rot_state *st) argument
332 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
H A Dhid-sensor-incl-3d.c121 incl_state->common_attributes.hsdev,
191 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, argument
214 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, argument
248 struct hid_sensor_hub_device *hsdev,
255 ret = sensor_hub_input_get_attribute_info(hsdev,
265 ret = sensor_hub_input_get_attribute_info(hsdev,
275 ret = sensor_hub_input_get_attribute_info(hsdev,
306 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
316 incl_state->common_attributes.hsdev = hsdev;
247 incl_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct incl_3d_state *st) argument
388 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/accel/
H A Dhid-sensor-accel-3d.c144 struct hid_sensor_hub_device *hsdev = local
145 accel_state->common_attributes.hsdev;
157 accel_state->common_attributes.hsdev,
158 hsdev->usage, address, report_id,
235 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, argument
259 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, argument
294 struct hid_sensor_hub_device *hsdev,
303 ret = sensor_hub_input_get_attribute_info(hsdev,
321 hsdev->usage,
338 struct hid_sensor_hub_device *hsdev local
293 accel_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct accel_3d_state *st) argument
427 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c159 ret = sensor_hub_get_feature(st->hsdev,
180 ret = sensor_hub_get_feature(st->hsdev,
219 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id,
224 ret = sensor_hub_get_feature(st->hsdev,
242 ret = sensor_hub_get_feature(st->hsdev,
265 ret = sensor_hub_get_feature(st->hsdev,
294 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id,
300 ret = sensor_hub_get_feature(st->hsdev,
325 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity_rel.report_id,
331 ret = sensor_hub_get_feature(st->hsdev,
436 hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st) argument
454 hid_sensor_get_report_latency_info(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st) argument
496 hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev, u32 usage_id, struct hid_sensor_common *st, const u32 *sensitivity_addresses, u32 sensitivity_addresses_len) argument
[all...]
H A Dhid-sensor-trigger.c91 if (sensor_hub_device_open(st->hsdev))
96 state_val = hid_sensor_get_usage_index(st->hsdev,
100 report_val = hid_sensor_get_usage_index(st->hsdev,
113 sensor_hub_device_close(st->hsdev);
114 state_val = hid_sensor_get_usage_index(st->hsdev,
118 report_val = hid_sensor_get_usage_index(st->hsdev,
126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id,
133 sensor_hub_set_feature(st->hsdev, st->report_state.report_id,
142 sensor_hub_get_feature(st->hsdev, st->power_state.report_id,
187 sensor_hub_set_feature(attrb->hsdev, attr
[all...]
/linux-master/drivers/iio/pressure/
H A Dhid-sensor-press.c97 press_state->common_attributes.hsdev,
167 static int press_proc_event(struct hid_sensor_hub_device *hsdev, argument
187 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, argument
214 struct hid_sensor_hub_device *hsdev,
221 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT,
248 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
257 press_state->common_attributes.hsdev = hsdev;
260 ret = hid_sensor_parse_common_attributes(hsdev,
277 ret = press_parse_report(pdev, hsdev,
213 press_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct press_state *st) argument
328 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/gyro/
H A Dhid-sensor-gyro-3d.c118 gyro_state->common_attributes.hsdev,
189 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, argument
211 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, argument
245 struct hid_sensor_hub_device *hsdev,
254 ret = sensor_hub_input_get_attribute_info(hsdev,
286 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
294 gyro_state->common_attributes.hsdev = hsdev;
297 ret = hid_sensor_parse_common_attributes(hsdev,
314 ret = gyro_3d_parse_report(pdev, hsdev,
244 gyro_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec *channels, unsigned usage_id, struct gyro_3d_state *st) argument
364 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]
/linux-master/drivers/iio/magnetometer/
H A Dhid-sensor-magn-3d.c168 magn_state->magn_flux_attributes.hsdev,
282 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, argument
304 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, argument
350 struct hid_sensor_hub_device *hsdev,
366 status = sensor_hub_input_get_attribute_info(hsdev,
453 sensor_hub_input_get_attribute_info(hsdev,
473 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
485 magn_state->magn_flux_attributes.hsdev = hsdev;
488 ret = hid_sensor_parse_common_attributes(hsdev,
349 magn_3d_parse_report(struct platform_device *pdev, struct hid_sensor_hub_device *hsdev, struct iio_chan_spec **channels, int *chan_count, unsigned usage_id, struct magn_3d_state *st) argument
552 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; local
[all...]

Completed in 162 milliseconds