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