Lines Matching refs:iio_dev
59 static int ad7091r_read_one(struct iio_dev *iio_dev, in ad7091r_read_one() argument
62 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_one()
82 static int ad7091r_read_raw(struct iio_dev *iio_dev, in ad7091r_read_raw() argument
86 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_read_raw()
97 ret = ad7091r_read_one(iio_dev, chan->channel, &read_val); in ad7091r_read_raw()
123 static int ad7091r_read_event_config(struct iio_dev *indio_dev, in ad7091r_read_event_config()
151 static int ad7091r_write_event_config(struct iio_dev *indio_dev, in ad7091r_write_event_config()
182 static int ad7091r_read_event_value(struct iio_dev *indio_dev, in ad7091r_read_event_value()
223 static int ad7091r_write_event_value(struct iio_dev *indio_dev, in ad7091r_write_event_value()
264 struct iio_dev *iio_dev = private; in ad7091r_event_handler() local
265 struct ad7091r_state *st = iio_priv(iio_dev); in ad7091r_event_handler()
268 s64 timestamp = iio_get_time_ns(iio_dev); in ad7091r_event_handler()
276 iio_push_event(iio_dev, in ad7091r_event_handler()
281 iio_push_event(iio_dev, in ad7091r_event_handler()
300 struct iio_dev *iio_dev; in ad7091r_probe() local
304 iio_dev = devm_iio_device_alloc(dev, sizeof(*st)); in ad7091r_probe()
305 if (!iio_dev) in ad7091r_probe()
308 st = iio_priv(iio_dev); in ad7091r_probe()
315 iio_dev->info = &ad7091r_info; in ad7091r_probe()
316 iio_dev->modes = INDIO_DIRECT_MODE; in ad7091r_probe()
335 st->chip_info->name, iio_dev); in ad7091r_probe()
342 iio_dev->name = st->chip_info->name; in ad7091r_probe()
343 iio_dev->num_channels = st->chip_info->num_channels; in ad7091r_probe()
344 iio_dev->channels = st->chip_info->channels; in ad7091r_probe()
372 return devm_iio_device_register(dev, iio_dev); in ad7091r_probe()