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()
76 int hts221_allocate_trigger(struct iio_dev *iio_dev) in hts221_allocate_trigger() argument
78 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_allocate_trigger()
133 iio_dev->name); in hts221_allocate_trigger()
137 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()
165 struct iio_dev *iio_dev = pf->indio_dev; in hts221_buffer_handler_thread() local
166 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_buffer_handler_thread()
171 ch = &iio_dev->channels[HTS221_SENSOR_H]; in hts221_buffer_handler_thread()
179 ch = &iio_dev->channels[HTS221_SENSOR_T]; in hts221_buffer_handler_thread()
186 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan, in hts221_buffer_handler_thread()
187 iio_get_time_ns(iio_dev)); in hts221_buffer_handler_thread()
195 int hts221_allocate_buffers(struct iio_dev *iio_dev) in hts221_allocate_buffers() argument
197 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_allocate_buffers()
198 return devm_iio_triggered_buffer_setup(hw->dev, iio_dev, in hts221_allocate_buffers()