Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dsurface_battery.c269 u32 full_cap = get_unaligned_le32(&bat->bix.last_full_charge_cap); in sprw_battery_get_full_cap_safe() local
273 if (full_cap == 0 || full_cap == SPWR_BATTERY_VALUE_UNKNOWN) in sprw_battery_get_full_cap_safe()
274 full_cap = get_unaligned_le32(&bat->bix.design_cap); in sprw_battery_get_full_cap_safe()
276 return full_cap; in sprw_battery_get_full_cap_safe()
282 u32 full_cap = sprw_battery_get_full_cap_safe(bat); in spwr_battery_is_full() local
287 return full_cap != SPWR_BATTERY_VALUE_UNKNOWN && full_cap != 0 && in spwr_battery_is_full()
289 remaining_cap >= full_cap && in spwr_battery_is_full()
510 u32 full_cap = sprw_battery_get_full_cap_safe(bat); in spwr_battery_prop_capacity() local
515 if (full_cap == 0 || full_cap == SPWR_BATTERY_VALUE_UNKNOWN) in spwr_battery_prop_capacity()
521 return remaining_cap * 100 / full_cap; in spwr_battery_prop_capacity()