/openbmc/openpower-vpd-parser/vpd-manager/ |
H A D | reader_impl.cpp | 38 bool ReaderImpl::isValidLocationCode(const LocationCode& locationCode) const in isValidLocationCode() 40 if ((locationCode.length() < UNEXP_LOCATION_CODE_MIN_LENGTH) || in isValidLocationCode() 41 (locationCode[0] != 'U') || in isValidLocationCode() 42 ((locationCode.find("fcs", 1, 3) == std::string::npos) && in isValidLocationCode() 43 (locationCode.find("mts", 1, 3) == std::string::npos))) in isValidLocationCode() 52 const LocationCode& locationCode, const NodeNumber& nodeNumber, in getExpandedLocationCode() argument 57 if (!isValidLocationCode(locationCode)) in getExpandedLocationCode() 61 Argument::ARGUMENT_VALUE(locationCode.c_str())); in getExpandedLocationCode() 63 auto iterator = frusLocationCode.find(locationCode); in getExpandedLocationCode() 71 Argument::ARGUMENT_VALUE(locationCode.c_str())); in getExpandedLocationCode() [all …]
|
H A D | reader_impl.hpp | 42 const inventory::LocationCode& locationCode, 53 const inventory::LocationCode& locationCode, 63 const inventory::LocationCode& locationCode, 71 bool isValidLocationCode(const inventory::LocationCode& locationCode) const; 80 const inventory::LocationCode& locationCode) const;
|
H A D | manager.cpp | 53 [this](const std::string& locationCode, in Manager() 55 return this->getFRUsByUnexpandedLocationCode(locationCode, in Manager() 61 [this](const std::string& locationCode) -> inventory::ListOfPaths { in Manager() argument 62 return this->getFRUsByExpandedLocationCode(locationCode); in Manager() 67 [this](const std::string& locationCode, in Manager() 69 return this->getExpandedLocationCode(locationCode, nodeNumber); in Manager() 530 const LocationCode& locationCode, const NodeNumber nodeNumber) in getFRUsByUnexpandedLocationCode() argument 533 return read.getFrusAtLocation(locationCode, nodeNumber, fruLocationCode); in getFRUsByUnexpandedLocationCode() 537 Manager::getFRUsByExpandedLocationCode(const LocationCode& locationCode) in getFRUsByExpandedLocationCode() argument 540 return read.getFRUsByExpandedLocationCode(locationCode, fruLocationCode); in getFRUsByExpandedLocationCode() [all …]
|
H A D | manager.hpp | 79 const std::string& locationCode, const uint16_t nodeNumber); 92 getFRUsByExpandedLocationCode(const std::string& locationCode); 104 std::string getExpandedLocationCode(const std::string& locationCode,
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | callout.cpp | 81 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() argument 84 Callout(priority, locationCode, partNumber, ccin, serialNumber, in Callout() 88 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() argument 97 setLocationCode(locationCode); in Callout() 126 CalloutValueType type, const std::string& locationCode, in Callout() argument 133 setLocationCode(locationCode); in Callout() 141 void Callout::setLocationCode(const std::string& locationCode) in setLocationCode() argument 143 if (locationCode.empty()) in setLocationCode() 149 std::copy(locationCode.begin(), locationCode.end(), in setLocationCode() 212 return locationCode() == right.locationCode(); in operator ==()
|
H A D | callout.hpp | 79 Callout(CalloutPriority priority, const std::string& locationCode, 97 Callout(CalloutPriority priority, const std::string& locationCode, 143 CalloutValueType type, const std::string& locationCode, 160 const std::string& locationCode, bool trustedLocationCode) : in Callout() argument 162 CalloutValueType::registryName, locationCode, in Callout() 215 std::string locationCode() const in locationCode() function in openpower::pels::src::Callout 291 void setLocationCode(const std::string& locationCode);
|
H A D | fapi_data_process.cpp | 41 ATTR_LOCATION_CODE_Type locationCode; member 50 memset(&locationCode, '\0', sizeof(locationCode)); in TargetInfo() 118 targetInfo->locationCode); in pdbgCallbackToGetTgtReqAttrsVal() 352 std::string locationCode = std::string(targetInfo.locationCode); in convertFAPItoPELformat() local 355 locationCode); in convertFAPItoPELformat() 395 std::string locationCode = std::string(targetInfo.locationCode); in convertFAPItoPELformat() local 398 locationCode); in convertFAPItoPELformat() 424 jsonCalloutData["LocationCode"] = locationCode; in convertFAPItoPELformat()
|
H A D | data_interface.hpp | 380 virtual std::string expandLocationCode(const std::string& locationCode, 454 extractConnectorFromLocCode(const std::string& locationCode); 505 getDIProperty(const std::string& locationCode) const = 0; 590 void setFruPresent(const std::string& locationCode) in setFruPresent() argument 596 func(locationCode); in setFruPresent() 813 std::string expandLocationCode(const std::string& locationCode, 835 getInventoryFromLocCode(const std::string& locationCode, uint16_t node, 919 getDIProperty(const std::string& locationCode) const override; 1029 static std::string addLocationCodePrefix(const std::string& locationCode);
|
H A D | data_interface.cpp | 121 const std::string& locationCode) in extractConnectorFromLocCode() argument 123 auto base = locationCode; in extractConnectorFromLocCode() 481 DataInterface::addLocationCodePrefix(const std::string& locationCode) in addLocationCodePrefix() argument 487 if (locationCode.front() != 'U') in addLocationCodePrefix() 489 return locationCodePrefix + locationCode; in addLocationCodePrefix() 492 return locationCode; in addLocationCodePrefix() 495 std::string DataInterface::expandLocationCode(const std::string& locationCode, in expandLocationCode() argument 502 auto [baseLoc, connectorLoc] = extractConnectorFromLocCode(locationCode); in expandLocationCode() 524 const std::string& locationCode, uint16_t node, bool expanded) const in getInventoryFromLocCode() argument 533 auto [baseLoc, connectorLoc] = extractConnectorFromLocCode(locationCode); in getInventoryFromLocCode() [all …]
|
H A D | manager.cpp | 799 if (!entry->locationCode().empty()) in getResolution() 800 resolution += "Location Code: " + entry->locationCode() + in getResolution() 1053 bool Manager::clearPowerThermalDeconfigFlag(const std::string& locationCode, in clearPowerThermalDeconfigFlag() argument 1078 if ((callout->locationCode() != locationCode) || in clearPowerThermalDeconfigFlag() 1095 "LOC", locationCode); in clearPowerThermalDeconfigFlag() 1102 void Manager::hardwarePresent(const std::string& locationCode) in hardwarePresent() argument 1105 [locationCode](openpower::pels::PEL& pel) { in hardwarePresent() 1106 return Manager::clearPowerThermalDeconfigFlag(locationCode, pel); in hardwarePresent()
|
H A D | service_indicators.cpp | 130 locCodes.push_back(callout->locationCode()); in getLocationCodes() 162 locCodes.push_back(callout->locationCode()); in getLocationCodes()
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | src_callouts_test.cpp | 185 EXPECT_EQ(calloutObjects[0]->locationCode(), "U1-P1"); in TEST() 187 EXPECT_EQ(calloutObjects[1]->locationCode(), "U1-P4"); in TEST() 189 EXPECT_EQ(calloutObjects[2]->locationCode(), "U1-P5"); in TEST() 191 EXPECT_EQ(calloutObjects[3]->locationCode(), "U1-P2"); in TEST() 193 EXPECT_EQ(calloutObjects[4]->locationCode(), "U1-P7"); in TEST() 195 EXPECT_EQ(calloutObjects[5]->locationCode(), "U1-P8"); in TEST() 197 EXPECT_EQ(calloutObjects[6]->locationCode(), "U1-P9"); in TEST() 199 EXPECT_EQ(calloutObjects[7]->locationCode(), "U1-P3"); in TEST() 201 EXPECT_EQ(calloutObjects[8]->locationCode(), "U1-P6"); in TEST() 203 EXPECT_EQ(calloutObjects[9]->locationCode(), "U1-P10"); in TEST() [all …]
|
H A D | src_callout_test.cpp | 50 EXPECT_EQ(callout.locationCode(), "U12-P1"); in TEST() 160 EXPECT_TRUE(callout.locationCode().empty()); in TEST() 182 EXPECT_EQ(callout.locationCode(), "U99-42.5-P1-C2-E1"); in TEST() 199 EXPECT_EQ(callout.locationCode(), "123"); in TEST() 210 EXPECT_EQ(callout.locationCode(), "1234"); in TEST() 225 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 239 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 252 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 269 EXPECT_EQ(newCallout.locationCode(), callout.locationCode()); in TEST() 292 EXPECT_EQ(callout.locationCode(), "U99-P5"); in TEST() [all …]
|
H A D | src_test.cpp | 355 EXPECT_EQ(callout->locationCode(), "UTMS-P1"); in TEST_F() 447 EXPECT_EQ(callout->locationCode(), "UTMS-P10"); in TEST_F() 584 EXPECT_EQ(callouts[0]->locationCode(), "P0-C8"); in TEST_F() 655 EXPECT_EQ(callouts[0]->locationCode(), "UXXX-P0-C8"); in TEST_F() 663 EXPECT_EQ(callouts[1]->locationCode(), "UXXX-P0-C9"); in TEST_F() 726 EXPECT_EQ(callouts[0]->locationCode(), "Ufcs-P10"); in TEST_F() 735 EXPECT_EQ(callouts[1]->locationCode(), "Ufcs-P0-C8"); in TEST_F() 770 EXPECT_EQ(callouts[0]->locationCode(), ""); in TEST_F() 894 EXPECT_EQ(callouts[0]->locationCode(), "Ufcs-P1-C40"); in TEST_F() 903 EXPECT_EQ(callouts[1]->locationCode(), "Ufcs-P1"); in TEST_F() [all …]
|
/openbmc/estoraged/include/ |
H A D | util.hpp | 18 std::string locationCode; member 26 std::string& locationCode, uint64_t eraseMaxGeometry, in DeviceInfo() 30 locationCode(locationCode), eraseMaxGeometry(eraseMaxGeometry), in DeviceInfo()
|
/openbmc/openpower-debug-collector/watchdog/ |
H A D | watchdog_main.cpp | 58 ATTR_LOCATION_CODE_Type locationCode; in getSBECallout() local 60 memset(&locationCode, '\0', sizeof(locationCode)); in getSBECallout() 62 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in getSBECallout() 64 jsonProcCallout["LocationCode"] = locationCode; in getSBECallout()
|
/openbmc/openpower-vpd-parser/test/vpd-manager-test/ |
H A D | reader_test.cpp | 165 std::string locationCode = "9105.22A.SIMP10R"; in TEST_F() local 172 read.getFRUsByExpandedLocationCode(locationCode, fruLocationCode); in TEST_F() 179 locationCode = "U9105.22A.SIMP10"; in TEST_F() 182 read.getFRUsByExpandedLocationCode(locationCode, fruLocationCode); in TEST_F() 186 locationCode = "U78DAND11234567-P0"; in TEST_F() 199 read.getFRUsByExpandedLocationCode(locationCode, fruLocationCode); in TEST_F()
|
/openbmc/pldm/host-bmc/test/ |
H A D | custom_dbus_test.cpp | 9 std::string locationCode = "testLocationCode"; in TEST() local 11 CustomDBus::getCustomDBus().setLocationCode(tmpPath, locationCode); in TEST() 15 EXPECT_EQ(locationCode, retLocationCode); in TEST()
|
/openbmc/openpower-proc-control/extensions/phal/ |
H A D | phal_error.cpp | 44 ATTR_LOCATION_CODE_Type locationCode; member 53 memset(&locationCode, '\0', sizeof(locationCode)); in TargetInfo() 120 targetInfo->locationCode); in pdbgCallbackToGetTgtReqAttrsVal() 306 ATTR_LOCATION_CODE_Type locationCode = {'\0'}; in processNonFunctionalBootProc() local 308 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in processNonFunctionalBootProc() 310 jsonProcCallout["LocationCode"] = locationCode; in processNonFunctionalBootProc() 626 std::string locationCode = in processBootErrorHelper() local 627 std::string(targetInfo.locationCode); in processBootErrorHelper() 630 locationCode); in processBootErrorHelper() 674 std::string locationCode = in processBootErrorHelper() local [all …]
|
H A D | clock_logger.cpp | 113 ATTR_LOCATION_CODE_Type locationCode; in createClockDataLog() local 114 memset(&locationCode, '\0', sizeof(locationCode)); in createClockDataLog() 117 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in createClockDataLog() 126 clockDataLog.push_back(std::make_pair(ssLoc.str(), locationCode)); in createClockDataLog()
|
H A D | create_pel.cpp | 61 ATTR_LOCATION_CODE_Type locationCode; in getSBECallout() local 63 memset(&locationCode, '\0', sizeof(locationCode)); in getSBECallout() 65 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in getSBECallout() 67 jsonProcCallout["LocationCode"] = locationCode; in getSBECallout()
|
/openbmc/estoraged/src/ |
H A D | main.cpp | 95 std::string locationCode = std::move(deviceInfo->locationCode); in createStorageObjects() local 114 partNumber, serialNumber, locationCode, eraseMaxGeometry, in createStorageObjects()
|
H A D | util.cpp | 165 std::string locationCode; in findDevice() local 173 locationCode = *locationCodePtr; in findDevice() 260 luksName, locationCode, in findDevice()
|
/openbmc/estoraged/src/test/ |
H A D | util_test.cpp | 134 std::string luksName, locationCode; in TEST() local 143 EXPECT_EQ("U102020", result->locationCode); in TEST() 192 std::string luksName, locationCode; in TEST() local 201 EXPECT_EQ("U102020", result->locationCode); in TEST()
|
/openbmc/pldm/host-bmc/dbus/ |
H A D | custom_dbus.cpp | 16 location.at(path)->locationCode(value); in setLocationCode() 24 return location.at(path)->locationCode(); in getLocationCode()
|