Lines Matching refs:iio_dev
98 static int ad7091r_read_one(struct iio_dev *iio_dev, in ad7091r_read_one() argument
101 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_one()
121 static int ad7091r_read_raw(struct iio_dev *iio_dev, in ad7091r_read_raw() argument
125 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_raw()
138 ret = ad7091r_read_one(iio_dev, chan->channel, &read_val); in ad7091r_read_raw()
178 struct iio_dev *iio_dev = dev_get_drvdata(st->dev); in ad7091r_event_handler() local
181 s64 timestamp = iio_get_time_ns(iio_dev); in ad7091r_event_handler()
189 iio_push_event(iio_dev, in ad7091r_event_handler()
194 iio_push_event(iio_dev, in ad7091r_event_handler()
214 struct iio_dev *iio_dev; in ad7091r_probe() local
218 iio_dev = devm_iio_device_alloc(dev, sizeof(*st)); in ad7091r_probe()
219 if (!iio_dev) in ad7091r_probe()
222 st = iio_priv(iio_dev); in ad7091r_probe()
227 iio_dev->name = name; in ad7091r_probe()
228 iio_dev->info = &ad7091r_info; in ad7091r_probe()
229 iio_dev->modes = INDIO_DIRECT_MODE; in ad7091r_probe()
231 iio_dev->num_channels = chip_info->num_channels; in ad7091r_probe()
232 iio_dev->channels = chip_info->channels; in ad7091r_probe()
261 return devm_iio_device_register(dev, iio_dev); in ad7091r_probe()