Searched refs:amperage (Results 1 – 4 of 4) sorted by relevance
26 long amperage = 0; in pmu_apm_get_power_status() local48 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()
693 long amperage, voltage, time, max; in done_battery_state_ohare() local720 amperage = req->reply[5]; in done_battery_state_ohare()722 if (amperage > 200) in done_battery_state_ohare()723 vb += ((amperage - 200) * 15)/100; in done_battery_state_ohare()738 if (amperage > 0) in done_battery_state_ohare()739 time = (charge * 16440) / amperage; in done_battery_state_ohare()743 amperage = -amperage; in done_battery_state_ohare()745 charge = max = amperage = voltage = time = 0; in done_battery_state_ohare()750 pmu_batteries[pmu_cur_battery].amperage = amperage; in done_battery_state_ohare()781 int amperage; in done_battery_state_smart() local[all …]
70 signed int amperage; /* current, positive if charging */ member
111 val->intval = pbi->amperage * 1000; /* mA -> µA */ in pmu_bat_get_property()