Home
last modified time | relevance | path

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

/drivers/hid/
Dhid-sensor-hub.c63 struct hid_sensor_hub_device *hsdev; member
114 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument
126 callback->hsdev->start_collection_index) && in sensor_hub_get_callback()
128 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback()
130 *hsdev = callback->hsdev; in sensor_hub_get_callback()
140 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument
145 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback()
151 callback->hsdev == hsdev) { in sensor_hub_register_callback()
160 callback->hsdev = hsdev; in sensor_hub_register_callback()
182 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_remove_callback() argument
[all …]
Dhid-sensor-custom.c46 struct hid_sensor_hub_device *hsdev; member
193 power_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
198 report_val = hid_sensor_get_usage_index(sensor_inst->hsdev, in set_power_report_state()
206 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
212 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
221 ret = sensor_hub_set_feature(sensor_inst->hsdev, in set_power_report_state()
227 hid_err(sensor_inst->hsdev->hdev, in set_power_report_state()
250 ret = sensor_hub_device_open(sensor_inst->hsdev); in enable_sensor_store()
256 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
262 sensor_hub_device_close(sensor_inst->hsdev); in enable_sensor_store()
[all …]
/drivers/ata/
Dsata_dwc_460ex.c157 struct sata_dwc_device *hsdev; member
180 (hsdevp)->hsdev)
272 struct sata_dwc_device *hsdev = hsdev_instance; in dma_dwc_xfer_done() local
273 struct ata_host *host = (struct ata_host *)hsdev->host; in dma_dwc_xfer_done()
307 struct sata_dwc_device *hsdev = HSDEV_FROM_AP(ap); in dma_dwc_xfer_setup() local
308 dma_addr_t addr = (dma_addr_t)&hsdev->sata_dwc_regs->dmadr; in dma_dwc_xfer_setup()
337 desc->callback_param = hsdev; in dma_dwc_xfer_setup()
339 dev_dbg(hsdev->dev, "%s sg: 0x%p, count: %d addr: %pad\n", in dma_dwc_xfer_setup()
391 static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) in clear_interrupt_bit() argument
393 out_le32(&hsdev->sata_dwc_regs->intpr, in clear_interrupt_bit()
[all …]
/drivers/rtc/
Drtc-hid-sensor-time.c62 static int hid_time_proc_event(struct hid_sensor_hub_device *hsdev, in hid_time_proc_event() argument
89 static int hid_time_capture_sample(struct hid_sensor_hub_device *hsdev, in hid_time_capture_sample() argument
148 struct hid_sensor_hub_device *hsdev, in hid_time_parse_report() argument
155 if (sensor_hub_input_get_attribute_info(hsdev, in hid_time_parse_report()
214 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time()
239 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_time_probe() local
250 time_state->common_attributes.hsdev = hsdev; in hid_time_probe()
253 ret = hid_sensor_parse_common_attributes(hsdev, in hid_time_probe()
261 ret = hid_time_parse_report(pdev, hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe()
271 ret = sensor_hub_register_callback(hsdev, HID_USAGE_SENSOR_TIME, in hid_time_probe()
[all …]
/drivers/iio/light/
Dhid-sensor-prox.c98 prox_state->common_attributes.hsdev, in prox_read_raw()
177 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
194 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
217 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
224 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report()
238 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
249 hsdev->usage, in prox_parse_report()
263 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local
272 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe()
275 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX, 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
220 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument
227 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report()
246 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
265 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local
273 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
276 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe()
290 ret = als_parse_report(pdev, hsdev, in hid_als_probe()
[all …]
/drivers/iio/orientation/
Dhid-sensor-incl-3d.c125 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
202 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument
219 static int incl_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in incl_3d_capture_sample() argument
248 struct hid_sensor_hub_device *hsdev, in incl_3d_parse_report() argument
255 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
265 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
275 ret = sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
298 sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
317 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local
327 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe()
[all …]
Dhid-sensor-rotation.c141 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
158 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
178 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
185 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
204 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
224 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local
234 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
237 ret = hid_sensor_parse_common_attributes(hsdev, in hid_dev_rot_probe()
253 ret = dev_rot_parse_report(pdev, hsdev, in hid_dev_rot_probe()
291 ret = sensor_hub_register_callback(hsdev, in hid_dev_rot_probe()
[all …]
/drivers/iio/pressure/
Dhid-sensor-press.c99 press_state->common_attributes.hsdev, in press_read_raw()
177 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
194 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument
217 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument
224 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report()
243 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report()
262 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local
271 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
274 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
289 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
[all …]
/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c155 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value()
176 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value()
215 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
230 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value()
256 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
347 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument
351 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval()
362 int hid_sensor_parse_common_attributes(struct hid_sensor_hub_device *hsdev, in hid_sensor_parse_common_attributes() argument
368 hid_sensor_get_reporting_interval(hsdev, usage_id, st); in hid_sensor_parse_common_attributes()
370 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_parse_common_attributes()
[all …]
Dhid-sensor-trigger.c39 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state()
44 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
48 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
59 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state()
60 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
64 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
72 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
79 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
88 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
/drivers/iio/accel/
Dhid-sensor-accel-3d.c124 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
203 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
220 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
248 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
257 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
281 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
301 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_accel_3d_probe() local
311 accel_state->common_attributes.hsdev = hsdev; in hid_accel_3d_probe()
314 ret = hid_sensor_parse_common_attributes(hsdev, in hid_accel_3d_probe()
329 ret = accel_3d_parse_report(pdev, hsdev, in hid_accel_3d_probe()
[all …]
/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c124 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
203 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
220 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
248 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
257 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
281 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
300 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local
308 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
311 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe()
326 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe()
[all …]
/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c171 magn_state->common_attributes.hsdev, in magn_3d_read_raw()
249 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
264 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
305 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
321 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
399 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
419 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local
431 magn_state->common_attributes.hsdev = hsdev; in hid_magn_3d_probe()
434 ret = hid_sensor_parse_common_attributes(hsdev, in hid_magn_3d_probe()
442 ret = magn_3d_parse_report(pdev, hsdev, in hid_magn_3d_probe()
[all …]