Lines Matching defs:soc
68 * soc - state of charge - like the BSP this is stored as a percentage,
72 * charge and just report it as it is. Note for example an soc of 100
73 * is stored as 100000, an soc of 50 is stored as 50000, etc.
75 int soc;
212 * write the soc value to the nvram location used by the BSP kernel
215 put_unaligned_le24(charger->soc, bulk_reg);
224 rsoc = (charger->soc * charger->fcc_mah) / 100000;
246 /* Calibrate the soc and fcc on a fully charged battery */
250 * soc should be 100000 and columb counter should show the full
260 charger->soc = 100000;
270 charger->soc, charger->fcc_mah * 1000);
275 * it. But don't correct it until we're at 100% soc.
342 charger->soc = 0;
388 /* Update soc based on reported charge. */
389 charger->soc = charger->charge_now_uah * 100 / charger->fcc_mah;
455 /* Calibrate battery capacity and soc. */
532 val->intval = (charger->soc + 500) / 1000;
730 * the min (soc is 0) or when the battery is full (soc is 100).
736 charger->soc = get_unaligned_le24(bulk_reg);
737 if (charger->soc > 10000)
738 charger->soc = 10000;
739 if (charger->soc < 0)
740 charger->soc = 0;
779 charger->soc = power_supply_batinfo_ocv2cap(bat_info,
782 if (charger->soc < 0)
783 charger->soc = 0;
811 * minutes as it tends to drift downward. If so, re-init soc
828 charger->soc =
833 charger->soc = (boot_charge_mah * 1000 * 100 /
839 * Now we have our full charge capacity and soc, init the columb
842 boot_charge_mah = charger->soc * charger->fcc_mah / 100 / 1000;