/openbmc/openpower-vpd-parser/vpd-manager/src/ |
H A D | ddimm_parser.cpp | 45 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 D | bios_handler.cpp | 27 constants::pldmServiceName), in checkAndListenPldmService() 43 (l_name.compare(constants::pldmServiceName) == in checkAndListenPldmService() 44 constants::STR_CMP_SUCCESS)) in checkAndListenPldmService() 58 if (dbusUtility::isServiceRunning(constants::pldmServiceName)) in checkAndListenPldmService() 75 constants::biosConfigMgrObjPath, in listenBiosAttributes() 76 constants::biosConfigMgrInterface), in listenBiosAttributes() 188 constants::pimServiceName, constants::systemVpdInvPath, in processFieldCoreOverride() 189 constants::vsysInf, constants::kwdRG); in processFieldCoreOverride() 194 if (l_fcoInVpd->size() != constants::VALUE_4) in processFieldCoreOverride() 204 return l_val != constants::ASCII_OF_SPACE; in processFieldCoreOverride() [all …]
|
H A D | parser_factory.cpp | 36 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 D | keyword_vpd_parser.cpp | 22 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 D | manager.cpp | 37 constants::VALUE_1); in Manager() 167 constants::systemInvPath, constants::assetTagInf), in registerAssetTagChangeCallback() 195 {sdbusplus::message::object_path(constants::systemInvPath), in processAssetTagChangeCallback() 196 {{constants::assetTagInf, {{"AssetTag", *l_assetTag}}}}}}; in processAssetTagChangeCallback() 386 if (l_recordName == constants::kwdCCIN) in checkAndUpdatePowerVsVpd() 402 constants::pimServiceName, l_inventoryPath, in checkAndUpdatePowerVsVpd() 403 constants::viniInf, constants::kwdPN); in checkAndUpdatePowerVsVpd() 424 constants::FAILURE) in checkAndUpdatePowerVsVpd() 433 {{constants::viniInf, in checkAndUpdatePowerVsVpd() 585 return constants::FAILURE; in updateKeywordOnHardware() [all …]
|
H A D | worker.cpp | 662 interfaceMap, constants::kwdVpdInf, move(propertyValueMap)); in populateKwdVPDpropertyMap() 699 std::string(constants::xyzLocationCodeInf), in populateInterfaces() 805 if (memcmp(l_io, i_pgKeyword.data() + constants::INDEX_OF_EQ0_IN_PG, in isCPUIOGoodOnly() 806 constants::SIZE_OF_8EQ_IN_PG) == 0) in isCPUIOGoodOnly() 901 {"CollectionStatus", constants::vpdCollectionNotStarted}}; in primeInventory() 904 constants::vpdCollectionInterface, in primeInventory() 994 constants::ipzVpdInf + recordName); in processCopyRecordFlag() 1008 constants::ipzVpdInf + recordName); in processInheritFlag() 1072 constants::operationalStatusInf}; in processFunctionalProperty() 1082 if (l_serviceName == constants::pimServiceName) in processFunctionalProperty() [all …]
|
H A D | isdimm_parser.cpp | 77 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 D | parser.cpp | 62 int l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeyword() 85 if (constants::FAILURE == dbusUtility::EnableRebootGuard()) in updateVpdKeyword() 95 return constants::FAILURE; in updateVpdKeyword() 135 l_interfaceName = constants::ipzVpdInf + l_recordName; in updateVpdKeyword() 220 l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeyword() 224 if (constants::FAILURE == dbusUtility::DisableRebootGuard()) in updateVpdKeyword() 266 int l_bytesUpdatedOnHardware = constants::FAILURE; in updateVpdKeywordOnHardware() 289 if (constants::FAILURE == dbusUtility::EnableRebootGuard()) in updateVpdKeywordOnHardware() 299 return constants::FAILURE; in updateVpdKeywordOnHardware() 329 if (constants::FAILURE == dbusUtility::DisableRebootGuard()) in updateVpdKeywordOnHardware()
|
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/ |
H A D | dbus_utility.hpp | 147 constants::objectMapperService, constants::objectMapperPath, in getObjectSubTree() 148 constants::objectMapperInf, "GetSubTree"); in getObjectSubTree() 272 if (l_nodeHandle.key().str.find(constants::pimPath, 0) != in callPIM() 276 0, std::strlen(constants::pimPath), ""); in callPIM() 283 bus.new_method_call(constants::pimServiceName, constants::pimPath, in callPIM() 284 constants::pimIntf, "Notify"); in callPIM() 347 constants::biosConfigMgrService, constants::biosConfigMgrObjPath, in biosGetAttributeMethodCall() 348 constants::biosConfigMgrInterface, "GetAttribute"); in biosGetAttributeMethodCall() 415 constants::hostService, constants::hostObjectPath, in isHostRunning() 416 constants::hostInterface, "CurrentHostState"); in isHostRunning() [all …]
|
H A D | vpd_specific_utility.hpp | 86 int l_rc{constants::FAILURE}; in dumpBadVpd() 125 l_rc = constants::SUCCESS; in dumpBadVpd() 214 l_result.insert(constants::BD_YEAR_END, 1, '-'); in encodeKeyword() 215 l_result.insert(constants::BD_MONTH_END, 1, '-'); in encodeKeyword() 216 l_result.insert(constants::BD_DAY_END, 1, ' '); in encodeKeyword() 217 l_result.insert(constants::BD_HOUR_END, 1, ':'); in encodeKeyword() 249 int l_rc{constants::FAILURE}; in insertOrMerge() 265 l_rc = constants::SUCCESS; in insertOrMerge() 298 std::string kwd1, kwd2{constants::kwdSE}; in getExpandedLocationCode() 309 kwd1 = constants::kwdFC; in getExpandedLocationCode() [all …]
|
/openbmc/openpower-vpd-parser/vpd-tool/src/ |
H A D | vpd_tool.cpp | 20 int l_rc = constants::FAILURE; in readKeyword() 32 constants::baseInventoryPath + i_vpdPath); in readKeyword() 35 constants::inventoryManagerService, l_inventoryObjectPath, in readKeyword() 36 constants::ipzVpdInfPrefix + i_recordName, i_keywordName); in readKeyword() 51 l_rc = constants::SUCCESS; in readKeyword() 60 l_rc = constants::SUCCESS; in readKeyword() 93 int l_rc{constants::FAILURE}; in dumpObject() 97 i_fruPath = constants::baseInventoryPath + i_fruPath; in dumpObject() 112 l_rc = constants::SUCCESS; in dumpObject() 155 if (l_interface == constants::inventoryItemInf) in populateFruJson() [all …]
|
H A D | vpd_tool_main.cpp | 33 return vpd::constants::FAILURE; in forceReset() 60 return vpd::constants::SUCCESS; in doMfgClean() 95 return vpd::constants::FAILURE; in writeKeyword() 104 return vpd::constants::FAILURE; in writeKeyword() 113 return vpd::constants::FAILURE; in writeKeyword() 150 return vpd::constants::FAILURE; in readKeyword() 186 return vpd::constants::FAILURE; in checkOptionValuePair() 190 (i_recordName.size() != vpd::constants::RECORD_SIZE)) in checkOptionValuePair() 194 return vpd::constants::FAILURE; in checkOptionValuePair() 198 (i_keywordName.size() != vpd::constants::KEYWORD_SIZE)) in checkOptionValuePair() [all …]
|
/openbmc/openpower-vpd-parser/vpd-tool/include/ |
H A D | tool_utils.hpp | 133 std::cout << i_jsonData.dump(constants::INDENTATION) << std::endl; in printJson() 208 constants::vpdManagerService, constants::vpdManagerObjectPath, in readKeywordFromHardware() 209 constants::vpdManagerInfName, "ReadKeyword"); in readKeywordFromHardware() 250 if (i_keywordValue.substr(0, 2).compare("0x") == constants::STR_CMP_SUCCESS) in saveToFile() 328 int l_rc = constants::FAILURE; in writeKeyword() 332 constants::vpdManagerService, constants::vpdManagerObjectPath, in writeKeyword() 333 constants::vpdManagerInfName, "UpdateKeyword"); in writeKeyword() 367 int l_rc = constants::FAILURE; in writeKeywordOnHardware() 371 constants::vpdManagerService, constants::vpdManagerObjectPath, in writeKeywordOnHardware() 372 constants::vpdManagerInfName, "WriteKeywordOnHardware"); in writeKeywordOnHardware() [all …]
|
/openbmc/linux/scripts/gdb/linux/ |
H A D | proc.py | 16 from linux import constants 123 FS_INFO = {constants.LX_SB_SYNCHRONOUS: ",sync", 124 constants.LX_SB_MANDLOCK: ",mand", 125 constants.LX_SB_DIRSYNC: ",dirsync", 126 constants.LX_SB_NOATIME: ",noatime", 127 constants.LX_SB_NODIRATIME: ",nodiratime"} 129 MNT_INFO = {constants.LX_MNT_NOSUID: ",nosuid", 130 constants.LX_MNT_NODEV: ",nodev", 131 constants.LX_MNT_NOEXEC: ",noexec", 132 constants.LX_MNT_NOATIME: ",noatime", [all …]
|
H A D | vmalloc.py | 11 from linux import lists, utils, stackdepot, constants, mm 13 if constants.LX_CONFIG_MMU: 29 if not constants.LX_CONFIG_MMU: 46 if v['flags'] & constants.LX_VM_IOREMAP: 48 if v['flags'] & constants.LX_VM_ALLOC: 50 if v['flags'] & constants.LX_VM_MAP: 52 if v['flags'] & constants.LX_VM_USERMAP: 54 if v['flags'] & constants.LX_VM_DMA_COHERENT:
|
H A D | radixtree.py | 15 from linux import constants 22 …return ((node.cast(long_type) & constants.LX_RADIX_TREE_ENTRY_MASK) == constants.LX_RADIX_TREE_INT… 27 indirect_ptr = node.cast(long_type) & ~constants.LX_RADIX_TREE_INTERNAL_NODE 31 return (constants.LX_RADIX_TREE_MAP_SIZE << node['shift']) - 1 55 shift = node['shift'] + constants.LX_RADIX_TREE_MAP_SHIFT 58 offset = (index >> node['shift']) & constants.LX_RADIX_TREE_MAP_MASK 68 shift -= constants.LX_RADIX_TREE_MAP_SHIFT
|
H A D | mm.py | 11 from linux import utils, constants 25 if not constants.LX_CONFIG_SPARSEMEM_VMEMMAP: 27 if constants.LX_CONFIG_ARM64 and utils.is_target_arch('aarch64'): 38 if constants.LX_CONFIG_ARM64_64K_PAGES: 42 self.MAX_PHYSMEM_BITS = constants.LX_CONFIG_ARM64_VA_BITS 44 self.PAGE_SHIFT = constants.LX_CONFIG_ARM64_PAGE_SHIFT 48 self.VA_BITS = constants.LX_CONFIG_ARM64_VA_BITS 59 if str(constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER).isdigit(): 60 self.MAX_ORDER = constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER 70 if constants.LX_CONFIG_SPARSEMEM_EXTREME: [all …]
|
H A D | interrupts.py | 7 from linux import constants 15 return desc['status_use_accessors'] & constants.LX_IRQ_HIDDEN 21 return desc['irq_data']['common']['state_use_accessors'] & constants.LX_IRQD_LEVEL 68 if constants.LX_CONFIG_GENERIC_IRQ_SHOW_LEVEL: 120 if constants.LX_CONFIG_X86_LOCAL_APIC: 129 if constants.LX_CONFIG_SMP: 134 if constants.LX_CONFIG_X86_THERMAL_VECTOR: 137 if constants.LX_CONFIG_X86_MCE_THRESHOLD: 140 if constants.LX_CONFIG_X86_MCE_AMD: 143 if constants.LX_CONFIG_X86_MCE: [all …]
|
H A D | slab.py | 12 from linux import lists, utils, stackdepot, constants, mm 14 SLAB_RED_ZONE = constants.LX_SLAB_RED_ZONE 15 SLAB_POISON = constants.LX_SLAB_POISON 16 SLAB_KMALLOC = constants.LX_SLAB_KMALLOC 17 SLAB_HWCACHE_ALIGN = constants.LX_SLAB_HWCACHE_ALIGN 18 SLAB_CACHE_DMA = constants.LX_SLAB_CACHE_DMA 19 SLAB_CACHE_DMA32 = constants.LX_SLAB_CACHE_DMA32 20 SLAB_STORE_USER = constants.LX_SLAB_STORE_USER 21 SLAB_PANIC = constants.LX_SLAB_PANIC 26 if constants.LX_CONFIG_SLUB_DEBUG: [all …]
|
H A D | timerlist.py | 8 from linux import constants 58 text += " .resolution: {} nsecs\n".format(constants.LX_hrtimer_resolution) 61 if constants.LX_CONFIG_HIGH_RES_TIMERS: 79 if constants.LX_CONFIG_HIGH_RES_TIMERS: 89 if constants.LX_CONFIG_TICK_ONESHOT: 152 if constants.LX_NR_CPUS > 1: 198 if constants.LX_CONFIG_GENERIC_CLOCKEVENTS: 199 if constants.LX_CONFIG_GENERIC_CLOCKEVENTS_BROADCAST: 206 if constants.LX_CONFIG_TICK_ONESHOT:
|
H A D | modules.py | 16 from linux import cpus, utils, lists, constants 76 text = module['mem'][constants.LX_MOD_TEXT] 80 for i in range(constants.LX_MOD_TEXT, constants.LX_MOD_RO_AFTER_INIT + 1): 122 mod_text_start = mod['mem'][constants.LX_MOD_TEXT]['base'] 123 …mod_text_end = mod_text_start + mod['mem'][constants.LX_MOD_TEXT]['size'].cast(utils.get_ulong_typ…
|
/openbmc/telemetry/tests/src/utils/ |
H A D | string_utils.cpp | 47 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/telemetry/src/utils/ |
H A D | make_id_name.cpp | 47 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 D | dbus_path_utils.cpp | 35 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()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | Makefile | 27 always-y := hyp_constants.h hyp-constants.s 33 CFLAGS_hyp-constants.o = -I $(srctree)/$(src)/hyp/include 34 $(obj)/hyp-constants.s: $(src)/hyp/hyp-constants.c FORCE 37 $(obj)/hyp_constants.h: $(obj)/hyp-constants.s FORCE
|