Lines Matching defs:scale

112 	int (*get_ratio)(int channel, int scale);
126 * should use the small-scale graph, and if more than 1.2v, we should use the
127 * big-scale graph.
220 static int sc2720_adc_get_ratio(int channel, int scale)
224 switch (scale) {
237 switch (scale) {
252 switch (scale) {
265 switch (scale) {
281 static int sc2721_adc_get_ratio(int channel, int scale)
288 return scale ? SC27XX_VOLT_RATIO(400, 1025) :
294 return scale ? SC27XX_VOLT_RATIO(100, 125) :
308 static int sc2730_adc_get_ratio(int channel, int scale)
312 switch (scale) {
325 switch (scale) {
338 switch (scale) {
353 switch (scale) {
366 switch (scale) {
382 static int sc2731_adc_get_ratio(int channel, int scale)
389 return scale ? SC27XX_VOLT_RATIO(400, 1025) :
397 return scale ? SC27XX_VOLT_RATIO(100, 125) :
470 * channels 5 uses big scale, others use smale.
485 int scale, int *val)
521 /* Configure the channel id and scale */
522 tmp = (scale << data->var_data->scale_shift) & data->var_data->scale_mask;
584 static void sc27xx_adc_volt_ratio(struct sc27xx_adc_data *data, int channel, int scale,
589 ratio = data->var_data->get_ratio(channel, scale);
617 int scale, int raw_adc)
641 sc27xx_adc_volt_ratio(data, channel, scale, &fract);
647 int channel, int scale, int *val)
651 ret = sc27xx_adc_read(data, channel, scale, &raw_adc);
655 *val = sc27xx_adc_convert_volt(data, channel, scale, raw_adc);
664 int scale = data->channel_scale[chan->channel];
670 ret = sc27xx_adc_read(data, chan->channel, scale, &tmp);
681 ret = sc27xx_adc_read_processed(data, chan->channel, scale,
692 *val = scale;