Home
last modified time | relevance | path

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

1234

/linux/scripts/gdb/linux/
H A Dproc.py16 from linux import constants
124 FS_INFO = {constants.LX_SB_SYNCHRONOUS: ",sync",
125 constants.LX_SB_MANDLOCK: ",mand",
126 constants.LX_SB_DIRSYNC: ",dirsync",
127 constants.LX_SB_NOATIME: ",noatime",
128 constants.LX_SB_NODIRATIME: ",nodiratime"}
130 MNT_INFO = {constants.LX_MNT_NOSUID: ",nosuid",
131 constants.LX_MNT_NODEV: ",nodev",
132 constants.LX_MNT_NOEXEC: ",noexec",
133 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:
48 if v['flags'] & constants.LX_VM_IOREMAP:
50 if v['flags'] & constants.LX_VM_ALLOC:
52 if v['flags'] & constants.LX_VM_MAP:
54 if v['flags'] & constants.LX_VM_USERMAP:
56 if v['flags'] & constants.LX_VM_DMA_COHERENT:
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'):
37 self.PAGE_SHIFT = constants.LX_CONFIG_PAGE_SHIFT
67 if constants.LX_CONFIG_SPARSEMEM_EXTREME:
85 if constants.LX_CONFIG_NUMA and constants.LX_CONFIG_NODES_SHIFT:
86 self.NODE_SHIFT = constants.LX_CONFIG_NODES_SHIFT
121 if constants.LX_CONFIG_SPARSEMEM_VMEMMAP:
209 if constants.LX_CONFIG_ARM64_64K_PAGES:
213 self.MAX_PHYSMEM_BITS = constants.LX_CONFIG_ARM64_VA_BITS
[all …]
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
58 shift = node['shift'] + constants.LX_RADIX_TREE_MAP_SHIFT
61 offset = (index >> node['shift']) & constants.LX_RADIX_TREE_MAP_MASK
71 shift -= constants.LX_RADIX_TREE_MAP_SHIFT
78 offset = (index >> int(parent["shift"])) & constants.LX_RADIX_TREE_MAP_MASK
88 return int(node["shift"]) + constants.LX_RADIX_TREE_MAP_SHIFT, \
135 if offset >= constants.LX_RADIX_TREE_MAP_SIZE:
[all …]
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 …]
H A Dkasan.py10 from linux import constants, mm
25 if constants.LX_CONFIG_KASAN_GENERIC or constants.LX_CONFIG_KASAN_SW_TAGS:
29 if not constants.LX_CONFIG_KASAN_GENERIC or constants.LX_CONFIG_KASAN_SW_TAGS:
H A Dtimerlist.py8 from linux import constants
58 text += " .resolution: {} nsecs\n".format(constants.LX_hrtimer_resolution)
59 if constants.LX_CONFIG_HIGH_RES_TIMERS:
77 if constants.LX_CONFIG_HIGH_RES_TIMERS:
87 if constants.LX_CONFIG_TICK_ONESHOT:
151 if constants.LX_NR_CPUS > 1:
197 if constants.LX_CONFIG_GENERIC_CLOCKEVENTS:
198 if constants.LX_CONFIG_GENERIC_CLOCKEVENTS_BROADCAST:
205 if constants.LX_CONFIG_TICK_ONESHOT:
H A Dmodules.py16 from linux import cpus, utils, lists, constants
79 text = module['mem'][constants.LX_MOD_TEXT]
83 for i in range(constants.LX_MOD_TEXT, constants.LX_MOD_RO_AFTER_INIT + 1):
125 mod_text_start = mod['mem'][constants.LX_MOD_TEXT]['base']
126 …mod_text_end = mod_text_start + mod['mem'][constants.LX_MOD_TEXT]['size'].cast(utils.get_ulong_typ…
H A Dstackdepot.py10 from linux import utils, constants
12 if constants.LX_CONFIG_STACKDEPOT:
57 if not constants.LX_CONFIG_STACKDEPOT:
72 if constants.LX_CONFIG_STACKDEPOT:
76 if not constants.LX_CONFIG_STACKDEPOT:
H A Dmapletree.py13 from linux import constants
90 self.offset = constants.LX_MAPLE_NODE_SLOTS
95 self.offset = constants.LX_MAPLE_NODE_SLOTS
136 indirect_ptr = node['parent'].cast(ulong_type) & ~constants.LX_MAPLE_NODE_MASK
148 indirect_ptr = indirect_ptr & ~constants.LX_MAPLE_NODE_MASK
166 return constants.LX_MAPLE_RANGE64_SLOTS - 1
168 return constants.LX_MAPLE_ARANGE64_SLOTS - 1
H A DMakefile21 always-y += constants.py
22 $(obj)/constants.py: $(src)/constants.py.in FORCE
H A Dbpf.py9 from linux import constants, lists, radixtree, utils
12 if constants.LX_CONFIG_BPF and constants.LX_CONFIG_BPF_JIT:
14 if constants.LX_CONFIG_BPF_SYSCALL:
27 if not (constants.LX_CONFIG_BPF and constants.LX_CONFIG_BPF_JIT):
79 if not constants.LX_CONFIG_BPF_SYSCALL:
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:
H A Dsymbols.py21 from linux import bpf, constants, modules, utils
186 module_addr = str(module['mem'][constants.LX_MOD_TEXT]['base']).split()[0]
330 if constants.LX_CONFIG_BPF_SYSCALL:
333 if constants.LX_CONFIG_BPF and constants.LX_CONFIG_BPF_JIT:
H A Dclk.py8 from linux import utils, lists, constants
38 '(c)' if clk['flags'] & constants.LX_CLK_GET_RATE_NOCACHE else ' '))
H A D.gitignore4 constants.py
H A Dxarray.py13 from linux import constants
/linux/arch/arm64/kvm/
H A DMakefile33 always-y := hyp_constants.h hyp-constants.s
39 CFLAGS_hyp-constants.o = -I $(src)/hyp/include
40 $(obj)/hyp-constants.s: $(src)/hyp/hyp-constants.c FORCE
43 $(obj)/hyp_constants.h: $(obj)/hyp-constants.s FORCE
/linux/scripts/gdb/
H A Dvmlinux-gdb.py25 import linux.constants
26 if linux.constants.LX_CONFIG_DEBUG_INFO_REDUCED:
/linux/rust/
H A Dbindgen_parameters33 # These constants are sometimes not recognized by bindgen depending on config.
34 # We use const helpers to aid bindgen, to avoid conflicts when constants are
35 # recognized, block generation of the non-helper constants.
/linux/lib/crc/s390/
H A Dcrc32le-vx.c92 …u32 crc32_le_vgfm_generic(u32 crc, unsigned char const *buf, size_t size, unsigned long *constants) in crc32_le_vgfm_generic() argument
95 fpu_vlm(CONST_PERM_LE2BE, CONST_CRC_POLY, constants); in crc32_le_vgfm_generic()
/linux/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_symbol.c470 symlist_t constants; in symtable_dump() local
487 SLIST_INIT(&constants); in symtable_dump()
509 symlist_add(&constants, cursym, in symtable_dump()
652 while (SLIST_FIRST(&constants) != NULL) { in symtable_dump()
655 curnode = SLIST_FIRST(&constants); in symtable_dump()
656 SLIST_REMOVE_HEAD(&constants, links); in symtable_dump()
/linux/scripts/coccinelle/misc/
H A Dorplus.cocci2 /// Check for constants that are added but are used elsewhere as bitmasks
4 /// bits in the two constants are actually disjoint.
/linux/lib/
H A Dstring.c115 const struct word_at_a_time constants = WORD_AT_A_TIME_CONSTANTS; in sized_strscpy() local
157 if (has_zero(c, &data, &constants)) { in sized_strscpy()
158 data = prep_zero_mask(c, data, &constants); in sized_strscpy()

1234