Home
last modified time | relevance | path

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

1234

/include/asm-generic/bitops/
A D__fls.h15 unsigned int num = BITS_PER_LONG - 1; in generic___fls()
17 #if BITS_PER_LONG == 64 in generic___fls()
23 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in generic___fls()
27 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in generic___fls()
31 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in generic___fls()
35 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in generic___fls()
39 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in generic___fls()
A Dsched.h15 #if BITS_PER_LONG == 64 in sched_find_first_bit()
19 #elif BITS_PER_LONG == 32 in sched_find_first_bit()
28 #error BITS_PER_LONG not defined in sched_find_first_bit()
A Dfls64.h18 #if BITS_PER_LONG == 32
26 #elif BITS_PER_LONG == 64
34 #error BITS_PER_LONG not 32 or 64
A D__ffs.h17 #if BITS_PER_LONG == 64 in generic___ffs()
A Dgeneric-non-atomic.h128 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in generic_test_bit()
140 return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1))); in generic_test_bit_acquire()
/include/linux/
A Dhmm.h40 HMM_PFN_VALID = 1UL << (BITS_PER_LONG - 1),
41 HMM_PFN_WRITE = 1UL << (BITS_PER_LONG - 2),
42 HMM_PFN_ERROR = 1UL << (BITS_PER_LONG - 3),
47 HMM_PFN_DMA_MAPPED = 1UL << (BITS_PER_LONG - 4),
48 HMM_PFN_P2PDMA = 1UL << (BITS_PER_LONG - 5),
49 HMM_PFN_P2PDMA_BUS = 1UL << (BITS_PER_LONG - 6),
51 HMM_PFN_ORDER_SHIFT = (BITS_PER_LONG - 11),
A Djoystick.h14 #if BITS_PER_LONG == 64
16 #elif BITS_PER_LONG == 32
19 #error Unexpected BITS_PER_LONG
A Dcount_zeros.h26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
28 return BITS_PER_LONG - fls64(x); in count_leading_zeros()
31 #define COUNT_LEADING_ZEROS_0 BITS_PER_LONG
A Dpage-flags-layout.h59 <= BITS_PER_LONG - NR_PAGEFLAGS
96 KASAN_TAG_WIDTH + LAST_CPUPID_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
107 KASAN_TAG_WIDTH + LAST_CPUPID_WIDTH > BITS_PER_LONG - NR_PAGEFLAGS
112 #define LRU_REFS_WIDTH min(__LRU_REFS_WIDTH, BITS_PER_LONG - NR_PAGEFLAGS - \
120 #define NR_UNUSED_PAGEFLAG_BITS (BITS_PER_LONG - \
A Dhash.h14 #if BITS_PER_LONG == 32
17 #elif BITS_PER_LONG == 64
76 #if BITS_PER_LONG == 64 in hash_64_generic()
95 #if BITS_PER_LONG == 64 in hash32_ptr()
A Dmm_types_task.h20 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
38 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
58 #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) && (BITS_PER_LONG <= 32)
A Ddynamic_queue_limits.h93 now_hi = now / BITS_PER_LONG; in dql_queue_stall()
103 if (now_hi * BITS_PER_LONG == in dql_queue_stall()
104 (dql->history_head + i) * BITS_PER_LONG) in dql_queue_stall()
A Dbitmap.h269 if (nbits % BITS_PER_LONG) in bitmap_copy_clear_tail()
270 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
280 if (count % BITS_PER_LONG) in bitmap_copy_and_extend()
293 #if BITS_PER_LONG == 64
311 #if BITS_PER_LONG == 32
770 unsigned long offset = start % BITS_PER_LONG; in bitmap_read()
771 unsigned long space = BITS_PER_LONG - offset; in bitmap_read()
774 if (unlikely(!nbits || nbits > BITS_PER_LONG)) in bitmap_read()
810 if (unlikely(!nbits || nbits > BITS_PER_LONG)) in bitmap_write()
815 offset = start % BITS_PER_LONG; in bitmap_write()
[all …]
A Dmod_devicetable.h371 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
372 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
373 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
374 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
375 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
376 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
377 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
378 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
379 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
380 kernel_ulong_t propbit[INPUT_DEVICE_ID_PROP_MAX / BITS_PER_LONG + 1];
A Dwordpart.h54 # define aligned_byte_mask(n) (~0xffUL << (BITS_PER_LONG - 8 - 8*(n)))
A Dbits.h8 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG))
9 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
A Defi.h33 #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1)))
35 #define EFI_UNSUPPORTED ( 3 | (1UL << (BITS_PER_LONG-1)))
36 #define EFI_BAD_BUFFER_SIZE ( 4 | (1UL << (BITS_PER_LONG-1)))
37 #define EFI_BUFFER_TOO_SMALL ( 5 | (1UL << (BITS_PER_LONG-1)))
38 #define EFI_NOT_READY ( 6 | (1UL << (BITS_PER_LONG-1)))
39 #define EFI_DEVICE_ERROR ( 7 | (1UL << (BITS_PER_LONG-1)))
40 #define EFI_WRITE_PROTECTED ( 8 | (1UL << (BITS_PER_LONG-1)))
42 #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
43 #define EFI_ACCESS_DENIED (15 | (1UL << (BITS_PER_LONG-1)))
44 #define EFI_TIMEOUT (18 | (1UL << (BITS_PER_LONG-1)))
[all …]
A Du64_stats_sync.h65 #if BITS_PER_LONG == 32
70 #if BITS_PER_LONG == 64
A Dbitops.h272 #if BITS_PER_LONG == 32 in __ffs64()
275 #elif BITS_PER_LONG != 64 in __ffs64()
276 #error BITS_PER_LONG not 32 or 64 in __ffs64()
291 return word ? __ffs(word) : BITS_PER_LONG; in fns()
/include/asm-generic/
A Dbitsperlong.h9 #define BITS_PER_LONG 64 macro
11 #define BITS_PER_LONG 32 macro
18 #if 0 && BITS_PER_LONG != __BITS_PER_LONG
36 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
A Dgetorder.h33 return BITS_PER_LONG - PAGE_SHIFT; in get_order()
43 #if BITS_PER_LONG == 32 in get_order()
A Dfprobe.h18 #define FPROBE_HEADER_MSB_SIZE_SHIFT (BITS_PER_LONG - FPROBE_DATA_SIZE_BITS)
28 GENMASK(BITS_PER_LONG - 1, FPROBE_HEADER_MSB_SIZE_SHIFT)
/include/linux/mtd/
A Dmap.h72 # if BITS_PER_LONG < 64
74 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8)
80 # define map_bankwidth_is_large(map) (BITS_PER_LONG < 64)
95 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8)
115 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8)
167 #define MAX_MAP_LONGS (((MAX_MAP_BANKWIDTH * 8) + BITS_PER_LONG - 1) / BITS_PER_LONG)
332 #if BITS_PER_LONG >= 64 in map_word_load()
368 #if BITS_PER_LONG < 64
400 #if BITS_PER_LONG >= 64 in inline_map_read()
420 #if BITS_PER_LONG >= 64 in inline_map_write()
/include/linux/mlx5/
A Ddoorbell.h52 #if BITS_PER_LONG == 64 in mlx5_write64()
/include/trace/stages/
A Dstage5_get_offsets.h99 ((BITS_PER_LONG / 8) - 1)) / (BITS_PER_LONG / 8))
107 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8))

Completed in 32 milliseconds

1234