Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 25 of 101) sorted by relevance

12345

/openbmc/openpower-vpd-parser/vpd-manager/src/
H A Dddimm_parser.cpp45 if (i_ByteValue < constants::VALUE_5) in getDdr5DensityPerDie()
47 l_densityPerDie = i_ByteValue * constants::VALUE_4; in getDdr5DensityPerDie()
53 case constants::VALUE_5: in getDdr5DensityPerDie()
57 case constants::VALUE_6: in getDdr5DensityPerDie()
61 case constants::VALUE_7: in getDdr5DensityPerDie()
65 case constants::VALUE_8: in getDdr5DensityPerDie()
81 uint8_t l_DiePerPackage = constants::VALUE_0; in getDdr5DiePerPackage()
82 if (i_ByteValue < constants::VALUE_2) in getDdr5DiePerPackage()
84 l_DiePerPackage = i_ByteValue + constants::VALUE_1; in getDdr5DiePerPackage()
89 pow(constants::VALUE_2, (i_ByteValue - constants::VALUE_1)); in getDdr5DiePerPackage()
[all …]
H A Dbios_handler.cpp28 constants::pldmServiceName), in checkAndListenPldmService()
44 (l_name.compare(constants::pldmServiceName) == in checkAndListenPldmService()
45 constants::STR_CMP_SUCCESS)) in checkAndListenPldmService()
59 if (dbusUtility::isServiceRunning(constants::pldmServiceName)) in checkAndListenPldmService()
76 constants::biosConfigMgrObjPath, in listenBiosAttributes()
77 constants::biosConfigMgrInterface), in listenBiosAttributes()
193 constants::pimServiceName, constants::systemVpdInvPath, in processFieldCoreOverride()
194 constants::vsysInf, constants::kwdRG); in processFieldCoreOverride()
199 if (l_fcoInVpd->size() != constants::VALUE_4) in processFieldCoreOverride()
209 return l_val != constants::ASCII_OF_SPACE; in processFieldCoreOverride()
[all …]
H A Dparser_factory.cpp36 if (i_vpdVector[constants::IPZ_DATA_START] == constants::IPZ_DATA_START_TAG) in vpdTypeCheck()
40 else if (i_vpdVector[constants::KW_VPD_DATA_START] == in vpdTypeCheck()
41 constants::KW_VPD_START_TAG) in vpdTypeCheck()
45 else if (((i_vpdVector[constants::SPD_BYTE_3] & in vpdTypeCheck()
46 constants::SPD_BYTE_BIT_0_3_MASK) == in vpdTypeCheck()
47 constants::SPD_MODULE_TYPE_DDIMM)) in vpdTypeCheck()
50 if (i_vpdVector.size() > (constants::DDIMM_11S_BARCODE_START + in vpdTypeCheck()
51 constants::DDIMM_11S_BARCODE_LEN)) in vpdTypeCheck()
54 for (uint8_t l_index = 0; l_index < constants::DDIMM_11S_FORMAT_LEN; in vpdTypeCheck()
58 i_vpdVector[constants::DDIMM_11S_BARCODE_START + l_index]; in vpdTypeCheck()
[all …]
H A Dkeyword_vpd_parser.cpp22 if (*m_vpdIterator != constants::KW_VPD_START_TAG) in parse()
27 checkNextBytesValidity(sizeof(constants::KW_VPD_START_TAG)); in parse()
28 std::advance(m_vpdIterator, sizeof(constants::KW_VPD_START_TAG)); in parse()
32 checkNextBytesValidity(constants::TWO_BYTES + l_dataSize); in parse()
33 std::advance(m_vpdIterator, constants::TWO_BYTES + l_dataSize); in parse()
36 if (*m_vpdIterator != constants::KW_VPD_PAIR_START_TAG) in parse()
38 if (*m_vpdIterator != constants::ALT_KW_VPD_PAIR_START_TAG) in parse()
48 if (*m_vpdIterator != constants::KW_VAL_PAIR_END_TAG) in parse()
56 checkNextBytesValidity(constants::TWO_BYTES); in parse()
57 std::advance(m_vpdIterator, constants::TWO_BYTES); in parse()
[all …]
H A Dsingle_fab.cpp41 !l_parsedVsbpJsonObj["value0"].contains(constants::kwdIM) || in getImFromPersistedLocation()
42 !l_parsedVsbpJsonObj["value0"][constants::kwdIM].is_array()) in getImFromPersistedLocation()
48 l_parsedVsbpJsonObj["value0"][constants::kwdIM] in getImFromPersistedLocation()
76 std::make_tuple(constants::recVSBP, constants::kwdIM)); in getImFromPlanar()
117 std::make_tuple(constants::recVSBP, constants::kwdIM, l_imValue)); in setImOnPlanar()
134 constants::VALUE_4, constants::VALUE_1, in updateSystemImValueInVpdToP11Series()
135 std::to_string(constants::VALUE_3)) == in updateSystemImValueInVpdToP11Series()
136 constants::STR_CMP_SUCCESS) in updateSystemImValueInVpdToP11Series()
138 i_currentImValuePlanar.replace(constants::VALUE_4, in updateSystemImValueInVpdToP11Series()
139 constants::VALUE_1, in updateSystemImValueInVpdToP11Series()
[all …]
H A Dmanager.cpp37 if (l_rc == constants::FAILURE) in Manager()
151 "Status", std::string(constants::vpdCollectionCompleted)); in Manager()
212 if (l_rc != constants::FAILURE && m_backupAndRestoreObj) in updateKeyword()
215 l_fruPath, i_paramsToWriteData) < constants::VALUE_0) in updateKeyword()
260 if (l_rc != constants::FAILURE) in updateKeyword()
278 if (l_rc != constants::FAILURE) in updateKeyword()
294 (l_rc != constants::FAILURE) ? "successful" : "failed") + in updateKeyword()
342 return constants::FAILURE; in updateKeywordOnHardware()
388 if (m_vpdCollectionStatus != constants::vpdCollectionCompleted) in collectSingleFruVpd()
433 constants::UNEXP_LOCATION_CODE_MIN_LENGTH) || in isValidUnexpandedLocationCode()
[all …]
H A Disdimm_parser.cpp77 l_tmp = i_iterator[constants::SPD_BYTE_4] & SPD_JEDEC_DDR4_SDRAM_CAP_MASK; in getDDR4DimmCapacity()
90 l_tmp = i_iterator[constants::SPD_BYTE_13] & in getDDR4DimmCapacity()
103 l_tmp = i_iterator[constants::SPD_BYTE_12] & in getDDR4DimmCapacity()
114 l_tmp = i_iterator[constants::SPD_BYTE_6] & in getDDR4DimmCapacity()
119 l_tmp = i_iterator[constants::SPD_BYTE_6] & in getDDR4DimmCapacity()
126 l_tmp = i_iterator[constants::SPD_BYTE_12] & SPD_JEDEC_DDR4_NUM_RANKS_MASK; in getDDR4DimmCapacity()
146 char l_tmpPN[constants::PART_NUM_LEN + 1] = {'\0'}; in getDDR4PartNumber()
159 char l_tmpSN[constants::SERIAL_NUM_LEN + 1] = {'\0'}; in getDDR4SerialNumber()
187 uint8_t l_mtbUnits = i_iterator[constants::SPD_BYTE_18] & in getDDR4FruNumber()
188 constants::SPD_BYTE_MASK; in getDDR4FruNumber()
[all …]
H A Dparser.cpp80 int l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeyword()
103 if (constants::FAILURE == dbusUtility::EnableRebootGuard()) in updateVpdKeyword()
113 return constants::FAILURE; in updateVpdKeyword()
163 l_interfaceName = constants::ipzVpdInf + l_recordName; in updateVpdKeyword()
260 l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeyword()
264 if (constants::FAILURE == dbusUtility::DisableRebootGuard()) in updateVpdKeyword()
312 int l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeywordOnHardware()
335 if (constants::FAILURE == dbusUtility::EnableRebootGuard()) in updateVpdKeywordOnHardware()
345 return constants::FAILURE; in updateVpdKeywordOnHardware()
375 if (constants::FAILURE == dbusUtility::DisableRebootGuard()) in updateVpdKeywordOnHardware()
H A Dworker.cpp6 #include "constants.hpp"
145 interfaceMap, constants::kwdVpdInf, move(propertyValueMap), in populateKwdVPDpropertyMap()
201 std::string(constants::xyzLocationCodeInf), in populateInterfaces()
348 if (memcmp(l_io, i_pgKeyword.data() + constants::INDEX_OF_EQ0_IN_PG, in isCPUIOGoodOnly()
349 constants::SIZE_OF_8EQ_IN_PG) == 0) in isCPUIOGoodOnly()
443 constants::ipzVpdInf + recordName); in processCopyRecordFlag()
457 constants::ipzVpdInf + recordName); in processInheritFlag()
524 constants::operationalStatusInf}; in processFunctionalProperty()
534 if (l_serviceName == constants::pimServiceName) in processFunctionalProperty()
549 constants in processFunctionalProperty()
[all...]
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/
H A Ddbus_utility.hpp147 constants::objectMapperService, constants::objectMapperPath, in getObjectSubTree()
148 constants::objectMapperInf, "GetSubTree"); in getObjectSubTree()
270 if (l_objectKeyValue.first.str.find(constants::pimPath, 0) != in callPIM()
275 0, std::strlen(constants::pimPath), ""); in callPIM()
282 bus.new_method_call(constants::pimServiceName, constants::pimPath, in callPIM()
283 constants::pimIntf, "Notify"); in callPIM()
349 constants::biosConfigMgrService, constants::biosConfigMgrObjPath, in biosGetAttributeMethodCall()
350 constants::biosConfigMgrInterface, "GetAttribute"); in biosGetAttributeMethodCall()
414 constants::hostService, constants::hostObjectPath, in isHostRunning()
415 constants::hostInterface, "CurrentHostState"); in isHostRunning()
[all …]
H A Dvpd_specific_utility.hpp5 #include "constants.hpp"
41 std::string l_badVpdFileName{constants::badVpdDir}; in generateBadVPDFileName()
100 return constants::FAILURE; in dumpBadVpd()
103 int l_rc{constants::FAILURE}; in dumpBadVpd()
106 std::filesystem::create_directory(constants::badVpdDir); in dumpBadVpd()
117 return constants::FAILURE; in dumpBadVpd()
127 return constants::FAILURE; in dumpBadVpd()
135 return constants::FAILURE; in dumpBadVpd()
142 l_rc = constants::SUCCESS; in dumpBadVpd()
279 l_result.insert(constants in encodeKeyword()
[all...]
H A Devent_logger_utility.hpp324 l_sdBus, NULL, constants::eventLoggingServiceName, in createAsyncPelWithInventoryCallout()
325 constants::eventLoggingObjectPath, constants::eventLoggingInterface, in createAsyncPelWithInventoryCallout()
448 l_sdBus, NULL, constants::eventLoggingServiceName, in createAsyncPel()
449 constants::eventLoggingObjectPath, constants::eventLoggingInterface, in createAsyncPel()
451 l_severity.c_str(), constants::VALUE_6, "FileName", in createAsyncPel()
533 l_bus.new_method_call(constants::eventLoggingServiceName, in createSyncPel()
534 constants::eventLoggingObjectPath, in createSyncPel()
535 constants::eventLoggingInterface, "Create"); in createSyncPel()
610 .compare(constants::VALUE_0, strlen(constants::pimPath), in createSyncPelWithInvCallOut()
611 constants::pimPath) != constants::STR_CMP_SUCCESS) in createSyncPelWithInvCallOut()
[all …]
/openbmc/openpower-vpd-parser/vpd-tool/src/
H A Dvpd_tool.cpp20 {{"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()
[all …]
H A Dvpd_tool_main.cpp33 return vpd::constants::FAILURE; in forceReset()
60 return vpd::constants::SUCCESS; in doMfgClean()
99 return vpd::constants::FAILURE; in writeKeyword()
108 return vpd::constants::FAILURE; in writeKeyword()
117 return vpd::constants::FAILURE; in writeKeyword()
120 if (i_keywordName == vpd::constants::KwdIM) in writeKeyword()
123 vpd::constants::STR_CMP_SUCCESS)) in writeKeyword()
126 return vpd::constants::FAILURE; in writeKeyword()
129 if (std::find(vpd::constants::validImValues.begin(), in writeKeyword()
130 vpd::constants::validImValues.end(), i_keywordValue) == in writeKeyword()
[all …]
/openbmc/openpower-vpd-parser/vpd-tool/include/
H A Dtool_utils.hpp134 std::cout << i_jsonData.dump(constants::INDENTATION) << std::endl; in printJson()
209 constants::vpdManagerService, constants::vpdManagerObjectPath, in readKeywordFromHardware()
210 constants::vpdManagerInfName, "ReadKeyword"); in readKeywordFromHardware()
251 if (i_keywordValue.substr(0, 2).compare("0x") == constants::STR_CMP_SUCCESS) in saveToFile()
329 int l_rc = constants::FAILURE; in writeKeyword()
333 constants::vpdManagerService, constants::vpdManagerObjectPath, in writeKeyword()
334 constants::vpdManagerInfName, "UpdateKeyword"); in writeKeyword()
368 int l_rc = constants::FAILURE; in writeKeywordOnHardware()
372 constants::vpdManagerService, constants::vpdManagerObjectPath, in writeKeywordOnHardware()
373 constants::vpdManagerInfName, "WriteKeywordOnHardware"); in writeKeywordOnHardware()
[all …]
/openbmc/telemetry/tests/src/utils/
H A Dstring_utils.cpp47 return details::getString(constants::maxPrefixLength); in getMaxPrefix()
52 return details::getString(constants::maxIdNameLength); in getMaxId()
57 return details::getStringWithSpaces(constants::maxIdNameLength); in getMaxName()
62 return details::getString(constants::maxPrefixLength + 1); in getTooLongPrefix()
67 return details::getString(constants::maxIdNameLength + 1); in getTooLongId()
72 return details::getStringWithSpaces(constants::maxIdNameLength + 1); in getTooLongName()
/openbmc/openpower-vpd-parser/wait-vpd-parser/src/
H A Dwait_vpd_parser.cpp40 l_retries != vpd::constants::VALUE_0; --l_retries) in checkVpdCollectionStatus()
47 IFACE, OBJPATH, vpd::constants::vpdCollectionInterface, in checkVpdCollectionStatus()
52 if (*l_val == vpd::constants::vpdCollectionCompleted) in checkVpdCollectionStatus()
55 return vpd::constants::VALUE_0; in checkVpdCollectionStatus()
73 return vpd::constants::VALUE_1; in checkVpdCollectionStatus()
129 : vpd::constants::VALUE_1; in main()
136 return vpd::constants::VALUE_1; in main()
H A Dprime_inventory.cpp57 vpd::constants::systemInvPath, 0, in isPrimingRequired()
58 std::vector<std::string>{vpd::constants::vpdCollectionInterface}); in isPrimingRequired()
240 {"Status", vpd::constants::vpdCollectionNotStarted}}; in primeInventory()
243 l_interfaces, vpd::constants::vpdCollectionInterface, in primeInventory()
307 std::string(vpd::constants::xyzLocationCodeInf), in populateInterfaces()
454 vpd::constants::operationalStatusInf}; in processFunctionalProperty()
465 if (l_serviceName == vpd::constants::pimServiceName) in processFunctionalProperty()
480 io_interfaces, vpd::constants::operationalStatusInf, in processFunctionalProperty()
501 std::vector<std::string> l_enableInf{vpd::constants::enableInf}; in processEnabledProperty()
512 if (l_serviceName == vpd::constants in processEnabledProperty()
[all...]
/openbmc/telemetry/src/utils/
H A Dmake_id_name.cpp47 if (strippedId.find_first_of(utils::constants::allowedCharactersInPath) == in generateId()
57 utils::constants::allowedCharactersInPath.find(c) == in generateId()
64 prefixes + strippedId.substr(0, constants::maxIdNameLength); in generateId()
71 if (digitsInIdx > constants::maxIdNameLength) in generateId()
79 strippedId.substr(0, constants::maxIdNameLength - digitsInIdx) + in generateId()
93 if (name.length() > constants::maxIdNameLength) in makeIdName()
107 name = name.substr(0, constants::maxIdNameLength); in makeIdName()
H A Ddbus_path_utils.cpp35 if (path.str.starts_with(constants::reportDirStr)) in reportPathToId()
37 auto id = path.str.substr(constants::reportDirStr.length()); in reportPathToId()
57 if (++prefix_cnt > constants::maxPrefixesInId) in verifyIdPrefixes()
62 if (pos_end - pos_start > constants::maxPrefixLength) in verifyIdPrefixes()
70 if (id.length() - pos_start > constants::maxIdNameLength) in verifyIdPrefixes()
H A Ddbus_path_utils.hpp14 namespace constants namespace
48 return (path.find_first_not_of(constants::allowedCharactersInPath) == in isValidDbusPath()
55 if (id.find_first_not_of(utils::constants::allowedCharactersInPath) != in verifyIdCharacters()
/openbmc/openpower-vpd-parser/vpd-manager/oem-handler/
H A Dibm_handler.cpp157 uint8_t l_threadCount = constants::VALUE_1; in initWorker()
161 l_threadCount = constants::MAX_THREADS; in initWorker()
228 "Status", std::string(constants::vpdCollectionCompleted)); in SetTimerToDetectVpdCollectionStatus()
358 if (l_recordName == constants::kwdCCIN) in checkAndUpdatePowerVsVpd()
374 constants::pimServiceName, l_inventoryPath, in checkAndUpdatePowerVsVpd()
375 constants::viniInf, constants::kwdFN); in checkAndUpdatePowerVsVpd()
397 constants::FAILURE) in checkAndUpdatePowerVsVpd()
406 {{constants::assetInf, in checkAndUpdatePowerVsVpd()
753 auto l_itrToVsys = (*l_parsedVpdMap).find(constants::recVSYS); in createAssetTagString()
758 l_itrToVsys->second, constants::kwdTM, l_errCode)}; in createAssetTagString()
[all …]
/openbmc/openpower-vpd-parser/vpd-manager/include/
H A Dsingle_fab.hpp76 return !(i_imValue.compare(constants::VALUE_0, constants::VALUE_4, in isP10System()
103 return !(i_imValue.compare(constants::VALUE_0, constants::VALUE_4, in isP11System()
/openbmc/openbmc/meta-openembedded/meta-python/recipes-connectivity/telepathy/telepathy-python3-0.15.19/
H A Dparallel_make.patch24 -_generated/constants.py: $(tools_dir)/python-constants-generator.xsl $(wildcard $(spec_dir)/*.xml)
25 +_generated/constants.py: _generated/__init__.py $(tools_dir)/python-constants-generator.xsl $(wild…
27 $(tools_dir)/python-constants-generator.xsl \
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs-128/
H A Driscv32.patch10 python/mozbuild/mozbuild/configure/constants.py | 2 ++
28 …iff --git a/python/mozbuild/mozbuild/configure/constants.py b/python/mozbuild/mozbuild/configure/c…
30 --- a/python/mozbuild/mozbuild/configure/constants.py
31 +++ b/python/mozbuild/mozbuild/configure/constants.py

12345