Home
last modified time | relevance | path

Searched full:constants (Results 1 – 25 of 1735) sorted by relevance

12345678910>>...70

/openbmc/openpower-vpd-parser/vpd-manager/src/
H A Dddimm_parser.cpp3 #include "constants.hpp"
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()
[all …]
H A Dbios_handler.cpp5 #include "constants.hpp"
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()
[all …]
H A Dparser_factory.cpp3 #include "constants.hpp"
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()
[all …]
H A Dkeyword_vpd_parser.cpp3 #include "constants.hpp"
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()
[all …]
H A Disdimm_parser.cpp3 #include "constants.hpp"
16 // Constants
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()
[all …]
H A Dmanager.cpp6 #include "constants.hpp"
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 in checkAndUpdatePowerVsVpd()
[all...]
/openbmc/openpower-vpd-parser/vpd-manager/include/utility/
H A Ddbus_utility.hpp3 #include "constants.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()
[all …]
H A Dvpd_specific_utility.hpp5 #include "constants.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()
[all …]
/openbmc/phosphor-webui/app/common/services/
H A DdataService.js14 'Constants',
15 function(Constants) { argument
16 this.server_health = Constants.SERVER_HEALTH.unknown;
18 this.LED_state = Constants.LED_STATE_TEXT.off;
46 Constants.API_CREDENTIALS.host_storage_key) !== null) {
48 Constants.API_CREDENTIALS.host_storage_key);
50 return Constants.API_CREDENTIALS.default_protocol + '://' +
59 Constants.API_CREDENTIALS.default_protocol + '://' + hostWithPort;
61 Constants.API_CREDENTIALS.host_storage_key, hostURL);
82 this.server_state = Constants.HOST_STATE_TEXT.on;
[all …]
/openbmc/linux/include/uapi/linux/
H A Dethtool_netlink.h61 /* add new constants above here */
113 /* add new constants above here */
137 /* add new constants above here */
150 /* add new constants above here */
159 /* add new constants above here */
172 /* add new constants above here */
184 /* add new constants above here */
193 /* add new constants above here */
204 /* add new constants above here */
213 /* add new constants above here */
[all …]
/openbmc/phosphor-webui/app/server-control/controllers/
H A Dpower-operations-controller.js13 '$scope', 'APIUtils', 'dataService', 'Constants', '$interval', '$q',
16 $scope, APIUtils, dataService, Constants, $interval, $q, toastService, argument
64 }, Constants.POLL_INTERVALS.POWER_OP);
79 Constants.HOST_STATE_TEXT.off, Constants.TIMEOUT.HOST_OFF,
80 Constants.MESSAGES.POLL.HOST_OFF_TIMEOUT);
85 Constants.HOST_STATE_TEXT.on, Constants.TIMEOUT.HOST_ON,
86 Constants.MESSAGES.POLL.HOST_ON_TIMEOUT);
91 Constants.MESSAGES.POWER_OP.WARM_REBOOT_FAILED);
109 Constants.HOST_STATE_TEXT.off,
110 Constants.TIMEOUT.HOST_OFF_IMMEDIATE,
[all …]
/openbmc/openpower-vpd-parser/vpd-tool/src/
H A Dvpd_tool.cpp20 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 Dvpd_tool_main.cpp33 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/linux/scripts/gdb/linux/
H A Dmm.py11 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 Dproc.py16 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 Dvmalloc.py11 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 Dradixtree.py15 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 Dinterrupts.py7 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 Dslab.py12 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 …]
/openbmc/u-boot/drivers/serial/
H A Datmel_usart.h219 /* Constants for USART_MODE */
228 /* Constants for USCLKS */
233 /* Constants for CHRL */
239 /* Constants for PAR */
247 /* Constants for NBSTOP */
252 /* Constants for CHMODE */
258 /* Constants for MSBF */
262 /* Constants for OVER */
266 /* Constants for CD */
270 /* Constants for TO */
[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/vpd-tool/include/
H A Dtool_utils.hpp133 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/include/video/
H A Dradeon.h456 /* MCLK_CNTL bit constants */
464 /* SCLK_CNTL bit constants */
469 /* SCLK_MORE_CNTL bit constants */
472 /* BUS_CNTL bit constants */
510 /* CLOCK_CNTL_INDEX bit constants */
513 /* CNFG_CNTL bit constants */
520 /* CRTC_EXT_CNTL bit constants */
530 /* DSTCACHE_CTLSTAT bit constants */
536 /* DSTCACHE_MODE bits constants */
540 /* CRTC_GEN_CNTL bit constants */
[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()
/openbmc/u-boot/include/
H A Dradeon.h458 /* MCLK_CNTL bit constants */
466 /* SCLK_CNTL bit constants */
471 /* SCLK_MORE_CNTL bit constants */
474 /* BUS_CNTL bit constants */
512 /* CLOCK_CNTL_INDEX bit constants */
515 /* CONFIG_CNTL bit constants */
522 /* CRTC_EXT_CNTL bit constants */
532 /* DSTCACHE_CTLSTAT bit constants */
538 /* CRTC_GEN_CNTL bit constants */
547 /* CRTC_STATUS bit constants */
[all …]

12345678910>>...70