Searched refs:pmu_batteries (Results 1 – 4 of 4) sorted by relevance
50 if (pmu_batteries[i].flags & PMU_BATT_PRESENT) { in pmu_apm_get_power_status()56 percentage += (pmu_batteries[i].charge * 100) / in pmu_apm_get_power_status()57 pmu_batteries[i].max_charge; in pmu_apm_get_power_status()58 charge += pmu_batteries[i].charge; in pmu_apm_get_power_status()59 amperage += pmu_batteries[i].amperage; in pmu_apm_get_power_status()61 btype = (pmu_batteries[i].flags & PMU_BATT_TYPE_MASK); in pmu_apm_get_power_status()63 if ((pmu_batteries[i].flags & PMU_BATT_CHARGING)) in pmu_apm_get_power_status()
188 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; variable533 pmu_batteries[0].flags |= PMU_BATT_TYPE_COMET; in via_pmu_dev_init()535 pmu_batteries[0].flags |= PMU_BATT_TYPE_HOOPER; in via_pmu_dev_init()539 pmu_batteries[0].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()540 pmu_batteries[1].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()550 pmu_batteries[0].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()552 pmu_batteries[1].flags |= PMU_BATT_TYPE_SMART; in via_pmu_dev_init()761 pmu_batteries[pmu_cur_battery].flags = bat_flags; in done_battery_state_ohare()762 pmu_batteries[pmu_cur_battery].charge = charge; in done_battery_state_ohare()763 pmu_batteries[pmu_cur_battery].max_charge = max; in done_battery_state_ohare()[all …]
72 extern struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
176 pbat->pbi = &pmu_batteries[i]; in pmu_bat_init()