Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/macintosh/
A Dapm_emu.c26 long amperage = 0; in pmu_apm_get_power_status() local
48 amperage += pmu_batteries[i].amperage; in pmu_apm_get_power_status()
60 if (amperage < 0) { in pmu_apm_get_power_status()
62 time_units = (charge * 59) / (amperage * -1); in pmu_apm_get_power_status()
64 time_units = (charge * 16440) / (amperage * -60); in pmu_apm_get_power_status()
A Dvia-pmu.c700 long amperage, voltage, time, max; in done_battery_state_ohare() local
727 amperage = req->reply[5]; in done_battery_state_ohare()
729 if (amperage > 200) in done_battery_state_ohare()
745 if (amperage > 0) in done_battery_state_ohare()
750 amperage = -amperage; in done_battery_state_ohare()
757 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_ohare()
788 int amperage; in done_battery_state_smart() local
797 capa = max = amperage = voltage = 0; in done_battery_state_smart()
827 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_smart()
829 if (amperage) { in done_battery_state_smart()
[all …]
/linux-6.3-rc2/include/linux/
A Dpmu.h70 signed int amperage; /* current, positive if charging */ member
/linux-6.3-rc2/drivers/power/supply/
A Dpmu_battery.c111 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property()

Completed in 10 milliseconds