Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/iio/light/
Dhid-sensor-prox.c25 struct hid_sensor_common common_attributes; member
81 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
84 prox_state->common_attributes.hsdev, in prox_read_raw()
89 hid_sensor_power_state(&prox_state->common_attributes, in prox_read_raw()
108 &prox_state->common_attributes, val, val2); in prox_read_raw()
112 &prox_state->common_attributes, val, val2); in prox_read_raw()
135 &prox_state->common_attributes, val, val2); in prox_write_raw()
139 &prox_state->common_attributes, val, val2); in prox_write_raw()
170 if (atomic_read(&prox_state->common_attributes.data_ready)) in prox_proc_event()
222 if (st->common_attributes.sensitivity.index < 0) { in prox_parse_report()
[all …]
Dhid-sensor-als.c29 struct hid_sensor_common common_attributes; member
101 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
104 als_state->common_attributes.hsdev, in als_read_raw()
109 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw()
128 &als_state->common_attributes, val, val2); in als_read_raw()
132 &als_state->common_attributes, val, val2); in als_read_raw()
155 &als_state->common_attributes, val, val2); in als_write_raw()
159 &als_state->common_attributes, val, val2); in als_write_raw()
190 if (atomic_read(&als_state->common_attributes.data_ready)) in als_proc_event()
251 if (st->common_attributes.sensitivity.index < 0) { in als_parse_report()
[all …]
/Linux-v5.4/drivers/iio/temperature/
Dhid-sensor-temperature.c18 struct hid_sensor_common common_attributes; member
62 &temp_st->common_attributes, true); in temperature_read_raw()
64 temp_st->common_attributes.hsdev, in temperature_read_raw()
71 &temp_st->common_attributes, in temperature_read_raw()
87 &temp_st->common_attributes, val, val2); in temperature_read_raw()
91 &temp_st->common_attributes, val, val2); in temperature_read_raw()
106 &temp_st->common_attributes, val, val2); in temperature_write_raw()
109 &temp_st->common_attributes, val, val2); in temperature_write_raw()
127 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 …]
/Linux-v5.4/drivers/iio/humidity/
Dhid-sensor-humidity.c18 struct hid_sensor_common common_attributes; member
61 hid_sensor_power_state(&humid_st->common_attributes, true); in humidity_read_raw()
63 humid_st->common_attributes.hsdev, in humidity_read_raw()
69 hid_sensor_power_state(&humid_st->common_attributes, false); in humidity_read_raw()
86 &humid_st->common_attributes, val, val2); in humidity_read_raw()
90 &humid_st->common_attributes, val, val2); in humidity_read_raw()
106 &humid_st->common_attributes, val, val2); in humidity_write_raw()
110 &humid_st->common_attributes, val, val2); in humidity_write_raw()
129 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 …]
/Linux-v5.4/drivers/iio/pressure/
Dhid-sensor-press.c25 struct hid_sensor_common common_attributes; member
85 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
88 press_state->common_attributes.hsdev, in press_read_raw()
93 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw()
112 &press_state->common_attributes, val, val2); in press_read_raw()
116 &press_state->common_attributes, val, val2); in press_read_raw()
139 &press_state->common_attributes, val, val2); in press_write_raw()
143 &press_state->common_attributes, val, val2); in press_write_raw()
174 if (atomic_read(&press_state->common_attributes.data_ready)) in press_proc_event()
231 if (st->common_attributes.sensitivity.index < 0) { in press_parse_report()
[all …]
/Linux-v5.4/drivers/iio/orientation/
Dhid-sensor-incl-3d.c31 struct hid_sensor_common common_attributes; member
108 hid_sensor_power_state(&incl_state->common_attributes, true); in incl_3d_read_raw()
114 incl_state->common_attributes.hsdev, in incl_3d_read_raw()
120 hid_sensor_power_state(&incl_state->common_attributes, in incl_3d_read_raw()
124 hid_sensor_power_state(&incl_state->common_attributes, false); in incl_3d_read_raw()
138 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
142 &incl_state->common_attributes, val, val2); in incl_3d_read_raw()
165 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
169 &incl_state->common_attributes, val, val2); in incl_3d_write_raw()
199 if (atomic_read(&incl_state->common_attributes.data_ready)) in incl_3d_proc_event()
[all …]
Dhid-sensor-rotation.c23 struct hid_sensor_common common_attributes; member
92 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
96 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw()
119 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
123 &rot_state->common_attributes, val, val2); in dev_rot_write_raw()
155 if (atomic_read(&rot_state->common_attributes.data_ready)) in dev_rot_proc_event()
214 if (st->common_attributes.sensitivity.index < 0) { in dev_rot_parse_report()
219 &st->common_attributes.sensitivity); in dev_rot_parse_report()
221 st->common_attributes.sensitivity.index, in dev_rot_parse_report()
222 st->common_attributes.sensitivity.report_id); in dev_rot_parse_report()
[all …]
/Linux-v5.4/drivers/iio/gyro/
Dhid-sensor-gyro-3d.c30 struct hid_sensor_common common_attributes; member
107 hid_sensor_power_state(&gyro_state->common_attributes, true); in gyro_3d_read_raw()
113 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw()
120 hid_sensor_power_state(&gyro_state->common_attributes, in gyro_3d_read_raw()
124 hid_sensor_power_state(&gyro_state->common_attributes, false); in gyro_3d_read_raw()
138 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
142 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw()
165 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
169 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw()
200 if (atomic_read(&gyro_state->common_attributes.data_ready)) in gyro_3d_proc_event()
[all …]
/Linux-v5.4/drivers/iio/accel/
Dhid-sensor-accel-3d.c30 struct hid_sensor_common common_attributes; member
141 accel_state->common_attributes.hsdev; in accel_3d_read_raw()
147 hid_sensor_power_state(&accel_state->common_attributes, true); in accel_3d_read_raw()
153 accel_state->common_attributes.hsdev, in accel_3d_read_raw()
159 hid_sensor_power_state(&accel_state->common_attributes, in accel_3d_read_raw()
163 hid_sensor_power_state(&accel_state->common_attributes, false); in accel_3d_read_raw()
177 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
181 &accel_state->common_attributes, val, val2); in accel_3d_read_raw()
204 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
208 &accel_state->common_attributes, val, val2); in accel_3d_write_raw()
[all …]
/Linux-v5.4/drivers/rtc/
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()
/Linux-v5.4/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c32 struct common_attributes { struct
50 struct common_attributes magn_flux_attr; argument
51 struct common_attributes rot_attr;