Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dapm_power.c312 info->battery_life = capacity.intval; in apm_battery_apm_get_power_status()
315 info->battery_life = calculate_capacity(SOURCE_ENERGY); in apm_battery_apm_get_power_status()
317 if (info->battery_life == -1) in apm_battery_apm_get_power_status()
318 info->battery_life = calculate_capacity(SOURCE_CHARGE); in apm_battery_apm_get_power_status()
319 if (info->battery_life == -1) in apm_battery_apm_get_power_status()
320 info->battery_life = calculate_capacity(SOURCE_VOLTAGE); in apm_battery_apm_get_power_status()
328 if (info->battery_life > 50) in apm_battery_apm_get_power_status()
330 else if (info->battery_life > 5) in apm_battery_apm_get_power_status()
/Linux-v5.10/include/linux/
Dapm-emulation.h42 int battery_life; member
/Linux-v5.10/arch/sh/boards/mach-hp6xx/
Dhp6xx_apm.c43 info->battery_life = percentage; in hp6x0_apm_get_power_status()
/Linux-v5.10/drivers/macintosh/
Dapm_emu.c82 info->battery_life = percentage; in pmu_apm_get_power_status()
/Linux-v5.10/drivers/char/
Dapm-emulation.c444 info.battery_life = -1; in proc_apm_show()
460 info.battery_flag, info.battery_life, in proc_apm_show()
/Linux-v5.10/arch/arm/mach-pxa/
Dsharpsl_pm.c816 info->battery_life = sharpsl_pm.battstat.mainbat_percent; in sharpsl_apm_get_power_status()