Lines Matching refs:iio_dev
40 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig); in hts221_trig_set_state() local
41 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_trig_set_state()
77 struct iio_dev *iio_dev = iio_priv_to_dev(hw); in hts221_allocate_trigger() local
134 iio_dev->name); in hts221_allocate_trigger()
138 iio_trigger_set_drvdata(hw->trig, iio_dev); in hts221_allocate_trigger()
141 iio_dev->trig = iio_trigger_get(hw->trig); in hts221_allocate_trigger()
146 static int hts221_buffer_preenable(struct iio_dev *iio_dev) in hts221_buffer_preenable() argument
148 return hts221_set_enable(iio_priv(iio_dev), true); in hts221_buffer_preenable()
151 static int hts221_buffer_postdisable(struct iio_dev *iio_dev) in hts221_buffer_postdisable() argument
153 return hts221_set_enable(iio_priv(iio_dev), false); in hts221_buffer_postdisable()
167 struct iio_dev *iio_dev = pf->indio_dev; in hts221_buffer_handler_thread() local
168 struct hts221_hw *hw = iio_priv(iio_dev); in hts221_buffer_handler_thread()
173 ch = &iio_dev->channels[HTS221_SENSOR_H]; in hts221_buffer_handler_thread()
180 ch = &iio_dev->channels[HTS221_SENSOR_T]; in hts221_buffer_handler_thread()
186 iio_push_to_buffers_with_timestamp(iio_dev, buffer, in hts221_buffer_handler_thread()
187 iio_get_time_ns(iio_dev)); in hts221_buffer_handler_thread()