Home
last modified time | relevance | path

Searched refs:bitmask (Results 1 – 13 of 13) sorted by relevance

/tools/power/cpupower/utils/helpers/
A Dbitmask.h11 struct bitmask { struct
16 struct bitmask *bitmask_alloc(unsigned int n); argument
17 void bitmask_free(struct bitmask *bmp);
19 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
20 struct bitmask *bitmask_setall(struct bitmask *bmp);
21 struct bitmask *bitmask_clearall(struct bitmask *bmp);
23 unsigned int bitmask_first(const struct bitmask *bmp);
25 unsigned int bitmask_last(const struct bitmask *bmp);
26 int bitmask_isallclear(const struct bitmask *bmp);
27 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i);
[all …]
A Dbitmask.c24 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc()
26 struct bitmask *bmp; in bitmask_alloc()
41 void bitmask_free(struct bitmask *bmp) in bitmask_free()
115 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i) in bitmask_setbit()
122 struct bitmask *bitmask_setall(struct bitmask *bmp) in bitmask_setall()
131 struct bitmask *bitmask_clearall(struct bitmask *bmp) in bitmask_clearall()
140 int bitmask_isallclear(const struct bitmask *bmp) in bitmask_isallclear()
150 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i) in bitmask_isbitset()
156 unsigned int bitmask_first(const struct bitmask *bmp) in bitmask_first()
162 unsigned int bitmask_last(const struct bitmask *bmp) in bitmask_last()
[all …]
A Dhelpers.h38 extern struct bitmask *cpus_chosen;
213 extern struct bitmask *online_cpus;
214 extern struct bitmask *offline_cpus;
/tools/testing/selftests/x86/
A Damx.c168 unsigned long bitmask, expected_bitmask; in validate_req_xcomp_perm() local
171 rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_PERM, &bitmask); in validate_req_xcomp_perm()
174 } else if (!(bitmask & XFEATURE_MASK_XTILECFG)) { in validate_req_xcomp_perm()
190 expected_bitmask = bitmask | XFEATURE_MASK_XTILEDATA; in validate_req_xcomp_perm()
192 rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_PERM, &bitmask); in validate_req_xcomp_perm()
195 } else if (bitmask != expected_bitmask) { in validate_req_xcomp_perm()
197 bitmask, expected_bitmask); in validate_req_xcomp_perm()
A Dlam.c403 uint64_t ptr_address, bitmask; in get_user_syscall() local
408 bitmask = L5_SIGN_EXT_MASK; in get_user_syscall()
411 bitmask = L4_SIGN_EXT_MASK; in get_user_syscall()
441 bitmask &= (bitmask >> 1); in get_user_syscall()
442 ptr = (void *)((uint64_t)ptr | bitmask); in get_user_syscall()
446 bitmask &= (bitmask << 1); in get_user_syscall()
447 ptr = (void *)((uint64_t)ptr | bitmask); in get_user_syscall()
451 ptr = (void *)((uint64_t)ptr | bitmask); in get_user_syscall()
/tools/power/cpupower/utils/
A Dcpupower.c36 struct bitmask *cpus_chosen;
37 struct bitmask *online_cpus;
38 struct bitmask *offline_cpus;
/tools/testing/selftests/bpf/progs/
A Dbloom_filter_bench.c124 __u32 bitmask = (1ULL << 21) - 1; in bloom_hashmap_lookup() local
127 index = index & bitmask; in bloom_hashmap_lookup()
/tools/perf/util/
A Dtrace-event-parse.c135 long bitmask = strtoul(sym->value, NULL, 0); in convert_sym() local
138 for (i = 0; !(bitmask & 1); i++) in convert_sym()
139 bitmask >>= 1; in convert_sym()
/tools/power/cpupower/
A DTODO3 - Use bitmask functions to parse CPU topology more robust
/tools/testing/selftests/kvm/lib/x86/
A Dprocessor.c807 u64 bitmask; in __vm_xsave_require_permission() local
812 .addr = (unsigned long) &bitmask, in __vm_xsave_require_permission()
830 __TEST_REQUIRE(bitmask & xfeature, in __vm_xsave_require_permission()
835 rc = syscall(SYS_arch_prctl, ARCH_GET_XCOMP_GUEST_PERM, &bitmask); in __vm_xsave_require_permission()
837 TEST_ASSERT(bitmask & xfeature, in __vm_xsave_require_permission()
839 name, xfeature, bitmask); in __vm_xsave_require_permission()
/tools/perf/bench/
A Dnuma.c254 struct bitmask *cpumask = numa_allocate_cpumask(); in node_has_cpus()
344 struct bitmask *cpumask = numa_allocate_cpumask(); in bind_to_node()
396 struct bitmask *node_mask; in bind_to_memnode()
/tools/perf/Documentation/
A Djitdump-specification.txt46 * uint64_t flags : a bitmask of flags
/tools/arch/x86/kcpuid/
A Dcpuid.csv394 …0x10, 2:1, eax, 4:0, cat_cbm_len , L3/L2_CAT capacity bitmask length, min…
1046 0x80000022, 0, ecx, 31:0, active_umc_bitmask , Active UMCs bitmask

Completed in 24 milliseconds