Lines Matching refs:POWER_OPEN
552 #define POWER_OPEN(s, n) RTStrmOpenF("r", s, "/sys/class/power_supply/%s/" n, DirEntry.szName)
553 rc = POWER_OPEN(&pStrmType, "type");
562 rc = POWER_OPEN(&pStrmStatus, "online");
577 rc = POWER_OPEN(&pStrmStatus, "present");
600 rc = POWER_OPEN(&pStrmStatus, "capacity_level");
609 rc = POWER_OPEN(&pStrmStatus, "energy_full");
611 rc = POWER_OPEN(&pStrmStatus, "charge_full");
625 rc = POWER_OPEN(&pStrmStatus, "energy_now");
627 rc = POWER_OPEN(&pStrmStatus, "charge_now");
641 rc = POWER_OPEN(&pStrmStatus, "current_now");
665 #undef POWER_OPEN
680 #define POWER_OPEN(s, n) RTStrmOpenF("r", s, "/proc/acpi/ac_adapter/%s/" n, DirEntry.szName)
689 rc = POWER_OPEN(&pStrmStatus, "status");
691 rc = POWER_OPEN(&pStrmStatus, "state");
714 #undef POWER_OPEN
723 #define POWER_OPEN(s, n) RTStrmOpenF("r", s, "/proc/acpi/battery/%s/" n, DirEntry.szName)
736 rc = POWER_OPEN(&pStrmStatus, "status");
739 rc = POWER_OPEN(&pStrmStatus, "state");
744 rc = POWER_OPEN(&pStrmInfo, "info");
850 #undef POWER_OPEN