Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/iio/
Dinkern.c109 const struct of_phandle_args *iiospec) in __of_iio_simple_xlate() argument
111 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() local
133 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 …]
/kernel/linux/linux-5.10/drivers/iio/adc/
Dqcom-pm8xxx-xoadc.c697 const struct of_phandle_args *iiospec) in pm8xxx_of_xlate() argument
708 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()
Dqcom-spmi-adc5.c467 const struct of_phandle_args *iiospec) in adc5_of_xlate() argument
473 if (adc->chan_props[i].channel == iiospec->args[0]) in adc5_of_xlate()
480 const struct of_phandle_args *iiospec) in adc7_of_xlate() argument
488 if (v_channel == iiospec->args[0]) in adc7_of_xlate()
Dingenic-adc.c647 const struct of_phandle_args *iiospec) in ingenic_adc_of_xlate() argument
651 if (!iiospec->args_count) in ingenic_adc_of_xlate()
655 if (iio_dev->channels[i].channel == iiospec->args[0]) in ingenic_adc_of_xlate()
Dqcom-spmi-vadc.c486 const struct of_phandle_args *iiospec) in vadc_of_xlate() argument
492 if (vadc->iio_chans[i].channel == iiospec->args[0]) in vadc_of_xlate()
Dab8500-gpadc.c929 const struct of_phandle_args *iiospec) in ab8500_gpadc_of_xlate() argument
934 if (indio_dev->channels[i].channel == iiospec->args[0]) in ab8500_gpadc_of_xlate()
Dat91-sama5d2_adc.c489 const struct of_phandle_args *iiospec) in at91_adc_of_xlate() argument
491 return at91_adc_chan_xlate(indio_dev, iiospec->args[0]); in at91_adc_of_xlate()
Dstm32-adc.c1378 const struct of_phandle_args *iiospec) in stm32_adc_of_xlate() argument
1383 if (indio_dev->channels[i].channel == iiospec->args[0]) in stm32_adc_of_xlate()
/kernel/linux/linux-5.10/include/linux/iio/
Diio.h458 const struct of_phandle_args *iiospec);