Lines Matching refs:pmu_batteries
184 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()
750 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_ohare()
751 pmu_batteries[pmu_cur_battery].voltage = voltage; in done_battery_state_ohare()
752 pmu_batteries[pmu_cur_battery].time_remaining = time; in done_battery_state_ohare()
817 pmu_batteries[pmu_cur_battery].flags = bat_flags; in done_battery_state_smart()
818 pmu_batteries[pmu_cur_battery].charge = capa; in done_battery_state_smart()
819 pmu_batteries[pmu_cur_battery].max_charge = max; in done_battery_state_smart()
820 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_smart()
821 pmu_batteries[pmu_cur_battery].voltage = voltage; in done_battery_state_smart()
824 pmu_batteries[pmu_cur_battery].time_remaining in done_battery_state_smart()
827 pmu_batteries[pmu_cur_battery].time_remaining in done_battery_state_smart()
830 pmu_batteries[pmu_cur_battery].time_remaining = 0; in done_battery_state_smart()
893 seq_printf(m, "flags : %08x\n", pmu_batteries[batnum].flags); in pmu_battery_proc_show()
894 seq_printf(m, "charge : %d\n", pmu_batteries[batnum].charge); in pmu_battery_proc_show()
895 seq_printf(m, "max_charge : %d\n", pmu_batteries[batnum].max_charge); in pmu_battery_proc_show()
896 seq_printf(m, "current : %d\n", pmu_batteries[batnum].amperage); in pmu_battery_proc_show()
897 seq_printf(m, "voltage : %d\n", pmu_batteries[batnum].voltage); in pmu_battery_proc_show()
898 seq_printf(m, "time rem. : %d\n", pmu_batteries[batnum].time_remaining); in pmu_battery_proc_show()
2662 EXPORT_SYMBOL(pmu_batteries);