Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/iio/pressure/
Dhid-sensor-press.c37 struct hid_sensor_common common_attributes; member
96 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
99 press_state->common_attributes.hsdev, in press_read_raw()
103 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
122 &press_state->common_attributes, val, val2); in press_read_raw()
126 &press_state->common_attributes, val, val2); in press_read_raw()
149 &press_state->common_attributes, val, val2); in press_write_raw()
153 &press_state->common_attributes, val, val2); in press_write_raw()
185 if (atomic_read(&press_state->common_attributes.data_ready)) in press_proc_event()
242 if (st->common_attributes.sensitivity.index < 0) { in press_parse_report()
[all …]
/linux-4.1.27/drivers/iio/light/
Dhid-sensor-prox.c37 struct hid_sensor_common common_attributes; member
92 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
95 prox_state->common_attributes.hsdev, in prox_read_raw()
99 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
118 &prox_state->common_attributes, val, val2); in prox_read_raw()
122 &prox_state->common_attributes, val, val2); in prox_read_raw()
145 &prox_state->common_attributes, val, val2); in prox_write_raw()
149 &prox_state->common_attributes, val, val2); in prox_write_raw()
181 if (atomic_read(&prox_state->common_attributes.data_ready)) in prox_proc_event()
233 if (st->common_attributes.sensitivity.index < 0) { in prox_parse_report()
[all …]
Dhid-sensor-als.c38 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()
106 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
125 &als_state->common_attributes, val, val2); in als_read_raw()
129 &als_state->common_attributes, val, val2); in als_read_raw()
152 &als_state->common_attributes, val, val2); in als_write_raw()
156 &als_state->common_attributes, val, val2); in als_write_raw()
188 if (atomic_read(&als_state->common_attributes.data_ready)) in als_proc_event()
245 if (st->common_attributes.sensitivity.index < 0) { in als_parse_report()
[all …]
/linux-4.1.27/drivers/iio/accel/
Dhid-sensor-accel-3d.c43 struct hid_sensor_common common_attributes; member
119 hid_sensor_power_state(&accel_state->common_attributes, true); in accel_3d_read_raw()
124 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
130 hid_sensor_power_state(&accel_state->common_attributes, in accel_3d_read_raw()
134 hid_sensor_power_state(&accel_state->common_attributes, false); in accel_3d_read_raw()
148 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
152 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
175 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
179 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
211 if (atomic_read(&accel_state->common_attributes.data_ready)) in accel_3d_proc_event()
[all …]
/linux-4.1.27/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c43 struct hid_sensor_common common_attributes; member
119 hid_sensor_power_state(&gyro_state->common_attributes, true); in gyro_3d_read_raw()
124 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
130 hid_sensor_power_state(&gyro_state->common_attributes, in gyro_3d_read_raw()
134 hid_sensor_power_state(&gyro_state->common_attributes, false); in gyro_3d_read_raw()
148 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
152 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
175 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
179 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
211 if (atomic_read(&gyro_state->common_attributes.data_ready)) in gyro_3d_proc_event()
[all …]
/linux-4.1.27/drivers/iio/orientation/
Dhid-sensor-incl-3d.c43 struct hid_sensor_common common_attributes; member
119 hid_sensor_power_state(&incl_state->common_attributes, true); in incl_3d_read_raw()
125 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
130 hid_sensor_power_state(&incl_state->common_attributes, in incl_3d_read_raw()
134 hid_sensor_power_state(&incl_state->common_attributes, false); in incl_3d_read_raw()
148 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
152 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
175 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
179 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
210 if (atomic_read(&incl_state->common_attributes.data_ready)) in incl_3d_proc_event()
[all …]
Dhid-sensor-rotation.c31 struct hid_sensor_common common_attributes; member
85 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
89 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
112 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
116 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
149 if (atomic_read(&rot_state->common_attributes.data_ready)) in dev_rot_proc_event()
203 if (st->common_attributes.sensitivity.index < 0) { in dev_rot_parse_report()
208 &st->common_attributes.sensitivity); in dev_rot_parse_report()
210 st->common_attributes.sensitivity.index, in dev_rot_parse_report()
211 st->common_attributes.sensitivity.report_id); in dev_rot_parse_report()
[all …]
/linux-4.1.27/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c47 struct hid_sensor_common common_attributes; member
165 hid_sensor_power_state(&magn_state->common_attributes, true); in magn_3d_read_raw()
171 magn_state->common_attributes.hsdev, in magn_3d_read_raw()
177 hid_sensor_power_state(&magn_state->common_attributes, in magn_3d_read_raw()
181 hid_sensor_power_state(&magn_state->common_attributes, false); in magn_3d_read_raw()
195 &magn_state->common_attributes, val, val2); in magn_3d_read_raw()
199 &magn_state->common_attributes, val, val2); in magn_3d_read_raw()
222 &magn_state->common_attributes, val, val2); in magn_3d_write_raw()
226 &magn_state->common_attributes, val, val2); in magn_3d_write_raw()
257 if (atomic_read(&magn_state->common_attributes.data_ready)) in magn_3d_proc_event()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-hid-sensor-time.c38 struct hid_sensor_common common_attributes; member
214 sensor_hub_input_attr_get_raw_value(time_state->common_attributes.hsdev, in hid_rtc_read_time()
250 time_state->common_attributes.hsdev = hsdev; in hid_time_probe()
251 time_state->common_attributes.pdev = pdev; in hid_time_probe()
255 &time_state->common_attributes); in hid_time_probe()