/Linux-v5.4/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 …]
|
/Linux-v5.4/lib/ |
D | find_bit.c | 39 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 41 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 46 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 49 start += BITS_PER_LONG; in _find_next_bit() 53 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 55 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 102 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 104 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 120 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit() 122 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit() [all …]
|
D | bitmap.c | 49 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() 54 if (bits % BITS_PER_LONG) in __bitmap_equal() 67 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() 75 if (!(bits % BITS_PER_LONG)) in __bitmap_or_equal() 105 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() 120 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right() 151 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() 160 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left() 175 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and() 180 if (bits % BITS_PER_LONG) in __bitmap_and() [all …]
|
D | test_kasan.c | 678 set_bit(BITS_PER_LONG, bits); in kasan_bitops() 681 __set_bit(BITS_PER_LONG, bits); in kasan_bitops() 684 clear_bit(BITS_PER_LONG, bits); in kasan_bitops() 687 __clear_bit(BITS_PER_LONG, bits); in kasan_bitops() 690 clear_bit_unlock(BITS_PER_LONG, bits); in kasan_bitops() 693 __clear_bit_unlock(BITS_PER_LONG, bits); in kasan_bitops() 696 change_bit(BITS_PER_LONG, bits); in kasan_bitops() 699 __change_bit(BITS_PER_LONG, bits); in kasan_bitops() 705 test_and_set_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() 708 __test_and_set_bit(BITS_PER_LONG + BITS_PER_BYTE, bits); in kasan_bitops() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/include/linux/ |
D | u64_stats_sync.h | 66 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) 74 #if BITS_PER_LONG == 32 && defined(CONFIG_SMP) in u64_stats_init() 81 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin() 88 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end() 98 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin_irqsave() 109 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end_irqrestore() 117 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_begin() 126 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_begin() 135 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_retry() 145 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_retry() [all …]
|
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
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
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-v5.4/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
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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
|
/Linux-v5.4/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()
|
/Linux-v5.4/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
|
/Linux-v5.4/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
|
/Linux-v5.4/tools/testing/radix-tree/ |
D | bitmap.c | 9 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_clear() 15 bits_to_clear = BITS_PER_LONG; in bitmap_clear()
|
/Linux-v5.4/arch/mips/include/asm/ |
D | bitops.h | 502 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls() 515 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls() 528 num = BITS_PER_LONG - 1; in __fls() 530 #if BITS_PER_LONG == 64 in __fls() 536 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls() 540 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls() 544 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls() 548 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls() 552 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
|
/Linux-v5.4/include/linux/mtd/ |
D | map.h | 72 # if BITS_PER_LONG < 64 74 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 80 # define map_bankwidth_is_large(map) (BITS_PER_LONG < 64) 95 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 115 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 167 #define MAX_MAP_LONGS (((MAX_MAP_BANKWIDTH * 8) + BITS_PER_LONG - 1) / BITS_PER_LONG) 331 #if BITS_PER_LONG >= 64 in map_word_load() 367 #if BITS_PER_LONG < 64 399 #if BITS_PER_LONG >= 64 in inline_map_read() 419 #if BITS_PER_LONG >= 64 in inline_map_write()
|