Lines Matching defs:channel
134 * @vm_map: Map channel number to VM index.
135 * @ch_map: Map channel number to channel index.
139 * The structure provides mapping between channel-number (0..N-1) to VM-index
140 * (0..num_vm-1) and channel-index (0..ch_num-1) where N = num_vm * ch_num.
150 * struct voltage_channels - VM channel count.
154 * The structure provides channel count information across all VMs.
244 u32 attr, int channel)
277 static int pvt_read_temp(struct device *dev, u32 attr, int channel, long *val)
286 ret = regmap_read_poll_timeout(t_map, SDIF_DONE(channel),
293 ret = regmap_read(t_map, SDIF_DATA(channel), &nbs);
311 static int pvt_read_in(struct device *dev, u32 attr, int channel, long *val)
319 if (channel >= pvt->vm_channels.total)
322 vm_idx = pvt->vd[channel].vm_map;
323 ch_idx = pvt->vd[channel].ch_map;
339 pre_scaler = pvt->vd[channel].pre_scaler;
361 u32 attr, int channel, long *val)
365 return pvt_read_temp(dev, attr, channel, val);
367 return pvt_read_in(dev, attr, channel, val);
664 * Map between the channel-number to VM-index and channel-index.
690 u32 channel;
713 channel = pre_scaler_ch_list[i];
714 pvt->vd[channel].pre_scaler = PRE_SCALER_X2;
865 * assume incremental channel numbers.