Lines Matching refs:constants
20 {{"hb_memory_mirror_mode", constants::VALUE_8, std::nullopt,
21 constants::VALUE_2, constants::VALUE_1}}},
23 {{"pvm_keep_and_clear", constants::VALUE_1, constants::VALUE_0,
24 constants::VALUE_1, constants::VALUE_0},
25 {"pvm_create_default_lpar", constants::VALUE_1, constants::VALUE_1,
26 constants::VALUE_1, constants::VALUE_0},
27 {"pvm_clear_nvram", constants::VALUE_1, constants::VALUE_2,
28 constants::VALUE_1, constants::VALUE_0}}},
30 {{"hb_field_core_override", constants::VALUE_32, std::nullopt,
38 int l_rc = constants::FAILURE; in readKeyword()
50 constants::baseInventoryPath + i_vpdPath); in readKeyword()
62 constants::inventoryManagerService, l_inventoryObjectPath, in readKeyword()
63 constants::ipzVpdInfPrefix + i_recordName, l_keywordName); in readKeyword()
78 l_rc = constants::SUCCESS; in readKeyword()
87 l_rc = constants::SUCCESS; in readKeyword()
120 int l_rc{constants::FAILURE}; in dumpObject()
124 i_fruPath = constants::baseInventoryPath + i_fruPath; in dumpObject()
139 l_rc = constants::SUCCESS; in dumpObject()
182 if (l_interface == constants::inventoryItemInf) in populateFruJson()
186 constants::inventoryItemInf, in populateFruJson()
191 if (l_interface == constants::xyzLocationCodeInf) in populateFruJson()
195 constants::xyzLocationCodeInf, in populateFruJson()
200 if (l_interface == constants::viniInf) in populateFruJson()
205 i_inventoryObjPath, constants::viniInf, l_properties, in populateFruJson()
210 if (l_interface == constants::assetInf) in populateFruJson()
213 constants::viniInf) != i_interfaceList.end()) in populateFruJson()
224 constants::assetInf, in populateFruJson()
229 if (l_interface == constants::networkInf) in populateFruJson()
233 constants::networkInf, in populateFruJson()
238 if (l_interface == constants::pcieSlotInf) in populateFruJson()
242 constants::pcieSlotInf, in populateFruJson()
247 if (l_interface == constants::slotNumInf) in populateFruJson()
251 constants::slotNumInf, l_properties, in populateFruJson()
256 if (l_interface == constants::i2cDeviceInf) in populateFruJson()
260 constants::i2cDeviceInf, in populateFruJson()
279 (i_objectPath.find(constants::baseInventoryPath) == std::string::npos) in getFruProperties()
281 : i_objectPath.substr(strlen(constants::baseInventoryPath)); in getFruProperties()
292 if (l_service != constants::inventoryManagerService) in getFruProperties()
323 utils::readDbusProperty(constants::inventoryManagerService, in getInventoryPropertyJson()
369 int l_rc = constants::FAILURE; in fixSystemVpd()
427 int l_rc = constants::FAILURE; in writeKeyword()
446 i_vpdPath = constants::baseInventoryPath + i_vpdPath; in writeKeyword()
453 l_rc = constants::SUCCESS; in writeKeyword()
502 !utils::isServiceRunning(constants::biosConfigMgrService)) in cleanSystemVpd()
507 return constants::FAILURE; in cleanSystemVpd()
578 if (constants::FAILURE == in cleanSystemVpd()
620 return constants::SUCCESS; in cleanSystemVpd()
695 constants::inventoryManagerService, l_srcVpdPath, in fetchKeywordInfo()
696 constants::ipzVpdInfPrefix + l_srcRecordName, in fetchKeywordInfo()
726 constants::inventoryManagerService, l_dstVpdPath, in fetchKeywordInfo()
727 constants::ipzVpdInfPrefix + l_dstRecordName, in fetchKeywordInfo()
766 i_objectPath, std::vector<std::string>{constants::inventoryItemInf}); in getFruTypeProperty()
767 if (l_serviceInfMap.contains(constants::inventoryManagerService)) in getFruTypeProperty()
769 l_pimInfList = l_serviceInfMap[constants::inventoryManagerService]; in getFruTypeProperty()
775 if (l_interface.find(constants::inventoryItemInf) != in getFruTypeProperty()
778 std::string(constants::inventoryItemInf).length()) in getFruTypeProperty()
795 constants::inventoryManagerService, i_objectPath, in isFruPresent()
796 constants::inventoryItemInf, "Present"); in isFruPresent()
861 int l_rc{constants::FAILURE}; in dumpInventory()
867 constants::baseInventoryPath, 0, in dumpInventory()
868 std::vector<std::string>{constants::inventoryItemInf}); in dumpInventory()
909 if (constants::FAILURE == in dumpInventory()
961 l_rc = constants::SUCCESS; in dumpInventory()
1042 int l_rc = constants::FAILURE; in updateAllKeywords()
1103 l_rc = constants::SUCCESS; in updateAllKeywords()
1138 int l_rc = constants::FAILURE; in handleMoreOption()
1171 int l_rc = constants::FAILURE; in handleMoreOption()
1244 if (constants::STR_CMP_SUCCESS == in handleMoreOption()
1330 l_rc = constants::SUCCESS; in handleMoreOption()
1348 int l_rc = constants::FAILURE; in resetVpdOnDbus()
1352 "systemctl stop " + std::string(constants::vpdManagerProcessName)); in resetVpdOnDbus()
1357 std::cerr << "Failed to stop " << constants::vpdManagerProcessName in resetVpdOnDbus()
1365 std::string(constants::vpdManagerProcessName)); in resetVpdOnDbus()
1371 << constants::vpdManagerProcessName in resetVpdOnDbus()
1392 std::string(constants::vpdManagerProcessName)); in resetVpdOnDbus()
1399 << constants::vpdManagerProcessName in resetVpdOnDbus()
1408 std::filesystem::remove_all(constants::pimPersistPath, l_ec)) in resetVpdOnDbus()
1412 << constants::pimPersistPath << "]." << std::endl; in resetVpdOnDbus()
1425 std::string(constants::inventoryManagerService)); in resetVpdOnDbus()
1431 << constants::inventoryManagerService in resetVpdOnDbus()
1440 std::string(constants::inventoryManagerService)); in resetVpdOnDbus()
1445 std::cerr << constants::inventoryManagerService in resetVpdOnDbus()
1453 "systemctl start " + std::string(constants::vpdManagerProcessName)); in resetVpdOnDbus()
1458 std::cerr << "Failed to start " << constants::vpdManagerProcessName in resetVpdOnDbus()
1468 std::cerr << constants::vpdManagerProcessName in resetVpdOnDbus()
1477 std::string(constants::waitVpdParserProcessName)); in resetVpdOnDbus()
1483 << constants::waitVpdParserProcessName in resetVpdOnDbus()
1490 l_rc = constants::SUCCESS; in resetVpdOnDbus()
1530 l_numBitsKeyword / constants::VALUE_8; in getVpdValueInBiosConfigManager()
1544 if (l_numBitsKeyword == constants::VALUE_1) in getVpdValueInBiosConfigManager()
1552 : constants::VALUE_0; in getVpdValueInBiosConfigManager()
1554 l_result.resize(constants::VALUE_1, constants::VALUE_0); in getVpdValueInBiosConfigManager()
1557 constants::STR_CMP_SUCCESS) in getVpdValueInBiosConfigManager()
1559 l_result.at(constants::VALUE_0) |= in getVpdValueInBiosConfigManager()
1560 (constants::VALUE_1 << l_bitPosition); in getVpdValueInBiosConfigManager()
1564 l_result.at(constants::VALUE_0) &= in getVpdValueInBiosConfigManager()
1565 ~(constants::VALUE_1 << l_bitPosition); in getVpdValueInBiosConfigManager()
1574 : constants::VALUE_1; in getVpdValueInBiosConfigManager()
1579 : constants::VALUE_0; in getVpdValueInBiosConfigManager()
1582 constants::STR_CMP_SUCCESS) in getVpdValueInBiosConfigManager()
1601 if (std::filesystem::exists(constants::badVpdPath)) in clearVpdDumpDir()
1603 std::filesystem::remove_all(constants::badVpdPath); in clearVpdDumpDir()
1609 std::string(constants::badVpdPath) + "]. Error: " in clearVpdDumpDir()