Lines Matching refs:charge_now_adc
243 int tmp, charge_now, charge_now_adc, volt_avg; in rk817_bat_calib_cap() local
261 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
263 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()
280 charge_now_adc = get_unaligned_be32(bulk_reg); in rk817_bat_calib_cap()
281 if (charge_now_adc < 0) in rk817_bat_calib_cap()
282 return charge_now_adc; in rk817_bat_calib_cap()
283 charge_now = ADC_TO_CHARGE_UAH(charge_now_adc, in rk817_bat_calib_cap()
298 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
300 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()
323 charge_now_adc = get_unaligned_be32(bulk_reg); in rk817_bat_calib_cap()
324 charge_now = ADC_TO_CHARGE_UAH(charge_now_adc, in rk817_bat_calib_cap()
343 charge_now_adc = CHARGE_TO_ADC(0, charger->res_div); in rk817_bat_calib_cap()
344 put_unaligned_be32(charge_now_adc, bulk_reg); in rk817_bat_calib_cap()