Searched refs:iiospec (Results 1 - 9 of 9) sorted by relevance

/linux-master/drivers/iio/
H A Dinkern.c121 * __fwnode_iio_simple_xlate - translate iiospec to the IIO channel index
123 * @iiospec: IIO specifier as found in the device tree
131 const struct fwnode_reference_args *iiospec)
133 if (!iiospec->nargs)
136 if (iiospec->args[0] >= indio_dev->num_channels) {
138 iiospec->args[0]);
142 return iiospec->args[0];
148 struct fwnode_reference_args iiospec; local
155 index, &iiospec);
159 idev = bus_find_device_by_fwnode(&iio_bus_type, iiospec
130 __fwnode_iio_simple_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
[all...]
/linux-master/drivers/iio/adc/
H A Dqcom-pm8xxx-xoadc.c697 const struct fwnode_reference_args *iiospec)
708 if (iiospec->nargs != 2) {
710 iiospec->fwnode,
711 iiospec->nargs);
714 pre_scale_mux = (u8)iiospec->args[0];
715 amux_channel = (u8)iiospec->args[1];
696 pm8xxx_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dqcom-spmi-adc5.c407 const struct fwnode_reference_args *iiospec)
413 if (adc->chan_props[i].channel == iiospec->args[0])
420 const struct fwnode_reference_args *iiospec)
428 if (v_channel == iiospec->args[0])
406 adc5_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
419 adc7_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dingenic-adc.c723 const struct fwnode_reference_args *iiospec)
727 if (!iiospec->nargs)
731 if (iio_dev->channels[i].channel == iiospec->args[0])
722 ingenic_adc_fwnode_xlate(struct iio_dev *iio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dqcom-spmi-vadc.c488 const struct fwnode_reference_args *iiospec)
494 if (vadc->iio_chans[i].channel == iiospec->args[0])
487 vadc_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dab8500-gpadc.c929 const struct fwnode_reference_args *iiospec)
934 if (indio_dev->channels[i].channel == iiospec->args[0])
928 ab8500_gpadc_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dat91-sama5d2_adc.c768 const struct fwnode_reference_args *iiospec)
770 return at91_adc_chan_xlate(indio_dev, iiospec->args[0]);
767 at91_adc_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
H A Dstm32-adc.c1632 const struct fwnode_reference_args *iiospec)
1637 if (indio_dev->channels[i].channel == iiospec->args[0])
1631 stm32_adc_fwnode_xlate(struct iio_dev *indio_dev, const struct fwnode_reference_args *iiospec) argument
/linux-master/include/linux/iio/
H A Diio.h525 const struct fwnode_reference_args *iiospec);

Completed in 184 milliseconds