Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/macintosh/
Dapm_emu.c37 long amperage = 0; in pmu_apm_get_power_status() local
59 amperage += pmu_batteries[i].amperage; in pmu_apm_get_power_status()
71 if (amperage < 0) { in pmu_apm_get_power_status()
73 time_units = (charge * 59) / (amperage * -1); in pmu_apm_get_power_status()
75 time_units = (charge * 16440) / (amperage * -60); in pmu_apm_get_power_status()
Dvia-pmu.c640 long amperage, voltage, time, max; in done_battery_state_ohare() local
667 amperage = req->reply[5]; in done_battery_state_ohare()
669 if (amperage > 200) in done_battery_state_ohare()
670 vb += ((amperage - 200) * 15)/100; in done_battery_state_ohare()
685 if (amperage > 0) in done_battery_state_ohare()
686 time = (charge * 16440) / amperage; in done_battery_state_ohare()
690 amperage = -amperage; in done_battery_state_ohare()
692 charge = max = amperage = voltage = time = 0; in done_battery_state_ohare()
697 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_ohare()
727 int amperage; in done_battery_state_smart() local
[all …]
/linux-3.4.99/include/linux/
Dpmu.h191 signed int amperage; /* current, positive if charging */ member
/linux-3.4.99/drivers/power/
Dpmu_battery.c111 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property()