Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dsurface_battery.c78 __le32 remaining_cap; member
283 u32 remaining_cap = get_unaligned_le32(&bat->bst.remaining_cap); in spwr_battery_is_full() local
288 remaining_cap != SPWR_BATTERY_VALUE_UNKNOWN && in spwr_battery_is_full()
289 remaining_cap >= full_cap && in spwr_battery_is_full()
511 u32 remaining_cap = get_unaligned_le32(&bat->bst.remaining_cap); in spwr_battery_prop_capacity() local
518 if (remaining_cap == SPWR_BATTERY_VALUE_UNKNOWN) in spwr_battery_prop_capacity()
521 return remaining_cap * 100 / full_cap; in spwr_battery_prop_capacity()
527 u32 remaining_cap = get_unaligned_le32(&bat->bst.remaining_cap); in spwr_battery_prop_capacity_level() local
537 if (remaining_cap <= bat->alarm) in spwr_battery_prop_capacity_level()
628 value = get_unaligned_le32(&bat->bst.remaining_cap); in spwr_battery_get_property()