Home
last modified time | relevance | path

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

1234

/include/asm-generic/bitops/
D__fls.h15 int num = BITS_PER_LONG - 1; in __fls()
17 #if BITS_PER_LONG == 64 in __fls()
23 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls()
27 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
31 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
35 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls()
39 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
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()
Dfls64.h18 #if BITS_PER_LONG == 32
26 #elif BITS_PER_LONG == 64
34 #error BITS_PER_LONG not 32 or 64
D__ffs.h17 #if BITS_PER_LONG == 64 in __ffs()
/include/linux/
Du64_stats_sync.h69 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
74 #if BITS_PER_LONG == 64
118 #if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
128 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin()
135 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end()
145 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin_irqsave()
156 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end_irqrestore()
164 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_begin()
173 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_begin()
182 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_retry()
[all …]
Djoystick.h14 #if BITS_PER_LONG == 64
16 #elif BITS_PER_LONG == 32
19 #error Unexpected BITS_PER_LONG
Dhmm.h41 HMM_PFN_VALID = 1UL << (BITS_PER_LONG - 1),
42 HMM_PFN_WRITE = 1UL << (BITS_PER_LONG - 2),
43 HMM_PFN_ERROR = 1UL << (BITS_PER_LONG - 3),
44 HMM_PFN_ORDER_SHIFT = (BITS_PER_LONG - 8),
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
Dhash.h14 #if BITS_PER_LONG == 32
17 #elif BITS_PER_LONG == 64
79 #if BITS_PER_LONG == 64 in hash_64_generic()
98 #if BITS_PER_LONG == 64 in hash32_ptr()
Dpage-flags-layout.h59 <= BITS_PER_LONG - NR_PAGEFLAGS
94 KASAN_TAG_WIDTH + LAST_CPUPID_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
105 KASAN_TAG_WIDTH + LAST_CPUPID_WIDTH > BITS_PER_LONG - NR_PAGEFLAGS
110 #define LRU_REFS_WIDTH min(__LRU_REFS_WIDTH, BITS_PER_LONG - NR_PAGEFLAGS - \
Dbits.h10 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG))
11 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
36 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
Dmm_types_task.h25 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
66 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
Dprandom.h26 #if BITS_PER_LONG == 64
36 #elif BITS_PER_LONG == 32
47 #error Unsupported BITS_PER_LONG
Dmod_devicetable.h357 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
358 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
359 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
360 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
361 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
362 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
363 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
364 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
365 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
366 kernel_ulong_t propbit[INPUT_DEVICE_ID_PROP_MAX / BITS_PER_LONG + 1];
Dbitmap.h236 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
237 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
265 if (nbits % BITS_PER_LONG) in bitmap_copy_clear_tail()
266 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
273 #if BITS_PER_LONG == 64
565 const unsigned long offset = start % BITS_PER_LONG; in bitmap_get_value8()
580 const unsigned long offset = start % BITS_PER_LONG; in bitmap_set_value8()
Dbitops.h15 # define aligned_byte_mask(n) (~0xffUL << (BITS_PER_LONG - 8 - 8*(n)))
224 #if BITS_PER_LONG == 32 in __ffs64()
227 #elif BITS_PER_LONG != 64 in __ffs64()
228 #error BITS_PER_LONG not 32 or 64 in __ffs64()
Defi.h32 #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1)))
33 #define EFI_INVALID_PARAMETER ( 2 | (1UL << (BITS_PER_LONG-1)))
34 #define EFI_UNSUPPORTED ( 3 | (1UL << (BITS_PER_LONG-1)))
35 #define EFI_BAD_BUFFER_SIZE ( 4 | (1UL << (BITS_PER_LONG-1)))
36 #define EFI_BUFFER_TOO_SMALL ( 5 | (1UL << (BITS_PER_LONG-1)))
37 #define EFI_NOT_READY ( 6 | (1UL << (BITS_PER_LONG-1)))
38 #define EFI_DEVICE_ERROR ( 7 | (1UL << (BITS_PER_LONG-1)))
39 #define EFI_WRITE_PROTECTED ( 8 | (1UL << (BITS_PER_LONG-1)))
40 #define EFI_OUT_OF_RESOURCES ( 9 | (1UL << (BITS_PER_LONG-1)))
41 #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
[all …]
Dnospec.h37 return ~(long)(index | (size - 1UL - index)) >> (BITS_PER_LONG - 1); in array_index_mask_nospec()
Dmath.h44 #if BITS_PER_LONG == 32
168 #if BITS_PER_LONG < 64
/include/asm-generic/
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)
Dgetorder.h33 return BITS_PER_LONG - PAGE_SHIFT; in get_order()
43 #if BITS_PER_LONG == 32 in get_order()
/include/linux/mtd/
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)
331 #if BITS_PER_LONG >= 64 in map_word_load()
367 #if BITS_PER_LONG < 64
399 #if BITS_PER_LONG >= 64 in inline_map_read()
419 #if BITS_PER_LONG >= 64 in inline_map_write()
/include/linux/mlx5/
Ddoorbell.h52 #if BITS_PER_LONG == 64 in mlx5_write64()
/include/net/
Dflow.h94 } __attribute__((__aligned__(BITS_PER_LONG/8)));
154 } __attribute__((__aligned__(BITS_PER_LONG/8)));
169 } __attribute__((__aligned__(BITS_PER_LONG/8)));
188 } __attribute__((__aligned__(BITS_PER_LONG/8)));
/include/linux/mlx4/
Ddoorbell.h44 #if BITS_PER_LONG == 64

1234