Lines Matching +defs:set +defs:value
259 // If POST complete has asserted set ignoreNextSoftReset to false to avoid
612 appState.set(PersistentState::Params::PowerState,
675 // Add this to the set of causes for this restart
680 // Clear the set for the next restart
689 lg2::info("RestartCause set to {RESTART_CAUSE}", "RESTART_CAUSE", cause);
717 // Determine the actual restart cause based on the set of causes
816 if (ec.value() != 0)
865 void PersistentState::set(Params parameter, const std::string& value)
867 stateData[getName(parameter)] = value;
1018 const std::string* value = std::get_if<std::string>(&propValue);
1019 if (value == nullptr)
1024 powerRestorePolicy = *value;
1028 const uint64_t* value = std::get_if<uint64_t>(&propValue);
1029 if (value == nullptr)
1034 powerRestoreDelay = *value / 1000000; // usec to sec
1039 const std::string* value = std::get_if<std::string>(&propValue);
1040 if (value == nullptr)
1045 acBoot = *value;
1216 static bool setGPIOOutput(const std::string& name, const int value,
1227 // Request GPIO output to specified value
1231 value);
1240 lg2::info("{GPIO_NAME} set to {GPIO_VALUE}", "GPIO_NAME", name,
1241 "GPIO_VALUE", value);
1246 const std::string& name, const int value,
1249 // Set the masked GPIO line to the specified value
1250 maskedGPIOLine.set_value(value);
1251 lg2::info("{GPIO_NAME} set to {GPIO_VALUE}", "GPIO_NAME", name,
1252 "GPIO_VALUE", value);
1255 [maskedGPIOLine, value, name](const boost::system::error_code ec) {
1256 // Set the masked GPIO line back to the opposite value
1257 maskedGPIOLine.set_value(!value);
1273 static int setGPIOOutputForMs(const ConfigData& config, const int value,
1276 // If the requested GPIO is masked, use the mask line to set the output
1279 return setMaskedGPIOOutputForMs(powerButtonMask, config.lineName, value,
1284 return setMaskedGPIOOutputForMs(resetButtonMask, config.lineName, value,
1288 // No mask set, so request and set the GPIO normally
1290 if (!setGPIOOutput(config.lineName, value, gpioLine))
1298 [gpioLine, value, name](const boost::system::error_code ec) {
1299 // Set the GPIO line back to the opposite value
1300 gpioLine.set_value(!value);
1569 lg2::error("failed to set poh counter");
1593 // Clear the restart cause set for the next restart
1599 // Set the restart cause set for this restart
1650 // Clear the restart cause set for the next restart
1667 // Set the restart cause set for this restart
2053 lg2::info("SIO_ONCONTROL value changed: {VALUE}", "VALUE",
2144 static void nmiSetEnableProperty(bool value)
2150 lg2::error("failed to set NMI source");
2157 std::variant<bool>{value});
2166 lg2::info("{GPIO_NAME} set to {GPIO_VALUE}", "GPIO_NAME",
2170 // restore the NMI_OUT GPIO line back to the opposite value
2208 bool value = true;
2214 value =
2217 "NMI Enabled propertiesChanged value: {VALUE}",
2218 "VALUE", value);
2219 nmiEnabled = value;
2241 lg2::error("failed to set NMI source");
2250 // set Enable Property
2318 for (auto& [property, value] : propertiesChanged)
2322 bool* pltRst = std::get_if<bool>(&value);
2394 // value
2446 "Polarity defined but not properly setup. Please only ActiveHigh or ActiveLow. Currently set to {POLARITY}",
2511 auto events = jsonData.value("event_configs",
2515 nmiWhenPoweredOff = events.value("NMIWhenPoweredOff", true);
2545 const ConfigData& config, bool& value)
2559 value = std::regex_match(s.value(), m, config.matchRegex.value());
2568 value = v.value();
2586 bool value = false;
2587 if (!getDbusMsgGPIOState(msg, cfg, value))
2591 onMatch(value);
2713 [&configData](boost::system::error_code ec, bool value) {
2723 setInitialValue(configData, value);
3437 // NMI button mask is already set as requested, so no change