Lines Matching defs:channel
103 * struct adc5_channel_prop - ADC channel property.
104 * @channel: channel number, refer to the channel list.
107 * @decimation: sampling rate supported for the channel.
108 * @sid: slave id of PMIC owning the channel, for PMIC7.
109 * @prescale: channel scaling performed on the input signal.
115 * physical units desired by the client for the channel.
119 unsigned int channel;
137 * @chan_props: array of ADC channel properties.
314 /* Select ADC channel */
315 buf[2] = prop->channel;
317 /* Select HW settle delay for channel */
354 /* Select ADC channel */
355 buf[2] = prop->channel;
357 /* Select HW settle delay for channel */
473 if (adc->chan_props[i].channel == iiospec->args[0])
487 adc->chan_props[i].channel;
687 dev_err(dev, "invalid channel number %s\n", name);
691 /* Value read from "reg" is virtual channel number */
693 /* virtual channel number = sid << 8 | channel number */
702 dev_err(dev, "%s invalid channel number %d\n", name, chan);
706 /* the channel has DT description */
707 prop->channel = chan;
713 dev_err(dev, "Invalid channel name\n");
742 adc->data->adc_chans[prop->channel].prescale_index;
908 data->adc_chans[prop.channel].scale_fn_type;
910 adc_chan = &data->adc_chans[prop.channel];
912 iio_chan->channel = prop.channel;