Home
last modified time | relevance | path

Searched refs:hostState (Results 1 – 21 of 21) 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-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.cpp266 std::string hostState{"Invalid"}; in getJSON() local
272 hostState = iter->second; in getJSON()
291 jsonInsert(uh, "Host Transmission", hostState, 1); in getJSON()
H A Dhost_notifier.cpp109 if ((a.hostState == TransmissionState::acked) || in enqueueRequired()
110 (a.hostState == TransmissionState::badPEL)) in enqueueRequired()
145 if (a.hostState == TransmissionState::acked) in notifyRequired()
H A Drepository.cpp405 if ((attr != _pelAttributes.end()) && (attr->second.hostState != state)) in setPELHostTransState()
478 attr->second.hostState = pel.hostTransmissionState(); in updatePEL()
728 return pel.hostState == TransmissionState::acked; in removePELs()
732 return pel.hostState == TransmissionState::sent; in removePELs()
H A Ddata_interface.cpp66 constexpr auto hostState = "/xyz/openbmc_project/state/host0"; variable
86 constexpr auto hostState = "xyz.openbmc_project.State.Host"; variable
145 bus, object_path::hostState, interface::bootProgress, "BootProgress", in DataInterface()
208 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.hpp538 const std::string& hostState) { in getHostState() argument
553 BMCWEB_LOG_DEBUG("Host state: {}", hostState); in getHostState()
555 if (hostState == "xyz.openbmc_project.State.Host.HostState.Running") in getHostState()
562 else if (hostState == in getHostState()
570 else if (hostState == in getHostState()
579 hostState == in getHostState()
588 hostState == in getHostState()
/openbmc/webui-vue/src/store/modules/
H A DGlobalStore.js10 const serverStateMapper = (hostState) => {
11 switch (hostState) {
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp122 bool hostState = false; in TEST_F() local
125 [&hostState, &called](bool state) { in TEST_F()
126 hostState = state; in TEST_F()
135 EXPECT_TRUE(hostState); in TEST_F()
144 EXPECT_FALSE(hostState); in TEST_F()
H A Drepository_test.cpp350 EXPECT_EQ((*a).get().hostState, TransmissionState::newPEL); in TEST_F()
356 EXPECT_EQ((*a).get().hostState, TransmissionState::acked); in TEST_F()
370 EXPECT_EQ((*a).get().hostState, TransmissionState::acked); in TEST_F()
/openbmc/phosphor-fan-presence/
H A Dpower_state.hpp294 HostState hostState = *currentHostState; in hostStateChanged() local
296 hostPowerStates.emplace_back(hostState); in hostStateChanged()
/openbmc/smbios-mdr/include/
H A Dcpuinfo_utils.hpp39 extern HostState hostState;
/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.cpp300 std::string hostState(std::get<std::string>(value)); in hostRunningState() local
301 if (hostState == "xyz.openbmc_project.State.Host.HostState." in hostRunningState()
/openbmc/phosphor-logging/
H A Dlog_manager.cpp387 auto hostState = std::get<Host::HostState>(property); in checkAndQuiesceHost() local
388 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…