Lines Matching refs:humid_st
66 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_read_raw() local
72 hid_sensor_power_state(&humid_st->common_attributes, true); in humidity_read_raw()
74 humid_st->common_attributes.hsdev, in humidity_read_raw()
77 humid_st->humidity_attr.report_id, in humidity_read_raw()
79 hid_sensor_power_state(&humid_st->common_attributes, false); in humidity_read_raw()
84 *val = humid_st->scale_pre_decml; in humidity_read_raw()
85 *val2 = humid_st->scale_post_decml; in humidity_read_raw()
87 return humid_st->scale_precision; in humidity_read_raw()
90 *val = humid_st->value_offset; in humidity_read_raw()
96 &humid_st->common_attributes, val, val2); in humidity_read_raw()
100 &humid_st->common_attributes, val, val2); in humidity_read_raw()
111 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_write_raw() local
116 &humid_st->common_attributes, val, val2); in humidity_write_raw()
120 &humid_st->common_attributes, val, val2); in humidity_write_raw()
137 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_proc_event() local
139 if (atomic_read(&humid_st->common_attributes.data_ready)) in humidity_proc_event()
141 &humid_st->humidity_data, in humidity_proc_event()
153 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in humidity_capture_sample() local
157 humid_st->humidity_data = *(s32 *)raw_data; in humidity_capture_sample()
210 struct hid_humidity_state *humid_st; in hid_humidity_probe() local
215 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*humid_st)); in hid_humidity_probe()
219 humid_st = iio_priv(indio_dev); in hid_humidity_probe()
220 humid_st->common_attributes.hsdev = hsdev; in hid_humidity_probe()
221 humid_st->common_attributes.pdev = pdev; in hid_humidity_probe()
225 &humid_st->common_attributes); in hid_humidity_probe()
235 HID_USAGE_SENSOR_HUMIDITY, humid_st); in hid_humidity_probe()
251 atomic_set(&humid_st->common_attributes.data_ready, 0); in hid_humidity_probe()
253 &humid_st->common_attributes); in hid_humidity_probe()
274 hid_sensor_remove_trigger(&humid_st->common_attributes); in hid_humidity_probe()
283 struct hid_humidity_state *humid_st = iio_priv(indio_dev); in hid_humidity_remove() local
287 hid_sensor_remove_trigger(&humid_st->common_attributes); in hid_humidity_remove()