Home
last modified time | relevance | path

Searched refs:hostState (Results 1 – 23 of 23) sorted by relevance

/openbmc/smbios-mdr/src/
H A Dcpuinfo_utils.cpp35 HostState hostState = HostState::off; variable
50 HostState prevState = hostState; in updateHostState()
53 hostState = HostState::off; in updateHostState()
70 hostState = HostState::postInProgress; in updateHostState()
74 hostState = HostState::postComplete; in updateHostState()
76 DEBUG_PRINT << "new host state: " << static_cast<int>(hostState) << "\n"; in updateHostState()
78 if (prevState != hostState) in updateHostState()
82 cb(prevState, hostState); 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()
H A Dcpuinfo_main.cpp384 if (hostState != HostState::postComplete || in getPPIN()
/openbmc/phosphor-buttons/src/
H A Dhost_then_chassis_poweroff.cpp20 constexpr auto hostState = "xyz.openbmc_project.State.Host"; variable
27 constexpr auto hostState = "/xyz/openbmc_project/state/host0"; variable
35 constexpr auto hostState = "xyz.openbmc_project.State.Host"; variable
138 bus.new_method_call(service::hostState, object_path::hostState, in hostTransition()
140 method.append(interface::hostState, "RequestedHostTransition", state); in hostTransition()
/openbmc/phosphor-pid-control/sensors/
H A Dpluggable.cpp36 auto& hostState = HostStateMonitor::getInstance(); in getFailed() local
37 if (!hostState.isPowerOn()) in getFailed()
H A Dhost.cpp105 auto& hostState = HostStateMonitor::getInstance(); in getFailed() local
106 if (!hostState.isPowerOn()) in getFailed()
/openbmc/phosphor-debug-collector/dump-extensions/openpower-dumps/
H A Ddump_manager_system.cpp158 phosphor::dump::HostState hostState; in createDump() local
162 hostState = phosphor::dump::getHostState(); in createDump()
172 bool isHostQuiesced = hostState == phosphor::dump::HostState::Quiesced; in createDump()
174 hostState == phosphor::dump::HostState::TransitioningToOff; in createDump()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Drepository.hpp35 TransmissionState hostState; member
46 uint16_t flags, TransmissionState hostState, in PELAttributes()
50 severity(sev), actionFlags(flags), hostState(hostState), in PELAttributes()
H A Duser_header.cpp251 std::string hostState{"Invalid"}; in getJSON() local
257 hostState = iter->second; in getJSON()
276 jsonInsert(uh, "Host Transmission", hostState, 1); in getJSON()
H A Dhost_notifier.cpp97 if ((a.hostState == TransmissionState::acked) || in enqueueRequired()
98 (a.hostState == TransmissionState::badPEL)) in enqueueRequired()
133 if (a.hostState == TransmissionState::acked) in notifyRequired()
H A Drepository.cpp395 if ((attr != _pelAttributes.end()) && (attr->second.hostState != state)) in setPELHostTransState()
468 attr->second.hostState = pel.hostTransmissionState(); in updatePEL()
718 return pel.hostState == TransmissionState::acked; in removePELs()
722 return pel.hostState == TransmissionState::sent; in removePELs()
H A Ddata_interface.cpp52 constexpr auto hostState = "/xyz/openbmc_project/state/host0"; variable
71 constexpr auto hostState = "xyz.openbmc_project.State.Host"; variable
130 bus, object_path::hostState, interface::bootProgress, "BootProgress", in DataInterface()
193 bus, object_path::hostState, interface::hostState, "CurrentHostState", in DataInterface()
/openbmc/bmcweb/redfish-core/lib/
H A Dhypervisor_system.hpp62 const std::string& hostState) { in getHypervisorState() argument
71 BMCWEB_LOG_DEBUG("Hypervisor state: {}", hostState); in getHypervisorState()
73 if (hostState == "xyz.openbmc_project.State.Host.HostState.Running") in getHypervisorState()
80 else if (hostState == "xyz.openbmc_project.State.Host.HostState." in getHypervisorState()
88 else if (hostState == "xyz.openbmc_project.State.Host.HostState." in getHypervisorState()
96 else if (hostState == "xyz.openbmc_project.State.Host.HostState." in getHypervisorState()
104 else if (hostState == "xyz.openbmc_project.State.Host.HostState." in getHypervisorState()
112 else if (hostState == in getHypervisorState()
H A Dsystems.hpp462 const std::string& hostState) { in getHostState() argument
477 BMCWEB_LOG_DEBUG("Host state: {}", hostState); in getHostState()
479 if (hostState == "xyz.openbmc_project.State.Host.HostState.Running") in getHostState()
486 else if (hostState == in getHostState()
494 else if (hostState == in getHostState()
503 hostState == in getHostState()
512 hostState == in getHostState()
/openbmc/webui-vue/src/store/modules/
H A DGlobalStore.js16 const serverStateMapper = (hostState) => {
17 switch (hostState) {
/openbmc/smbios-mdr/include/
H A Dcpuinfo_utils.hpp39 extern HostState hostState;
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp109 bool hostState = false; in TEST_F() local
112 [&hostState, &called](bool state) { in TEST_F()
113 hostState = state; in TEST_F()
122 EXPECT_TRUE(hostState); in TEST_F()
131 EXPECT_FALSE(hostState); in TEST_F()
H A Drepository_test.cpp338 EXPECT_EQ((*a).get().hostState, TransmissionState::newPEL); in TEST_F()
344 EXPECT_EQ((*a).get().hostState, TransmissionState::acked); in TEST_F()
358 EXPECT_EQ((*a).get().hostState, TransmissionState::acked); in TEST_F()
/openbmc/phosphor-fan-presence/
H A Dpower_state.hpp293 HostState hostState = *currentHostState; in hostStateChanged() local
295 hostPowerStates.emplace_back(hostState); in hostStateChanged()
/openbmc/phosphor-webui/app/common/services/
H A Dapi-utils.js142 var hostState = content.properties.CurrentHostState;
143 if (hostState === Constants.HOST_STATE_TEXT.on_code) {
147 } else if (hostState === Constants.HOST_STATE_TEXT.error_code) {
182 var hostState = content.properties.CurrentHostState;
183 if (hostState === pollState) {
196 } else if (hostState === Constants.HOST_STATE_TEXT.error_code) {
224 var hostState = content.properties.CurrentHostState;
225 if (hostState === Constants.HOST_STATE_TEXT.off_code) {
/openbmc/openpower-hw-diags/util/
H A Ddbus.cpp299 std::string hostState(std::get<std::string>(value)); in hostRunningState() local
300 if (hostState == "xyz.openbmc_project.State.Host.HostState." in hostRunningState()
/openbmc/phosphor-logging/
H A Dlog_manager.cpp384 auto hostState = std::get<Host::HostState>(property); in checkAndQuiesceHost() local
385 if (hostState != Host::HostState::Running) in checkAndQuiesceHost()
/openbmc/openbmc-tools/openbmctool/
H A Dopenbmctool.py1406 hostState = json.loads(res.text)['data'].split('.')[-1]
1414 …outDict = {"Chassis Power State" : chassisState, "Host Power State" : hostState, "BMC Power State"…
1417 …return "Chassis Power State: " +chassisState + "\nHost Power State: " + hostState + "\nBMC Power S…