Lines Matching defs:iio_dev
41 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig);
42 struct hts221_hw *hw = iio_priv(iio_dev);
76 int hts221_allocate_trigger(struct iio_dev *iio_dev)
78 struct hts221_hw *hw = iio_priv(iio_dev);
133 iio_dev->name);
137 iio_trigger_set_drvdata(hw->trig, iio_dev);
142 iio_dev->trig = iio_trigger_get(hw->trig);
147 static int hts221_buffer_preenable(struct iio_dev *iio_dev)
149 return hts221_set_enable(iio_priv(iio_dev), true);
152 static int hts221_buffer_postdisable(struct iio_dev *iio_dev)
154 return hts221_set_enable(iio_priv(iio_dev), false);
165 struct iio_dev *iio_dev = pf->indio_dev;
166 struct hts221_hw *hw = iio_priv(iio_dev);
171 ch = &iio_dev->channels[HTS221_SENSOR_H];
179 ch = &iio_dev->channels[HTS221_SENSOR_T];
186 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan,
187 iio_get_time_ns(iio_dev));
195 int hts221_allocate_buffers(struct iio_dev *iio_dev)
197 struct hts221_hw *hw = iio_priv(iio_dev);
198 return devm_iio_triggered_buffer_setup(hw->dev, iio_dev,