Lines Matching refs:ad_value

193 	int ad_value)  in ab8500_gpadc_ad_to_voltage()  argument
202 ADC_CH_CHG_V_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
207 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain + in ab8500_gpadc_ad_to_voltage()
220 ADC_CH_BTEMP_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
225 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain + in ab8500_gpadc_ad_to_voltage()
234 ADC_CH_VBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
239 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain + in ab8500_gpadc_ad_to_voltage()
245 (ADC_CH_DIETEMP_MAX - ADC_CH_DIETEMP_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
251 (ADC_CH_ACCDET2_MAX - ADC_CH_ACCDET2_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
257 (ADC_CH_CHG_V_MAX - ADC_CH_CHG_V_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
264 (ADC_CH_CHG_I_MAX - ADC_CH_CHG_I_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
270 (ADC_CH_BKBAT_MAX - ADC_CH_BKBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
278 ADC_CH_IBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
283 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_IBAT].gain + in ab8500_gpadc_ad_to_voltage()
313 int ad_value; in ab8500_gpadc_sw_hw_convert() local
316 ad_value = ab8500_gpadc_read_raw(gpadc, channel, avg_sample, in ab8500_gpadc_sw_hw_convert()
320 if (ad_value < 0) in ab8500_gpadc_sw_hw_convert()
321 ad_value = ab8500_gpadc_read_raw(gpadc, channel, avg_sample, in ab8500_gpadc_sw_hw_convert()
323 if (ad_value < 0) { in ab8500_gpadc_sw_hw_convert()
326 return ad_value; in ab8500_gpadc_sw_hw_convert()
329 voltage = ab8500_gpadc_ad_to_voltage(gpadc, channel, ad_value); in ab8500_gpadc_sw_hw_convert()
333 channel, ad_value); in ab8500_gpadc_sw_hw_convert()