Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 21 of 21) sorted by relevance

/tools/testing/selftests/vm/
Dmap_hugetlb.c75 int shift = 0; in main() local
80 shift = atoi(argv[2]); in main()
81 if (shift) in main()
82 flags |= (shift & MAP_HUGE_MASK) << MAP_HUGE_SHIFT; in main()
85 if (shift) in main()
86 printf("%u kB hugepages\n", 1 << shift); in main()
/tools/include/linux/
Dbitops.h68 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
70 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
/tools/testing/radix-tree/
Dtest.c217 tag, slot->shift, tagged, anyset); in verify_node()
229 if (slot->shift > 0) { in verify_node()
272 unsigned shift; in tree_verify_min_height() local
282 shift = node->shift; in tree_verify_min_height()
283 if (shift > 0) in tree_verify_min_height()
284 assert(maxindex > shift_maxindex(shift - RADIX_TREE_MAP_SHIFT)); in tree_verify_min_height()
D.gitignore1 generated/map-shift.h
Dmultiorder.c59 int shift = height * XA_CHUNK_SHIFT; in multiorder_iteration() local
63 assert(xas.xa_node->shift == shift); in multiorder_iteration()
Dtest.h56 unsigned long shift_maxindex(unsigned int shift);
/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c26 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - 3) + vm->page_shift; in pgd_index() local
27 uint64_t mask = (1UL << (vm->va_bits - shift)) - 1; in pgd_index()
29 return (gva >> shift) & mask; in pgd_index()
34 unsigned int shift = 2 * (vm->page_shift - 3) + vm->page_shift; in pud_index() local
40 return (gva >> shift) & mask; in pud_index()
45 unsigned int shift = (vm->page_shift - 3) + vm->page_shift; in pmd_index() local
51 return (gva >> shift) & mask; in pmd_index()
68 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - 3) + vm->page_shift; in ptrs_per_pgd() local
69 return 1 << (vm->va_bits - shift); in ptrs_per_pgd()
/tools/testing/selftests/bpf/progs/
Dtest_jhash.h7 static __always_inline u32 rol32(u32 word, unsigned int shift) in rol32() argument
9 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
Dtest_l4lb.c26 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
28 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
Dtest_l4lb_noinline.c22 static __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
24 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
Dtest_xdp_noinline.c19 static __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
21 return (word << shift) | (word >> ((-shift) & 31)); in rol32()
/tools/testing/selftests/bpf/
Dbpf_rand.h16 static inline uint64_t bpf_rand_u##x(int shift) \
18 return bpf_rand_mask((m)) << shift; \
/tools/iio/
Diio_utils.h45 unsigned shift; member
61 unsigned *shift, uint64_t *mask, unsigned *be,
Diio_generic_buffer.c77 input >>= info->shift; in print1byte()
100 input >>= info->shift; in print2byte()
123 input >>= info->shift; in print4byte()
146 input >>= info->shift; in print8byte()
Diio_utils.c86 unsigned *shift, uint64_t *mask, unsigned *be, in iioutils_get_type() argument
143 &padint, shift); in iioutils_get_type()
501 &current->shift, in build_channel_array()
/tools/perf/util/intel-pt-decoder/
Dintel-pt-pkt-decoder.c408 unsigned int offs = 1, shift; in intel_pt_get_cyc() local
413 for (shift = 5; byte & 1; shift += 7) { in intel_pt_get_cyc()
419 payload |= ((uint64_t)byte >> 1) << shift; in intel_pt_get_cyc()
/tools/perf/arch/x86/util/
Dintel-pt.c483 unsigned int shift; in intel_pt_val_config_term() local
501 for (shift = 0; bits && !(bits & 1); shift++) in intel_pt_val_config_term()
504 config >>= shift; in intel_pt_val_config_term()
/tools/firewire/
Dnosy-dump.c647 uint32_t index, shift, mask; in get_bits() local
650 shift = 32 - (offset & 31) - width; in get_bits()
653 return (data[index] >> shift) & mask; in get_bits()
/tools/power/x86/turbostat/
Dturbostat.c2632 int so, shift, sib_core; in get_thread_siblings() local
2654 for (shift = 0; shift < BITMASK_SIZE; shift++) { in get_thread_siblings()
2655 if ((map >> shift) & 0x1) { in get_thread_siblings()
2656 so = shift + offset; in get_thread_siblings()
/tools/perf/util/
Dintel-pt.c769 unsigned int shift; in intel_pt_mtc_period() local
775 for (shift = 0, config = pt->mtc_freq_bits; !(config & 1); shift++) in intel_pt_mtc_period()
780 return (config & pt->mtc_freq_bits) >> shift; in intel_pt_mtc_period()
/tools/include/uapi/linux/
Dkvm.h756 __u32 shift; member