Lines Matching +defs:is +defs:string

11 // distributed under the License is distributed on an "AS IS" BASIS,
51 #include <string>
120 int8_t getChassisSerialNumber(sdbusplus::bus_t& bus, std::string& serial)
122 std::string objpath = "/xyz/openbmc_project/FruDevice";
123 std::string intf = "xyz.openbmc_project.FruDeviceManager";
124 std::string service = getService(bus, intf, objpath);
151 std::string& result = std::get<std::string>(variant);
173 static std::string i2cBus = "/dev/i2c-" + std::to_string(bus);
177 const std::string match = "Baseboard/PFR";
219 const std::string& objPath = softObject.first;
220 const std::string& serviceName = softObject.second.begin()->first;
282 ipmi::RspType<std::string> ipmiOEMGetBmcVersionString()
284 static std::string version{};
294 std::string line{};
302 std::string v = sm[1].str();
324 std::string serial;
334 // as it is checked in getChassisSerialNumber
366 // UUID is in RFC4122 format. Ex: 61a39523-78f2-11e5-9862-e6402cfc3223
367 std::string guid = buf;
369 std::string objpath = "/xyz/openbmc_project/control/host0/systemGUID";
370 std::string intf = "xyz.openbmc_project.Common.UUID";
372 std::string service = getService(*dbus, intf, objpath);
445 std::string idString((char*)data->biosId, data->biosIDLength);
457 std::string service = getService(*dbus, biosVersionIntf, biosActiveObjPath);
467 bool getActiveHSCSoftwareVersionInfo(std::string& hscVersion, size_t hscNumber)
472 std::string hsbpObjPath =
478 hscVersion = std::get<std::string>(hscVersionValue);
494 std::string hscVersion;
509 // Major version is FPGA_VER and Minor version is SECURITY_REV
533 std::string bmcVersion;
550 std::string meVersion;
571 std::variant<std::string,
597 std::string service =
604 std::string& idString = std::get<std::string>(variant);
619 std::string readBuf = {0};
700 // AIC is available so that BIOS will not timeout repeatly which leads to
720 std::string service =
749 std::string firmware;
753 /* make sure the status is 0, 1, or 2 as per the spec */
758 /* make sure the target is 0, 1, 2, or 4 as per the spec */
763 /*orignal OEM command is to record OEM SEL.
766 std::string buildInfo;
767 std::string action;
810 static const std::string openBMCMessageRegistryVersion("0.1");
811 std::string redfishMsgID = "OpenBMC." + openBMCMessageRegistryVersion;
832 std::string firmwareInstanceStr =
834 std::string message("[firmware update] " + firmwareInstanceStr +
903 std::string service =
912 static bool cpuPresent(const std::string& cpuName)
918 std::string cpuPresencePath = cpuPresencePathPrefix + cpuName;
1089 std::string service =
1096 convertPolicyFromString(std::get<std::string>(variant)) ==
1103 convertPolicyFromString(std::get<std::string>(variant)) ==
1114 "PROP=%s", std::get<std::string>(variant).c_str()));
1117 // TODO needs to check if it is multi-node products,
1118 // policy is only supported on node 3/4
1140 // TODO needs to check if it is multi-node products,
1141 // policy is only supported on node 3/4
1172 std::string service =
1207 if (std::get<std::string>(value) ==
1243 if (std::get<std::string>(properties["Origin"]) ==
1317 "ipmiOEMSetUser2Activation: more than one user is enabled.");
1320 // Check the user 2 is enabled or not
1345 const std::string userNameRaw(
1368 // password / priv setting is failed.
1369 ipmiUserSetUserName(ipmiDefaultUserId, static_cast<std::string>(""));
1371 "ipmiOEMSetUser2Activation: password / priv setting is failed.");
1401 * @param[in] Event message string
1406 static void atScaleDebugEventlog(std::string msg, int severity)
1408 std::string eventStr = "OpenBMC.0.1." + msg;
1446 // 0 for root user and 1 for AtScaleDebug is allowed
1510 std::map<uint8_t, std::string> offsetObjPath = {
1515 int8_t getLEDState(sdbusplus::bus_t& bus, const std::string& intf,
1516 const std::string& objPath, uint8_t& state)
1520 std::string service = getService(bus, intf, objPath);
1523 std::string strState = std::get<std::string>(stateValue);
1585 boost::process::v1::ipstream is;
1586 std::vector<std::string> data;
1587 std::string line;
1590 boost::process::v1::std_out > is);
1592 while (c1.running() && std::getline(is, line) && !line.empty())
1691 boost::container::flat_map<std::string, ipmi::DbusVariant>& resp)
1745 boost::container::flat_map<std::string, ipmi::DbusVariant> profileData;
1752 std::vector<std::string>* supported =
1753 std::get_if<std::vector<std::string>>(&profileData["Supported"]);
1758 std::string mode;
1818 boost::container::flat_map<std::string, ipmi::DbusVariant> profileData;
1826 std::string* current = std::get_if<std::string>(&profileData["Current"]);
1860 static std::string getConfigPath(const std::string& name)
1869 std::string path;
1883 return pair.first.find(name) != std::string::npos;
1893 static boost::container::flat_map<std::string, PropertyMap> getPidConfigs()
1895 boost::container::flat_map<std::string, PropertyMap> ret;
1940 boost::container::flat_map<std::string, PropertyMap> data = getPidConfigs();
1956 std::string type = std::get<std::string>(findClass->second);
1992 boost::container::flat_map<std::string, PropertyMap> data = getPidConfigs();
2012 std::string type = std::get<std::string>(findClass->second);
2047 std::string pathName;
2060 std::string path = getConfigPath(pathName);
2112 std::string type = std::get<std::string>(findClass->second);
2130 // tcontrol is handled in peci now
2151 std::string pathName;
2167 std::string path = getConfigPath(pathName);
2215 std::string type = std::get<std::string>(findClass->second);
2245 DataLen should be 1, but host is sending us an extra bit. As the
2297 int setCRConfig(ipmi::Context::ptr& ctx, const std::string& property,
2319 ipmi::Context::ptr& ctx, const std::string& property,
2321 const std::string& service = "xyz.openbmc_project.PSURedundancy",
2381 "PSU Ranking is larger than current PSU number");
2438 std::string algoName;
2504 // Minimum Rotation period is One day (86400 seconds) and Max
2505 // Rotation Period is 6 month (0xf53700 seconds)
2542 std::string* pStatus = std::get_if<std::string>(&value);
2608 std::string* pAlgo = std::get_if<std::string>(&value);
2705 static const std::array<std::string, maxFaultType> faultNames = {
2716 static const std::array<std::array<std::string, groupSize>, groupNum>
2804 // Non-Critical, Critical, Non-Recoverable, (Byte 4) is faultGroup,
2972 std::get<std::string>(varRestrMode)));
2982 // fall through, let us not worry about SpecialMode property, which is
2989 std::get<std::string>(varSpecialMode)));
3047 std::get<std::string>(varRestrMode));
3082 // Manufacturing mode is reserved. So can't enable this mode.
3171 std::string service =
3178 std::get<std::string>(variant)))
3208 "PROP=%s", std::get<std::string>(variant).c_str()));
3264 std::string service =
3326 std::string typeName;
3401 std::string typeName;
3513 std::string service = getService(*dbus, enabledIntf, oneTimePath);
3531 Mode::convertModesFromString(std::get<std::string>(variant));
3537 if (std::get<std::string>(variant) == httpBootMode)
3544 std::get<std::string>(variant));
3622 std::string service = getService(*dbus, enabledIntf, oneTimePath);
3628 * Check if the current boot setting is onetime or permanent, if the
3629 * request in the command is otherwise, then set the "Enabled"
3633 * Once the onetime/permanent setting is applied, then the bootMode
3634 * and bootSource is updated for the corresponding object.
3649 std::string bootMode =
3651 std::string bootSource = httpBootMode;
3672 boost::container::flat_map<std::string, BasicVariantType>;
3692 std::string pathName = object.first;
3695 std::string serviceName = serviceIface.first;
3749 std::string i2cBus = "/dev/i2c-" + std::to_string(bus);
3772 const std::string& name)
3775 std::string serviceName;
3886 // for now this is hard coded; really this number is dependent on
3911 "OEM IPMI command: Read & write count are 0 which is invalid ");
3919 // Check if readRegister is an FIFO read register
3924 "OEM IPMI command: Register is not a Read FIFO ");
3929 "OEM IPMI command: Register is a Read FIFO ");
3965 "OEM IPMI command: Register is a Single Byte Register ");
3983 "OEM IPMI command: Register identifier is not valid.It should "