Lines Matching refs:temp_st
56 struct temperature_state *temp_st = iio_priv(indio_dev);
63 &temp_st->common_attributes, true);
65 temp_st->common_attributes.hsdev,
68 temp_st->temperature_attr.report_id,
70 temp_st->temperature_attr.logical_minimum < 0);
72 &temp_st->common_attributes,
78 *val = temp_st->scale_pre_decml;
79 *val2 = temp_st->scale_post_decml;
80 return temp_st->scale_precision;
83 *val = temp_st->value_offset;
88 &temp_st->common_attributes, val, val2);
92 &temp_st->common_attributes, val, val2);
102 struct temperature_state *temp_st = iio_priv(indio_dev);
107 &temp_st->common_attributes, val, val2);
110 &temp_st->common_attributes, val, val2);
126 struct temperature_state *temp_st = iio_priv(indio_dev);
128 if (atomic_read(&temp_st->common_attributes.data_ready))
129 iio_push_to_buffers_with_timestamp(indio_dev, &temp_st->scan,
141 struct temperature_state *temp_st = iio_priv(indio_dev);
145 temp_st->scan.temperature_data = *(s32 *)raw_data;
197 struct temperature_state *temp_st;
202 indio_dev = devm_iio_device_alloc(&pdev->dev, sizeof(*temp_st));
206 temp_st = iio_priv(indio_dev);
207 temp_st->common_attributes.hsdev = hsdev;
208 temp_st->common_attributes.pdev = pdev;
212 &temp_st->common_attributes);
222 HID_USAGE_SENSOR_TEMPERATURE, temp_st);
232 atomic_set(&temp_st->common_attributes.data_ready, 0);
235 &temp_st->common_attributes);
256 hid_sensor_remove_trigger(indio_dev, &temp_st->common_attributes);
265 struct temperature_state *temp_st = iio_priv(indio_dev);
268 hid_sensor_remove_trigger(indio_dev, &temp_st->common_attributes);