/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 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 | 121 const std::string& locationCode) in extractConnectorFromLocCode() argument 123 auto base = locationCode; in extractConnectorFromLocCode() 481 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 | 804 if (!entry->locationCode().empty()) in getResolution() 805 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 | service_indicators.cpp | 130 locCodes.push_back(callout->locationCode()); in getLocationCodes() 162 locCodes.push_back(callout->locationCode()); in getLocationCodes()
|
H A D | src.cpp | 634 if (!entry->locationCode().empty()) in getCallouts() 636 jsonInsert(printOut, "Location Code", entry->locationCode(), 3); in getCallouts() 870 void SRC::addLocationCodeOnlyCallout(const std::string& locationCode, in addInventoryCallout() 875 auto callout = std::make_unique<src::Callout>(priority, locationCode, empty, in addInventoryCallout() 883 const std::optional<std::string>& locationCode, in addInventoryCallout() 896 if (locationCode) in addInventoryCallout() 898 locCode = *locationCode; in addInventoryCallout() 1226 locCode = dataIface.expandLocationCode(callout.locationCode, 0); in addDevicePathCallouts() 1231 callout.locationCode, e.what()); in addDevicePathCallouts() 1235 addLocationCodeOnlyCallout(callout.locationCode, priorit in addDevicePathCallouts() 872 addInventoryCallout(const std::string & inventoryPath,const std::optional<CalloutPriority> & priority,const std::optional<std::string> & locationCode,const DataInterfaceBase & dataIface,const std::vector<src::MRU::MRUCallout> & mrus) addInventoryCallout() argument [all...] |
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 | 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() 828 EXPECT_EQ(callouts[0]->locationCode(), "P0-C8"); in TEST_F() 836 EXPECT_EQ(callouts[1]->locationCode(), "P 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/openpower-debug-collector/watchdog/ |
H A D | watchdog_main.cpp | 94 ATTR_LOCATION_CODE_Type locationCode; in handleSbeBootError() 96 memset(&locationCode, '\0', sizeof(locationCode)); in handleSbeBootError() 98 openpower::phal::pdbg::getLocationCode(procTarget, locationCode); in handleSbeBootError() 100 jsonProcCallout["LocationCode"] = locationCode; in handleSbeBootError() 58 ATTR_LOCATION_CODE_Type locationCode; getSBECallout() local
|
/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()
|
H A D | estoraged.cpp | 39 const std::string& serialNumber, const std::string& locationCode, in EStoraged() argument 116 if (!locationCode.empty()) in EStoraged() 120 locationCodeInterface->register_property("LocationCode", locationCode); in EStoraged()
|
/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/bmcweb/redfish-core/lib/ |
H A D | memory.hpp | 431 const std::string* locationCode = nullptr; in assembleDimmProperties() local 444 "LocationCode", locationCode); in assembleDimmProperties() 605 if (locationCode != nullptr) in assembleDimmProperties() 609 *locationCode; in assembleDimmProperties()
|