Searched refs:battery_life (Results 1 – 6 of 6) sorted by relevance
311 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()
42 int battery_life; member
43 info->battery_life = percentage; in hp6x0_apm_get_power_status()
82 info->battery_life = percentage; in pmu_apm_get_power_status()
444 info.battery_life = -1; in proc_apm_show()460 info.battery_flag, info.battery_life, in proc_apm_show()
810 info->battery_life = sharpsl_pm.battstat.mainbat_percent; in sharpsl_apm_get_power_status()