Home
last modified time | relevance | path

Searched refs:charge_full (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/power/supply/
H A Dcpcap-battery.c134 int charge_full; member
579 ddata->charge_full = in cpcap_battery_update_status()
581 } else if (ddata->charge_full) { in cpcap_battery_update_status()
584 full->counter_uah + ddata->charge_full; in cpcap_battery_update_status()
593 ddata->charge_full = in cpcap_battery_update_status()
725 if (!empty->voltage || !ddata->charge_full) in cpcap_battery_get_property()
729 ddata->charge_full / 200; in cpcap_battery_get_property()
730 val->intval = clamp(val->intval, 0, ddata->charge_full); in cpcap_battery_get_property()
731 val->intval = val->intval * 100 / ddata->charge_full; in cpcap_battery_get_property()
754 if (ddata->charge_full && abs(val->intval) > ddata->charge_full/5) { in cpcap_battery_get_property()
[all …]
H A Dmax17042_battery.c115 int ret, charge_full, charge_now; in max17042_get_status() local
139 ret = regmap_read(chip->regmap, MAX17042_FullCAP, &charge_full); in max17042_get_status()
147 if ((charge_full - charge_now) <= MAX17042_FULL_THRESHOLD) { in max17042_get_status()
H A Dab8500_fg.c2453 unsigned long charge_full; in charge_full_store() local
2456 ret = kstrtoul(buf, 10, &charge_full); in charge_full_store()
2460 di->bat_cap.max_mah = (int) charge_full; in charge_full_store()
2486 __ATTR(charge_full, 0644, charge_full_show, charge_full_store);
/linux/tools/testing/selftests/power_supply/
H A Dtest_power_supply_properties.sh103 test_sysfs_prop_optional charge_full "uAh"
/linux/Documentation/ABI/testing/
H A Dsysfs-class-power586 calculations (i.e. this is not the factor between charge_full and
694 What: /sys/class/power/ds2760-battery.*/charge_full