Lines Matching full:state
13 #include <xyz/openbmc_project/State/Host/client.hpp>
22 sdbusplus::client::xyz::openbmc_project::state::Host<void, void>;
25 sdbusplus::client::xyz::openbmc_project::state::Host<>::Transition::On;
27 sdbusplus::client::xyz::openbmc_project::state::Host<>::Transition::Off;
32 const auto host0ObjectPath = sdbusplus::client::xyz::openbmc_project::state::
36 constexpr const char* service = "xyz.openbmc_project.State.Host";
44 HostState state) in setState() argument
46 if (state != stateOn && state != stateOff) in setState()
48 error("Invalid power state {STATE}", "STATE", state); in setState()
52 auto client = sdbusplus::client::xyz::openbmc_project::state::Host(ctx) in setState()
57 (state == stateOn) ? transitionOn : transitionOff); in setState()
59 debug("Requested host transition to {STATE}", "STATE", state); in setState()
67 if ((co_await client.current_host_state()) == state) in setState()
69 debug("Successfully achieved state {STATE}", "STATE", state); in setState()
74 error("Failed to achieve state {STATE} before the timeout of {TIMEOUT}s", in setState()
75 "STATE", state, "TIMEOUT", transitionTimeout); in setState()
83 auto client = sdbusplus::client::xyz::openbmc_project::state::Host(ctx) in getState()
91 error("Unexpected power state: {STATE}", "STATE", res); in getState()