Searched refs:iiospec (Results 1 – 9 of 9) sorted by relevance
109 const struct of_phandle_args *iiospec) in __of_iio_simple_xlate() argument111 if (!iiospec->args_count) in __of_iio_simple_xlate()114 if (iiospec->args[0] >= indio_dev->num_channels) { in __of_iio_simple_xlate()116 iiospec->args[0]); in __of_iio_simple_xlate()120 return iiospec->args[0]; in __of_iio_simple_xlate()129 struct of_phandle_args iiospec; in __of_iio_channel_get() local133 index, &iiospec); in __of_iio_channel_get()137 idev = bus_find_device(&iio_bus_type, NULL, iiospec.np, in __of_iio_channel_get()140 of_node_put(iiospec.np); in __of_iio_channel_get()147 index = indio_dev->info->of_xlate(indio_dev, &iiospec); in __of_iio_channel_get()[all …]
697 const struct of_phandle_args *iiospec) in pm8xxx_of_xlate() argument708 if (iiospec->args_count != 2) { in pm8xxx_of_xlate()710 iiospec->np, in pm8xxx_of_xlate()711 iiospec->args_count); in pm8xxx_of_xlate()714 pre_scale_mux = (u8)iiospec->args[0]; in pm8xxx_of_xlate()715 amux_channel = (u8)iiospec->args[1]; in pm8xxx_of_xlate()
467 const struct of_phandle_args *iiospec) in adc5_of_xlate() argument473 if (adc->chan_props[i].channel == iiospec->args[0]) in adc5_of_xlate()480 const struct of_phandle_args *iiospec) in adc7_of_xlate() argument488 if (v_channel == iiospec->args[0]) in adc7_of_xlate()
647 const struct of_phandle_args *iiospec) in ingenic_adc_of_xlate() argument651 if (!iiospec->args_count) in ingenic_adc_of_xlate()655 if (iio_dev->channels[i].channel == iiospec->args[0]) in ingenic_adc_of_xlate()
486 const struct of_phandle_args *iiospec) in vadc_of_xlate() argument492 if (vadc->iio_chans[i].channel == iiospec->args[0]) in vadc_of_xlate()
929 const struct of_phandle_args *iiospec) in ab8500_gpadc_of_xlate() argument934 if (indio_dev->channels[i].channel == iiospec->args[0]) in ab8500_gpadc_of_xlate()
489 const struct of_phandle_args *iiospec) in at91_adc_of_xlate() argument491 return at91_adc_chan_xlate(indio_dev, iiospec->args[0]); in at91_adc_of_xlate()
1378 const struct of_phandle_args *iiospec) in stm32_adc_of_xlate() argument1383 if (indio_dev->channels[i].channel == iiospec->args[0]) in stm32_adc_of_xlate()
458 const struct of_phandle_args *iiospec);