Searched refs:iiospec (Results 1 – 8 of 8) sorted by relevance
130 const struct fwnode_reference_args *iiospec) in __fwnode_iio_simple_xlate() argument132 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() local154 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 …]
698 const struct fwnode_reference_args *iiospec) in pm8xxx_fwnode_xlate() argument709 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()
407 const struct fwnode_reference_args *iiospec) in adc5_fwnode_xlate() argument413 if (adc->chan_props[i].channel == iiospec->args[0]) in adc5_fwnode_xlate()420 const struct fwnode_reference_args *iiospec) in adc7_fwnode_xlate() argument428 if (v_channel == iiospec->args[0]) in adc7_fwnode_xlate()
723 const struct fwnode_reference_args *iiospec) in ingenic_adc_fwnode_xlate() argument727 if (!iiospec->nargs) in ingenic_adc_fwnode_xlate()731 if (iio_dev->channels[i].channel == iiospec->args[0]) in ingenic_adc_fwnode_xlate()
486 const struct fwnode_reference_args *iiospec) in vadc_fwnode_xlate() argument492 if (vadc->iio_chans[i].channel == iiospec->args[0]) in vadc_fwnode_xlate()
929 const struct fwnode_reference_args *iiospec) in ab8500_gpadc_fwnode_xlate() argument934 if (indio_dev->channels[i].channel == iiospec->args[0]) in ab8500_gpadc_fwnode_xlate()
1526 const struct fwnode_reference_args *iiospec) in stm32_adc_fwnode_xlate() argument1531 if (indio_dev->channels[i].channel == iiospec->args[0]) in stm32_adc_fwnode_xlate()
768 const struct fwnode_reference_args *iiospec) in at91_adc_fwnode_xlate() argument770 return at91_adc_chan_xlate(indio_dev, iiospec->args[0]); in at91_adc_fwnode_xlate()