Lines Matching full:state

7 #include <xyz/openbmc_project/State/BMC/server.hpp>
8 #include <xyz/openbmc_project/State/Chassis/server.hpp>
18 constexpr auto bmcState = "xyz.openbmc_project.State.BMC";
19 constexpr auto chassisState = "xyz.openbmc_project.State.Chassis0";
20 constexpr auto hostState = "xyz.openbmc_project.State.Host";
25 constexpr auto bmcState = "/xyz/openbmc_project/state/bmc0";
26 constexpr auto chassisState = "/xyz/openbmc_project/state/chassis0";
27 constexpr auto hostState = "/xyz/openbmc_project/state/host0";
33 constexpr auto bmcState = "xyz.openbmc_project.State.BMC";
34 constexpr auto chassisState = "xyz.openbmc_project.State.Chassis";
35 constexpr auto hostState = "xyz.openbmc_project.State.Host";
38 using namespace sdbusplus::xyz::openbmc_project::State::server;
51 lg2::error("BMC not at ready state yet, cannot power on"); in pressed()
55 state = PowerOpState::powerOnPress; in pressed()
69 if (state == PowerOpState::buttonNotPressed) in pressed()
72 state = PowerOpState::buttonPressed; in pressed()
79 else if (state == PowerOpState::buttonReleasedHostToChassisOffWindow) in pressed()
82 state = PowerOpState::chassisOffStarted; in pressed()
95 if (state == PowerOpState::buttonPressedHostOffStarted) in released()
97 state = PowerOpState::buttonReleasedHostToChassisOffWindow; in released()
101 state = PowerOpState::buttonNotPressed; in released()
109 if ((state == PowerOpState::buttonPressed) && (now >= hostOffTime)) in timerHandler()
113 state = PowerOpState::buttonPressedHostOffStarted; in timerHandler()
117 else if ((state == PowerOpState::buttonPressedHostOffStarted) && in timerHandler()
122 state = PowerOpState::chassisOffStarted; in timerHandler()
132 std::variant<std::string> state = convertForMessage(transition); in hostTransition() local
135 "TRANS", std::get<std::string>(state)); in hostTransition()
140 method.append(interface::hostState, "RequestedHostTransition", state); in hostTransition()
167 std::variant<std::string> state = in chassisPowerOff() local
174 state); in chassisPowerOff()
196 std::variant<std::string> state; in isPoweredOn() local
197 result.read(state); in isPoweredOn()
200 Chassis::convertPowerStateFromString(std::get<std::string>(state)); in isPoweredOn()
223 std::variant<std::string> state; in isBmcReady() local
224 result.read(state); in isBmcReady()
226 bmcState = BMC::convertBMCStateFromString(std::get<std::string>(state)); in isBmcReady()
230 lg2::error("Failed reading BMC state interface: {}", "ERROR", e); in isBmcReady()