Searched refs:bat_voltage (Results 1 – 1 of 1) sorted by relevance
320 int bat_voltage) in da9052_bat_interpolate() argument325 tmp = level_lower + (((bat_voltage - vbat_lower) * tmp) / 1000); in da9052_bat_interpolate()360 int bat_voltage; in da9052_bat_read_capacity() local370 ret = da9052_bat_read_volt(bat, &bat_voltage); in da9052_bat_read_capacity()380 if (bat_voltage >= vc_tbl[i][0][0]) { in da9052_bat_read_capacity()384 if (bat_voltage <= vc_tbl[i][DA9052_VC_TBL_SZ - 1][0]) { in da9052_bat_read_capacity()391 if ((bat_voltage <= vc_tbl[i][j][0]) && in da9052_bat_read_capacity()392 (bat_voltage >= vc_tbl[i][j + 1][0])) { in da9052_bat_read_capacity()405 level_upper, bat_voltage); in da9052_bat_read_capacity()