/kernel/linux/linux-5.10/arch/s390/lib/ |
D | find.c | 23 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv() 26 result += BITS_PER_LONG; in find_first_bit_inv() 27 size -= BITS_PER_LONG; in find_first_bit_inv() 31 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv() 35 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv() 42 const unsigned long *p = addr + (offset / BITS_PER_LONG); in find_next_bit_inv() 43 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_bit_inv() 49 offset %= BITS_PER_LONG; in find_next_bit_inv() 53 if (size < BITS_PER_LONG) in find_next_bit_inv() 57 size -= BITS_PER_LONG; in find_next_bit_inv() [all …]
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | bitops.h | 42 #define __BITOPS_WORDS(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG) 49 addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3); in __bitops_word() 56 return ((unsigned char *)ptr) + ((nr ^ (BITS_PER_LONG - 8)) >> 3); in __bitops_byte() 76 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in arch_set_bit() 97 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in arch_clear_bit() 119 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in arch_change_bit() 129 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in arch_test_and_set_bit() 140 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in arch_test_and_clear_bit() 151 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in arch_test_and_change_bit() 218 addr += (nr ^ (BITS_PER_LONG - 8)) >> 3; in arch_test_bit() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | u64_stats_sync.h | 69 #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 …]
|
D | hmm.h | 41 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),
|
D | hash.h | 14 #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()
|
D | joystick.h | 14 #if BITS_PER_LONG == 64 16 #elif BITS_PER_LONG == 32 19 #error Unexpected BITS_PER_LONG
|
D | count_zeros.h | 26 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
|
/kernel/linux/linux-5.10/tools/lib/ |
D | find_bit.c | 40 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 47 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 50 start += BITS_PER_LONG; in _find_next_bit() 54 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 56 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 83 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 85 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 100 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit() 102 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
|
D | bitmap.c | 10 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() 15 if (bits % BITS_PER_LONG) in __bitmap_weight() 64 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and() 69 if (bits % BITS_PER_LONG) in __bitmap_and() 78 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() 83 if (bits % BITS_PER_LONG) in __bitmap_equal()
|
/kernel/linux/linux-5.10/lib/ |
D | bitmap.c | 51 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() 56 if (bits % BITS_PER_LONG) in __bitmap_equal() 69 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() 77 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal() 107 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() 122 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right() 153 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() 162 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left() 217 if (first % BITS_PER_LONG) { in bitmap_cut() 218 keep = src[first / BITS_PER_LONG] & in bitmap_cut() [all …]
|
D | find_bit.c | 40 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 42 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 52 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 55 start += BITS_PER_LONG; in _find_next_bit() 59 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 61 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 111 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 113 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 129 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit() 131 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit() [all …]
|
/kernel/linux/linux-5.10/include/asm-generic/bitops/ |
D | __fls.h | 15 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()
|
D | sched.h | 15 #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()
|
/kernel/linux/linux-5.10/tools/include/asm-generic/bitops/ |
D | __fls.h | 15 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()
|
D | fls64.h | 18 #if BITS_PER_LONG == 32 26 #elif BITS_PER_LONG == 64 34 #error BITS_PER_LONG not 32 or 64
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | bitops.h | 93 int bit = nr % BITS_PER_LONG; in set_bit() 121 int bit = nr % BITS_PER_LONG; in clear_bit() 162 int bit = nr % BITS_PER_LONG; in change_bit() 184 int bit = nr % BITS_PER_LONG; in test_and_set_bit_lock() 228 int bit = nr % BITS_PER_LONG; in test_and_clear_bit() 265 int bit = nr % BITS_PER_LONG; in test_and_change_bit() 313 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls() 326 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls() 339 num = BITS_PER_LONG - 1; in __fls() 341 #if BITS_PER_LONG == 64 in __fls() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/nand/ |
D | bbt.c | 28 BITS_PER_LONG); in nanddev_bbt_init() 79 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_get_block_status() 80 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status() 87 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status() 88 status |= pos[1] << (BITS_PER_LONG - offs); in nanddev_bbt_get_block_status() 112 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_set_block_status() 113 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status() 122 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status() 123 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG; in nanddev_bbt_set_block_status()
|
/kernel/linux/linux-5.10/drivers/reset/ |
D | reset-zynq.c | 34 int bank = id / BITS_PER_LONG; in zynq_reset_assert() 35 int offset = id % BITS_PER_LONG; in zynq_reset_assert() 51 int bank = id / BITS_PER_LONG; in zynq_reset_deassert() 52 int offset = id % BITS_PER_LONG; in zynq_reset_deassert() 68 int bank = id / BITS_PER_LONG; in zynq_reset_status() 69 int offset = id % BITS_PER_LONG; in zynq_reset_status() 115 priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG; in zynq_reset_probe()
|
/kernel/linux/linux-5.10/arch/mips/lib/ |
D | bitops.c | 24 unsigned int bit = nr % BITS_PER_LONG; in __mips_set_bit() 45 unsigned int bit = nr % BITS_PER_LONG; in __mips_clear_bit() 66 unsigned int bit = nr % BITS_PER_LONG; in __mips_change_bit() 88 unsigned int bit = nr % BITS_PER_LONG; in __mips_test_and_set_bit_lock() 112 unsigned int bit = nr % BITS_PER_LONG; in __mips_test_and_clear_bit() 136 unsigned int bit = nr % BITS_PER_LONG; in __mips_test_and_change_bit()
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | encoding.h | 38 #define WATCHPOINT_ADDR_BITS (BITS_PER_LONG-1 - WATCHPOINT_SIZE_BITS) 43 #define WATCHPOINT_WRITE_MASK BIT(BITS_PER_LONG-1) 45 GENMASK(BITS_PER_LONG-2, BITS_PER_LONG-2 - WATCHPOINT_SIZE_BITS) 47 GENMASK(BITS_PER_LONG-3 - WATCHPOINT_SIZE_BITS, 0)
|
/kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
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
|
/kernel/linux/linux-5.10/tools/include/linux/ |
D | hash.h | 14 #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()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
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
|
/kernel/linux/linux-5.10/tools/include/asm-generic/ |
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
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
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)
|