Lines Matching refs:iio_dev

297 static int ad5592r_write_raw(struct iio_dev *iio_dev,  in ad5592r_write_raw()  argument
300 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_write_raw()
370 static int ad5592r_read_raw(struct iio_dev *iio_dev, in ad5592r_read_raw() argument
374 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_read_raw()
450 static int ad5592r_write_raw_get_fmt(struct iio_dev *indio_dev, in ad5592r_write_raw_get_fmt()
470 static ssize_t ad5592r_show_scale_available(struct iio_dev *iio_dev, in ad5592r_show_scale_available() argument
475 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_show_scale_available()
491 static void ad5592r_setup_channel(struct iio_dev *iio_dev, in ad5592r_setup_channel() argument
506 static int ad5592r_alloc_channels(struct iio_dev *iio_dev) in ad5592r_alloc_channels() argument
508 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_alloc_channels()
539 ad5592r_setup_channel(iio_dev, &channels[curr_channel], in ad5592r_alloc_channels()
545 ad5592r_setup_channel(iio_dev, &channels[curr_channel], in ad5592r_alloc_channels()
551 ad5592r_setup_channel(iio_dev, &channels[curr_channel], in ad5592r_alloc_channels()
554 ad5592r_setup_channel(iio_dev, &channels[curr_channel], in ad5592r_alloc_channels()
571 iio_dev->num_channels = curr_channel; in ad5592r_alloc_channels()
572 iio_dev->channels = channels; in ad5592r_alloc_channels()
590 struct iio_dev *iio_dev; in ad5592r_probe() local
594 iio_dev = devm_iio_device_alloc(dev, sizeof(*st)); in ad5592r_probe()
595 if (!iio_dev) in ad5592r_probe()
598 st = iio_priv(iio_dev); in ad5592r_probe()
602 dev_set_drvdata(dev, iio_dev); in ad5592r_probe()
616 iio_dev->name = name; in ad5592r_probe()
617 iio_dev->info = &ad5592r_info; in ad5592r_probe()
618 iio_dev->modes = INDIO_DIRECT_MODE; in ad5592r_probe()
633 ret = ad5592r_alloc_channels(iio_dev); in ad5592r_probe()
641 ret = iio_device_register(iio_dev); in ad5592r_probe()
652 iio_device_unregister(iio_dev); in ad5592r_probe()
667 struct iio_dev *iio_dev = dev_get_drvdata(dev); in ad5592r_remove() local
668 struct ad5592r_state *st = iio_priv(iio_dev); in ad5592r_remove()
670 iio_device_unregister(iio_dev); in ad5592r_remove()