Lines Matching defs:iio_dev
40 struct iio_dev *iio_dev = iio_trigger_get_drvdata(trig);
41 struct hts221_hw *hw = iio_priv(iio_dev);
75 int hts221_allocate_trigger(struct iio_dev *iio_dev)
77 struct hts221_hw *hw = iio_priv(iio_dev);
132 iio_dev->name);
136 iio_trigger_set_drvdata(hw->trig, iio_dev);
139 iio_dev->trig = iio_trigger_get(hw->trig);
144 static int hts221_buffer_preenable(struct iio_dev *iio_dev)
146 return hts221_set_enable(iio_priv(iio_dev), true);
149 static int hts221_buffer_postdisable(struct iio_dev *iio_dev)
151 return hts221_set_enable(iio_priv(iio_dev), false);
162 struct iio_dev *iio_dev = pf->indio_dev;
163 struct hts221_hw *hw = iio_priv(iio_dev);
168 ch = &iio_dev->channels[HTS221_SENSOR_H];
176 ch = &iio_dev->channels[HTS221_SENSOR_T];
183 iio_push_to_buffers_with_timestamp(iio_dev, &hw->scan,
184 iio_get_time_ns(iio_dev));
192 int hts221_allocate_buffers(struct iio_dev *iio_dev)
194 struct hts221_hw *hw = iio_priv(iio_dev);
195 return devm_iio_triggered_buffer_setup(hw->dev, iio_dev,