Searched refs:BITS_PER_LONG (Results 1 - 25 of 558) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Djoystick.h14 #if BITS_PER_LONG == 64
16 #elif BITS_PER_LONG == 32
19 #error Unexpected BITS_PER_LONG
H A Dcount_zeros.h20 * 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 Dhmm.h36 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 Dfind.c23 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 Dbitsperlong.h9 #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 Dgetorder.h33 return BITS_PER_LONG - PAGE_SHIFT;
43 #if BITS_PER_LONG == 32
/linux-master/tools/include/asm-generic/
H A Dbitsperlong.h8 #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.h15 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 Dfls64.h18 #if BITS_PER_LONG == 32
26 #elif BITS_PER_LONG == 64
34 #error BITS_PER_LONG not 32 or 64
H A Dsched.h15 #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.h15 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 Dfls64.h18 #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 Dintel_reset_types.h46 #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 Dbitmap.c7 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 Dfind.c21 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 Dbitmap.c9 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 Dmaccess.c9 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);
/linux-master/arch/loongarch/mm/
H A Dmaccess.c9 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1);
/linux-master/drivers/scsi/megaraid/
H A Dmegaraid_mm.h71 #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 Dsignal.h9 #define _NSIG_BPW BITS_PER_LONG
/linux-master/drivers/mtd/nand/
H A Dbbt.c76 ((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 Dbits.h9 #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 Darch_hweight.h12 #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 Dmemweight.c23 BUG_ON(longs >= INT_MAX / BITS_PER_LONG);
25 longs * BITS_PER_LONG);
/linux-master/tools/lib/
H A Dbitmap.c10 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)

Completed in 593 milliseconds

1234567891011>>