/linux-4.19.296/lib/ |
D | find_bit.c | 43 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 45 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 50 start = round_down(start, BITS_PER_LONG); in _find_next_bit() 53 start += BITS_PER_LONG; in _find_next_bit() 57 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit() 59 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit() 106 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit() 108 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit() 124 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit() 126 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit() [all …]
|
D | bitmap.c | 54 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() 59 if (bits % BITS_PER_LONG) in __bitmap_equal() 90 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() 105 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right() 136 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() 145 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left() 160 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and() 165 if (bits % BITS_PER_LONG) in __bitmap_and() 198 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_andnot() 203 if (bits % BITS_PER_LONG) in __bitmap_andnot() [all …]
|
D | test_ida.c | 133 IDA_BUG_ON(ida, ida_alloc_min(ida, i + BITS_PER_LONG, in ida_check_conv() 134 GFP_KERNEL) != i + BITS_PER_LONG); in ida_check_conv() 136 ida_free(ida, i + BITS_PER_LONG); in ida_check_conv() 146 for (i = 0; i < IDA_BITMAP_BITS + BITS_PER_LONG - 4; i++) in ida_check_conv() 148 for (i = IDA_BITMAP_BITS + BITS_PER_LONG - 4; i > 0; i--) in ida_check_conv()
|
D | memweight.c | 23 BUG_ON(longs >= INT_MAX / BITS_PER_LONG); in memweight() 25 longs * BITS_PER_LONG); in memweight()
|
D | hweight.c | 52 #if BITS_PER_LONG == 32 in __sw_hweight64() 55 #elif BITS_PER_LONG == 64 in __sw_hweight64()
|
/linux-4.19.296/include/linux/ |
D | u64_stats_sync.h | 66 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) 72 #if BITS_PER_LONG == 32 && defined(CONFIG_SMP) 82 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin() 89 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end() 99 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin_irqsave() 110 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end_irqrestore() 118 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_begin() 127 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_begin() 136 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_retry() 146 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_retry() [all …]
|
D | joystick.h | 26 #if BITS_PER_LONG == 64 28 #elif BITS_PER_LONG == 32 31 #error Unexpected BITS_PER_LONG
|
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 | count_zeros.h | 30 return BITS_PER_LONG - fls(x); in count_leading_zeros() 32 return BITS_PER_LONG - fls64(x); in count_leading_zeros() 35 #define COUNT_LEADING_ZEROS_0 BITS_PER_LONG
|
D | bits.h | 10 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) 11 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) 23 (~UL(0) >> (BITS_PER_LONG - 1 - (h))))
|
D | mod_devicetable.h | 330 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1]; 331 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1]; 332 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1]; 333 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1]; 334 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1]; 335 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1]; 336 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1]; 337 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1]; 338 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1]; 339 kernel_ulong_t propbit[INPUT_DEVICE_ID_PROP_MAX / BITS_PER_LONG + 1];
|
D | prandom.h | 20 #if BITS_PER_LONG == 64 30 #elif BITS_PER_LONG == 32 41 #error Unsupported BITS_PER_LONG
|
D | mm_types_task.h | 25 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8) 62 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
|
D | bitmap.h | 204 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1))) 205 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) 213 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0) 253 if (nbits % BITS_PER_LONG) in bitmap_copy_clear_tail() 254 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail() 261 #if BITS_PER_LONG == 64
|
D | page-flags-layout.h | 58 #if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS 79 #if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT+LAST_CPUPID_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
|
D | fcntl.h | 15 #define force_o_largefile() (BITS_PER_LONG != 32) 18 #if BITS_PER_LONG == 32
|
D | mpi.h | 36 #define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8) 37 #define BITS_PER_MPI_LIMB BITS_PER_LONG
|
/linux-4.19.296/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-4.19.296/drivers/reset/ |
D | reset-zynq.c | 42 int bank = id / BITS_PER_LONG; in zynq_reset_assert() 43 int offset = id % BITS_PER_LONG; in zynq_reset_assert() 59 int bank = id / BITS_PER_LONG; in zynq_reset_deassert() 60 int offset = id % BITS_PER_LONG; in zynq_reset_deassert() 76 int bank = id / BITS_PER_LONG; in zynq_reset_status() 77 int offset = id % BITS_PER_LONG; in zynq_reset_status() 123 priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG; in zynq_reset_probe()
|
/linux-4.19.296/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
|
D | getorder.h | 33 return BITS_PER_LONG - PAGE_SHIFT; in get_order() 43 #if BITS_PER_LONG == 32 in get_order()
|
/linux-4.19.296/include/linux/mtd/ |
D | map.h | 86 # if BITS_PER_LONG < 64 88 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 94 # define map_bankwidth_is_large(map) (BITS_PER_LONG < 64) 109 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 129 # define map_bankwidth_is_large(map) (map_bankwidth(map) > BITS_PER_LONG/8) 181 #define MAX_MAP_LONGS (((MAX_MAP_BANKWIDTH * 8) + BITS_PER_LONG - 1) / BITS_PER_LONG) 345 #if BITS_PER_LONG >= 64 in map_word_load() 381 #if BITS_PER_LONG < 64 413 #if BITS_PER_LONG >= 64 in inline_map_read() 433 #if BITS_PER_LONG >= 64 in inline_map_write()
|
/linux-4.19.296/fs/ |
D | file.c | 23 unsigned int sysctl_nr_open_min = BITS_PER_LONG; 27 __const_min(INT_MAX, ~(size_t)0/sizeof(void *)) & -BITS_PER_LONG; 109 nr = ((sysctl_nr_open - 1) | (BITS_PER_LONG - 1)) + 1; in alloc_fdtable() 242 fd /= BITS_PER_LONG; in __set_open_fd() 250 __clear_bit(fd / BITS_PER_LONG, fdt->full_fds_bits); in __clear_open_fd() 259 for (i = size / BITS_PER_LONG; i > 0; ) { in count_open_files() 263 i = (i + 1) * BITS_PER_LONG; in count_open_files() 380 i = j * BITS_PER_LONG; in close_files() 466 unsigned int maxbit = maxfd / BITS_PER_LONG; in find_next_fd() 467 unsigned int bitbit = start / BITS_PER_LONG; in find_next_fd() [all …]
|