Searched refs:BITS_PER_LONG (Results 76 - 100 of 558) sorted by relevance

1234567891011>>

/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dmain.c62 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG))
64 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG);
78 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG);
201 idx = i * BITS_PER_LONG + idx;
250 dev->wcid_mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG);
/linux-master/include/linux/
H A Dbitops.h15 # define aligned_byte_mask(n) (~0xffUL << (BITS_PER_LONG - 8 - 8*(n)))
241 #if BITS_PER_LONG == 32
244 #elif BITS_PER_LONG != 64
245 #error BITS_PER_LONG not 32 or 64
266 return BITS_PER_LONG;
H A Dbitmap.h39 * compile-time and at most BITS_PER_LONG.
222 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
223 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
263 if (nbits % BITS_PER_LONG)
264 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits);
275 #if BITS_PER_LONG == 64
293 #if BITS_PER_LONG == 32
736 const unsigned long offset = start % BITS_PER_LONG;
751 const unsigned long offset = start % BITS_PER_LONG;
H A Du64_stats_sync.h65 #if BITS_PER_LONG == 32
70 #if BITS_PER_LONG == 64
H A Dassoc_array.h17 #define ASSOC_ARRAY_KEY_CHUNK_SIZE BITS_PER_LONG /* Key data retrieved in chunks of this size */
H A Dxxhash.h126 #if BITS_PER_LONG == 64
H A Dfcntl.h28 #if BITS_PER_LONG == 32
42 #endif /* BITS_PER_LONG == 32 */
H A Dshrinker.h10 #define SHRINKER_UNIT_BITS BITS_PER_LONG
/linux-master/lib/
H A Dtest_ida.c133 IDA_BUG_ON(ida, ida_alloc_min(ida, i + BITS_PER_LONG,
134 GFP_KERNEL) != i + BITS_PER_LONG);
136 ida_free(ida, i + BITS_PER_LONG);
146 for (i = 0; i < IDA_BITMAP_BITS + BITS_PER_LONG - 4; i++)
148 for (i = IDA_BITMAP_BITS + BITS_PER_LONG - 4; i > 0; i--)
H A Ddynamic_queue_limits.c44 start = (hist_head - DQL_HIST_LEN + 1) * BITS_PER_LONG;
51 end = hist_head * BITS_PER_LONG + (BITS_PER_LONG - 1);
61 if (test_bit(t % (DQL_HIST_LEN * BITS_PER_LONG),
199 dql->history_head = jiffies / BITS_PER_LONG;
H A Dtest_bitmap.c361 unsigned int nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG);
687 round_up(nbits, BITS_PER_LONG), nbits);
688 if (next_bit < round_up(nbits, BITS_PER_LONG)) {
715 next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits);
716 if (next_bit < round_up(nbits, BITS_PER_LONG)) {
1060 { BITS_PER_LONG, BITS_PER_LONG, BITS_PER_LONG,
1064 { 1, BITS_PER_LONG - 1, BITS_PER_LONG,
[all...]
/linux-master/fs/ocfs2/cluster/
H A Dmasklog.h111 unsigned long words[MLOG_MAX_BITS / BITS_PER_LONG];
116 #if BITS_PER_LONG == 32
/linux-master/arch/hexagon/include/asm/
H A Dbitops.h19 * The offset calculations for these are based on BITS_PER_LONG == 32
175 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG)
190 : "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG)
/linux-master/tools/include/linux/
H A Dbitmap.h25 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
26 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
H A Dbitops.h11 #ifndef BITS_PER_LONG
12 # define BITS_PER_LONG __WORDSIZE macro
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_doorbell.h43 #if BITS_PER_LONG == 64
74 * BITS_PER_LONG is 32 -- there's no portable way to do atomic 64-bit
/linux-master/arch/parisc/include/asm/
H A Dhash.h49 #if BITS_PER_LONG == 64
145 #endif /* BITS_PER_LONG == 64 */
/linux-master/kernel/gcov/
H A Dgcov.h32 #if BITS_PER_LONG >= 64
/linux-master/arch/parisc/lib/
H A Dmemset.c5 #define OPSIZ (BITS_PER_LONG/8)
/linux-master/kernel/time/
H A Djiffies.c47 #if (BITS_PER_LONG < 64)
/linux-master/tools/include/asm-generic/bitops/
H A Dnon-atomic.h112 return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
/linux-master/arch/x86/include/asm/
H A Dbitops.h21 #if BITS_PER_LONG == 32
23 #elif BITS_PER_LONG == 64
26 # error "Unexpected BITS_PER_LONG"
205 return ((1UL << (nr & (BITS_PER_LONG-1))) &
296 return BITS_PER_LONG - 1 - __builtin_clzl(word);
/linux-master/drivers/infiniband/hw/hfi1/
H A Dfault.h29 unsigned long opcodes[(1U << BITS_PER_BYTE) / BITS_PER_LONG];
/linux-master/fs/btrfs/
H A Dulist.h60 #if BITS_PER_LONG == 32
/linux-master/drivers/ras/amd/atl/
H A Dinternal.h252 WARN_ON_ONCE(num_bits >= BITS_PER_LONG);
256 WARN_ON_ONCE(bit_num >= BITS_PER_LONG);
277 WARN_ON_ONCE(high_bit >= BITS_PER_LONG);
278 WARN_ON_ONCE(low_bit >= BITS_PER_LONG);

Completed in 252 milliseconds

1234567891011>>