| /linux/drivers/iio/temperature/ |
| H A D | hid-sensor-temperature.c | 16 struct hid_sensor_common common_attributes; member 67 &temp_st->common_attributes, true); in temperature_read_raw() 69 temp_st->common_attributes.hsdev, in temperature_read_raw() 76 &temp_st->common_attributes, in temperature_read_raw() 92 &temp_st->common_attributes, val, val2); in temperature_read_raw() 96 &temp_st->common_attributes, val, val2); in temperature_read_raw() 111 &temp_st->common_attributes, val, val2); in temperature_write_raw() 114 &temp_st->common_attributes, val, val2); in temperature_write_raw() 132 if (atomic_read(&temp_st->common_attributes.data_ready)) in temperature_proc_event() 204 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe() [all …]
|
| /linux/drivers/iio/humidity/ |
| H A D | hid-sensor-humidity.c | 16 struct hid_sensor_common common_attributes; member 66 hid_sensor_power_state(&humid_st->common_attributes, true); in humidity_read_raw() 68 humid_st->common_attributes.hsdev, in humidity_read_raw() 74 hid_sensor_power_state(&humid_st->common_attributes, false); in humidity_read_raw() 91 &humid_st->common_attributes, val, val2); in humidity_read_raw() 95 &humid_st->common_attributes, val, val2); in humidity_read_raw() 111 &humid_st->common_attributes, val, val2); in humidity_write_raw() 115 &humid_st->common_attributes, val, val2); in humidity_write_raw() 134 if (atomic_read(&humid_st->common_attributes.data_ready)) in humidity_proc_event() 207 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe() [all …]
|
| /linux/drivers/iio/position/ |
| H A D | hid-sensor-custom-intel-hinge.c | 37 struct hid_sensor_common common_attributes; member 117 hsdev = st->common_attributes.hsdev; in hinge_read_raw() 120 hid_sensor_power_state(&st->common_attributes, true); in hinge_read_raw() 124 hid_sensor_power_state(&st->common_attributes, false); in hinge_read_raw() 128 *val = sensor_hub_input_attr_get_raw_value(st->common_attributes.hsdev, in hinge_read_raw() 134 hid_sensor_power_state(&st->common_attributes, false); in hinge_read_raw() 144 return hid_sensor_read_samp_freq_value(&st->common_attributes, in hinge_read_raw() 147 return hid_sensor_read_raw_hyst_value(&st->common_attributes, in hinge_read_raw() 163 return hid_sensor_write_samp_freq_value(&st->common_attributes, in hinge_write_raw() 166 return hid_sensor_write_raw_hyst_value(&st->common_attributes, in hinge_write_raw() [all …]
|
| /linux/drivers/iio/pressure/ |
| H A D | hid-sensor-press.c | 23 struct hid_sensor_common common_attributes; member 82 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw() 85 press_state->common_attributes.hsdev, in press_read_raw() 90 hid_sensor_power_state(&press_state->common_attributes, in press_read_raw() 109 &press_state->common_attributes, val, val2); in press_read_raw() 113 &press_state->common_attributes, val, val2); in press_read_raw() 134 &press_state->common_attributes, val, val2); in press_write_raw() 138 &press_state->common_attributes, val, val2); in press_write_raw() 160 if (atomic_read(&press_state->common_attributes.data_ready)) { in press_proc_event() 189 &press_state->common_attributes, *(s64 *)raw_data); in press_capture_sample() [all …]
|
| /linux/drivers/iio/gyro/ |
| H A D | hid-sensor-gyro-3d.c | 26 struct hid_sensor_common common_attributes; member 100 hid_sensor_power_state(&gyro_state->common_attributes, true); in gyro_3d_read_raw() 106 gyro_state->common_attributes.hsdev, in gyro_3d_read_raw() 113 hid_sensor_power_state(&gyro_state->common_attributes, false); in gyro_3d_read_raw() 116 hid_sensor_power_state(&gyro_state->common_attributes, false); in gyro_3d_read_raw() 130 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw() 134 &gyro_state->common_attributes, val, val2); in gyro_3d_read_raw() 155 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw() 159 &gyro_state->common_attributes, val, val2); in gyro_3d_write_raw() 181 if (atomic_read(&gyro_state->common_attributes.data_ready)) { in gyro_3d_proc_event() [all …]
|
| /linux/drivers/iio/orientation/ |
| H A D | hid-sensor-incl-3d.c | 27 struct hid_sensor_common common_attributes; member 112 hid_sensor_power_state(&incl_state->common_attributes, true); in incl_3d_read_raw() 118 incl_state->common_attributes.hsdev, in incl_3d_read_raw() 124 hid_sensor_power_state(&incl_state->common_attributes, in incl_3d_read_raw() 128 hid_sensor_power_state(&incl_state->common_attributes, false); in incl_3d_read_raw() 142 &incl_state->common_attributes, val, val2); in incl_3d_read_raw() 146 &incl_state->common_attributes, val, val2); in incl_3d_read_raw() 167 &incl_state->common_attributes, val, val2); in incl_3d_write_raw() 171 &incl_state->common_attributes, val, val2); in incl_3d_write_raw() 193 if (atomic_read(&incl_state->common_attributes.data_ready)) { in incl_3d_proc_event() [all …]
|
| H A D | hid-sensor-rotation.c | 18 struct hid_sensor_common common_attributes; member 87 struct hid_sensor_hub_device *hsdev = rot_state->common_attributes.hsdev; in dev_rot_read_raw() 106 hid_sensor_power_state(&rot_state->common_attributes, true); in dev_rot_read_raw() 116 hid_sensor_power_state(&rot_state->common_attributes, false); in dev_rot_read_raw() 150 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw() 154 &rot_state->common_attributes, &vals[0], &vals[1]); in dev_rot_read_raw() 175 &rot_state->common_attributes, val, val2); in dev_rot_write_raw() 179 &rot_state->common_attributes, val, val2); in dev_rot_write_raw() 217 if (atomic_read(&rot_state->common_attributes.data_ready)) { in dev_rot_proc_event() 264 rot_state->timestamp = hid_sensor_convert_timestamp(&rot_state->common_attributes, in dev_rot_capture_sample() [all …]
|
| /linux/drivers/iio/accel/ |
| H A D | hid-sensor-accel-3d.c | 26 struct hid_sensor_common common_attributes; member 133 accel_state->common_attributes.hsdev; in accel_3d_read_raw() 139 hid_sensor_power_state(&accel_state->common_attributes, true); in accel_3d_read_raw() 145 accel_state->common_attributes.hsdev, in accel_3d_read_raw() 151 hid_sensor_power_state(&accel_state->common_attributes, in accel_3d_read_raw() 155 hid_sensor_power_state(&accel_state->common_attributes, false); in accel_3d_read_raw() 169 &accel_state->common_attributes, val, val2); in accel_3d_read_raw() 173 &accel_state->common_attributes, val, val2); in accel_3d_read_raw() 194 &accel_state->common_attributes, val, val2); in accel_3d_write_raw() 198 &accel_state->common_attributes, val, val2); in accel_3d_write_raw() [all …]
|
| /linux/drivers/iio/light/ |
| H A D | hid-sensor-prox.c | 32 struct hid_sensor_common common_attributes; member 91 hsdev = prox_state->common_attributes.hsdev; in prox_read_raw() 93 hid_sensor_power_state(&prox_state->common_attributes, true); in prox_read_raw() 103 hid_sensor_power_state(&prox_state->common_attributes, false); in prox_read_raw() 120 &prox_state->common_attributes, val, val2); in prox_read_raw() 124 &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() 171 if (atomic_read(&prox_state->common_attributes.data_ready)) { in prox_proc_event() 275 prox_state->common_attributes.hsdev = hsdev; in hid_prox_probe() [all …]
|
| H A D | hid-sensor-als.c | 29 struct hid_sensor_common common_attributes; member 126 struct hid_sensor_hub_device *hsdev = als_state->common_attributes.hsdev; in als_read_raw() 163 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw() 168 hid_sensor_power_state(&als_state->common_attributes, in als_read_raw() 189 &als_state->common_attributes, val, val2); in als_read_raw() 193 &als_state->common_attributes, val, val2); in als_read_raw() 197 &als_state->common_attributes, val, val2); in als_read_raw() 218 &als_state->common_attributes, val, val2); in als_write_raw() 222 &als_state->common_attributes, val, val2); in als_write_raw() 226 &als_state->common_attributes, val, val2); in als_write_raw() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-hid-sensor-time.c | 25 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/drivers/iio/magnetometer/ |
| H A D | hid-sensor-magn-3d.c | 27 struct common_attributes { struct 45 struct common_attributes magn_flux_attr; argument 46 struct common_attributes rot_attr;
|