Lines Matching defs:resistance
879 * ab8500_fg_battery_resistance() - Returns the battery inner resistance
883 * Returns battery inner resistance added with the fuel gauge resistor value
884 * to get the total resistance in the whole link from gnd to bat+ node
891 int resistance;
894 * Determine the resistance at this voltage. First try VBAT-to-Ri else
896 * use the internal resistance.
899 resistance = power_supply_vbat2ri(bi, vbat_uncomp_uv, di->flags.charging);
901 resistance = resistance / 1000;
907 resistance = bi->factory_internal_resistance_uohm / 1000;
908 resistance = resistance * resistance_percent / 100;
911 resistance = bi->factory_internal_resistance_uohm / 1000;
915 resistance += (di->line_impedance_uohm / 1000);
917 dev_dbg(di->dev, "%s Temp: %d battery internal resistance: %d"
918 " fg resistance %d, total: %d (mOhm)\n",
919 __func__, di->bat_temp, resistance, di->bm->fg_res / 10,
920 (di->bm->fg_res / 10) + resistance);
923 resistance += di->bm->fg_res / 10;
925 return resistance;
972 /* Next we apply voltage compensation from internal resistance */