Home
last modified time | relevance | path

Searched refs:PowerOpState (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-buttons/src/
H A Dhost_then_chassis_poweroff.cpp55 state = PowerOpState::powerOnPress; in pressed()
69 if (state == PowerOpState::buttonNotPressed) in pressed()
72 state = PowerOpState::buttonPressed; in pressed()
82 state = PowerOpState::chassisOffStarted; in pressed()
95 if (state == PowerOpState::buttonPressedHostOffStarted) in released()
97 state = PowerOpState::buttonReleasedHostToChassisOffWindow; in released()
101 state = PowerOpState::buttonNotPressed; in released()
109 if ((state == PowerOpState::buttonPressed) && (now >= hostOffTime)) in timerHandler()
113 state = PowerOpState::buttonPressedHostOffStarted; in timerHandler()
117 else if ((state == PowerOpState::buttonPressedHostOffStarted) && in timerHandler()
[all …]
/openbmc/phosphor-buttons/inc/
H A Dhost_then_chassis_poweroff.hpp37 enum class PowerOpState enum in phosphor::button::HostThenChassisPowerOff
52 PowerButtonProfile(bus), state(PowerOpState::buttonNotPressed), in HostThenChassisPowerOff()
168 PowerOpState state;