Searched refs:pmu_batteries (Results 1 – 4 of 4) sorted by relevance
39 if (pmu_batteries[i].flags & PMU_BATT_PRESENT) { in pmu_apm_get_power_status()45 percentage += (pmu_batteries[i].charge * 100) / in pmu_apm_get_power_status()46 pmu_batteries[i].max_charge; in pmu_apm_get_power_status()47 charge += pmu_batteries[i].charge; in pmu_apm_get_power_status()48 amperage += pmu_batteries[i].amperage; in pmu_apm_get_power_status()50 btype = (pmu_batteries[i].flags & PMU_BATT_TYPE_MASK); in pmu_apm_get_power_status()52 if ((pmu_batteries[i].flags & PMU_BATT_CHARGING)) in pmu_apm_get_power_status()
184 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; variable519 pmu_batteries[0].flags |= PMU_BATT_TYPE_COMET; in via_pmu_dev_init()521 pmu_batteries[0].flags |= PMU_BATT_TYPE_HOOPER; in via_pmu_dev_init()525 pmu_batteries[0].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()526 pmu_batteries[1].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()536 pmu_batteries[0].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()538 pmu_batteries[1].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()747 pmu_batteries[pmu_cur_battery].flags = bat_flags; in done_battery_state_ohare()748 pmu_batteries[pmu_cur_battery].charge = charge; in done_battery_state_ohare()749 pmu_batteries[pmu_cur_battery].max_charge = max; in done_battery_state_ohare()[all …]
76 extern struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
173 pbat->pbi = &pmu_batteries[i]; in pmu_bat_init()