Lines Matching refs:vbat_uv
199 int vbat_uv; member
869 di->vbat_uv = ab8500_fg_bat_voltage(di); in ab8500_fg_uncomp_volt_to_capacity()
870 return ab8500_fg_volt_to_capacity(di, di->vbat_uv); in ab8500_fg_uncomp_volt_to_capacity()
935 int vbat_uv = 0; in ab8500_load_comp_fg_bat_voltage() local
942 vbat_uv += ab8500_fg_bat_voltage(di); in ab8500_load_comp_fg_bat_voltage()
951 di->vbat_uv = vbat_uv / i; in ab8500_load_comp_fg_bat_voltage()
952 return di->vbat_uv; in ab8500_load_comp_fg_bat_voltage()
965 vbat_uv = vbat_uv / i; in ab8500_load_comp_fg_bat_voltage()
968 rcomp = ab8500_fg_battery_resistance(di, vbat_uv); in ab8500_load_comp_fg_bat_voltage()
969 vbat_uv = vbat_uv - (di->inst_curr_ua * rcomp) / 1000; in ab8500_load_comp_fg_bat_voltage()
972 di->vbat_uv = vbat_uv; in ab8500_load_comp_fg_bat_voltage()
974 return vbat_uv; in ab8500_load_comp_fg_bat_voltage()
1077 di->vbat_uv = ab8500_fg_bat_voltage(di); in ab8500_fg_calc_cap_charging()
1784 di->vbat_uv, in ab8500_fg_algorithm()
1879 int vbat_uv; in ab8500_fg_low_bat_work() local
1884 vbat_uv = ab8500_fg_bat_voltage(di); in ab8500_fg_low_bat_work()
1887 if (vbat_uv < di->bm->fg_params->lowbat_threshold_uv) { in ab8500_fg_low_bat_work()
2119 val->intval = di->vbat_uv; in ab8500_fg_get_property()