Lines Matching refs:channels
1265 chan = indio_dev->channels + bit; in stm32_adc_conf_scan_seq()
1637 if (indio_dev->channels[i].channel == iiospec->args[0]) in stm32_adc_fwnode_xlate()
2034 struct iio_chan_spec *channels, in stm32_adc_legacy_chan_init() argument
2062 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init()
2090 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], in stm32_adc_legacy_chan_init()
2115 stm32_adc_smpr_init(adc, channels[i].channel, smp); in stm32_adc_legacy_chan_init()
2187 struct iio_chan_spec *channels) in stm32_adc_generic_chan_init() argument
2245 stm32_adc_chan_init_one(indio_dev, &channels[scan_index], val, in stm32_adc_generic_chan_init()
2257 stm32_adc_smpr_init(adc, channels[scan_index].channel, val); in stm32_adc_generic_chan_init()
2276 struct iio_chan_spec *channels; in stm32_adc_chan_fw_init() local
2308 channels = devm_kcalloc(&indio_dev->dev, num_channels, in stm32_adc_chan_fw_init()
2310 if (!channels) in stm32_adc_chan_fw_init()
2314 ret = stm32_adc_legacy_chan_init(indio_dev, adc, channels, in stm32_adc_chan_fw_init()
2317 ret = stm32_adc_generic_chan_init(indio_dev, adc, channels); in stm32_adc_chan_fw_init()
2323 struct iio_chan_spec *timestamp = &channels[scan_index]; in stm32_adc_chan_fw_init()
2336 indio_dev->channels = channels; in stm32_adc_chan_fw_init()