Home
last modified time | relevance | path

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

12

/u-boot/include/asm-generic/bitops/
A D__fls.h14 int num = BITS_PER_LONG - 1; in __fls()
16 #if BITS_PER_LONG == 64 in __fls()
22 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls()
26 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
30 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
34 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls()
38 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
A Dfls64.h17 #if BITS_PER_LONG == 32
25 #elif BITS_PER_LONG == 64
33 #error BITS_PER_LONG not 32 or 64
A D__ffs.h16 #if BITS_PER_LONG == 64 in __ffs()
/u-boot/include/linux/
A Dbitmap.h42 if (bits % BITS_PER_LONG) in __bitmap_weight()
53 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
59 bits_to_set = BITS_PER_LONG; in __bitmap_set()
74 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
80 bits_to_clear = BITS_PER_LONG; in __bitmap_clear()
112 offset %= BITS_PER_LONG; in find_next_bit()
116 if (size < BITS_PER_LONG) in find_next_bit()
120 size -= BITS_PER_LONG; in find_next_bit()
121 result += BITS_PER_LONG; in find_next_bit()
127 result += BITS_PER_LONG; in find_next_bit()
[all …]
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 in __ffs64()
192 #elif BITS_PER_LONG != 64 in __ffs64()
193 #error BITS_PER_LONG not 32 or 64 in __ffs64()
A Dxxhash.h96 #if BITS_PER_LONG == 64 in xxhash()
/u-boot/drivers/mtd/nand/
A Dbbt.c33 BITS_PER_LONG); in nanddev_bbt_init()
83 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_get_block_status()
84 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status()
91 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status()
92 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status()
116 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_set_block_status()
117 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status()
126 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status()
127 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
/u-boot/arch/arm/include/asm/
A Dbitops.h123 unsigned long *p = ((unsigned long *)addr) + (offset / BITS_PER_LONG); in find_next_zero_bit()
124 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_zero_bit()
130 offset &= (BITS_PER_LONG - 1); in find_next_zero_bit()
133 tmp |= ~0UL >> (BITS_PER_LONG - offset); in find_next_zero_bit()
134 if (size < BITS_PER_LONG) in find_next_zero_bit()
138 size -= BITS_PER_LONG; in find_next_zero_bit()
139 result += BITS_PER_LONG; in find_next_zero_bit()
141 while (size & ~(BITS_PER_LONG - 1)) { in find_next_zero_bit()
145 result += BITS_PER_LONG; in find_next_zero_bit()
146 size -= BITS_PER_LONG; in find_next_zero_bit()
A Dtypes.h14 #define BITS_PER_LONG 64 macro
16 #define BITS_PER_LONG 32 macro
/u-boot/arch/x86/include/asm/
A Dtypes.h14 #define BITS_PER_LONG 64 macro
16 #define BITS_PER_LONG 32 macro
/u-boot/arch/riscv/include/asm/
A Dtypes.h25 #define BITS_PER_LONG 64 macro
27 #define BITS_PER_LONG 32 macro
/u-boot/drivers/mtd/ubispl/
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/arch/arc/include/asm/
A Dtypes.h13 #define BITS_PER_LONG 32 macro
/u-boot/arch/xtensa/include/asm/
A Dtypes.h18 #define BITS_PER_LONG 32 macro
/u-boot/arch/microblaze/include/asm/
A Dtypes.h21 #define BITS_PER_LONG 32 macro
/u-boot/arch/sh/include/asm/
A Dtypes.h17 #define BITS_PER_LONG 32 macro
/u-boot/arch/m68k/include/asm/
A Dtypes.h16 #define BITS_PER_LONG 32 macro
/u-boot/arch/sandbox/include/asm/
A Dtypes.h21 #define BITS_PER_LONG CONFIG_SANDBOX_BITS_PER_LONG macro
/u-boot/arch/powerpc/include/asm/
A Dtypes.h16 #define BITS_PER_LONG 32 macro
A Dbitops.h187 #if BITS_PER_LONG == 32
195 #elif BITS_PER_LONG == 64
203 #error BITS_PER_LONG not 32 or 64
/u-boot/arch/mips/include/asm/
A Dtypes.h22 #define BITS_PER_LONG _MIPS_SZLONG macro
/u-boot/arch/nios2/include/asm/
A Dtypes.h50 #define BITS_PER_LONG 32 macro
/u-boot/include/asm-generic/
A Datomic.h7 #if BITS_PER_LONG == 32
91 #if BITS_PER_LONG == 32
A Dsignal.h7 #define _NSIG_BPW BITS_PER_LONG
/u-boot/include/
A Ddiv64.h26 #if BITS_PER_LONG == 64
36 #elif BITS_PER_LONG == 32

Completed in 31 milliseconds

12