Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dapm_power.c311 info->battery_life = capacity.intval; in apm_battery_apm_get_power_status()
314 info->battery_life = calculate_capacity(SOURCE_ENERGY); in apm_battery_apm_get_power_status()
316 if (info->battery_life == -1) in apm_battery_apm_get_power_status()
317 info->battery_life = calculate_capacity(SOURCE_CHARGE); in apm_battery_apm_get_power_status()
318 if (info->battery_life == -1) in apm_battery_apm_get_power_status()
319 info->battery_life = calculate_capacity(SOURCE_VOLTAGE); in apm_battery_apm_get_power_status()
327 if (info->battery_life > 50) in apm_battery_apm_get_power_status()
329 else if (info->battery_life > 5) in apm_battery_apm_get_power_status()
/linux/include/linux/
H A Dapm-emulation.h42 int battery_life; member
/linux/arch/sh/boards/mach-hp6xx/
H A Dhp6xx_apm.c43 info->battery_life = percentage; in hp6x0_apm_get_power_status()
/linux/drivers/macintosh/
H A Dapm_emu.c82 info->battery_life = percentage; in pmu_apm_get_power_status()
/linux/drivers/char/
H A Dapm-emulation.c444 info.battery_life = -1; in proc_apm_show()
460 info.battery_flag, info.battery_life, in proc_apm_show()
/linux/arch/arm/mach-pxa/
H A Dsharpsl_pm.c810 info->battery_life = sharpsl_pm.battstat.mainbat_percent; in sharpsl_apm_get_power_status()