/linux-master/include/linux/ |
H A D | joystick.h | 14 #if BITS_PER_LONG == 64 16 #elif BITS_PER_LONG == 32 19 #error Unexpected BITS_PER_LONG
|
H A D | count_zeros.h | 20 * If only the LSB of @x is set, then the result is BITS_PER_LONG-1. 26 return BITS_PER_LONG - fls(x); 28 return BITS_PER_LONG - fls64(x); 31 #define COUNT_LEADING_ZEROS_0 BITS_PER_LONG 40 * If only the MSB of @x is set, then the result is BITS_PER_LONG-1.
|
H A D | hmm.h | 36 HMM_PFN_VALID = 1UL << (BITS_PER_LONG - 1), 37 HMM_PFN_WRITE = 1UL << (BITS_PER_LONG - 2), 38 HMM_PFN_ERROR = 1UL << (BITS_PER_LONG - 3), 39 HMM_PFN_ORDER_SHIFT = (BITS_PER_LONG - 8),
|
/linux-master/arch/s390/lib/ |
H A D | find.c | 23 while (size & ~(BITS_PER_LONG - 1)) { 26 result += BITS_PER_LONG; 27 size -= BITS_PER_LONG; 31 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); 35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); 42 const unsigned long *p = addr + (offset / BITS_PER_LONG); 43 unsigned long result = offset & ~(BITS_PER_LONG - 1); 49 offset %= BITS_PER_LONG; 53 if (size < BITS_PER_LONG) 57 size -= BITS_PER_LONG; [all...] |
/linux-master/include/asm-generic/ |
H A D | bitsperlong.h | 9 #define BITS_PER_LONG 64 macro 11 #define BITS_PER_LONG 32 macro 18 #if 0 && BITS_PER_LONG != __BITS_PER_LONG 28 * that BITMAP_SIZE(n) is 1, i.e. 1 <= n <= BITS_PER_LONG. This allows 36 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
|
H A D | getorder.h | 33 return BITS_PER_LONG - PAGE_SHIFT; 43 #if BITS_PER_LONG == 32
|
/linux-master/tools/include/asm-generic/ |
H A D | bitsperlong.h | 8 #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) macro 10 #define BITS_PER_LONG __WORDSIZE macro 13 #if BITS_PER_LONG != __BITS_PER_LONG 22 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
|
/linux-master/include/asm-generic/bitops/ |
H A D | __fls.h | 15 int num = BITS_PER_LONG - 1; 17 #if BITS_PER_LONG == 64 23 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { 27 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { 31 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { 35 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { 39 if (!(word & (~0ul << (BITS_PER_LONG-1))))
|
H A D | fls64.h | 18 #if BITS_PER_LONG == 32 26 #elif BITS_PER_LONG == 64 34 #error BITS_PER_LONG not 32 or 64
|
H A D | sched.h | 15 #if BITS_PER_LONG == 64 19 #elif BITS_PER_LONG == 32 28 #error BITS_PER_LONG not defined
|
/linux-master/tools/include/asm-generic/bitops/ |
H A D | __fls.h | 15 int num = BITS_PER_LONG - 1; 17 #if BITS_PER_LONG == 64 23 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { 27 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { 31 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { 35 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { 39 if (!(word & (~0ul << (BITS_PER_LONG-1))))
|
H A D | fls64.h | 18 #if BITS_PER_LONG == 32 26 #elif BITS_PER_LONG == 64 34 #error BITS_PER_LONG not 32 or 64
|
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | intel_reset_types.h | 46 #define I915_WEDGED_ON_INIT (BITS_PER_LONG - 3) 47 #define I915_WEDGED_ON_FINI (BITS_PER_LONG - 2) 48 #define I915_WEDGED (BITS_PER_LONG - 1)
|
/linux-master/drivers/firmware/efi/libstub/ |
H A D | bitmap.c | 7 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); 13 bits_to_set = BITS_PER_LONG; 27 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); 33 bits_to_clear = BITS_PER_LONG;
|
H A D | find.c | 21 idx = __start / BITS_PER_LONG; \ 24 if ((idx + 1) * BITS_PER_LONG >= sz) \ 29 sz = min(idx * BITS_PER_LONG + __ffs(MUNGE(tmp)), sz); \
|
/linux-master/tools/testing/radix-tree/ |
H A D | bitmap.c | 9 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); 15 bits_to_clear = BITS_PER_LONG;
|
/linux-master/arch/mips/mm/ |
H A D | maccess.c | 9 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);
|
/linux-master/arch/loongarch/mm/ |
H A D | maccess.c | 9 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);
|
/linux-master/drivers/scsi/megaraid/ |
H A D | megaraid_mm.h | 71 #if BITS_PER_LONG == 32 75 #if BITS_PER_LONG == 64 85 #if BITS_PER_LONG == 32 89 #if BITS_PER_LONG == 64
|
/linux-master/arch/parisc/include/asm/ |
H A D | signal.h | 9 #define _NSIG_BPW BITS_PER_LONG
|
/linux-master/drivers/mtd/nand/ |
H A D | bbt.c | 76 ((entry * bits_per_block) / BITS_PER_LONG); 77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; 84 if (bits_per_block + offs > BITS_PER_LONG) 85 status |= pos[1] << (BITS_PER_LONG - offs); 109 ((entry * bits_per_block) / BITS_PER_LONG); 110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; 119 if (bits_per_block + offs > BITS_PER_LONG) { 120 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG;
|
/linux-master/tools/include/linux/ |
H A D | bits.h | 9 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) 10 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 35 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
|
/linux-master/arch/riscv/include/asm/ |
H A D | arch_hweight.h | 12 #if (BITS_PER_LONG == 64) 14 #elif (BITS_PER_LONG == 32) 17 #error "Unexpected BITS_PER_LONG" 50 #if BITS_PER_LONG == 64 70 #else /* BITS_PER_LONG == 64 */ 76 #endif /* !(BITS_PER_LONG == 64) */
|
/linux-master/lib/ |
H A D | memweight.c | 23 BUG_ON(longs >= INT_MAX / BITS_PER_LONG); 25 longs * BITS_PER_LONG);
|
/linux-master/tools/lib/ |
H A D | bitmap.c | 10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG; 15 if (bits % BITS_PER_LONG) 64 unsigned int lim = bits/BITS_PER_LONG; 69 if (bits % BITS_PER_LONG) 78 unsigned int k, lim = bits/BITS_PER_LONG; 83 if (bits % BITS_PER_LONG) 93 unsigned int k, lim = bits/BITS_PER_LONG; 98 if (bits % BITS_PER_LONG)
|