Home
last modified time | relevance | path

Searched refs:BITS_PER_LONG (Results 1 – 200 of 418) sorted by relevance

123

/linux-4.4.14/arch/s390/lib/
Dfind.c22 while (size & ~(BITS_PER_LONG - 1)) { in find_first_bit_inv()
25 result += BITS_PER_LONG; in find_first_bit_inv()
26 size -= BITS_PER_LONG; in find_first_bit_inv()
30 tmp = (*p) & (~0UL << (BITS_PER_LONG - size)); in find_first_bit_inv()
34 return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); in find_first_bit_inv()
41 const unsigned long *p = addr + (offset / BITS_PER_LONG); in find_next_bit_inv()
42 unsigned long result = offset & ~(BITS_PER_LONG - 1); in find_next_bit_inv()
48 offset %= BITS_PER_LONG; in find_next_bit_inv()
52 if (size < BITS_PER_LONG) in find_next_bit_inv()
56 size -= BITS_PER_LONG; in find_next_bit_inv()
[all …]
/linux-4.4.14/tools/lib/util/
Dfind_next_bit.c18 #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG)
28 unsigned long result = offset & ~(BITS_PER_LONG-1); in find_next_bit()
34 offset %= BITS_PER_LONG; in find_next_bit()
38 if (size < BITS_PER_LONG) in find_next_bit()
42 size -= BITS_PER_LONG; in find_next_bit()
43 result += BITS_PER_LONG; in find_next_bit()
45 while (size & ~(BITS_PER_LONG-1)) { in find_next_bit()
48 result += BITS_PER_LONG; in find_next_bit()
49 size -= BITS_PER_LONG; in find_next_bit()
56 tmp &= (~0UL >> (BITS_PER_LONG - size)); in find_next_bit()
[all …]
/linux-4.4.14/include/linux/
Du64_stats_sync.h65 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
73 #if BITS_PER_LONG == 32 && defined(CONFIG_SMP) in u64_stats_init()
80 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin()
87 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end()
94 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_fetch_begin()
97 #if BITS_PER_LONG==32 in u64_stats_fetch_begin()
107 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_fetch_retry()
110 #if BITS_PER_LONG==32 in u64_stats_fetch_retry()
125 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_fetch_begin_irq()
128 #if BITS_PER_LONG==32 in u64_stats_fetch_begin_irq()
[all …]
Djoystick.h30 #if BITS_PER_LONG == 64
32 #elif BITS_PER_LONG == 32
35 #error Unexpected BITS_PER_LONG
Dhash.h25 #if BITS_PER_LONG == 32
28 #elif BITS_PER_LONG == 64
55 #if BITS_PER_LONG == 64 in hash_64()
96 #if BITS_PER_LONG == 64 in hash32_ptr()
Dcount_zeros.h30 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
Dproportions.h85 #if BITS_PER_LONG == 32
86 #define PROP_MAX_SHIFT (3*BITS_PER_LONG/4)
88 #define PROP_MAX_SHIFT (BITS_PER_LONG/2)
91 #define PROP_FRAC_SHIFT (BITS_PER_LONG - PROP_MAX_SHIFT - 1)
Dbitops.h8 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
9 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
22 (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
204 #if BITS_PER_LONG == 32 in __ffs64()
207 #elif BITS_PER_LONG != 64 in __ffs64()
208 #error BITS_PER_LONG not 32 or 64 in __ffs64()
Dmod_devicetable.h320 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
321 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
322 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
323 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
324 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
325 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
326 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
327 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
328 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
Dfcntl.h8 #define force_o_largefile() (BITS_PER_LONG != 32)
11 #if BITS_PER_LONG == 32
Dpage-flags-layout.h55 #if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
76 #if SECTIONS_WIDTH+ZONES_WIDTH+NODES_SHIFT+LAST_CPUPID_SHIFT <= BITS_PER_LONG - NR_PAGEFLAGS
Defi.h28 #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1)))
29 #define EFI_INVALID_PARAMETER ( 2 | (1UL << (BITS_PER_LONG-1)))
30 #define EFI_UNSUPPORTED ( 3 | (1UL << (BITS_PER_LONG-1)))
31 #define EFI_BAD_BUFFER_SIZE ( 4 | (1UL << (BITS_PER_LONG-1)))
32 #define EFI_BUFFER_TOO_SMALL ( 5 | (1UL << (BITS_PER_LONG-1)))
33 #define EFI_NOT_READY ( 6 | (1UL << (BITS_PER_LONG-1)))
34 #define EFI_DEVICE_ERROR ( 7 | (1UL << (BITS_PER_LONG-1)))
35 #define EFI_WRITE_PROTECTED ( 8 | (1UL << (BITS_PER_LONG-1)))
36 #define EFI_OUT_OF_RESOURCES ( 9 | (1UL << (BITS_PER_LONG-1)))
37 #define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG-1)))
[all …]
Dcpumask.h754 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
758 const unsigned long *p = cpu_bit_bitmap[1 + cpu % BITS_PER_LONG]; in get_cpu_mask()
759 p -= cpu / BITS_PER_LONG; in get_cpu_mask()
765 #if NR_CPUS <= BITS_PER_LONG
797 #if NR_CPUS <= BITS_PER_LONG
Detherdevice.h127 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in is_multicast_ether_addr_64bits()
342 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ether_addr_equal_64bits()
415 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in compare_ether_header()
Dbitmap.h175 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
176 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
179 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
Dpage_counter.h18 #if BITS_PER_LONG == 32
Dmpi.h36 #define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8)
37 #define BITS_PER_MPI_LIMB BITS_PER_LONG
Dmm_types.h29 #define ALLOC_SPLIT_PTLOCKS (SPINLOCK_SIZE > BITS_PER_LONG/8)
233 #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536)
Dassoc_array.h21 #define ASSOC_ARRAY_KEY_CHUNK_SIZE BITS_PER_LONG /* Key data retrieved in chunks of this size */
Djiffies.h80 #if (BITS_PER_LONG < 64)
272 #if BITS_PER_LONG < 64
Dradix-tree.h73 ((RADIX_TREE_MAP_SIZE + BITS_PER_LONG - 1) / BITS_PER_LONG)
Dgenhd.h702 #if BITS_PER_LONG==32 && defined(CONFIG_LBDAF) && defined(CONFIG_SMP) in part_nr_sects_read()
710 #elif BITS_PER_LONG==32 && defined(CONFIG_LBDAF) && defined(CONFIG_PREEMPT) in part_nr_sects_read()
729 #if BITS_PER_LONG==32 && defined(CONFIG_LBDAF) && defined(CONFIG_SMP) in part_nr_sects_write()
733 #elif BITS_PER_LONG==32 && defined(CONFIG_LBDAF) && defined(CONFIG_PREEMPT) in part_nr_sects_write()
Dkallsyms.h14 2*(BITS_PER_LONG*3/10) + (MODULE_NAME_LEN - 1) + 1)
Dmath64.h7 #if BITS_PER_LONG == 64
58 #elif BITS_PER_LONG == 32
Dfdtable.h22 #define NR_OPEN_DEFAULT BITS_PER_LONG
Dpercpu.h51 #if BITS_PER_LONG > 32
Dassoc_array_priv.h26 #define ASSOC_ARRAY_KEY_CHUNK_SHIFT (ilog2(BITS_PER_LONG))
Dbtree.h210 #define BTREE_TYPE_BITS BITS_PER_LONG
Dcpufreq.h411 #if BITS_PER_LONG == 32 in cpufreq_scale()
416 #elif BITS_PER_LONG == 64 in cpufreq_scale()
Dfs.h564 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
728 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in i_size_read()
737 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPT) in i_size_read()
756 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in i_size_write()
762 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPT) in i_size_write()
897 #if BITS_PER_LONG==32
898 #define MAX_LFS_FILESIZE (((loff_t)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
899 #elif BITS_PER_LONG==64
1035 #if BITS_PER_LONG == 32
1082 #if BITS_PER_LONG == 32
Dtimekeeping.h45 #if BITS_PER_LONG == 64
Dktime.h168 #if BITS_PER_LONG < 64
Dbtree-type.h36 #if (BITS_PER_LONG > BTREE_TYPE_BITS)
/linux-4.4.14/lib/
Dfind_bit.c39 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
43 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
46 start += BITS_PER_LONG; in _find_next_bit()
50 tmp = addr[start / BITS_PER_LONG] ^ invert; in _find_next_bit()
86 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_bit()
88 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in find_first_bit()
104 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in find_first_zero_bit()
106 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in find_first_zero_bit()
119 unsigned long idx = (size-1) / BITS_PER_LONG; in find_last_bit()
124 return idx * BITS_PER_LONG + __fls(val); in find_last_bit()
[all …]
Dbitmap.c48 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
53 if (bits % BITS_PER_LONG) in __bitmap_equal()
63 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_complement()
67 if (bits % BITS_PER_LONG) in __bitmap_complement()
87 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
102 upper <<= (BITS_PER_LONG - rem); in __bitmap_shift_right()
133 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
142 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
157 unsigned int lim = bits/BITS_PER_LONG; in __bitmap_and()
162 if (bits % BITS_PER_LONG) in __bitmap_and()
[all …]
Dclz_ctz.c35 #if BITS_PER_LONG == 32
49 #elif BITS_PER_LONG == 64
64 #error BITS_PER_LONG not 32 or 64
Dmemweight.c22 BUG_ON(longs >= INT_MAX / BITS_PER_LONG); in memweight()
24 longs * BITS_PER_LONG); in memweight()
Dhweight.c48 #if BITS_PER_LONG == 32 in __sw_hweight64()
51 #elif BITS_PER_LONG == 64 in __sw_hweight64()
Dgenalloc.c89 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set_ll()
96 bits_to_set = BITS_PER_LONG; in bitmap_set_ll()
124 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_clear_ll()
131 bits_to_clear = BITS_PER_LONG; in bitmap_clear_ll()
Dradix-tree.c161 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit()
162 tmp = *addr >> (offset % BITS_PER_LONG); in radix_tree_find_next_bit()
165 offset = (offset + BITS_PER_LONG) & ~(BITS_PER_LONG - 1); in radix_tree_find_next_bit()
170 offset += BITS_PER_LONG; in radix_tree_find_next_bit()
843 tag_long = offset / BITS_PER_LONG; in radix_tree_next_chunk()
844 tag_bit = offset % BITS_PER_LONG; in radix_tree_next_chunk()
851 (BITS_PER_LONG - tag_bit); in radix_tree_next_chunk()
853 iter->next_index = index + BITS_PER_LONG; in radix_tree_next_chunk()
1460 if (shift >= BITS_PER_LONG) in __maxindex()
Dint_sqrt.c24 m = 1UL << (BITS_PER_LONG - 2); in int_sqrt()
Dflex_proportions.c121 if (period - pl->period < BITS_PER_LONG) in fprop_reflect_period_single()
204 if (period - pl->period < BITS_PER_LONG) { in fprop_reflect_period_percpu()
Dstrnlen_user.c11 # define aligned_byte_mask(n) (~0xfful << (BITS_PER_LONG - 8 - 8*(n)))
Dproportions.c238 if (period < BITS_PER_LONG) { in prop_norm_percpu()
365 if (likely(period < BITS_PER_LONG)) in prop_norm_single()
Ddiv64.c24 #if BITS_PER_LONG == 32
Dpercpu-refcount.c34 #define PERCPU_COUNT_BIAS (1LU << (BITS_PER_LONG - 1))
/linux-4.4.14/arch/tile/include/asm/
Dbitops_64.h25 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in set_bit()
26 __insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask); in set_bit()
31 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in clear_bit()
32 __insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask); in clear_bit()
37 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in change_bit()
39 addr += nr / BITS_PER_LONG; in change_bit()
58 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_set_bit()
60 val = (__insn_fetchor((void *)(addr + nr / BITS_PER_LONG), mask) in test_and_set_bit()
70 unsigned long mask = (1UL << (nr % BITS_PER_LONG)); in test_and_clear_bit()
72 val = (__insn_fetchand((void *)(addr + nr / BITS_PER_LONG), ~mask) in test_and_clear_bit()
[all …]
Dpage.h134 return BITS_PER_LONG - __builtin_clzl((size - 1) >> PAGE_SHIFT); in get_order()
/linux-4.4.14/arch/s390/include/asm/
Dbitops.h96 #define __BITOPS_WORDS(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG)
103 addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3); in __bitops_word()
110 return ((unsigned char *)ptr) + ((nr ^ (BITS_PER_LONG - 8)) >> 3); in __bitops_byte()
130 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in set_bit()
151 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in clear_bit()
172 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in change_bit()
182 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_set_bit()
193 mask = ~(1UL << (nr & (BITS_PER_LONG - 1))); in test_and_clear_bit()
204 mask = 1UL << (nr & (BITS_PER_LONG - 1)); in test_and_change_bit()
269 addr += (nr ^ (BITS_PER_LONG - 8)) >> 3; in test_bit()
[all …]
Dairq.h69 const unsigned long be_to_le = BITS_PER_LONG - 1; in airq_iv_lock()
75 const unsigned long be_to_le = BITS_PER_LONG - 1; in airq_iv_unlock()
Dirqflags.h64 return !(flags & (3UL << (BITS_PER_LONG - 8))); in arch_irqs_disabled_flags()
Dsysinfo.h141 unsigned long mask[TOPOLOGY_CORE_BITS / BITS_PER_LONG];
/linux-4.4.14/arch/avr32/include/asm/
Dbitops.h31 unsigned long *p = ((unsigned long *)addr) + nr / BITS_PER_LONG; in set_bit()
45 unsigned long mask = 1UL << (nr % BITS_PER_LONG); in set_bit()
70 unsigned long *p = ((unsigned long *)addr) + nr / BITS_PER_LONG; in clear_bit()
84 unsigned long mask = 1UL << (nr % BITS_PER_LONG); in clear_bit()
108 unsigned long *p = ((unsigned long *)addr) + nr / BITS_PER_LONG; in change_bit()
109 unsigned long mask = 1UL << (nr % BITS_PER_LONG); in change_bit()
133 unsigned long *p = ((unsigned long *)addr) + nr / BITS_PER_LONG; in test_and_set_bit()
134 unsigned long mask = 1UL << (nr % BITS_PER_LONG); in test_and_set_bit()
173 unsigned long *p = ((unsigned long *)addr) + nr / BITS_PER_LONG; in test_and_clear_bit()
174 unsigned long mask = 1UL << (nr % BITS_PER_LONG); in test_and_clear_bit()
[all …]
Dtypes.h17 #define BITS_PER_LONG 32 macro
/linux-4.4.14/include/asm-generic/bitops/
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()
Dsched.h14 #if BITS_PER_LONG == 64 in sched_find_first_bit()
18 #elif BITS_PER_LONG == 32 in sched_find_first_bit()
27 #error BITS_PER_LONG not defined in sched_find_first_bit()
Dfls64.h17 #if BITS_PER_LONG == 32
25 #elif BITS_PER_LONG == 64
33 #error BITS_PER_LONG not 32 or 64
D__ffs.h16 #if BITS_PER_LONG == 64 in __ffs()
Dnon-atomic.h105 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in test_bit()
Dle.h31 #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
/linux-4.4.14/drivers/reset/
Dreset-zynq.c40 int bank = id / BITS_PER_LONG; in zynq_reset_assert()
41 int offset = id % BITS_PER_LONG; in zynq_reset_assert()
57 int bank = id / BITS_PER_LONG; in zynq_reset_deassert()
58 int offset = id % BITS_PER_LONG; in zynq_reset_deassert()
74 int bank = id / BITS_PER_LONG; in zynq_reset_status()
75 int offset = id % BITS_PER_LONG; in zynq_reset_status()
121 priv->rcdev.nr_resets = resource_size(res) / 4 * BITS_PER_LONG; in zynq_reset_probe()
Dreset-socfpga.c41 int bank = id / BITS_PER_LONG; in socfpga_reset_assert()
42 int offset = id % BITS_PER_LONG; in socfpga_reset_assert()
63 int bank = id / BITS_PER_LONG; in socfpga_reset_deassert()
64 int offset = id % BITS_PER_LONG; in socfpga_reset_deassert()
84 int bank = id / BITS_PER_LONG; in socfpga_reset_status()
85 int offset = id % BITS_PER_LONG; in socfpga_reset_status()
133 data->rcdev.nr_resets = NR_BANKS * BITS_PER_LONG; in socfpga_reset_probe()
Dreset-sunxi.c37 int bank = id / BITS_PER_LONG; in sunxi_reset_assert()
38 int offset = id % BITS_PER_LONG; in sunxi_reset_assert()
58 int bank = id / BITS_PER_LONG; in sunxi_reset_deassert()
59 int offset = id % BITS_PER_LONG; in sunxi_reset_deassert()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_mm.h75 #if BITS_PER_LONG == 32
79 #if BITS_PER_LONG == 64
89 #if BITS_PER_LONG == 32
93 #if BITS_PER_LONG == 64
/linux-4.4.14/include/linux/sunrpc/
Dsvcauth.h173 if ((len & (BITS_PER_LONG/8-1))==0) in hash_str()
174 hash = hash_long(hash^l, BITS_PER_LONG); in hash_str()
176 return hash >> (BITS_PER_LONG - bits); in hash_str()
192 if ((len & (BITS_PER_LONG/8-1))==0) in hash_mem()
193 hash = hash_long(hash^l, BITS_PER_LONG); in hash_mem()
195 return hash >> (BITS_PER_LONG - bits); in hash_mem()
/linux-4.4.14/include/asm-generic/
Dbitsperlong.h8 #define BITS_PER_LONG 64 macro
10 #define BITS_PER_LONG 32 macro
17 #if 0 && BITS_PER_LONG != __BITS_PER_LONG
Dgetorder.h19 #if BITS_PER_LONG == 32 in __get_order()
52 ((n) == 0UL) ? BITS_PER_LONG - PAGE_SHIFT : \
Ddiv64.h23 #if BITS_PER_LONG == 64
33 #elif BITS_PER_LONG == 32
Dlocal64.h19 #if BITS_PER_LONG == 64
Datomic-long.h21 #if BITS_PER_LONG == 64
/linux-4.4.14/arch/mips/include/asm/
Dbitops.h484 if (BITS_PER_LONG == 32 && !__builtin_constant_p(word) && in __fls()
497 if (BITS_PER_LONG == 64 && !__builtin_constant_p(word) && in __fls()
510 num = BITS_PER_LONG - 1; in __fls()
512 #if BITS_PER_LONG == 64 in __fls()
518 if (!(word & (~0ul << (BITS_PER_LONG-16)))) { in __fls()
522 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
526 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
530 if (!(word & (~0ul << (BITS_PER_LONG-2)))) { in __fls()
534 if (!(word & (~0ul << (BITS_PER_LONG-1)))) in __fls()
Ddiv64.h14 #if BITS_PER_LONG == 64
/linux-4.4.14/include/linux/mtd/
Dmap.h86 # 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)
184 #define MAX_MAP_LONGS (((MAX_MAP_BANKWIDTH * 8) + BITS_PER_LONG - 1) / BITS_PER_LONG)
353 #if BITS_PER_LONG >= 64 in map_word_load()
389 #if BITS_PER_LONG < 64
421 #if BITS_PER_LONG >= 64 in inline_map_read()
441 #if BITS_PER_LONG >= 64 in inline_map_write()
/linux-4.4.14/drivers/video/fbdev/core/
Dfb_draw.h23 #if BITS_PER_LONG == 64
78 #if BITS_PER_LONG == 64
135 if(index + bswapmask < BITS_PER_LONG) in fb_shifted_pixels_mask_long()
173 #define cpu_to_le_long _cpu_to_le_long(BITS_PER_LONG)
177 #define le_long_to_cpu _le_long_to_cpu(BITS_PER_LONG)
Dcfbfillrect.c22 #if BITS_PER_LONG == 32
282 int bits = BITS_PER_LONG, bytes = bits >> 3; in cfb_fillrect()
Dcfbcopyarea.c33 #if BITS_PER_LONG == 32
387 int bits = BITS_PER_LONG, bytes = bits >> 3; in cfb_copyarea()
/linux-4.4.14/tools/perf/util/include/linux/
Dbitmap.h16 ((nbits) % BITS_PER_LONG) ? \
17 (1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL \
21 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
/linux-4.4.14/tools/include/linux/
Dbitops.h12 #define BITS_PER_LONG __WORDSIZE macro
14 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
15 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
/linux-4.4.14/drivers/video/fbdev/
Damifb.c2566 #if BITS_PER_LONG == 32
2569 #elif BITS_PER_LONG == 64
2613 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2618 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2630 n -= BITS_PER_LONG - dst_idx; in bitcpy()
2634 n /= BITS_PER_LONG; in bitcpy()
2656 right = shift & (BITS_PER_LONG - 1); in bitcpy()
2657 left = -shift & (BITS_PER_LONG - 1); in bitcpy()
2659 if (dst_idx + n <= BITS_PER_LONG) { in bitcpy()
2666 } else if (src_idx + n <= BITS_PER_LONG) { in bitcpy()
[all …]
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dmain.c68 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG)) in mt7601u_add_interface()
70 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG); in mt7601u_add_interface()
84 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG); in mt7601u_remove_interface()
207 idx = i * BITS_PER_LONG + idx; in mt76_wcid_alloc()
256 dev->wcid_mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG); in mt7601u_sta_remove()
/linux-4.4.14/tools/perf/util/
Dbitmap.c12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight()
17 if (bits % BITS_PER_LONG) in __bitmap_weight()
Dvdso.c37 #if BITS_PER_LONG == 64
50 #if BITS_PER_LONG == 64 in vdso_info__new()
113 #if BITS_PER_LONG == 64 in machine__exit_vdso()
137 #if BITS_PER_LONG == 64
300 #if BITS_PER_LONG == 64 in machine__findnew_vdso()
Dauxtrace.h336 #if BITS_PER_LONG == 64 || !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT) in auxtrace_mmap__read_head()
350 #if BITS_PER_LONG != 64 && defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT) in auxtrace_mmap__write_tail()
356 #if BITS_PER_LONG == 64 || !defined(HAVE_SYNC_COMPARE_AND_SWAP_SUPPORT) in auxtrace_mmap__write_tail()
Dhist.c50 const unsigned int unresolved_col_width = BITS_PER_LONG / 4; in hists__set_unres_dso_col_len()
60 const unsigned int unresolved_col_width = BITS_PER_LONG / 4; in hists__calc_col_len()
72 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len()
96 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len()
110 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len()
/linux-4.4.14/mm/
Dbootmem.c192 shift = idx & (BITS_PER_LONG - 1); in free_all_bootmem_core()
197 vec = ~map[idx / BITS_PER_LONG]; in free_all_bootmem_core()
201 if (end - start >= BITS_PER_LONG) in free_all_bootmem_core()
202 vec |= ~map[idx / BITS_PER_LONG + 1] << in free_all_bootmem_core()
203 (BITS_PER_LONG - shift); in free_all_bootmem_core()
210 if (IS_ALIGNED(start, BITS_PER_LONG) && vec == ~0UL) { in free_all_bootmem_core()
211 int order = ilog2(BITS_PER_LONG); in free_all_bootmem_core()
214 count += BITS_PER_LONG; in free_all_bootmem_core()
215 start += BITS_PER_LONG; in free_all_bootmem_core()
219 start = ALIGN(start + 1, BITS_PER_LONG); in free_all_bootmem_core()
Dmempool.c28 const int start = max_t(int, byte - (BITS_PER_LONG / 8), 0); in poison_error()
29 const int end = min_t(int, byte + (BITS_PER_LONG / 8), size); in poison_error()
/linux-4.4.14/fs/
Dfile.c27 int sysctl_nr_open_min = BITS_PER_LONG;
31 -BITS_PER_LONG;
127 nr = ((sysctl_nr_open - 1) | (BITS_PER_LONG - 1)) + 1; in alloc_fdtable()
259 fd /= BITS_PER_LONG; in __set_open_fd()
267 __clear_bit(fd / BITS_PER_LONG, fdt->full_fds_bits); in __clear_open_fd()
276 for (i = size / BITS_PER_LONG; i > 0; ) { in count_open_files()
280 i = (i + 1) * BITS_PER_LONG; in count_open_files()
397 i = j * BITS_PER_LONG; in close_files()
482 unsigned long maxbit = maxfd / BITS_PER_LONG; in find_next_fd()
483 unsigned long bitbit = start / BITS_PER_LONG; in find_next_fd()
[all …]
Dselect.c350 set = ~(~0UL << (n & (BITS_PER_LONG-1))); in max_select_fd()
351 n /= BITS_PER_LONG; in max_select_fd()
378 max += n * BITS_PER_LONG; in max_select_fd()
442 i += BITS_PER_LONG; in do_select()
446 for (j = 0; j < BITS_PER_LONG; ++j, ++i, bit <<= 1) { in do_select()
Dstat.c166 #if BITS_PER_LONG == 32 in cp_old_stat()
216 #if BITS_PER_LONG == 32
235 #if BITS_PER_LONG == 32 in cp_new_stat()
Dfcntl.c268 #if BITS_PER_LONG != 32 in do_fcntl()
275 #if BITS_PER_LONG != 32 in do_fcntl()
379 #if BITS_PER_LONG == 32
/linux-4.4.14/drivers/net/hippi/
Drrunner.h6 #if ((BITS_PER_LONG != 32) && (BITS_PER_LONG != 64))
490 #if (BITS_PER_LONG == 64)
502 #if (BITS_PER_LONG == 64) in set_rraddr()
515 #if (BITS_PER_LONG == 64) && defined(__LITTLE_ENDIAN) in set_rxaddr()
518 #elif (BITS_PER_LONG == 64) in set_rxaddr()
532 #if (BITS_PER_LONG == 64) && defined(__LITTLE_ENDIAN) in set_infoaddr()
535 #elif (BITS_PER_LONG == 64) in set_infoaddr()
/linux-4.4.14/tools/lib/
Dhweight.c44 #if BITS_PER_LONG == 32 in __sw_hweight64()
47 #elif BITS_PER_LONG == 64 in __sw_hweight64()
/linux-4.4.14/arch/x86/include/asm/
Dbitops.h20 #if BITS_PER_LONG == 32
22 #elif BITS_PER_LONG == 64
310 return ((1UL << (nr & (BITS_PER_LONG-1))) & in constant_test_bit()
Dpercpu.h523 unsigned long __percpu *a = (unsigned long *)addr + nr / BITS_PER_LONG; in x86_this_cpu_constant_test_bit()
526 return ((1UL << (nr % BITS_PER_LONG)) & raw_cpu_read_8(*a)) != 0; in x86_this_cpu_constant_test_bit()
528 return ((1UL << (nr % BITS_PER_LONG)) & raw_cpu_read_4(*a)) != 0; in x86_this_cpu_constant_test_bit()
/linux-4.4.14/arch/powerpc/include/asm/
Dbitops.h50 #define PPC_BITLSHIFT(be) (BITS_PER_LONG - 1 - (be))
175 return BITS_PER_LONG - 1 - lz; in __ilog2()
205 return BITS_PER_LONG; in ffz()
/linux-4.4.14/block/
Dblk-tag.c105 nr_ulongs = ALIGN(depth, BITS_PER_LONG) / BITS_PER_LONG; in init_tag_map()
242 nr_ulongs = ALIGN(max_depth, BITS_PER_LONG) / BITS_PER_LONG; in blk_queue_resize_tags()
/linux-4.4.14/include/net/
Dflow.h91 } __attribute__((__aligned__(BITS_PER_LONG/8)));
147 } __attribute__((__aligned__(BITS_PER_LONG/8)));
162 } __attribute__((__aligned__(BITS_PER_LONG/8)));
180 } __attribute__((__aligned__(BITS_PER_LONG/8)));
Dipv6.h375 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_masked_addr_cmp()
407 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in __ipv6_addr_set_half()
435 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_equal()
448 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
541 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_any()
553 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_hash()
577 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_loopback()
594 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_v4mapped()
662 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64
682 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in __ipv6_addr_diff()
Daddrconf.h346 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_is_ll_all_nodes()
358 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_is_ll_all_routers()
375 #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 in ipv6_addr_is_solict_mult()
Dsnmp.h163 #if BITS_PER_LONG==32
/linux-4.4.14/arch/sh/include/asm/
Dbitops-op32.h10 #define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
139 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1))); in test_bit()
/linux-4.4.14/fs/ocfs2/cluster/
Dmasklog.h127 unsigned long words[MLOG_MAX_BITS / BITS_PER_LONG];
132 #if BITS_PER_LONG == 32
/linux-4.4.14/drivers/rtc/
Drtc-sirfsoc.c95 << (BITS_PER_LONG - RTC_SHIFT) in sirfsoc_rtc_read_alarm()
99 << (BITS_PER_LONG - RTC_SHIFT) in sirfsoc_rtc_read_alarm()
185 rtc_time_to_tm(rtcdrv->overflow_rtc << (BITS_PER_LONG - RTC_SHIFT) | in sirfsoc_rtc_read_time()
199 rtcdrv->overflow_rtc = rtc_time >> (BITS_PER_LONG - RTC_SHIFT); in sirfsoc_rtc_set_time()
/linux-4.4.14/drivers/gpu/host1x/hw/
Dintr_hw.c53 for_each_set_bit(id, &reg, BITS_PER_LONG) { in syncpt_thresh_isr()
55 host->syncpt + (i * BITS_PER_LONG + id); in syncpt_thresh_isr()
/linux-4.4.14/arch/hexagon/kernel/
Dsmp.c55 msg = find_next_bit(ops, BITS_PER_LONG, msg+1); in __handle_ipi()
78 } while (msg < BITS_PER_LONG); in __handle_ipi()
/linux-4.4.14/drivers/scsi/cxlflash/
Dvlun.c89 bali->lun_bmap_size = lun_size_au / BITS_PER_LONG; in ba_init()
91 if (lun_size_au % BITS_PER_LONG) in ba_init()
111 last_word_underflow = (bali->lun_bmap_size * BITS_PER_LONG); in ba_init()
116 i < BITS_PER_LONG; in ba_init()
228 ((bit_word * BITS_PER_LONG) + bit_pos), ba_lun->lun_id, in ba_alloc()
231 return (u64) ((bit_word * BITS_PER_LONG) + bit_pos); in ba_alloc()
245 idx = aun / BITS_PER_LONG; in validate_alloc()
246 bit_pos = aun % BITS_PER_LONG; in validate_alloc()
286 idx = to_free / BITS_PER_LONG; in ba_free()
287 bit_pos = to_free % BITS_PER_LONG; in ba_free()
Dvlun.h22 #define HIBIT (BITS_PER_LONG - 1)
/linux-4.4.14/arch/m32r/include/asm/
Dtypes.h10 #define BITS_PER_LONG 32 macro
/linux-4.4.14/arch/frv/include/asm/
Dtypes.h20 #define BITS_PER_LONG 32 macro
/linux-4.4.14/arch/mn10300/include/asm/
Dtypes.h20 #define BITS_PER_LONG 32 macro
/linux-4.4.14/arch/xtensa/include/asm/
Dtypes.h20 #define BITS_PER_LONG 32 macro
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c114 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_map_buffer()
134 if (BITS_PER_LONG == 64 || buf->nbufs == 1) in mlx4_en_unmap_buffer()
/linux-4.4.14/fs/f2fs/
Dsegment.c37 #if BITS_PER_LONG == 64 in __reverse_ulong()
55 #if BITS_PER_LONG == 64 in __reverse_ffs()
98 unsigned long result = offset & ~(BITS_PER_LONG - 1); in __find_rev_next_bit()
105 offset %= BITS_PER_LONG; in __find_rev_next_bit()
112 if (size < BITS_PER_LONG) in __find_rev_next_bit()
117 size -= BITS_PER_LONG; in __find_rev_next_bit()
118 result += BITS_PER_LONG; in __find_rev_next_bit()
121 while (size & ~(BITS_PER_LONG-1)) { in __find_rev_next_bit()
125 result += BITS_PER_LONG; in __find_rev_next_bit()
126 size -= BITS_PER_LONG; in __find_rev_next_bit()
[all …]
/linux-4.4.14/arch/parisc/include/asm/
Dsignal.h8 #define _NSIG_BPW BITS_PER_LONG
Dirq.h25 #define CPU_IRQ_MAX (CPU_IRQ_BASE + (BITS_PER_LONG - 1))
Ddma.h23 #define DMA_CHUNK_SIZE (BITS_PER_LONG*PAGE_SIZE)
Dchecksum.h132 #if BITS_PER_LONG > 32 in csum_ipv6_magic()
Dpgtable.h126 #if (PGDIR_SHIFT + PAGE_SHIFT + PGD_ORDER - BITS_PER_PGD_ENTRY) > BITS_PER_LONG
127 #define BITS_PER_PGD (BITS_PER_LONG - PGDIR_SHIFT)
141 #define MAX_ADDRBITS (BITS_PER_LONG)
Dbitops.h20 #define CHOP_SHIFTCOUNT(x) (((unsigned long) (x)) & (BITS_PER_LONG - 1))
/linux-4.4.14/kernel/debug/kdb/
Dkdb_private.h39 #if BITS_PER_LONG == 32
51 #elif BITS_PER_LONG == 64
/linux-4.4.14/arch/ia64/hp/common/
Dsba_iommu.c271 #define DMA_CHUNK_SIZE (BITS_PER_LONG*iovp_size)
320 u64 *ptr = &ioc->pdir_base[pide & ~(BITS_PER_LONG - 1)]; in sba_dump_pdir_entry()
325 msg, rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
328 while (rcnt < BITS_PER_LONG) { in sba_dump_pdir_entry()
330 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
535 if (likely(bits_wanted <= BITS_PER_LONG/2)) { in sba_search_bitmap()
577 bits = bits_wanted - (qwords * BITS_PER_LONG); in sba_search_bitmap()
742 if (unlikely(bits_not_wanted > BITS_PER_LONG)) { in sba_free_range()
746 bits_not_wanted -= BITS_PER_LONG; in sba_free_range()
747 pide += BITS_PER_LONG; in sba_free_range()
[all …]
/linux-4.4.14/arch/microblaze/mm/
Dmmu_context.c34 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1];
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Docteon_main.h31 #if BITS_PER_LONG == 32
33 #elif BITS_PER_LONG == 64
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-mem.h67 #if BITS_PER_LONG == 32
/linux-4.4.14/arch/parisc/include/uapi/asm/
Dswab.h41 #if BITS_PER_LONG > 32
/linux-4.4.14/net/netlabel/
Dnetlabel_kapi.c605 if ((off & (BITS_PER_LONG - 1)) != 0) in netlbl_catmap_getlong()
680 if (((spot & (BITS_PER_LONG - 1)) != 0) && in netlbl_catmap_setrng()
681 ((end - spot) > BITS_PER_LONG)) { in netlbl_catmap_setrng()
686 spot += BITS_PER_LONG; in netlbl_catmap_setrng()
716 if ((offset & (BITS_PER_LONG - 1)) != 0) in netlbl_catmap_setlong()
/linux-4.4.14/drivers/block/drbd/
Ddrbd_bitmap.c484 #define BITS_PER_LONG_MASK (BITS_PER_LONG - 1)
501 bm = p_addr + (tmp/BITS_PER_LONG); in bm_clear_surplus()
512 if (BITS_PER_LONG == 32 && ((bm - p_addr) & 1) == 1) { in bm_clear_surplus()
537 bm = p_addr + (tmp/BITS_PER_LONG); in bm_set_surplus()
547 if (BITS_PER_LONG == 32 && ((bm - p_addr) & 1) == 1) { in bm_set_surplus()
580 if (BITS_PER_LONG == 32 && (last_word & 1) == 0) in bm_count_bits()
1425 changed += BITS_PER_LONG - bits; in bm_set_full_words_within_one_page()
1453 unsigned long sl = ALIGN(s,BITS_PER_LONG); in _drbd_bm_set_bits()
1454 unsigned long el = (e+1) & ~((unsigned long)BITS_PER_LONG-1); in _drbd_bm_set_bits()
1461 if (e - s <= 3*BITS_PER_LONG) { in _drbd_bm_set_bits()
Ddrbd_int.h239 #if BITS_PER_LONG == 64 in bm_xfer_ctx_bit_to_word_offset()
241 #elif BITS_PER_LONG == 32 in bm_xfer_ctx_bit_to_word_offset()
1205 #if BITS_PER_LONG == 32
1209 #elif BITS_PER_LONG == 64
1302 #if !defined(CONFIG_LBDAF) && BITS_PER_LONG == 32
1308 #if BITS_PER_LONG == 32
/linux-4.4.14/include/linux/mlx5/
Ddoorbell.h39 #if BITS_PER_LONG == 64
/linux-4.4.14/include/linux/mlx4/
Ddoorbell.h44 #if BITS_PER_LONG == 64
/linux-4.4.14/include/xen/
Dgrant_table.h230 #if BITS_PER_LONG < 64 in xen_page_foreign()
233 BUILD_BUG_ON(sizeof(struct xen_page_foreign) > BITS_PER_LONG); in xen_page_foreign()
/linux-4.4.14/arch/x86/kernel/apic/
Dapic_flat_64.c78 if (cpu < BITS_PER_LONG) in flat_send_IPI_mask_allbutself()
96 if (cpu < BITS_PER_LONG) in flat_send_IPI_allbutself()
/linux-4.4.14/arch/powerpc/mm/
Dmmu_context_hash32.c62 static unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1];
/linux-4.4.14/drivers/net/ethernet/tehuti/
Dtehuti.h80 #if BITS_PER_LONG == 64
83 #elif BITS_PER_LONG == 32
87 # error BITS_PER_LONG is undefined. Must be 64 or 32
/linux-4.4.14/arch/x86/kvm/
Dirq_comm.c151 irq_source_id = find_first_zero_bit(bitmap, BITS_PER_LONG); in kvm_request_irq_source_id()
153 if (irq_source_id >= BITS_PER_LONG) { in kvm_request_irq_source_id()
175 irq_source_id >= BITS_PER_LONG) { in kvm_free_irq_source_id()
/linux-4.4.14/init/
Ddo_mounts.h22 #if BITS_PER_LONG == 32
/linux-4.4.14/arch/x86/include/asm/xen/
Dpage.h33 #define FOREIGN_FRAME_BIT (1UL<<(BITS_PER_LONG-1))
34 #define IDENTITY_FRAME_BIT (1UL<<(BITS_PER_LONG-2))
/linux-4.4.14/mm/kasan/
Dreport.c163 return 3 + (BITS_PER_LONG/8)*2 + (shadow - row)*2 + in shadow_pointer_offset()
181 char buffer[4 + (BITS_PER_LONG/8)*2]; in print_shadow_for_address()
/linux-4.4.14/arch/parisc/lib/
Dmemset.c24 #define OPSIZ (BITS_PER_LONG/8)
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dlustre_lite.h138 if (BITS_PER_LONG == 32 && hash64) in hash_x_index()
/linux-4.4.14/kernel/gcov/
Dgcov.h30 #if BITS_PER_LONG >= 64
/linux-4.4.14/drivers/staging/slicoss/
Dslic.h501 #if BITS_PER_LONG == 64
506 #elif BITS_PER_LONG == 32
510 #error BITS_PER_LONG must be 32 or 64
/linux-4.4.14/kernel/time/
Dtime.c260 # if BITS_PER_LONG == 32 in jiffies_to_msecs()
280 # if BITS_PER_LONG == 32 in jiffies_to_usecs()
426 #if BITS_PER_LONG == 32
Djiffies.c79 #if (BITS_PER_LONG < 64)
Dsched_clock.c241 sched_clock_register(jiffy_sched_clock_read, BITS_PER_LONG, HZ); in sched_clock_postinit()
/linux-4.4.14/drivers/iommu/
Dio-pgtable-arm.c969 j = find_first_bit(&cfg->pgsize_bitmap, BITS_PER_LONG); in arm_lpae_run_tests()
970 while (j != BITS_PER_LONG) { in arm_lpae_run_tests()
989 j = find_next_bit(&cfg->pgsize_bitmap, BITS_PER_LONG, j); in arm_lpae_run_tests()
1006 j = find_first_bit(&cfg->pgsize_bitmap, BITS_PER_LONG); in arm_lpae_run_tests()
1007 while (j != BITS_PER_LONG) { in arm_lpae_run_tests()
1025 j = find_next_bit(&cfg->pgsize_bitmap, BITS_PER_LONG, j); in arm_lpae_run_tests()
/linux-4.4.14/include/acpi/platform/
Daclinux.h124 #define ACPI_MACHINE_WIDTH BITS_PER_LONG
/linux-4.4.14/fs/btrfs/
Dulist.h66 #if BITS_PER_LONG == 32 in ulist_add_merge_ptr()
Dvolumes.h41 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
159 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
183 #elif BITS_PER_LONG==32 && defined(CONFIG_PREEMPT)
Dbtrfs_inode.h210 #if BITS_PER_LONG == 32 in btrfs_inode_hash()
/linux-4.4.14/drivers/isdn/hardware/eicon/
Dplatform.h343 #ifdef BITS_PER_LONG
344 #if BITS_PER_LONG > 32
/linux-4.4.14/arch/blackfin/mach-common/
Dsmp.c153 msg = find_next_bit(&pending, BITS_PER_LONG, msg + 1); in ipi_handler_int1()
171 } while (msg < BITS_PER_LONG); in ipi_handler_int1()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_doorbell.h43 #if BITS_PER_LONG == 64
/linux-4.4.14/drivers/scsi/
Dmegaraid.h477 #if BITS_PER_LONG == 32
481 #if BITS_PER_LONG == 64
489 #if BITS_PER_LONG == 32
493 #if BITS_PER_LONG == 64
/linux-4.4.14/net/netlink/
Dgenetlink.c170 BITS_PER_LONG); in genl_allocate_reserve_groups()
173 mc_groups_longs * BITS_PER_LONG, in genl_allocate_reserve_groups()
179 mc_groups_longs * BITS_PER_LONG); in genl_allocate_reserve_groups()
188 if (id >= mc_groups_longs * BITS_PER_LONG) { in genl_allocate_reserve_groups()
272 mc_groups_longs * BITS_PER_LONG); in genl_validate_assign_mc_groups()
287 mc_groups_longs * BITS_PER_LONG); in genl_validate_assign_mc_groups()
/linux-4.4.14/drivers/parisc/
Dsba_iommu.c201 u64 *ptr = &(ioc->pdir_base[pide & (~0U * BITS_PER_LONG)]); in sba_dump_pdir_entry()
207 rptr, pide & (BITS_PER_LONG - 1), *rptr); in sba_dump_pdir_entry()
210 while (rcnt < BITS_PER_LONG) { in sba_dump_pdir_entry()
212 (rcnt == (pide & (BITS_PER_LONG - 1))) in sba_dump_pdir_entry()
316 #define RESMAP_MASK(n) (~0UL << (BITS_PER_LONG - (n)))
356 if (bits_wanted > (BITS_PER_LONG/2)) { in sba_search_bitmap()
383 if (bitshiftcnt >= BITS_PER_LONG) { in sba_search_bitmap()
499 unsigned long m = RESMAP_MASK(bits_not_wanted) >> (pide & (BITS_PER_LONG - 1)); in sba_free_range()
/linux-4.4.14/arch/hexagon/include/asm/
Dbitops.h182 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG) in __test_bit()
/linux-4.4.14/lib/raid6/
Dint.uc27 /* Change this from BITS_PER_LONG if there is something better... */
28 #if BITS_PER_LONG == 64
/linux-4.4.14/include/trace/
Dtrace_events.h281 #if BITS_PER_LONG == 32
472 ((BITS_PER_LONG / 8) - 1)) / (BITS_PER_LONG / 8))
480 (__bitmask_size_in_longs(nr_bits) * (BITS_PER_LONG / 8))
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_xics.h60 #define ICP_RESEND_MAP_SIZE (KVMPPC_XICS_MAX_ICS_ID / BITS_PER_LONG + 1)
/linux-4.4.14/net/rxrpc/
Dar-skbuff.c67 call->ackr_window[loop + 1] << (BITS_PER_LONG - 1); in rxrpc_hard_ACK_data()
/linux-4.4.14/arch/sh/kernel/cpu/sh4/
Dsq.c376 unsigned int size = (nr_pages + (BITS_PER_LONG - 1)) / BITS_PER_LONG; in sq_api_init()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_internal.h47 #if BITS_PER_LONG == 64
55 #elif BITS_PER_LONG == 32
/linux-4.4.14/drivers/xen/events/
Devents_2l.c176 word_idx = evtchn / BITS_PER_LONG; in evtchn_2l_handle_events()
177 bit_idx = evtchn % BITS_PER_LONG; in evtchn_2l_handle_events()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dfile_ops.c1265 uctxt->tidmapcnt = uctxt->numtidgroups / BITS_PER_LONG + in setup_ctxt()
1266 !!(uctxt->numtidgroups % BITS_PER_LONG); in setup_ctxt()
1282 if (uctxt->numtidgroups % BITS_PER_LONG) in setup_ctxt()
1285 BITS_PER_LONG)) - 1); in setup_ctxt()
1546 if (bitidx >= BITS_PER_LONG) in num_free_groups()
1551 while (!free && bitidx < BITS_PER_LONG) { in num_free_groups()
1632 bitidx >= BITS_PER_LONG) { in exp_tid_setup()
1667 offset = ((useidx * BITS_PER_LONG) + bitidx) * in exp_tid_setup()
1822 while ((bitidx = tzcnt(map)) < BITS_PER_LONG) { in exp_tid_free()
1825 unsigned offset = ((idx * BITS_PER_LONG) + bitidx) * in exp_tid_free()
/linux-4.4.14/drivers/gpu/host1x/
Dchannel.c32 if (host->info->nb_channels > BITS_PER_LONG) { in host1x_channel_list_init()
/linux-4.4.14/arch/mn10300/mm/
Dtlb-smp.c121 #if NR_CPUS <= BITS_PER_LONG in flush_tlb_others()
/linux-4.4.14/drivers/net/ethernet/ti/
Ddavinci_cpdma.h18 #define CPDMA_MAX_CHANNELS BITS_PER_LONG
/linux-4.4.14/arch/sparc/include/asm/
Dpgtable_32.h405 #define MK_IOSPACE_PFN(space, pfn) (pfn | (space << (BITS_PER_LONG - 4)))
406 #define GET_IOSPACE(pfn) (pfn >> (BITS_PER_LONG - 4))
/linux-4.4.14/drivers/md/
Ddm-exception-store.h138 # if defined(CONFIG_LBDAF) || (BITS_PER_LONG == 64)
Ddm-cache-policy-internal.h117 return sizeof(unsigned long) * dm_div_up(nr_entries, BITS_PER_LONG); in bitset_size_in_bytes()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_labels.c22 return longs * BITS_PER_LONG; in label_bits()
/linux-4.4.14/fs/xfs/
Dxfs_trans_priv.h153 #if BITS_PER_LONG != 64
/linux-4.4.14/include/linux/raid/
Dpq.h41 #define BITS_PER_LONG __WORDSIZE macro
/linux-4.4.14/arch/parisc/kernel/
Dtime.c201 .mask = CLOCKSOURCE_MASK(BITS_PER_LONG),
Dpci-dma.c257 mask >>= BITS_PER_LONG - pages_needed; in pcxl_alloc_range()
313 mask >>= BITS_PER_LONG - pages_mapped; in pcxl_free_range()
/linux-4.4.14/tools/perf/ui/browsers/
Dmap.c112 char tmp[BITS_PER_LONG / 4]; in map__browse()
/linux-4.4.14/drivers/gpio/
Dgpio-generic.c95 #if BITS_PER_LONG >= 64
409 #if BITS_PER_LONG >= 64 in bgpio_setup_accessors()
544 if (bgc->bits > BITS_PER_LONG) in bgpio_init()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dbitfield.h223 #if BITS_PER_LONG == 64
331 #if BITS_PER_LONG == 64
521 #if BITS_PER_LONG == 64
/linux-4.4.14/scripts/mod/
Dfile2alias.c20 #define BITS_PER_LONG 32 macro
23 #define BITS_PER_LONG 64 macro
739 for (i = min / BITS_PER_LONG; i < max / BITS_PER_LONG + 1; i++) in do_input()
742 if (arr[i / BITS_PER_LONG] & (1L << (i%BITS_PER_LONG))) in do_input()
/linux-4.4.14/arch/s390/kernel/
Dptrace.c155 (1UL << (BITS_PER_LONG - 1)) : 0; in __peek_user_per()
165 child->thread.per_event.cause << (BITS_PER_LONG - 16); in __peek_user_per()
172 child->thread.per_event.paid << (BITS_PER_LONG - 8); in __peek_user_per()
234 tmp <<= BITS_PER_LONG - 32; in __peek_user()
376 test_fp_ctl(data >> (BITS_PER_LONG - 32))) in __poke_user()
378 child->thread.fpu.fpc = data >> (BITS_PER_LONG - 32); in __poke_user()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_disc.h72 #define XRI_BITMAP_ULONGS (LPFC_SLI4_MAX_XRI / BITS_PER_LONG)
Dlpfc_mem.c54 bytes = ((BITS_PER_LONG - 1 + max_xri) / BITS_PER_LONG) * in lpfc_mem_alloc_active_rrq_pool_s4()
/linux-4.4.14/drivers/staging/rdma/ehca/
Dipz_pt_fn.h68 unsigned long bitmap[IPZ_SPAGE_PER_KPAGE / BITS_PER_LONG];
/linux-4.4.14/drivers/pinctrl/uniphier/
Dpinctrl-uniphier.h63 #if UNIPHIER_PIN_PULL_DIR_SHIFT + UNIPHIER_PIN_PULL_DIR_BITS > BITS_PER_LONG
/linux-4.4.14/arch/s390/mm/
Dinit.c102 arch_local_irq_restore(4UL << (BITS_PER_LONG - 8)); in paging_init()
/linux-4.4.14/drivers/mtd/chips/
Dcfi_util.c108 #if BITS_PER_LONG >= 64 in cfi_build_cmd()
161 #if BITS_PER_LONG >= 64 in cfi_merge_status()
/linux-4.4.14/net/openvswitch/
Dflow.h123 } __aligned(BITS_PER_LONG/8); /* Ensure that we can do comparisons as longs. */
/linux-4.4.14/include/net/sctp/
Dconstants.h249 #define SCTP_TSN_MAP_INITIAL BITS_PER_LONG
/linux-4.4.14/security/selinux/ss/
Debitmap.h27 #define EBITMAP_UNIT_SIZE BITS_PER_LONG
/linux-4.4.14/arch/parisc/mm/
Dinit.c608 > BITS_PER_LONG); in mem_init()
848 space_id[index >> SHIFT_PER_LONG] |= (1L << (index & (BITS_PER_LONG - 1))); in alloc_sid()
862 index &= (BITS_PER_LONG - 1); in free_sid()
/linux-4.4.14/arch/m68k/mm/
Dmcfmmu.c27 unsigned long context_map[LAST_CONTEXT / BITS_PER_LONG + 1];
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_tx.c416 i = start / BITS_PER_LONG; in qib_chg_pioavailkernel()
422 start) % BITS_PER_LONG, &dma)) in qib_chg_pioavailkernel()
/linux-4.4.14/fs/fat/
Dfat.h233 #if BITS_PER_LONG == 32 in fat_i_pos_read()
237 #if BITS_PER_LONG == 32 in fat_i_pos_read()
/linux-4.4.14/kernel/
Dcpu.c747 const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)] = {
751 #if BITS_PER_LONG > 32
/linux-4.4.14/sound/pci/lx6464es/
Dlx_core.h230 #if BITS_PER_LONG == 32 in unpack_pointer()
/linux-4.4.14/arch/powerpc/kernel/
Dmachine_kexec.c227 #define cpu_to_be_ulong __PASTE(cpu_to_be, BITS_PER_LONG)
/linux-4.4.14/kernel/sched/
Dclock.c233 #if BITS_PER_LONG != 64 in sched_clock_remote()
Dwait.c488 const int shift = BITS_PER_LONG == 32 ? 5 : 6; in bit_waitqueue()
503 if (BITS_PER_LONG == 64) { in atomic_t_waitqueue()
/linux-4.4.14/drivers/char/agp/
Di460-agp.c377 map_size = ((I460_KPAGES_PER_IOPAGE + BITS_PER_LONG - 1) & -BITS_PER_LONG)/8; in i460_alloc_large_page()

123