Lines Matching refs:temp_st

66 	struct temperature_state *temp_st = iio_priv(indio_dev);  in temperature_read_raw()  local
73 &temp_st->common_attributes, true); in temperature_read_raw()
75 temp_st->common_attributes.hsdev, in temperature_read_raw()
78 temp_st->temperature_attr.report_id, in temperature_read_raw()
81 &temp_st->common_attributes, in temperature_read_raw()
87 *val = temp_st->scale_pre_decml; in temperature_read_raw()
88 *val2 = temp_st->scale_post_decml; in temperature_read_raw()
89 return temp_st->scale_precision; in temperature_read_raw()
92 *val = temp_st->value_offset; in temperature_read_raw()
97 &temp_st->common_attributes, val, val2); in temperature_read_raw()
101 &temp_st->common_attributes, val, val2); in temperature_read_raw()
111 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_write_raw() local
116 &temp_st->common_attributes, val, val2); in temperature_write_raw()
119 &temp_st->common_attributes, val, val2); in temperature_write_raw()
135 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_proc_event() local
137 if (atomic_read(&temp_st->common_attributes.data_ready)) in temperature_proc_event()
139 &temp_st->temperature_data, in temperature_proc_event()
151 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_capture_sample() local
155 temp_st->temperature_data = *(s32 *)raw_data; in temperature_capture_sample()
207 struct temperature_state *temp_st; in hid_temperature_probe() local
212 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*temp_st)); in hid_temperature_probe()
216 temp_st = iio_priv(indio_dev); in hid_temperature_probe()
217 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe()
218 temp_st->common_attributes.pdev = pdev; in hid_temperature_probe()
222 &temp_st->common_attributes); in hid_temperature_probe()
232 HID_USAGE_SENSOR_TEMPERATURE, temp_st); in hid_temperature_probe()
248 atomic_set(&temp_st->common_attributes.data_ready, 0); in hid_temperature_probe()
250 &temp_st->common_attributes); in hid_temperature_probe()
271 hid_sensor_remove_trigger(&temp_st->common_attributes); in hid_temperature_probe()
280 struct temperature_state *temp_st = iio_priv(indio_dev); in hid_temperature_remove() local
283 hid_sensor_remove_trigger(&temp_st->common_attributes); in hid_temperature_remove()