Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/power/supply/
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 …]
Dmax17042_battery.c113 int ret, charge_full, charge_now; in max17042_get_status() local
137 ret = regmap_read(chip->regmap, MAX17042_FullCAP, &charge_full); in max17042_get_status()
145 if ((charge_full - charge_now) <= MAX17042_FULL_THRESHOLD) { in max17042_get_status()
Dab8500_fg.c2454 unsigned long charge_full; in charge_full_store() local
2457 ret = kstrtoul(buf, 10, &charge_full); in charge_full_store()
2461 di->bat_cap.max_mah = (int) charge_full; in charge_full_store()
2487 __ATTR(charge_full, 0644, charge_full_show, charge_full_store);
/linux-6.12.1/tools/testing/selftests/power_supply/
Dtest_power_supply_properties.sh103 test_sysfs_prop_optional charge_full "uAh"
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-power636 What: /sys/class/power/ds2760-battery.*/charge_full