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

12

/u-boot/include/asm-generic/bitops/
H A D__fls.h14 int num = BITS_PER_LONG - 1;
16 #if BITS_PER_LONG == 64
22 if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
26 if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
30 if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
34 if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
38 if (!(word & (~0ul << (BITS_PER_LONG-1))))
H A Dfls64.h17 #if BITS_PER_LONG == 32
25 #elif BITS_PER_LONG == 64
33 #error BITS_PER_LONG not 32 or 64
H A D__ffs.h16 #if BITS_PER_LONG == 64
/u-boot/arch/x86/include/asm/
H A Dtypes.h14 #define BITS_PER_LONG 64 macro
16 #define BITS_PER_LONG 32 macro
/u-boot/arch/arm/include/asm/
H A Dtypes.h14 #define BITS_PER_LONG 64 macro
16 #define BITS_PER_LONG 32 macro
H A Dbitops.h148 unsigned long *p = ((unsigned long *)addr) + (offset / BITS_PER_LONG);
149 unsigned long result = offset & ~(BITS_PER_LONG - 1);
155 offset &= (BITS_PER_LONG - 1);
158 tmp |= ~0UL >> (BITS_PER_LONG - offset);
159 if (size < BITS_PER_LONG)
163 size -= BITS_PER_LONG;
164 result += BITS_PER_LONG;
166 while (size & ~(BITS_PER_LONG - 1)) {
170 result += BITS_PER_LONG;
171 size -= BITS_PER_LONG;
[all...]
/u-boot/arch/riscv/include/asm/
H A Dtypes.h25 #define BITS_PER_LONG 64 macro
27 #define BITS_PER_LONG 32 macro
/u-boot/arch/sh/include/asm/
H A Dtypes.h17 #define BITS_PER_LONG 32 macro
/u-boot/arch/xtensa/include/asm/
H A Dtypes.h18 #define BITS_PER_LONG 32 macro
/u-boot/arch/microblaze/include/asm/
H A Dtypes.h21 #define BITS_PER_LONG 32 macro
/u-boot/arch/arc/include/asm/
H A Dtypes.h13 #define BITS_PER_LONG 32 macro
/u-boot/arch/mips/lib/
H A Dudivdi3.c5 #if BITS_PER_LONG == 32
17 #endif /* BITS_PER_LONG == 32 */
/u-boot/drivers/mtd/nand/
H A Dbbt.c34 BITS_PER_LONG);
84 ((entry * bits_per_block) / BITS_PER_LONG);
85 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
92 if (bits_per_block + offs > BITS_PER_LONG)
93 status |= pos[1] << (BITS_PER_LONG - offs);
117 ((entry * bits_per_block) / BITS_PER_LONG);
118 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
127 if (bits_per_block + offs > BITS_PER_LONG) {
128 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG;
/u-boot/arch/m68k/include/asm/
H A Dtypes.h16 #define BITS_PER_LONG 32 macro
/u-boot/arch/sandbox/include/asm/
H A Dtypes.h21 #define BITS_PER_LONG CONFIG_SANDBOX_BITS_PER_LONG macro
/u-boot/include/linux/
H A Dbitmap.h17 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
18 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
20 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
36 unsigned int k, lim = bits / BITS_PER_LONG;
42 if (bits % BITS_PER_LONG)
53 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG);
59 bits_to_set = BITS_PER_LONG;
74 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG);
[all...]
H A Dbitops.h13 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
14 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
34 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
189 #if BITS_PER_LONG == 32
192 #elif BITS_PER_LONG != 64
193 #error BITS_PER_LONG not 32 or 64
/u-boot/arch/nios2/include/asm/
H A Dtypes.h50 #define BITS_PER_LONG 32 macro
/u-boot/arch/powerpc/include/asm/
H A Dtypes.h16 #define BITS_PER_LONG 32 macro
/u-boot/arch/mips/include/asm/
H A Dtypes.h22 #define BITS_PER_LONG _MIPS_SZLONG macro
/u-boot/include/
H A Dinitcall.h22 #define INITCALL_IS_EVENT GENMASK(BITS_PER_LONG - 1, 8)
/u-boot/drivers/mtd/ubispl/
H A Dubispl.h26 #define UBI_FM_BM_SIZE ((CONFIG_SPL_UBI_MAX_PEBS / BITS_PER_LONG) + 1)
34 #define UBI_VOL_BM_SIZE ((UBI_MAX_VOL_LEBS / BITS_PER_LONG) + 1)
/u-boot/include/asm-generic/
H A Dsignal.h7 #define _NSIG_BPW BITS_PER_LONG
H A Datomic.h7 #if BITS_PER_LONG == 32
91 #if BITS_PER_LONG == 32
/u-boot/arch/nios2/include/asm/bitops/
H A Dnon-atomic.h109 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));

Completed in 155 milliseconds

12