Home
last modified time | relevance | path

Searched refs:locCode (Results 1 – 10 of 10) sorted by relevance

/openbmc/phosphor-mrw-tools/
H A DUtil.pm158 my $locCode = undef;
173 if (defined $locCode)
175 $locCode = $loc . '-' . $locCode;
179 $locCode = $loc;
204 return $locCode;
/openbmc/phosphor-logging/test/openpower-pels/
H A Dregistry_test.cpp502 EXPECT_EQ(callouts[0].locCode, "P1-C1"); in TEST_F()
507 EXPECT_EQ(callouts[1].locCode, "P1"); in TEST_F()
512 EXPECT_EQ(callouts[2].locCode, ""); in TEST_F()
517 EXPECT_EQ(callouts[3].locCode, ""); in TEST_F()
528 EXPECT_EQ(callouts[0].locCode, ""); in TEST_F()
532 EXPECT_EQ(callouts[1].locCode, "P3-C8"); in TEST_F()
588 EXPECT_EQ(callouts[0].locCode, "P1-C1"); in TEST_F()
593 EXPECT_EQ(callouts[1].locCode, "P1"); in TEST_F()
602 EXPECT_EQ(callouts[0].locCode, "P7"); in TEST_F()
686 EXPECT_EQ(callouts[0].locCode, "P1-C5"); in TEST_F()
[all …]
H A Dsrc_callout_test.cpp203 std::string locCode(81, 'L'); in TEST() local
204 Callout callout{CalloutPriority::high, locCode, "1234567", "ABCD", in TEST()
212 locCode = locCode.substr(0, locCode.size() - 2); in TEST()
213 EXPECT_EQ(callout.locationCode(), locCode); in TEST()
218 std::string locCode(80, 'L'); in TEST() local
219 Callout callout{CalloutPriority::high, locCode, "1234567", "ABCD", in TEST()
226 locCode.pop_back(); in TEST()
227 EXPECT_EQ(callout.locationCode(), locCode); in TEST()
232 std::string locCode(79, 'L'); in TEST() local
233 Callout callout{CalloutPriority::low, locCode, "1234567", "ABCD", in TEST()
[all …]
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dsrc.cpp880 std::string locCode; in addInventoryCallout() local
891 locCode = *locationCode; in addInventoryCallout()
895 locCode = dataIface.getLocationCode(inventoryPath); in addInventoryCallout()
906 std::make_unique<src::Callout>(p, locCode, fn, ccin, sn, mrus); in addInventoryCallout()
916 CalloutPriority::high, locCode, fn, ccin, sn, mrus); in addInventoryCallout()
1012 auto locCode = regCallout.locCode; in addRegistryCallout() local
1015 if (!locCode.empty()) in addRegistryCallout()
1019 locCode = dataIface.expandLocationCode(locCode, 0); in addRegistryCallout()
1023 auto msg = "Unable to expand location code " + locCode + ": " + in addRegistryCallout()
1048 priority, regCallout.symbolicFRU, locCode, false); in addRegistryCallout()
[all …]
H A Ddata_interface.cpp74 constexpr auto locCode = "xyz.openbmc_project.Inventory.Decorator.LocationCode"; variable
454 auto service = getService(inventoryPath, interface::locCode); in getLocationCode()
456 DBusValue locCode; in getLocationCode() local
457 getProperty(service, inventoryPath, interface::locCode, "LocationCode", in getLocationCode()
458 locCode); in getLocationCode()
460 return std::get<std::string>(locCode); in getLocationCode()
837 const std::string& locCode) const in isDIMMLocCode()
839 if (_locationCache.contains(locCode)) in isDIMMLocCode()
841 return _locationCache.at(locCode); in isDIMMLocCode()
849 void DataInterfaceBase::addDIMMLocCode(const std::string& locCode, in addDIMMLocCode() argument
[all …]
H A Dservice_indicators.cpp184 for (const auto& locCode : locationCodes) in getInventoryPaths() local
189 _dataIface.getInventoryFromLocCode(locCode, 0, true); in getInventoryPaths()
202 "LOCCODE", locCode, "EXCEPTION", e); in getInventoryPaths()
H A Ddata_interface.hpp517 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 Dregistry.hpp218 std::string locCode; member
H A Dpel.cpp734 auto locCode{callout->locationCode()}; in addAdDetailsForDIMMsCallout() local
735 if (locCode.empty()) in addAdDetailsForDIMMsCallout()
742 return const_cast<DataInterfaceBase&>(dataIface).isDIMM(locCode); in addAdDetailsForDIMMsCallout()
H A Dregistry.cpp471 callout.locCode = json["LocCode"].get<std::string>(); in makeRegistryCallout()