Lines Matching refs:scale
93 * should use the small-scale graph, and if more than 1.2v, we should use the
94 * big-scale graph.
163 static int sc27xx_adc_get_ratio(int channel, int scale)
170 return scale ? SC27XX_VOLT_RATIO(400, 1025) :
178 return scale ? SC27XX_VOLT_RATIO(100, 125) :
189 int scale, int *val)
210 /* Configure the channel id and scale */
211 tmp = (scale << SC27XX_ADC_SCALE_SHIFT) & SC27XX_ADC_SCALE_MASK;
262 int channel, int scale,
265 u32 ratio = sc27xx_adc_get_ratio(channel, scale);
284 int scale, int raw_adc)
308 sc27xx_adc_volt_ratio(data, channel, scale, &numerator, &denominator);
314 int channel, int scale, int *val)
318 ret = sc27xx_adc_read(data, channel, scale, &raw_adc);
322 *val = sc27xx_adc_convert_volt(data, channel, scale, raw_adc);
331 int scale = data->channel_scale[chan->channel];
337 ret = sc27xx_adc_read(data, chan->channel, scale, &tmp);
348 ret = sc27xx_adc_read_processed(data, chan->channel, scale,
359 *val = scale;