Home
last modified time | relevance | path

Searched refs:newState (Results 1 – 20 of 20) sorted by relevance

/openbmc/phosphor-led-manager/manager/
H A Dmanager.cpp18 static void applyGroupAction(std::map<LedName, Layout::LedAction>& newState, in applyGroupAction() argument
21 if (!newState.contains(action.name)) in applyGroupAction()
23 newState[action.name] = action; in applyGroupAction()
27 auto currentAction = newState[action.name]; in applyGroupAction()
38 newState[action.name] = action; in applyGroupAction()
46 std::map<LedName, Layout::LedAction> newState; in getNewMapWithGroupPriorities() local
54 newState[action.name] = action; in getNewMapWithGroupPriorities()
57 return newState; in getNewMapWithGroupPriorities()
63 std::map<LedName, Layout::LedAction> newState; in getNewMapWithLEDPriorities() local
70 applyGroupAction(newState, action); in getNewMapWithLEDPriorities()
[all …]
/openbmc/smbios-mdr/src/
H A Dcpuinfo_utils.cpp87 void updatePowerState(const std::string& newState) in updatePowerState() argument
89 powerState = state::Host::convertHostStateFromString(newState); in updatePowerState()
93 void updateBiosDone(bool newState) in updateBiosDone() argument
95 biosDone = newState; in updateBiosDone()
99 void updateOsState(const std::string& newState) in updateOsState() argument
108 std::string full_path = newState; in updateOsState()
109 if (newState.find("xyz.") == std::string::npos) in updateOsState()
113 newState; in updateOsState()
/openbmc/phosphor-fan-presence/presence/
H A Danyof.cpp77 auto newState = in stateChanged() local
80 setPresence(fan, newState); in stateChanged()
82 if (eepromDevice && (newState != origState)) in stateChanged()
84 if (newState) in stateChanged()
95 if (newState) in stateChanged()
H A Dgpio.cpp87 bool newState = value != 0; in ioCallback() local
89 if (currentState != newState) in ioCallback()
91 getPolicy().stateChanged(newState, *this); in ioCallback()
92 currentState = newState; in ioCallback()
H A Dtach.cpp132 auto newState = in propertiesChanged() local
136 if (currentState != newState) in propertiesChanged()
138 getPolicy().stateChanged(newState, *this); in propertiesChanged()
139 currentState = newState; in propertiesChanged()
H A Dfan.cpp38 void setPresence(const Fan& fan, bool newState) in setPresence() argument
49 {"Present"s, newState}, in setPresence()
H A Dfan.hpp28 void setPresence(const Fan& fan, bool newState);
/openbmc/dbus-sensors/src/fan/
H A DTachSensor.cpp246 std::string newState = redundancy::full; in update()
255 newState = redundancy::failed; in update()
260 newState = redundancy::degraded; in update()
263 if (state != newState) in update()
269 else if (newState == redundancy::full) in update()
273 state = newState; in update()
245 std::string newState = redundancy::full; update() local
/openbmc/dbus-sensors/src/intel-cpu/
H A DIntelCPUSensorMain.cpp564 State newState = State::OFF; in detectCpu()
597 newState = State::READY; in detectCpu()
601 newState = State::ON; in detectCpu()
605 if (config.state != newState) in detectCpu()
607 if (newState != State::OFF) in detectCpu()
621 newState = State::OFF; in detectCpu()
626 newState = State::OFF; in detectCpu()
630 if (newState == State::ON) in detectCpu()
634 else if (newState == State::READY) in detectCpu()
642 config.state = newState; in detectCpu()
556 State newState = State::OFF; detectCpu() local
[all...]
/openbmc/pldm/platform-mc/
H A Ddbus_to_terminus_effecters.cpp276 uint8_t newState{}; in processHostEffecterChangeNotification() local
279 newState = in processHostEffecterChangeNotification()
285 "ERROR", e, "NEW_STATE", newState); in processHostEffecterChangeNotification()
295 stateField.push_back({PLDM_REQUEST_SET, newState}); in processHostEffecterChangeNotification()
433 uint8_t newState{}; in findNewStateValue() local
437 newState = hostEffecterInfo[effecterInfoIndex] in findNewStateValue()
445 return newState; in findNewStateValue()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Duser_header.hpp202 uint32_t newState = state << 8; in setHMCTransmissionState() local
204 _states |= newState; in setHMCTransmissionState()
/openbmc/linux/lib/zstd/common/
H A Dfse.h595 unsigned short newState; member
620 DStatePtr->state = DInfo.newState + lowBits; in FSE_updateState()
630 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbol()
643 DStatePtr->state = DInfo.newState + lowBits; in FSE_decodeSymbolFast()
H A Dfse_decompress.c170 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_internal()
197 cell->newState = 0; in FSE_buildDTable_rle()
223 dinfo[s].newState = 0; in FSE_buildDTable_raw()
/openbmc/pldm/platform-mc/test/
H A Ddbus_to_terminus_effecter_test.cpp120 auto newState = hostEffecterParser.findNewStateValue(0, 0, val1); in TEST() local
121 ASSERT_EQ(newState, 2); in TEST()
/openbmc/phosphor-fan-presence/presence/test/
H A Dfallbacktest.cpp18 void setPresence(const Fan&, bool newState) in setPresence() argument
20 if (newState) in setPresence()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dmocks.hpp76 void changeHostState(bool newState) in changeHostState() argument
78 setHostUp(newState); in changeHostState()
/openbmc/dbus-sensors/src/hwmon-temp/
H A DHwmonTempMain.cpp580 PowerState type, bool newState, in powerStateChanged()
586 if (newState) in powerStateChanged()
577 powerStateChanged(PowerState type,bool newState,boost::container::flat_map<std::string,std::shared_ptr<HwmonTempSensor>> & sensors,boost::asio::io_context & io,sdbusplus::asio::object_server & objectServer,std::shared_ptr<sdbusplus::asio::connection> & dbusConnection) powerStateChanged() argument
/openbmc/dbus-sensors/src/psu/
H A DPSUSensorMain.cpp1145 PowerState type, bool newState, in powerStateChanged()
1151 if (newState) in powerStateChanged()
1138 powerStateChanged(PowerState type,bool newState,boost::container::flat_map<std::string,std::shared_ptr<PSUSensor>> & sensors,boost::asio::io_context & io,sdbusplus::asio::object_server & objectServer,std::shared_ptr<sdbusplus::asio::connection> & dbusConnection) powerStateChanged() argument
/openbmc/fb-ipmi-oem/src/
H A Doemcommands.cpp2224 static ipmi_ret_t setDumpState(CrdState& currState, CrdState newState) in setDumpState() argument
2226 switch (newState) in setDumpState()
2241 currState = newState; in setDumpState()
/openbmc/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas.h2174 u32 newState; member