Lines Matching refs:iio_dev
41 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig); in hts221_trig_set_state() local
42 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_trig_set_state()
78 struct iio_dev *iio_dev = iio_priv_to_dev(hw); in hts221_allocate_trigger() local
135 iio_dev->name); in hts221_allocate_trigger()
139 iio_trigger_set_drvdata(hw->trig, iio_dev); in hts221_allocate_trigger()
142 iio_dev->trig = iio_trigger_get(hw->trig); in hts221_allocate_trigger()
147 static int hts221_buffer_preenable(struct iio_dev *iio_dev) in hts221_buffer_preenable() argument
149 return hts221_set_enable(iio_priv(iio_dev), true); in hts221_buffer_preenable()
152 static int hts221_buffer_postdisable(struct iio_dev *iio_dev) in hts221_buffer_postdisable() argument
154 return hts221_set_enable(iio_priv(iio_dev), false); in hts221_buffer_postdisable()
168 struct iio_dev *iio_dev = pf->indio_dev; in hts221_buffer_handler_thread() local
169 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_buffer_handler_thread()
174 ch = &iio_dev->channels[HTS221_SENSOR_H]; in hts221_buffer_handler_thread()
181 ch = &iio_dev->channels[HTS221_SENSOR_T]; in hts221_buffer_handler_thread()
187 iio_push_to_buffers_with_timestamp(iio_dev, buffer, in hts221_buffer_handler_thread()
188 iio_get_time_ns(iio_dev)); in hts221_buffer_handler_thread()