/openbmc/phosphor-state-manager/ |
H A D | host_state_manager.cpp | 65 if (stateActive(getTarget(server::Host::HostState::Running)) || in determineInitialState() 69 server::Host::currentHostState(HostState::Running, true); in determineInitialState() 75 server::Host::currentHostState(HostState::Off, true); in determineInitialState() 104 {HostState::Off, std::format("obmc-host-stop@{}.target", id)}, in createSystemdTargetMaps() 105 {HostState::Running, std::format("obmc-host-startmin@{}.target", id)}, in createSystemdTargetMaps() 106 {HostState::Quiesced, std::format("obmc-host-quiesce@{}.target", id)}, in createSystemdTargetMaps() 107 {HostState::DiagnosticMode, in createSystemdTargetMaps() 130 const std::string& Host::getTarget(HostState state) in getTarget() 292 if ((newStateUnit == getTarget(server::Host::HostState::Off)) && in sysStateChangeJobRemoved() 294 (!stateActive(getTarget(server::Host::HostState::Running)))) in sysStateChangeJobRemoved() [all …]
|
H A D | hypervisor_state_manager.cpp | 47 server::Host::HostState Hypervisor::currentHostState(HostState value) in currentHostState() 57 server::Host::HostState Hypervisor::currentHostState() const in currentHostState() 69 currentHostState(server::Host::HostState::Standby); in updateCurrentHostState() 74 currentHostState(server::Host::HostState::Running); in updateCurrentHostState() 82 currentHostState(server::Host::HostState::Off); in updateCurrentHostState() 89 currentHostState(server::Host::HostState::Off); in updateCurrentHostState()
|
H A D | host_state_manager_main.cpp | 18 using HostState = sdbusplus::server::xyz::openbmc_project::state::Host; typedef 46 auto hostBusName = HostState::interface + std::to_string(hostId); in main() 47 auto hostName = std::string(HostState::namespace_path::host) + in main() 49 const auto* objPath = HostState::namespace_path::value; in main() 81 bus.request_name(HostState::interface); in main()
|
H A D | discover_system_state.cpp | 37 using HostState = sdbusplus::client::xyz::openbmc_project::state::Host<>; typedef 184 bus, hostPath, HostState::interface, "RestartCause", in main() 188 bus, hostPath, HostState::interface, "RequestedHostTransition", in main() 215 bus, hostPath, HostState::interface, "RequestedHostTransition"); in main() 220 bus, hostPath, HostState::interface, in main() 237 bus, hostPath, HostState::interface, "RequestedHostTransition"); in main() 244 bus, hostPath, HostState::interface, "RestartCause", in main() 248 bus, hostPath, HostState::interface, in main()
|
H A D | scheduled_host_transition.cpp | 44 using HostState = sdbusplus::server::xyz::openbmc_project::state::Host; typedef 97 auto hostName = std::string(HostState::namespace_path::host) + in hostTransition() 100 sdbusplus::message::object_path(HostState::namespace_path::value) / in hostTransition() 108 utils::setProperty(bus, hostPath, HostState::interface, PROPERTY_TRANSITION, in hostTransition() 113 if (HostTransition::scheduledTransition() != HostState::Transition::Off) in hostTransition() 117 convertForMessage(HostState::RestartCause::ScheduledPowerOn); in hostTransition() 118 utils::setProperty(bus, hostPath, HostState::interface, in hostTransition()
|
H A D | hypervisor_state_manager.hpp | 62 server::Host::HostState currentHostState( 63 server::Host::HostState value) override; 66 server::Host::HostState currentHostState() const override;
|
H A D | hypervisor_state_manager_main.cpp | 9 using HostState = sdbusplus::server::xyz::openbmc_project::state::Host; typedef 20 HostState::namespace_path::value); in main()
|
H A D | host_state_manager.hpp | 102 HostState currentHostState(HostState value) override; 324 const std::string& getTarget(HostState state); 351 std::map<HostState, std::string> stateTargetTable;
|
/openbmc/phosphor-fan-presence/ |
H A D | power_state.hpp | 10 using HostState = typedef 11 sdbusplus::xyz::openbmc_project::State::server::Host::HostState; 279 std::vector<HostState> hostPowerStates; in hostStateChanged() 287 sdbusplus::message::convert_from_string<HostState>( in hostStateChanged() 294 HostState hostState = *currentHostState; in hostStateChanged() 302 void setHostPowerState(std::vector<HostState>& hostPowerStates, in setHostPowerState() 308 if (powerState == HostState::Standby || in setHostPowerState() 309 powerState == HostState::Running || in setHostPowerState() 310 powerState == HostState::TransitioningToRunning || in setHostPowerState() 311 powerState == HostState::Quiesced || in setHostPowerState() [all …]
|
/openbmc/smbios-mdr/include/ |
H A D | cpuinfo_utils.hpp | 28 enum class HostState enum 39 extern HostState hostState; 54 using HostStateHandler = std::function<void(HostState, HostState)>;
|
/openbmc/phosphor-state-manager/test/ |
H A D | hypervisor_state.cpp | 22 EXPECT_EQ(hypObj.currentHostState(), server::Host::HostState::Off); in TEST() 27 EXPECT_EQ(hypObj.currentHostState(), server::Host::HostState::Standby); in TEST() 32 EXPECT_EQ(hypObj.currentHostState(), server::Host::HostState::Running); in TEST() 37 EXPECT_EQ(hypObj.currentHostState(), server::Host::HostState::Off); in TEST()
|
/openbmc/smbios-mdr/src/ |
H A D | cpuinfo_utils.cpp | 32 using PowerState = state::Host::HostState; 35 HostState hostState = HostState::off; 50 HostState prevState = hostState; in updateHostState() 53 hostState = HostState::off; in updateHostState() 70 hostState = HostState::postInProgress; in updateHostState() 74 hostState = HostState::postComplete; in updateHostState()
|
H A D | speed_select.cpp | 158 if (hostState != HostState::postComplete || !sst.ready()) in setPropertyCheckOrThrow() 181 if (hostState != HostState::off) in appliedConfig() 209 if (hostState != HostState::off) in baseSpeedPriorityEnabled() 397 if (hostState == HostState::off) in discoverCPUsAndConfigs() 556 static void hostStateHandler(HostState prevState, HostState) in hostStateHandler() argument 558 if (prevState == HostState::off) in hostStateHandler()
|
/openbmc/phosphor-debug-collector/ |
H A D | dump_utils.hpp | 27 using HostState = typedef 28 sdbusplus::xyz::openbmc_project::State::server::Host::HostState; 182 inline HostState getHostState() in getHostState() 187 return getStateValue<HostState>(hostStateInterface, hostStateObjPath, in getHostState() 302 return (getHostState() == HostState::Quiesced); in isHostQuiesced()
|
/openbmc/openpower-hw-diags/attn/ |
H A D | ti_handler.cpp | 112 util::dbus::transitionHost(util::dbus::HostState::Crash); in handlePhypTi() 117 util::dbus::transitionHost(util::dbus::HostState::Quiesce); in handlePhypTi() 168 util::dbus::transitionHost(util::dbus::HostState::Quiesce); in handleHbTiWithEid() 229 util::dbus::transitionHost(util::dbus::HostState::Quiesce); in handleHbTiWithSrc()
|
/openbmc/phosphor-debug-collector/dump-extensions/openpower-dumps/ |
H A D | dump_manager_system.cpp | 158 phosphor::dump::HostState hostState; in createDump() 172 bool isHostQuiesced = hostState == phosphor::dump::HostState::Quiesced; in createDump() 174 hostState == phosphor::dump::HostState::TransitioningToOff; in createDump()
|
/openbmc/openpower-hw-diags/util/ |
H A D | dbus.hpp | 93 enum class HostState enum 107 void transitionHost(const HostState i_hostState);
|
/openbmc/phosphor-post-code-manager/inc/ |
H A D | post_code.hpp | 101 StateServer::Host::HostState currentHostState = in __anon43c04d960202() 104 if (currentHostState == StateServer::Host::HostState::Off) in __anon43c04d960202()
|
/openbmc/openbmc/meta-facebook/meta-greatlakes/recipes-phosphor/gpio/greatlakes-gpio-monitor-register/ |
H A D | set-current-host-state@.service | 6 …%i xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Off"
|
/openbmc/docs/designs/ |
H A D | boot-progress.md | 23 [HostState][2] provides basic `Off`/`Running` type information along with an 47 - `xyz.openbmc_project.State.Host.HostState.Running` : `Enabled` 48 - `xyz.openbmc_project.State.Host.HostState.Quiesced` : `Quiesced` 49 - `xyz.openbmc_project.State.Host.HostState.DiagnosticMode` : `InTest`
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | catalina-gpio-monitor | 36 … xyz.openbmc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.Running 39 …ost0 xyz.openbmc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.Off
|
/openbmc/phosphor-state-manager/service_files/ |
H A D | phosphor-set-host-transition-to-off@.service | 13 …mc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.TransitioningToO…
|
H A D | phosphor-set-host-transition-to-running@.service | 14 …mc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.TransitioningToR…
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | assert-power-good | 29 xyz.openbmc_project.State.Host.HostState.Off
|
H A D | deassert-power-good | 43 xyz.openbmc_project.State.Host.HostState.Running
|