/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | registry_test.cpp | 514 EXPECT_EQ(callouts[0].locCode, "P1-C1"); in TEST_F() 519 EXPECT_EQ(callouts[1].locCode, "P1"); in TEST_F() 524 EXPECT_EQ(callouts[2].locCode, ""); in TEST_F() 529 EXPECT_EQ(callouts[3].locCode, ""); in TEST_F() 540 EXPECT_EQ(callouts[0].locCode, ""); in TEST_F() 544 EXPECT_EQ(callouts[1].locCode, "P3-C8"); in TEST_F() 600 EXPECT_EQ(callouts[0].locCode, "P1-C1"); in TEST_F() 605 EXPECT_EQ(callouts[1].locCode, "P1"); in TEST_F() 614 EXPECT_EQ(callouts[0].locCode, "P7"); in TEST_F() 698 EXPECT_EQ(callouts[0].locCode, "P1-C5"); in TEST_F() [all …]
|
H A D | src_callout_test.cpp | 215 std::string locCode(81, 'L'); in TEST() local 216 Callout callout{CalloutPriority::high, locCode, "1234567", "ABCD", in TEST() 224 locCode = locCode.substr(0, locCode.size() - 2); in TEST() 225 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 230 std::string locCode(80, 'L'); in TEST() local 231 Callout callout{CalloutPriority::high, locCode, "1234567", "ABCD", in TEST() 238 locCode.pop_back(); in TEST() 239 EXPECT_EQ(callout.locationCode(), locCode); in TEST() 244 std::string locCode(79, 'L'); in TEST() local 245 Callout callout{CalloutPriority::low, locCode, "1234567", "ABCD", in TEST() [all …]
|
/openbmc/phosphor-mrw-tools/ |
H A D | Util.pm | 158 my $locCode = undef; 173 if (defined $locCode) 175 $locCode = $loc . '-' . $locCode; 179 $locCode = $loc; 204 return $locCode;
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | src.cpp | 876 std::string locCode; in addInventoryCallout() local 887 locCode = *locationCode; in addInventoryCallout() 891 locCode = dataIface.getLocationCode(inventoryPath); in addInventoryCallout() 902 std::make_unique<src::Callout>(p, locCode, fn, ccin, sn, mrus); in addInventoryCallout() 912 CalloutPriority::high, locCode, fn, ccin, sn, mrus); in addInventoryCallout() 1008 auto locCode = regCallout.locCode; in addRegistryCallout() local 1010 if (!locCode.empty()) in addRegistryCallout() 1014 locCode = dataIface.expandLocationCode(locCode, 0); in addRegistryCallout() 1018 auto msg = "Unable to expand location code " + locCode + ": " + in addRegistryCallout() 1043 priority, regCallout.symbolicFRU, locCode, false); in addRegistryCallout() [all …]
|
H A D | data_interface.cpp | 89 constexpr auto locCode = "xyz.openbmc_project.Inventory.Decorator.LocationCode"; variable 471 auto service = getService(inventoryPath, interface::locCode); in getLocationCode() 473 DBusValue locCode; in getLocationCode() local 474 getProperty(service, inventoryPath, interface::locCode, "LocationCode", in getLocationCode() 475 locCode); in getLocationCode() 477 return std::get<std::string>(locCode); in getLocationCode() 854 DataInterfaceBase::isDIMMLocCode(const std::string& locCode) const in isDIMMLocCode() 856 if (_locationCache.contains(locCode)) in isDIMMLocCode() 858 return _locationCache.at(locCode); in isDIMMLocCode() 866 void DataInterfaceBase::addDIMMLocCode(const std::string& locCode, in addDIMMLocCode() argument [all …]
|
H A D | service_indicators.cpp | 197 for (const auto& locCode : locationCodes) in getInventoryPaths() local 202 _dataIface.getInventoryFromLocCode(locCode, 0, true); in getInventoryPaths() 215 "LOCCODE", locCode, "EXCEPTION", e); in getInventoryPaths()
|
H A D | data_interface.hpp | 517 bool isDIMM(const std::string& locCode); 531 std::optional<bool> isDIMMLocCode(const std::string& locCode) const; 541 void addDIMMLocCode(const std::string& locCode, bool isFRUDIMM);
|
H A D | registry.hpp | 218 std::string locCode; member
|
H A D | pel.cpp | 746 auto locCode{callout->locationCode()}; in addAdDetailsForDIMMsCallout() local 747 if (locCode.empty()) in addAdDetailsForDIMMsCallout() 754 return const_cast<DataInterfaceBase&>(dataIface).isDIMM(locCode); in addAdDetailsForDIMMsCallout()
|
H A D | registry.cpp | 484 callout.locCode = json["LocCode"].get<std::string>(); in makeRegistryCallout()
|