Lines Matching refs:temp_st

61 	struct temperature_state *temp_st = iio_priv(indio_dev);  in temperature_read_raw()  local
68 &temp_st->common_attributes, true); in temperature_read_raw()
70 temp_st->common_attributes.hsdev, in temperature_read_raw()
73 temp_st->temperature_attr.report_id, in temperature_read_raw()
75 temp_st->temperature_attr.logical_minimum < 0); in temperature_read_raw()
77 &temp_st->common_attributes, in temperature_read_raw()
83 *val = temp_st->scale_pre_decml; in temperature_read_raw()
84 *val2 = temp_st->scale_post_decml; in temperature_read_raw()
85 return temp_st->scale_precision; in temperature_read_raw()
88 *val = temp_st->value_offset; in temperature_read_raw()
93 &temp_st->common_attributes, val, val2); in temperature_read_raw()
97 &temp_st->common_attributes, val, val2); in temperature_read_raw()
107 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_write_raw() local
112 &temp_st->common_attributes, val, val2); in temperature_write_raw()
115 &temp_st->common_attributes, val, val2); in temperature_write_raw()
131 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_proc_event() local
133 if (atomic_read(&temp_st->common_attributes.data_ready)) in temperature_proc_event()
134 iio_push_to_buffers_with_timestamp(indio_dev, &temp_st->scan, in temperature_proc_event()
146 struct temperature_state *temp_st = iio_priv(indio_dev); in temperature_capture_sample() local
150 temp_st->scan.temperature_data = *(s32 *)raw_data; in temperature_capture_sample()
194 struct temperature_state *temp_st; in hid_temperature_probe() local
199 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*temp_st)); in hid_temperature_probe()
203 temp_st = iio_priv(indio_dev); in hid_temperature_probe()
204 temp_st->common_attributes.hsdev = hsdev; in hid_temperature_probe()
205 temp_st->common_attributes.pdev = pdev; in hid_temperature_probe()
209 &temp_st->common_attributes, in hid_temperature_probe()
221 HID_USAGE_SENSOR_TEMPERATURE, temp_st); in hid_temperature_probe()
231 atomic_set(&temp_st->common_attributes.data_ready, 0); in hid_temperature_probe()
234 &temp_st->common_attributes); in hid_temperature_probe()
255 hid_sensor_remove_trigger(indio_dev, &temp_st->common_attributes); in hid_temperature_probe()
264 struct temperature_state *temp_st = iio_priv(indio_dev); in hid_temperature_remove() local
267 hid_sensor_remove_trigger(indio_dev, &temp_st->common_attributes); in hid_temperature_remove()