Lines Matching +full:multi +full:- +full:host

7 #include <phosphor-logging/lg2.hpp>
10 #include <xyz/openbmc_project/State/Host/server.hpp>
27 {"chassis-on", Chassis::Transition::On},
28 {"chassis-off", Chassis::Transition::Off},
29 {"chassis-cycle", Chassis::Transition::PowerCycle}};
32 constexpr auto hostIface = "xyz.openbmc_project.State.Host";
54 /* So far, there are two modes for multi-host power control in Handler()
55 - host select button mode, e.g.: Yosemite V2 in Handler()
56 only one power button with host select switch, in Handler()
57 which's interface for handling target host, in Handler()
59 - multi power button mode, e.g.: Greatlakes in Handler()
72 if (gpioConfig.contains("multi-action")) in Handler()
75 const auto& multiActCfg = gpioConfig["multi-action"]; in Handler()
82 mapEntry[duration] = chassisPwrCtl->second; in Handler()
192 lg2::info("Registering debug host selector button handler"); in Handler()
230 return objectData.begin()->first; in getService()
243 lg2::info("Host selector dbus object not available"); in getHostSelectorValue()
244 throw std::invalid_argument("Host selector dbus object not available"); in getHostSelectorValue()
261 lg2::error("Error reading host selector position: {ERROR}", "ERROR", e); in getHostSelectorValue()
276 return Host::HostState::Off != in poweredOn()
277 Host::convertHostStateFromString(std::get<std::string>(state)); in poweredOn()
287 std::variant<Host::Transition, Chassis::Transition> transition; in handlePowerEvent()
297 lg2::info("Multi-host system detected : {POSITION}", "POSITION", in handlePowerEvent()
308 …"handlePowerEvent : BMC selected on multi-host system. ignoring power and reset button events..."); in handlePowerEvent()
317 for (const auto& iter : multiPwrBtnActConf[stoi(hostNumStr) - 1]) in handlePowerEvent()
335 transition = Host::Transition::On; in handlePowerEvent()
339 transition = Host::Transition::Off; in handlePowerEvent()
351 /* multi host system : in handlePowerEvent()
352 hosts (1 to N) - host shutdown in handlePowerEvent()
353 bmc (0) - sled cycle in handlePowerEvent()
354 single host system : in handlePowerEvent()
355 host(0) - host shutdown in handlePowerEvent()
390 transition = Host::Transition::ForceWarmReboot; in handlePowerEvent()
392 transition = Host::Transition::Reboot; in handlePowerEvent()
492 lg2::error("Host selector service not available"); in increaseHostSelectorPosition()
519 lg2::error("Error modifying host selector position : {ERROR}", "ERROR", in increaseHostSelectorPosition()
533 "Failed power process debug host selector button press : {ERROR}", in debugHostSelectorReleased()