Home
last modified time | relevance | path

Searched refs:iiospec (Results 1 – 8 of 8) sorted by relevance

/drivers/iio/
Dinkern.c130 const struct fwnode_reference_args *iiospec) in __fwnode_iio_simple_xlate() argument
132 if (!iiospec->nargs) in __fwnode_iio_simple_xlate()
135 if (iiospec->args[0] >= indio_dev->num_channels) { in __fwnode_iio_simple_xlate()
137 iiospec->args[0]); in __fwnode_iio_simple_xlate()
141 return iiospec->args[0]; in __fwnode_iio_simple_xlate()
147 struct fwnode_reference_args iiospec; in __fwnode_iio_channel_get() local
154 index, &iiospec); in __fwnode_iio_channel_get()
158 idev = bus_find_device_by_fwnode(&iio_bus_type, iiospec.fwnode); in __fwnode_iio_channel_get()
160 fwnode_handle_put(iiospec.fwnode); in __fwnode_iio_channel_get()
167 index = indio_dev->info->fwnode_xlate(indio_dev, &iiospec); in __fwnode_iio_channel_get()
[all …]
/drivers/iio/adc/
Dqcom-pm8xxx-xoadc.c698 const struct fwnode_reference_args *iiospec) in pm8xxx_fwnode_xlate() argument
709 if (iiospec->nargs != 2) { in pm8xxx_fwnode_xlate()
711 iiospec->fwnode, in pm8xxx_fwnode_xlate()
712 iiospec->nargs); in pm8xxx_fwnode_xlate()
715 pre_scale_mux = (u8)iiospec->args[0]; in pm8xxx_fwnode_xlate()
716 amux_channel = (u8)iiospec->args[1]; in pm8xxx_fwnode_xlate()
Dqcom-spmi-adc5.c407 const struct fwnode_reference_args *iiospec) in adc5_fwnode_xlate() argument
413 if (adc->chan_props[i].channel == iiospec->args[0]) in adc5_fwnode_xlate()
420 const struct fwnode_reference_args *iiospec) in adc7_fwnode_xlate() argument
428 if (v_channel == iiospec->args[0]) in adc7_fwnode_xlate()
Dingenic-adc.c723 const struct fwnode_reference_args *iiospec) in ingenic_adc_fwnode_xlate() argument
727 if (!iiospec->nargs) in ingenic_adc_fwnode_xlate()
731 if (iio_dev->channels[i].channel == iiospec->args[0]) in ingenic_adc_fwnode_xlate()
Dqcom-spmi-vadc.c486 const struct fwnode_reference_args *iiospec) in vadc_fwnode_xlate() argument
492 if (vadc->iio_chans[i].channel == iiospec->args[0]) in vadc_fwnode_xlate()
Dab8500-gpadc.c929 const struct fwnode_reference_args *iiospec) in ab8500_gpadc_fwnode_xlate() argument
934 if (indio_dev->channels[i].channel == iiospec->args[0]) in ab8500_gpadc_fwnode_xlate()
Dstm32-adc.c1526 const struct fwnode_reference_args *iiospec) in stm32_adc_fwnode_xlate() argument
1531 if (indio_dev->channels[i].channel == iiospec->args[0]) in stm32_adc_fwnode_xlate()
Dat91-sama5d2_adc.c768 const struct fwnode_reference_args *iiospec) in at91_adc_fwnode_xlate() argument
770 return at91_adc_chan_xlate(indio_dev, iiospec->args[0]); in at91_adc_fwnode_xlate()