Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/hid/
Dhid-sensor-hub.c64 struct hid_sensor_hub_device *hsdev; member
115 struct hid_sensor_hub_device **hsdev, in sensor_hub_get_callback() argument
127 callback->hsdev->start_collection_index) && in sensor_hub_get_callback()
129 callback->hsdev->end_collection_index)) { in sensor_hub_get_callback()
131 *hsdev = callback->hsdev; in sensor_hub_get_callback()
141 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev, in sensor_hub_register_callback() argument
146 struct sensor_hub_data *pdata = hid_get_drvdata(hsdev->hdev); in sensor_hub_register_callback()
152 callback->hsdev == hsdev) { in sensor_hub_register_callback()
161 callback->hsdev = hsdev; in sensor_hub_register_callback()
183 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 …]
/Linux-v4.19/drivers/ata/
Dsata_dwc_460ex.c155 struct sata_dwc_device *hsdev; member
172 #define HSDEV_FROM_HSDEVP(p) ((struct sata_dwc_device *)(p)->hsdev)
220 struct sata_dwc_device *hsdev = hsdevp->hsdev; in sata_dwc_dma_get_channel_old() local
224 dws->dma_dev = hsdev->dev; in sata_dwc_dma_get_channel_old()
232 dev_err(hsdev->dev, "%s: dma channel unavailable\n", in sata_dwc_dma_get_channel_old()
241 struct sata_dwc_device *hsdev) in sata_dwc_dma_init_old() argument
246 hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL); in sata_dwc_dma_init_old()
247 if (!hsdev->dma) in sata_dwc_dma_init_old()
250 hsdev->dma->dev = &pdev->dev; in sata_dwc_dma_init_old()
251 hsdev->dma->id = pdev->id; in sata_dwc_dma_init_old()
[all …]
/Linux-v4.19/include/linux/
Dhid-sensor-hub.h102 int (*suspend)(struct hid_sensor_hub_device *hsdev, void *priv);
103 int (*resume)(struct hid_sensor_hub_device *hsdev, void *priv);
104 int (*capture_sample)(struct hid_sensor_hub_device *hsdev,
107 int (*send_event)(struct hid_sensor_hub_device *hsdev, u32 usage_id,
117 int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev);
125 void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev);
139 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
151 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev,
168 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
190 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/iio/orientation/
Dhid-sensor-rotation.c155 static int dev_rot_proc_event(struct hid_sensor_hub_device *hsdev, in dev_rot_proc_event() argument
172 static int dev_rot_capture_sample(struct hid_sensor_hub_device *hsdev, in dev_rot_capture_sample() argument
192 struct hid_sensor_hub_device *hsdev, in dev_rot_parse_report() argument
199 ret = sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
217 hsdev->usage, in dev_rot_parse_report()
223 sensor_hub_input_get_attribute_info(hsdev, in dev_rot_parse_report()
243 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_dev_rot_probe() local
253 rot_state->common_attributes.hsdev = hsdev; in hid_dev_rot_probe()
256 switch (hsdev->usage) { in hid_dev_rot_probe()
270 ret = hid_sensor_parse_common_attributes(hsdev, hsdev->usage, in hid_dev_rot_probe()
[all …]
Dhid-sensor-incl-3d.c125 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
201 static int incl_3d_proc_event(struct hid_sensor_hub_device *hsdev, in incl_3d_proc_event() argument
218 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()
297 sensor_hub_input_get_attribute_info(hsdev, in incl_3d_parse_report()
316 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_incl_3d_probe() local
326 incl_state->common_attributes.hsdev = hsdev; in hid_incl_3d_probe()
[all …]
/Linux-v4.19/drivers/iio/accel/
Dhid-sensor-accel-3d.c152 struct hid_sensor_hub_device *hsdev = in accel_3d_read_raw() local
153 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
164 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
165 hsdev->usage, address, report_id, in accel_3d_read_raw()
241 static int accel_3d_proc_event(struct hid_sensor_hub_device *hsdev, in accel_3d_proc_event() argument
265 static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in accel_3d_capture_sample() argument
299 struct hid_sensor_hub_device *hsdev, in accel_3d_parse_report() argument
308 ret = sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
326 hsdev->usage, in accel_3d_parse_report()
332 sensor_hub_input_get_attribute_info(hsdev, in accel_3d_parse_report()
[all …]
/Linux-v4.19/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c176 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_poll_value()
197 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_samp_freq_value()
236 ret = sensor_hub_set_feature(st->hsdev, st->poll.report_id, in hid_sensor_write_samp_freq_value()
241 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_samp_freq_value()
259 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_read_raw_hyst_value()
288 ret = sensor_hub_set_feature(st->hsdev, st->sensitivity.report_id, in hid_sensor_write_raw_hyst_value()
294 ret = sensor_hub_get_feature(st->hsdev, in hid_sensor_write_raw_hyst_value()
395 int hid_sensor_get_reporting_interval(struct hid_sensor_hub_device *hsdev, in hid_sensor_get_reporting_interval() argument
399 sensor_hub_input_get_attribute_info(hsdev, in hid_sensor_get_reporting_interval()
413 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.c114 if (sensor_hub_device_open(st->hsdev)) in _hid_sensor_power_state()
119 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
123 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
136 sensor_hub_device_close(st->hsdev); in _hid_sensor_power_state()
137 state_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
141 report_val = hid_sensor_get_usage_index(st->hsdev, in _hid_sensor_power_state()
149 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
156 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
165 sensor_hub_get_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
213 sensor_hub_set_feature(attrb->hsdev, attrb->poll.report_id, in hid_sensor_set_power_work()
[all …]
/Linux-v4.19/drivers/iio/humidity/
Dhid-sensor-humidity.c74 humid_st->common_attributes.hsdev, in humidity_read_raw()
133 static int humidity_proc_event(struct hid_sensor_hub_device *hsdev, in humidity_proc_event() argument
148 static int humidity_capture_sample(struct hid_sensor_hub_device *hsdev, in humidity_capture_sample() argument
167 struct hid_sensor_hub_device *hsdev, in humidity_parse_report() argument
174 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in humidity_parse_report()
191 sensor_hub_input_get_attribute_info(hsdev, in humidity_parse_report()
212 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_humidity_probe() local
220 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
223 ret = hid_sensor_parse_common_attributes(hsdev, in hid_humidity_probe()
234 ret = humidity_parse_report(pdev, hsdev, humid_chans, in hid_humidity_probe()
[all …]
/Linux-v4.19/drivers/iio/temperature/
Dhid-sensor-temperature.c75 temp_st->common_attributes.hsdev, in temperature_read_raw()
131 static int temperature_proc_event(struct hid_sensor_hub_device *hsdev, in temperature_proc_event() argument
146 static int temperature_capture_sample(struct hid_sensor_hub_device *hsdev, in temperature_capture_sample() argument
164 struct hid_sensor_hub_device *hsdev, in temperature_parse_report() argument
171 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in temperature_parse_report()
188 sensor_hub_input_get_attribute_info(hsdev, in temperature_parse_report()
209 struct hid_sensor_hub_device *hsdev = dev_get_platdata(&pdev->dev); in hid_temperature_probe() local
217 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe()
220 ret = hid_sensor_parse_common_attributes(hsdev, in hid_temperature_probe()
231 ret = temperature_parse_report(pdev, hsdev, temp_chans, in hid_temperature_probe()
[all …]
/Linux-v4.19/drivers/iio/light/
Dhid-sensor-prox.c95 prox_state->common_attributes.hsdev, in prox_read_raw()
172 static int prox_proc_event(struct hid_sensor_hub_device *hsdev, in prox_proc_event() argument
189 static int prox_capture_sample(struct hid_sensor_hub_device *hsdev, in prox_capture_sample() argument
212 struct hid_sensor_hub_device *hsdev, in prox_parse_report() argument
219 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in prox_parse_report()
233 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
243 sensor_hub_input_get_attribute_info(hsdev, in prox_parse_report()
259 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_prox_probe() local
268 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe()
271 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_PROX, in hid_prox_probe()
[all …]
Dhid-sensor-als.c116 als_state->common_attributes.hsdev, in als_read_raw()
193 static int als_proc_event(struct hid_sensor_hub_device *hsdev, in als_proc_event() argument
210 static int als_capture_sample(struct hid_sensor_hub_device *hsdev, in als_capture_sample() argument
235 struct hid_sensor_hub_device *hsdev, in als_parse_report() argument
242 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in als_parse_report()
263 sensor_hub_input_get_attribute_info(hsdev, in als_parse_report()
282 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_als_probe() local
290 als_state->common_attributes.hsdev = hsdev; in hid_als_probe()
293 ret = hid_sensor_parse_common_attributes(hsdev, HID_USAGE_SENSOR_ALS, in hid_als_probe()
307 ret = als_parse_report(pdev, hsdev, in hid_als_probe()
[all …]
/Linux-v4.19/drivers/iio/pressure/
Dhid-sensor-press.c99 press_state->common_attributes.hsdev, in press_read_raw()
176 static int press_proc_event(struct hid_sensor_hub_device *hsdev, in press_proc_event() argument
193 static int press_capture_sample(struct hid_sensor_hub_device *hsdev, in press_capture_sample() argument
216 struct hid_sensor_hub_device *hsdev, in press_parse_report() argument
223 ret = sensor_hub_input_get_attribute_info(hsdev, HID_INPUT_REPORT, in press_parse_report()
242 sensor_hub_input_get_attribute_info(hsdev, in press_parse_report()
261 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_press_probe() local
270 press_state->common_attributes.hsdev = hsdev; in hid_press_probe()
273 ret = hid_sensor_parse_common_attributes(hsdev, in hid_press_probe()
288 ret = press_parse_report(pdev, hsdev, in hid_press_probe()
[all …]
/Linux-v4.19/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c124 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
202 static int gyro_3d_proc_event(struct hid_sensor_hub_device *hsdev, in gyro_3d_proc_event() argument
219 static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in gyro_3d_capture_sample() argument
247 struct hid_sensor_hub_device *hsdev, in gyro_3d_parse_report() argument
256 ret = sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
280 sensor_hub_input_get_attribute_info(hsdev, in gyro_3d_parse_report()
299 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_gyro_3d_probe() local
307 gyro_state->common_attributes.hsdev = hsdev; in hid_gyro_3d_probe()
310 ret = hid_sensor_parse_common_attributes(hsdev, in hid_gyro_3d_probe()
325 ret = gyro_3d_parse_report(pdev, hsdev, in hid_gyro_3d_probe()
[all …]
/Linux-v4.19/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c177 magn_state->magn_flux_attributes.hsdev, in magn_3d_read_raw()
297 static int magn_3d_proc_event(struct hid_sensor_hub_device *hsdev, in magn_3d_proc_event() argument
312 static int magn_3d_capture_sample(struct hid_sensor_hub_device *hsdev, in magn_3d_capture_sample() argument
353 struct hid_sensor_hub_device *hsdev, in magn_3d_parse_report() argument
369 status = sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
454 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
464 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
474 sensor_hub_input_get_attribute_info(hsdev, in magn_3d_parse_report()
494 struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data; in hid_magn_3d_probe() local
506 magn_state->magn_flux_attributes.hsdev = hsdev; in hid_magn_3d_probe()
[all …]
/Linux-v4.19/Documentation/hid/
Dhid-sensor.txt87 int sensor_hub_register_callback(struct hid_sensor_hub_device *hsdev,
95 int sensor_hub_remove_callback(struct hid_sensor_hub_device *hsdev,
102 int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
114 int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
123 int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
132 int sensor_hub_input_attr_get_raw_value(struct hid_sensor_hub_device *hsdev,