Home
last modified time | relevance | path

Searched refs:usage_id (Results 1 – 12 of 12) sorted by relevance

/drivers/hid/
Dhid-sensor-hub.c62 u32 usage_id; member
112 u32 usage_id, in sensor_hub_get_callback() argument
123 if ((callback->usage_id == usage_id || in sensor_hub_get_callback()
124 callback->usage_id == HID_USAGE_SENSOR_COLLECTION) && in sensor_hub_get_callback()
141 u32 usage_id, in sensor_hub_register_callback() argument
150 if (callback->usage_id == usage_id && in sensor_hub_register_callback()
162 callback->usage_id = usage_id; in sensor_hub_register_callback()
172 if (usage_id == HID_USAGE_SENSOR_COLLECTION) in sensor_hub_register_callback()
183 u32 usage_id) in sensor_hub_remove_callback() argument
191 if (callback->usage_id == usage_id && in sensor_hub_remove_callback()
[all …]
Dhid-sensor-custom.c65 u32 usage_id; member
82 int usage_id; member
425 unsigned usage_id, size_t raw_len, in hid_sensor_capture_sample() argument
447 header.usage_id = hsdev->usage; in hid_sensor_capture_sample()
467 unsigned usage_id, void *priv) in hid_sensor_send_event() argument
499 sensor_field->attribute.usage_id = sensor_inst->hsdev->usage; in hid_sensor_custom_add_field()
/drivers/iio/common/hid-sensors/
Dhid-sensor-attributes.c30 u32 usage_id; member
320 int hid_sensor_format_scale(u32 usage_id, in hid_sensor_format_scale() argument
331 if (unit_conversion[i].usage_id == usage_id && in hid_sensor_format_scale()
348 u32 usage_id, in hid_sensor_get_reporting_interval() argument
352 HID_FEATURE_REPORT, usage_id, in hid_sensor_get_reporting_interval()
363 u32 usage_id, in hid_sensor_parse_common_attributes() argument
368 hid_sensor_get_reporting_interval(hsdev, usage_id, st); in hid_sensor_parse_common_attributes()
371 HID_FEATURE_REPORT, usage_id, in hid_sensor_parse_common_attributes()
376 HID_FEATURE_REPORT, usage_id, in hid_sensor_parse_common_attributes()
381 HID_FEATURE_REPORT, usage_id, in hid_sensor_parse_common_attributes()
/drivers/iio/orientation/
Dhid-sensor-incl-3d.c203 unsigned usage_id, in incl_3d_proc_event() argument
220 unsigned usage_id, in incl_3d_capture_sample() argument
228 switch (usage_id) { in incl_3d_capture_sample()
250 unsigned usage_id, in incl_3d_parse_report() argument
257 usage_id, in incl_3d_parse_report()
267 usage_id, in incl_3d_parse_report()
277 usage_id, in incl_3d_parse_report()
299 HID_FEATURE_REPORT, usage_id, in incl_3d_parse_report()
Dhid-sensor-rotation.c142 unsigned usage_id, in dev_rot_proc_event() argument
159 unsigned usage_id, in dev_rot_capture_sample() argument
166 if (usage_id == HID_USAGE_SENSOR_ORIENT_QUATERNION) { in dev_rot_capture_sample()
180 unsigned usage_id, in dev_rot_parse_report() argument
187 usage_id, in dev_rot_parse_report()
205 HID_FEATURE_REPORT, usage_id, in dev_rot_parse_report()
/drivers/iio/accel/
Dhid-sensor-accel-3d.c204 unsigned usage_id, in accel_3d_proc_event() argument
221 unsigned usage_id, in accel_3d_capture_sample() argument
230 switch (usage_id) { in accel_3d_capture_sample()
234 offset = usage_id - HID_USAGE_SENSOR_ACCEL_X_AXIS; in accel_3d_capture_sample()
250 unsigned usage_id, in accel_3d_parse_report() argument
259 usage_id, in accel_3d_parse_report()
282 HID_FEATURE_REPORT, usage_id, in accel_3d_parse_report()
/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c204 unsigned usage_id, in gyro_3d_proc_event() argument
221 unsigned usage_id, in gyro_3d_capture_sample() argument
230 switch (usage_id) { in gyro_3d_capture_sample()
234 offset = usage_id - HID_USAGE_SENSOR_ANGL_VELOCITY_X_AXIS; in gyro_3d_capture_sample()
250 unsigned usage_id, in gyro_3d_parse_report() argument
259 usage_id, in gyro_3d_parse_report()
282 HID_FEATURE_REPORT, usage_id, in gyro_3d_parse_report()
/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c250 unsigned usage_id, in magn_3d_proc_event() argument
265 unsigned usage_id, in magn_3d_capture_sample() argument
275 switch (usage_id) { in magn_3d_capture_sample()
279 offset = (usage_id - HID_USAGE_SENSOR_ORIENT_MAGN_FLUX_X_AXIS) in magn_3d_capture_sample()
286 offset = (usage_id - HID_USAGE_SENSOR_ORIENT_COMP_MAGN_NORTH) in magn_3d_capture_sample()
308 unsigned usage_id, in magn_3d_parse_report() argument
323 usage_id, in magn_3d_parse_report()
400 HID_FEATURE_REPORT, usage_id, in magn_3d_parse_report()
/drivers/iio/pressure/
Dhid-sensor-press.c178 unsigned usage_id, in press_proc_event() argument
195 unsigned usage_id, in press_capture_sample() argument
203 switch (usage_id) { in press_capture_sample()
219 unsigned usage_id, in press_parse_report() argument
225 usage_id, in press_parse_report()
244 HID_FEATURE_REPORT, usage_id, in press_parse_report()
/drivers/iio/light/
Dhid-sensor-prox.c178 unsigned usage_id, in prox_proc_event() argument
195 unsigned usage_id, in prox_capture_sample() argument
203 switch (usage_id) { in prox_capture_sample()
219 unsigned usage_id, in prox_parse_report() argument
225 usage_id, in prox_parse_report()
239 HID_FEATURE_REPORT, usage_id, in prox_parse_report()
Dhid-sensor-als.c181 unsigned usage_id, in als_proc_event() argument
198 unsigned usage_id, in als_capture_sample() argument
206 switch (usage_id) { in als_capture_sample()
222 unsigned usage_id, in als_parse_report() argument
228 usage_id, in als_parse_report()
247 HID_FEATURE_REPORT, usage_id, in als_parse_report()
/drivers/rtc/
Drtc-hid-sensor-time.c63 unsigned usage_id, void *priv) in hid_time_proc_event() argument
90 unsigned usage_id, size_t raw_len, in hid_time_capture_sample() argument
96 switch (usage_id) { in hid_time_capture_sample()
149 unsigned usage_id, in hid_time_parse_report() argument
156 HID_INPUT_REPORT, usage_id, in hid_time_parse_report()