Lines Matching refs:pmu_cur_battery
182 static int pmu_cur_battery; variable
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()
832 pmu_cur_battery = (pmu_cur_battery + 1) % pmu_battery_count; in done_battery_state_smart()
847 2, PMU_SMART_BATTERY_STATE, pmu_cur_battery+1); in query_battery_state()