| /openbmc/phosphor-bmc-code-mgmt/common/include/ |
| H A D | host_power.hpp | 11 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 D | host_state_manager.cpp | 66 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 D | discover_system_state.cpp | 37 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 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 | scheduled_host_transition.cpp | 44 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 D | hypervisor_state_manager.hpp | 61 server::Host::HostState currentHostState( 62 server::Host::HostState value) override; 65 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 | 105 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 D | power_state.hpp | 9 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 D | power_status_monitor.cpp | 14 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 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/pldm/oem/meta/libpldmresponder/ |
| H A D | file_io_type_power_control.cpp | 8 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 D | hoststatemonitor.hpp | 15 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 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-host-ipmid/ |
| H A D | host-cmd-manager.cpp | 17 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 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/phosphor-bmc-code-mgmt/eeprom-device/pt5161l/ |
| H A D | pt5161l.cpp | 68 std::optional<HostPowerInf::HostState> 71 return HostPowerInf::HostState::Running; in getHostStateToQueryVersion()
|
| H A D | pt5161l.hpp | 11 std::optional<HostPowerInf::HostState> getHostStateToQueryVersion() final;
|
| /openbmc/phosphor-bmc-code-mgmt/common/src/ |
| H A D | host_power.cpp | 44 HostState state) in setState() 80 sdbusplus::async::task<HostState> HostPower::getState( in getState()
|
| /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);
|