Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/macintosh/
Dvia-pmu.c696 long pcharge, charge, vb, vmax, lmax; in done_battery_state_ohare() local
735 pcharge = (req->reply[6] << 8) + req->reply[7]; in done_battery_state_ohare()
736 if (pcharge > lmax) in done_battery_state_ohare()
737 pcharge = lmax; in done_battery_state_ohare()
738 pcharge *= 100; in done_battery_state_ohare()
739 pcharge = 100 - pcharge / lmax; in done_battery_state_ohare()
740 if (pcharge < charge) in done_battery_state_ohare()
741 charge = pcharge; in done_battery_state_ohare()