Home
last modified time | relevance | path

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

12

/openbmc/phosphor-bmc-code-mgmt/common/include/
H A Dhost_power.hpp11 sdbusplus::client::xyz::openbmc_project::state::Host<>::HostState::Running;
13 sdbusplus::client::xyz::openbmc_project::state::Host<>::HostState::Off;
15 using HostState = typedef
16 sdbusplus::client::xyz::openbmc_project::state::Host<>::HostState;
26 HostState state);
29 static sdbusplus::async::task<HostState> getState(
/openbmc/phosphor-state-manager/
H A Dhost_state_manager.cpp66 if (stateActive(getTarget(server::Host::HostState::Running)) || in determineInitialState()
70 server::Host::currentHostState(HostState::Running, true); in determineInitialState()
76 server::Host::currentHostState(HostState::Off, true); in determineInitialState()
106 {HostState::Off, std::format("obmc-host-stop@{}.target", id)}, in createSystemdTargetMaps()
107 {HostState::Running, std::format("obmc-host-startmin@{}.target", id)}, in createSystemdTargetMaps()
108 {HostState::Quiesced, std::format("obmc-host-quiesce@{}.target", id)}, in createSystemdTargetMaps()
109 {HostState::DiagnosticMode, in createSystemdTargetMaps()
132 const std::string& Host::getTarget(HostState state) in getTarget()
294 if ((newStateUnit == getTarget(server::Host::HostState::Off)) && in sysStateChangeJobRemoved()
296 (!stateActive(getTarget(server::Host::HostState::Running)))) in sysStateChangeJobRemoved()
[all …]
H A Ddiscover_system_state.cpp37 using HostState = sdbusplus::client::xyz::openbmc_project::state::Host<>; typedef
209 bus, hostPath, HostState::interface, in main()
210 HostState::property_names::restart_cause, in main()
214 bus, hostPath, HostState::interface, in main()
215 HostState::property_names::requested_host_transition, in main()
242 bus, hostPath, HostState::interface, in main()
243 HostState::property_names::requested_host_transition); in main()
248 bus, hostPath, HostState::interface, in main()
249 HostState::property_names::requested_host_transition, in main()
265 bus, hostPath, HostState::interface, in main()
[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 Dscheduled_host_transition.cpp44 using HostState = sdbusplus::server::xyz::openbmc_project::state::Host; typedef
94 auto hostName = std::string(HostState::namespace_path::host) + in hostTransition()
97 sdbusplus::message::object_path(HostState::namespace_path::value) / in hostTransition()
105 utils::setProperty(bus, hostPath, HostState::interface, in hostTransition()
106 HostState::property_names::requested_host_transition, in hostTransition()
111 if (HostTransition::scheduledTransition() != HostState::Transition::Off) in hostTransition()
115 convertForMessage(HostState::RestartCause::ScheduledPowerOn); in hostTransition()
116 utils::setProperty(bus, hostPath, HostState::interface, in hostTransition()
117 HostState::property_names::restart_cause, resCause); in hostTransition()
H A Dhypervisor_state_manager.hpp61 server::Host::HostState currentHostState(
62 server::Host::HostState value) override;
65 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.hpp105 HostState currentHostState(HostState value) override;
328 const std::string& getTarget(HostState state);
355 std::map<HostState, std::string> stateTargetTable;
/openbmc/phosphor-fan-presence/
H A Dpower_state.hpp9 using HostState = typedef
10 sdbusplus::xyz::openbmc_project::State::server::Host::HostState;
278 std::vector<HostState> hostPowerStates; in hostStateChanged()
286 sdbusplus::message::convert_from_string<HostState>( in hostStateChanged()
293 HostState hostState = *currentHostState; in hostStateChanged()
301 void setHostPowerState(std::vector<HostState>& hostPowerStates, in setHostPowerState()
307 if (powerState == HostState::Standby || in setHostPowerState()
308 powerState == HostState::Running || in setHostPowerState()
309 powerState == HostState::TransitioningToRunning || in setHostPowerState()
310 powerState == HostState::Quiesced || in setHostPowerState()
[all …]
/openbmc/entity-manager/src/entity_manager/
H A Dpower_status_monitor.cpp14 using HostState = sdbusplus::common::xyz::openbmc_project::state::Host; typedef
17 std::format("{}/{}{}", HostState::namespace_path::value,
18 HostState::namespace_path::host, 0);
27 std::string(HostState::interface) + "'", in PowerStatusMonitor()
68 HostState::interface, power::path, em_utils::properties::interface, in getInitialPowerStatus()
69 em_utils::properties::get, HostState::interface, power::property); in getInitialPowerStatus()
/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/pldm/oem/meta/libpldmresponder/
H A Dfile_io_type_power_control.cpp8 using HostState = sdbusplus::common::xyz::openbmc_project::state::Host; typedef
60 std::format("{}/{}{}", HostState::namespace_path::value, in write()
61 HostState::namespace_path::host, slotNum); in write()
62 dbusMapping.interface = HostState::interface; in write()
64 HostState::property_names::requested_host_transition; in write()
/openbmc/phosphor-pid-control/
H A Dhoststatemonitor.hpp15 using HostState = sdbusplus::common::xyz::openbmc_project::state::Host; typedef
81 propertiesChangedNamespace(HOST_STATE_PATH, HostState::interface), in startMonitoring()
103 values.find(HostState::property_names::current_host_state); in handleStateChange()
130 method.append(HostState::interface, in getInitialState()
131 HostState::property_names::current_host_state); in getInitialState()
/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-host-ipmid/
H A Dhost-cmd-manager.cpp17 using HostState = sdbusplus::common::xyz::openbmc_project::state::Host; typedef
38 HostState::interface), in Manager()
177 if (properties.find(HostState::property_names::requested_host_transition) == in clearQueueOnPowerOn()
184 properties.at(HostState::property_names::requested_host_transition)); in clearQueueOnPowerOn()
/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/phosphor-bmc-code-mgmt/eeprom-device/pt5161l/
H A Dpt5161l.cpp68 std::optional<HostPowerInf::HostState>
71 return HostPowerInf::HostState::Running; in getHostStateToQueryVersion()
H A Dpt5161l.hpp11 std::optional<HostPowerInf::HostState> getHostStateToQueryVersion() final;
/openbmc/phosphor-bmc-code-mgmt/common/src/
H A Dhost_power.cpp44 HostState state) in setState()
80 sdbusplus::async::task<HostState> HostPower::getState( in getState()
/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/openpower-hw-diags/util/
H A Ddbus.hpp93 enum class HostState enum
107 void transitionHost(const HostState i_hostState);

12