Searched refs:battery_life (Results 1 – 6 of 6) sorted by relevance
312 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()
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()
816 info->battery_life = sharpsl_pm.battstat.mainbat_percent; in sharpsl_apm_get_power_status()