Lines Matching full:scale
87 * should use the small-scale graph, and if more than 1.2v, we should use the
88 * big-scale graph.
100 static int sc27xx_adc_get_ratio(int channel, int scale) in sc27xx_adc_get_ratio() argument
107 return scale ? SC27XX_VOLT_RATIO(400, 1025) : in sc27xx_adc_get_ratio()
115 return scale ? SC27XX_VOLT_RATIO(100, 125) : in sc27xx_adc_get_ratio()
126 int scale, int *val) in sc27xx_adc_read() argument
144 /* Configure the channel id and scale */ in sc27xx_adc_read()
145 tmp = (scale << SC27XX_ADC_SCALE_SHIFT) & SC27XX_ADC_SCALE_MASK; in sc27xx_adc_read()
203 int channel, int scale, in sc27xx_adc_volt_ratio() argument
206 u32 ratio = sc27xx_adc_get_ratio(channel, scale); in sc27xx_adc_volt_ratio()
225 int scale, int raw_adc) in sc27xx_adc_convert_volt() argument
249 sc27xx_adc_volt_ratio(data, channel, scale, &numerator, &denominator); in sc27xx_adc_convert_volt()
255 int channel, int scale, int *val) in sc27xx_adc_read_processed() argument
259 ret = sc27xx_adc_read(data, channel, scale, &raw_adc); in sc27xx_adc_read_processed()
263 *val = sc27xx_adc_convert_volt(data, channel, scale, raw_adc); in sc27xx_adc_read_processed()
272 int scale = data->channel_scale[chan->channel]; in sc27xx_adc_read_raw() local
278 ret = sc27xx_adc_read_processed(data, chan->channel, scale, in sc27xx_adc_read_raw()
289 *val = scale; in sc27xx_adc_read_raw()