Home
last modified time | relevance | path

Searched refs:HostState (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/phosphor-state-manager/
H A Dhost_state_manager.cpp65 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()
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()
297 this->currentHostState(server::Host::HostState::Off); in sysStateChangeJobRemoved()
306 this->currentHostState(server::Host::HostState::Running); in sysStateChangeJobRemoved()
352 server::Host::HostState::Running)) in sysStateChangeJobNew()
[all …]
H A Dhypervisor_state_manager.cpp47 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 Dhost_state_manager_main.cpp18 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 Ddiscover_system_state.cpp37 using HostState = sdbusplus::client::xyz::openbmc_project::state::Host<>; typedef
180 bus, hostPath, HostState::interface, "RestartCause", in main()
184 bus, hostPath, HostState::interface, "RequestedHostTransition", in main()
207 bus, hostPath, HostState::interface, "RequestedHostTransition"); in main()
212 bus, hostPath, HostState::interface, in main()
225 bus, hostPath, HostState::interface, "RequestedHostTransition"); in main()
232 bus, hostPath, HostState::interface, "RestartCause", in main()
236 bus, hostPath, HostState::interface, in main()
H A Dscheduled_host_transition.cpp44 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 Dhypervisor_state_manager.hpp62 server::Host::HostState
63 currentHostState(server::Host::HostState value) override;
66 server::Host::HostState currentHostState() const override;
H A Dhypervisor_state_manager_main.cpp9 using HostState = sdbusplus::server::xyz::openbmc_project::state::Host; typedef
20 HostState::namespace_path::value); in main()
H A Dhost_state_manager.hpp102 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 Dpower_state.hpp10 using HostState = typedef
11 sdbusplus::xyz::openbmc_project::State::server::Host::HostState;
279 std::vector<HostState> hostPowerStates; in hostStateChanged()
294 HostState hostState = *currentHostState; in hostStateChanged()
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()
312 powerState == HostState::DiagnosticMode) in setHostPowerState()
341 std::vector<HostState> hostPowerStates; in readHostState()
[all …]
/openbmc/smbios-mdr/include/
H A Dcpuinfo_utils.hpp28 enum class HostState enum
39 extern HostState hostState;
54 using HostStateHandler = std::function<void(HostState, HostState)>;
/openbmc/phosphor-state-manager/test/
H A Dhypervisor_state.cpp22 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 Dcpuinfo_utils.cpp32 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 Dspeed_select.cpp158 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 Ddump_utils.hpp27 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 Dti_handler.cpp112 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 Ddump_manager_system.cpp158 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/openbmc/meta-facebook/meta-catalina/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dcatalina-gpio-monitor36 … 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/openpower-hw-diags/util/
H A Ddbus.hpp93 enum class HostState enum
107 void transitionHost(const HostState i_hostState);
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/dbus/power-saving-policy/
H A Dnic-4.yaml42 bound: xyz.openbmc_project.State.Host.HostState.Running
53 bound: xyz.openbmc_project.State.Host.HostState.Off
H A Dnic-2.yaml42 bound: xyz.openbmc_project.State.Host.HostState.Running
53 bound: xyz.openbmc_project.State.Host.HostState.Off
H A Dnic-1.yaml42 bound: xyz.openbmc_project.State.Host.HostState.Running
53 bound: xyz.openbmc_project.State.Host.HostState.Off
H A Dnic-3.yaml42 bound: xyz.openbmc_project.State.Host.HostState.Running
53 bound: xyz.openbmc_project.State.Host.HostState.Off
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dassert-power-good4 …ost0 xyz.openbmc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.Off
/openbmc/phosphor-post-code-manager/inc/
H A Dpost_code.hpp101 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 Dset-current-host-state@.service6 …%i xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Off"

12