Home
last modified time | relevance | path

Searched refs:common_attributes (Results 1 – 11 of 11) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/iio/light/
H A Dhid-sensor-prox.c23 struct hid_sensor_common common_attributes; member
82 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
85 prox_state->common_attributes.hsdev, in prox_read_raw()
90 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
110 &prox_state->common_attributes, val, val2); in prox_read_raw()
114 &prox_state->common_attributes, val, val2); in prox_read_raw()
137 &prox_state->common_attributes, val, val2); in prox_write_raw()
141 &prox_state->common_attributes, val, val2); in prox_write_raw()
172 if (atomic_read(&prox_state->common_attributes.data_ready)) in prox_proc_event()
224 if (st->common_attributes.sensitivity.index < 0) { in prox_parse_report()
[all …]
H A Dhid-sensor-als.c27 struct hid_sensor_common common_attributes; member
99 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
102 als_state->common_attributes.hsdev, in als_read_raw()
107 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
126 &als_state->common_attributes, val, val2); in als_read_raw()
130 &als_state->common_attributes, val, val2); in als_read_raw()
153 &als_state->common_attributes, val, val2); in als_write_raw()
157 &als_state->common_attributes, val, val2); in als_write_raw()
188 if (atomic_read(&als_state->common_attributes.data_ready)) in als_proc_event()
249 if (st->common_attributes.sensitivity.index < 0) { in als_parse_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/temperature/
H A Dhid-sensor-temperature.c16 struct hid_sensor_common common_attributes; member
63 &temp_st->common_attributes, true); in temperature_read_raw()
65 temp_st->common_attributes.hsdev, in temperature_read_raw()
72 &temp_st->common_attributes, in temperature_read_raw()
88 &temp_st->common_attributes, val, val2); in temperature_read_raw()
92 &temp_st->common_attributes, val, val2); in temperature_read_raw()
107 &temp_st->common_attributes, val, val2); in temperature_write_raw()
110 &temp_st->common_attributes, val, val2); in temperature_write_raw()
128 if (atomic_read(&temp_st->common_attributes.data_ready)) in temperature_proc_event()
177 if (st->common_attributes.sensitivity.index < 0) in temperature_parse_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/humidity/
H A Dhid-sensor-humidity.c16 struct hid_sensor_common common_attributes; member
62 hid_sensor_power_state(&humid_st->common_attributes, true); in humidity_read_raw()
64 humid_st->common_attributes.hsdev, in humidity_read_raw()
70 hid_sensor_power_state(&humid_st->common_attributes, false); in humidity_read_raw()
87 &humid_st->common_attributes, val, val2); in humidity_read_raw()
91 &humid_st->common_attributes, val, val2); in humidity_read_raw()
107 &humid_st->common_attributes, val, val2); in humidity_write_raw()
111 &humid_st->common_attributes, val, val2); in humidity_write_raw()
130 if (atomic_read(&humid_st->common_attributes.data_ready)) in humidity_proc_event()
180 if (st->common_attributes.sensitivity.index < 0) in humidity_parse_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/gyro/
H A Dhid-sensor-gyro-3d.c28 struct hid_sensor_common common_attributes; member
105 hid_sensor_power_state(&gyro_state->common_attributes, true); in gyro_3d_read_raw()
111 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
118 hid_sensor_power_state(&gyro_state->common_attributes, in gyro_3d_read_raw()
122 hid_sensor_power_state(&gyro_state->common_attributes, false); in gyro_3d_read_raw()
136 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
140 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
163 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
167 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
198 if (atomic_read(&gyro_state->common_attributes.data_ready)) in gyro_3d_proc_event()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/pressure/
H A Dhid-sensor-press.c23 struct hid_sensor_common common_attributes; member
83 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
86 press_state->common_attributes.hsdev, in press_read_raw()
91 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
110 &press_state->common_attributes, val, val2); in press_read_raw()
114 &press_state->common_attributes, val, val2); in press_read_raw()
137 &press_state->common_attributes, val, val2); in press_write_raw()
141 &press_state->common_attributes, val, val2); in press_write_raw()
172 if (atomic_read(&press_state->common_attributes.data_ready)) in press_proc_event()
229 if (st->common_attributes.sensitivity.index < 0) { in press_parse_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/accel/
H A Dhid-sensor-accel-3d.c28 struct hid_sensor_common common_attributes; member
142 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
148 hid_sensor_power_state(&accel_state->common_attributes, true); in accel_3d_read_raw()
154 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
160 hid_sensor_power_state(&accel_state->common_attributes, in accel_3d_read_raw()
164 hid_sensor_power_state(&accel_state->common_attributes, false); in accel_3d_read_raw()
178 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
182 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
205 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
209 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
[all …]
/OK3568_Linux_fs/kernel/drivers/iio/orientation/
H A Dhid-sensor-incl-3d.c29 struct hid_sensor_common common_attributes; member
106 hid_sensor_power_state(&incl_state->common_attributes, true); in incl_3d_read_raw()
112 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
118 hid_sensor_power_state(&incl_state->common_attributes, in incl_3d_read_raw()
122 hid_sensor_power_state(&incl_state->common_attributes, false); in incl_3d_read_raw()
136 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
140 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
163 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
167 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
197 if (atomic_read(&incl_state->common_attributes.data_ready)) in incl_3d_proc_event()
[all …]
H A Dhid-sensor-rotation.c21 struct hid_sensor_common common_attributes; member
90 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
94 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
117 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
121 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
153 if (atomic_read(&rot_state->common_attributes.data_ready)) in dev_rot_proc_event()
212 if (st->common_attributes.sensitivity.index < 0) { in dev_rot_parse_report()
217 &st->common_attributes.sensitivity); in dev_rot_parse_report()
219 st->common_attributes.sensitivity.index, in dev_rot_parse_report()
220 st->common_attributes.sensitivity.report_id); in dev_rot_parse_report()
[all …]
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-hid-sensor-time.c25 struct hid_sensor_common common_attributes; member
200 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time()
236 time_state->common_attributes.hsdev = hsdev; in hid_time_probe()
237 time_state->common_attributes.pdev = pdev; in hid_time_probe()
241 &time_state->common_attributes); in hid_time_probe()
/OK3568_Linux_fs/kernel/drivers/iio/magnetometer/
H A Dhid-sensor-magn-3d.c30 struct common_attributes { struct
48 struct common_attributes magn_flux_attr; argument
49 struct common_attributes rot_attr;