Home
last modified time | relevance | path

Searched refs:pmu_batteries (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/drivers/macintosh/
Dapm_emu.c39 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()
Dvia-pmu.c184 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; variable
519 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 …]
/linux-6.6.21/include/linux/
Dpmu.h76 extern struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
/linux-6.6.21/drivers/power/supply/
Dpmu_battery.c173 pbat->pbi = &pmu_batteries[i]; in pmu_bat_init()