Searched refs:level_lower (Results 1 – 1 of 1) sorted by relevance
315 int level_lower, int level_upper, in da9052_bat_interpolate() argument320 tmp = ((level_upper - level_lower) * 1000) / (vbat_upper - vbat_lower); in da9052_bat_interpolate()321 tmp = level_lower + (((bat_voltage - vbat_lower) * tmp) / 1000); in da9052_bat_interpolate()360 int level_lower; in da9052_bat_read_capacity() local392 level_lower = vc_tbl[i][j + 1][1]; in da9052_bat_read_capacity()400 *capacity = da9052_bat_interpolate(vbat_lower, vbat_upper, level_lower, in da9052_bat_read_capacity()