Lines Matching refs:ad_value
279 int ad_value) in ab8500_gpadc_ad_to_voltage() argument
288 AB8500_ADC_CH_CHG_V_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
293 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_VMAIN].gain + in ab8500_gpadc_ad_to_voltage()
306 AB8500_ADC_CH_BTEMP_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
311 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_BTEMP].gain + in ab8500_gpadc_ad_to_voltage()
320 AB8500_ADC_CH_VBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
325 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_VBAT].gain + in ab8500_gpadc_ad_to_voltage()
331 (AB8500_ADC_CH_DIETEMP_MAX - AB8500_ADC_CH_DIETEMP_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
337 (AB8500_ADC_CH_ACCDET2_MAX - AB8500_ADC_CH_ACCDET2_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
343 (AB8500_ADC_CH_CHG_V_MAX - AB8500_ADC_CH_CHG_V_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
350 (AB8500_ADC_CH_CHG_I_MAX - AB8500_ADC_CH_CHG_I_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
356 (AB8500_ADC_CH_BKBAT_MAX - AB8500_ADC_CH_BKBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
364 AB8500_ADC_CH_IBAT_MIN) * ad_value / in ab8500_gpadc_ad_to_voltage()
369 res = (int) (ad_value * gpadc->cal_data[AB8500_CAL_IBAT].gain + in ab8500_gpadc_ad_to_voltage()