| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | callout.cpp | 69 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() argument 72 Callout(priority, locationCode, partNumber, ccin, serialNumber, in Callout() 76 Callout::Callout(CalloutPriority priority, const std::string& locationCode, in Callout() argument 85 setLocationCode(locationCode); in Callout() 114 CalloutValueType type, const std::string& locationCode, in Callout() argument 121 setLocationCode(locationCode); in Callout() 129 void Callout::setLocationCode(const std::string& locationCode) in setLocationCode() argument 131 if (locationCode.empty()) in setLocationCode() 137 std::copy(locationCode.begin(), locationCode.end(), in setLocationCode() 200 return locationCode() == right.locationCode(); in operator ==()
|
| H A D | callout.hpp | 81 Callout(CalloutPriority priority, const std::string& locationCode, 99 Callout(CalloutPriority priority, const std::string& locationCode, 145 CalloutValueType type, const std::string& locationCode, 162 const std::string& locationCode, bool trustedLocationCode) : in Callout() argument 164 CalloutValueType::registryName, locationCode, in Callout() 217 std::string locationCode() const in locationCode() function in openpower::pels::src::Callout 293 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 const std::string& locationCode); 505 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 const std::string& locationCode, uint16_t node, 919 const std::string& locationCode) const override; 1029 static std::string addLocationCodePrefix(const std::string& locationCode);
|
| H A D | data_interface.cpp | 106 const std::string& locationCode) in extractConnectorFromLocCode() argument 108 auto base = locationCode; in extractConnectorFromLocCode() 464 const std::string& locationCode) in addLocationCodePrefix() argument 470 if (locationCode.front() != 'U') in addLocationCodePrefix() 472 return locationCodePrefix + locationCode; in addLocationCodePrefix() 475 return locationCode; in addLocationCodePrefix() 478 std::string DataInterface::expandLocationCode(const std::string& locationCode, in expandLocationCode() argument 485 auto [baseLoc, connectorLoc] = extractConnectorFromLocCode(locationCode); in expandLocationCode() 506 const std::string& locationCode, uint16_t node, bool expanded) const in getInventoryFromLocCode() argument 515 auto [baseLoc, connectorLoc] = extractConnectorFromLocCode(locationCode); in getInventoryFromLocCode() [all …]
|
| H A D | src.cpp | 627 if (!entry->locationCode().empty()) in getCallouts() 629 jsonInsert(printOut, "Location Code", entry->locationCode(), 3); in getCallouts() 863 void SRC::addLocationCodeOnlyCallout(const std::string& locationCode, in addLocationCodeOnlyCallout() argument 868 auto callout = std::make_unique<src::Callout>(priority, locationCode, empty, in addLocationCodeOnlyCallout() 876 const std::optional<std::string>& locationCode, in addInventoryCallout() argument 889 if (locationCode) in addInventoryCallout() 891 locCode = *locationCode; in addInventoryCallout() 1220 locCode = dataIface.expandLocationCode(callout.locationCode, 0); in addDevicePathCallouts() 1225 callout.locationCode, e.what()); in addDevicePathCallouts() 1229 addLocationCodeOnlyCallout(callout.locationCode, priority); in addDevicePathCallouts() [all …]
|
| H A D | service_indicators.cpp | 117 locCodes.push_back(callout->locationCode()); in getLocationCodes() 149 locCodes.push_back(callout->locationCode()); in getLocationCodes()
|
| H A D | manager.cpp | 796 if (!entry->locationCode().empty()) in getResolution() 797 resolution += "Location Code: " + entry->locationCode() + in getResolution() 1058 bool Manager::clearPowerThermalDeconfigFlag(const std::string& locationCode, in clearPowerThermalDeconfigFlag() argument 1083 if ((callout->locationCode() != locationCode) || in clearPowerThermalDeconfigFlag() 1100 "LOC", locationCode); in clearPowerThermalDeconfigFlag() 1107 void Manager::hardwarePresent(const std::string& locationCode) in hardwarePresent() argument 1110 [locationCode](openpower::pels::PEL& pel) { in hardwarePresent() 1111 return Manager::clearPowerThermalDeconfigFlag(locationCode, pel); in hardwarePresent()
|
| H A D | src.hpp | 476 const std::optional<std::string>& locationCode, 577 void addLocationCodeOnlyCallout(const std::string& locationCode,
|
| H A D | device_callouts.hpp | 83 std::string locationCode; member
|
| H A D | manager.hpp | 505 static bool clearPowerThermalDeconfigFlag(const std::string& locationCode, 517 void hardwarePresent(const std::string& locationCode);
|
| /openbmc/phosphor-logging/test/openpower-pels/ |
| H A D | src_callouts_test.cpp | 173 EXPECT_EQ(calloutObjects[0]->locationCode(), "U1-P1"); in TEST() 175 EXPECT_EQ(calloutObjects[1]->locationCode(), "U1-P4"); in TEST() 177 EXPECT_EQ(calloutObjects[2]->locationCode(), "U1-P5"); in TEST() 179 EXPECT_EQ(calloutObjects[3]->locationCode(), "U1-P2"); in TEST() 181 EXPECT_EQ(calloutObjects[4]->locationCode(), "U1-P7"); in TEST() 183 EXPECT_EQ(calloutObjects[5]->locationCode(), "U1-P8"); in TEST() 185 EXPECT_EQ(calloutObjects[6]->locationCode(), "U1-P9"); in TEST() 187 EXPECT_EQ(calloutObjects[7]->locationCode(), "U1-P3"); in TEST() 189 EXPECT_EQ(calloutObjects[8]->locationCode(), "U1-P6"); in TEST() 191 EXPECT_EQ(calloutObjects[9]->locationCode(), "U1-P10"); in TEST() [all …]
|
| H A D | src_callout_test.cpp | 38 EXPECT_EQ(callout.locationCode(), "U12-P1"); in TEST() 148 EXPECT_TRUE(callout.locationCode().empty()); in TEST() 170 EXPECT_EQ(callout.locationCode(), "U99-42.5-P1-C2-E1"); in TEST() 187 EXPECT_EQ(callout.locationCode(), "123"); in TEST() 198 EXPECT_EQ(callout.locationCode(), "1234"); in TEST() 213 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 227 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 240 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 257 EXPECT_EQ(newCallout.locationCode(), callout.locationCode()); in TEST() 280 EXPECT_EQ(callout.locationCode(), "U99-P5"); in TEST() [all …]
|
| H A D | src_test.cpp | 343 EXPECT_EQ(callout->locationCode(), "UTMS-P1"); in TEST_F() 435 EXPECT_EQ(callout->locationCode(), "UTMS-P10"); in TEST_F() 572 EXPECT_EQ(callouts[0]->locationCode(), "P0-C8"); in TEST_F() 643 EXPECT_EQ(callouts[0]->locationCode(), "UXXX-P0-C8"); in TEST_F() 651 EXPECT_EQ(callouts[1]->locationCode(), "UXXX-P0-C9"); in TEST_F() 714 EXPECT_EQ(callouts[0]->locationCode(), "Ufcs-P10"); in TEST_F() 723 EXPECT_EQ(callouts[1]->locationCode(), "Ufcs-P0-C8"); in TEST_F() 758 EXPECT_EQ(callouts[0]->locationCode(), ""); in TEST_F() 816 EXPECT_EQ(callouts[0]->locationCode(), "P0-C8"); in TEST_F() 824 EXPECT_EQ(callouts[1]->locationCode(), "P0-C9"); in TEST_F() [all …]
|
| H A D | mocks.hpp | 86 void fruPresent(const std::string& locationCode) in fruPresent() argument 88 setFruPresent(locationCode); in fruPresent()
|
| /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/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-debug-collector/watchdog/ |
| H A D | watchdog_main.cpp | 94 ATTR_LOCATION_CODE_Type locationCode; in getSBECallout() local 96 memset(&locationCode, '\0', sizeof(locationCode)); in getSBECallout() 98 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in getSBECallout() 100 jsonProcCallout["LocationCode"] = locationCode; in getSBECallout()
|
| /openbmc/openpower-proc-control/extensions/phal/ |
| 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 | 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 | 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 128 size, lifeleft, partNumber, serialNumber, locationCode, 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()
|