Home
last modified time | relevance | path

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

12345678

/openbmc/openpower-vpd-parser/vpd-parser/
H A Dmemory_vpd_parser.cpp18 using namespace constants;
111 pow(constants::VALUE_2, (l_ByteValue - constants::VALUE_1)); in getDDR5DiePerPackage()
124 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDDimmSize()
128 constants::SHIFT_BITS_3, constants::VALUE_1, in getDdr5BasedDDimmSize()
157 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDDimmSize()
173 constants::SHIFT_BITS_5, constants::VALUE_0, in getDdr5BasedDDimmSize()
188 constants::SHIFT_BITS_0, constants::VALUE_1, in getDdr5BasedDDimmSize()
230 constants::VALUE_2 * ((iterator[constants::SPD_BYTE_235] & in getDdr5BasedDDimmSize()
237 constants::SHIFT_BITS_5, constants::VALUE_0, in getDdr5BasedDDimmSize()
330 if ((iterator[constants::SPD_BYTE_2] & constants::SPD_BYTE_MASK) == in getDDimmSize()
[all …]
H A Disdimm_vpd_parser.cpp75 tmp = iterator[constants::SPD_BYTE_4] & SPD_JEDEC_DDR4_SDRAM_CAP_MASK; in getDDR4DimmCapacity()
99 tmp = iterator[constants::SPD_BYTE_12] & SPD_JEDEC_DDR4_SDRAM_WIDTH_MASK; in getDDR4DimmCapacity()
120 tmp = iterator[constants::SPD_BYTE_12] & SPD_JEDEC_DDR4_NUM_RANKS_MASK; in getDDR4DimmCapacity()
138 char tmpPN[constants::PART_NUM_LEN + 1] = {'\0'}; in getDDR4PartNumber()
150 char tmpSN[constants::SERIAL_NUM_LEN + 1] = {'\0'}; in getDDR4SerialNumber()
190 uint8_t mtbUnits = iterator[openpower::vpd::constants::SPD_BYTE_18] & in getDDR4FruNumber()
191 openpower::vpd::constants::SPD_BYTE_MASK; in getDDR4FruNumber()
331 if ((iterator[constants::SPD_BYTE_2] & constants::SPD_BYTE_MASK) == in readKeywords()
332 constants::SPD_DRAM_TYPE_DDR5) in readKeywords()
354 else if ((iterator[constants::SPD_BYTE_2] & constants::SPD_BYTE_MASK) == in readKeywords()
[all …]
/openbmc/linux/scripts/gdb/linux/
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",
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",
134 constants.LX_MNT_RELATIME: ",relatime"}
[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
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:
149 if constants.LX_CONFIG_X86_IO_APIC:
[all …]
H A Dmm.py11 from linux import utils, constants
25 if not constants.LX_CONFIG_SPARSEMEM_VMEMMAP:
38 if constants.LX_CONFIG_ARM64_64K_PAGES:
70 if constants.LX_CONFIG_SPARSEMEM_EXTREME:
107 if constants.LX_CONFIG_KASAN_GENERIC or constants.LX_CONFIG_KASAN_SW_TAGS:
118 if constants.LX_CONFIG_NUMA and constants.LX_CONFIG_NODES_SHIFT:
184 if constants.LX_CONFIG_KASAN_SW_TAGS or constants.LX_CONFIG_KASAN_HW_TAGS:
208 if constants.LX_CONFIG_DEBUG_VIRTUAL:
235 if constants.LX_CONFIG_DEBUG_VIRTUAL:
265 if constants.LX_CONFIG_DEBUG_VIRTUAL:
[all …]
H A Dslab.py14 SLAB_RED_ZONE = constants.LX_SLAB_RED_ZONE
15 SLAB_POISON = constants.LX_SLAB_POISON
16 SLAB_KMALLOC = constants.LX_SLAB_KMALLOC
18 SLAB_CACHE_DMA = constants.LX_SLAB_CACHE_DMA
20 SLAB_STORE_USER = constants.LX_SLAB_STORE_USER
21 SLAB_PANIC = constants.LX_SLAB_PANIC
26 if constants.LX_CONFIG_SLUB_DEBUG:
125 if constants.LX_CONFIG_STACKDEPOT:
227 if constants.LX_NR_CPUS > 1:
234 if constants.LX_CONFIG_STACKDEPOT:
[all …]
H A Dtimerlist.py8 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 Dmodules.py16 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…
H A DMakefile21 always-y += constants.py
22 $(obj)/constants.py: $(src)/constants.py.in FORCE
H A Dstackdepot.py10 from linux import utils, constants
12 if constants.LX_CONFIG_STACKDEPOT:
46 if not constants.LX_CONFIG_STACKDEPOT:
H A Dpage_owner.py10 from linux import utils, stackdepot, constants, mm
12 if constants.LX_CONFIG_PAGE_OWNER:
17 PAGE_EXT_OWNER = constants.LX_PAGE_EXT_OWNER
19 PAGE_EXT_OWNER_ALLOCATED = constants.LX_PAGE_EXT_OWNER_ALLOCATED
42 if not constants.LX_CONFIG_PAGE_OWNER:
/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/telemetry/src/utils/
H A Dmake_id_name.cpp47 if (strippedId.find_first_of(utils::constants::allowedCharactersInPath) == in generateId()
54 return c == '/' || utils::constants::allowedCharactersInPath.find(c) == in generateId()
61 strippedId.substr(0, constants::maxIdNameLength); in generateId()
68 if (digitsInIdx > constants::maxIdNameLength) in generateId()
76 strippedId.substr(0, constants::maxIdNameLength - digitsInIdx) + in generateId()
91 if (name.length() > constants::maxIdNameLength) in makeIdName()
105 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/
H A Deditor_impl.hpp113 openpower::vpd::constants::RecordLength recLength,
114 openpower::vpd::constants::ECCLength eccLength);
120 auto getValue(openpower::vpd::constants::offsets::Offsets offset);
194 openpower::vpd::constants::RecordOffset recOffset;
195 openpower::vpd::constants::ECCOffset recECCoffset;
198 openpower::vpd::constants::RecordSize recSize;
199 openpower::vpd::constants::DataOffset kwDataOffset;
/openbmc/linux/arch/arm64/kvm/
H A DMakefile27 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
/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-115/
H A Driscv32.patch11 python/mozbuild/mozbuild/configure/constants.py | 2 ++
29 …iff --git a/python/mozbuild/mozbuild/configure/constants.py b/python/mozbuild/mozbuild/configure/c…
31 --- a/python/mozbuild/mozbuild/configure/constants.py
32 +++ b/python/mozbuild/mozbuild/configure/constants.py
/openbmc/openpower-vpd-parser/
H A Dvpd_tool_impl.cpp694 constants::MAX_VPD_SIZE); in readKwFromHw()
800 constants::pimIntf, in getSystemDataFromCache()
806 constants::pimIntf, in getSystemDataFromCache()
812 constants::pimIntf, in getSystemDataFromCache()
818 constants::pimIntf, in getSystemDataFromCache()
842 getVPDInMap(constants::systemVpdFilePath, vpdMap, js, in fixSystemVPD()
843 constants::pimPath + in fixSystemVPD()
1173 getVPDInMap(constants::systemVpdFilePath, vpdMap, js, in cleanSystemVPD()
1174 constants::pimPath + in cleanSystemVPD()
1250 constants::pimPath + in fixSystemBackupVPD()
[all …]
/openbmc/linux/lib/
H A Dstrnlen_user.c25 const struct word_at_a_time constants = WORD_AT_A_TIME_CONSTANTS; in do_strnlen_user() local
42 if (has_zero(c, &data, &constants)) { in do_strnlen_user()
43 data = prep_zero_mask(c, data, &constants); in do_strnlen_user()
H A Dstrncpy_from_user.c31 const struct word_at_a_time constants = WORD_AT_A_TIME_CONSTANTS; in do_strncpy_from_user() local
54 if (has_zero(c, &data, &constants)) { in do_strncpy_from_user()
55 data = prep_zero_mask(c, data, &constants); in do_strncpy_from_user()
/openbmc/linux/drivers/video/fbdev/aty/
H A Daty128fb.c911 par->constants.ppll_max, par->constants.ppll_min, in aty128_get_pllinfo()
912 par->constants.xclk, par->constants.ref_divider, in aty128_get_pllinfo()
913 par->constants.ref_clk); in aty128_get_pllinfo()
956 if (!par->constants.ref_clk) in aty128_timings()
957 par->constants.ref_clk = 2950; in aty128_timings()
965 par->constants.xclk = round_div((2 * Nx * par->constants.ref_clk), in aty128_timings()
968 par->constants.ref_divider = in aty128_timings()
982 if (!par->constants.ppll_min) in aty128_timings()
984 if (!par->constants.ppll_max) in aty128_timings()
986 if (!par->constants.xclk) in aty128_timings()
[all …]

12345678