Home
last modified time | relevance | path

Searched refs:BITS_PER_LONG (Results 1 – 25 of 546) sorted by relevance

12345678910>>...22

/linux/arch/s390/lib/
A Dfind.c23 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()
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()
58 result += BITS_PER_LONG; in find_next_bit_inv()
60 while (size & ~(BITS_PER_LONG-1)) { in find_next_bit_inv()
63 result += BITS_PER_LONG; in find_next_bit_inv()
64 size -= BITS_PER_LONG; in find_next_bit_inv()
[all …]
/linux/include/linux/
A Du64_stats_sync.h69 #if BITS_PER_LONG==32 && defined(CONFIG_SMP)
74 #if BITS_PER_LONG == 64
128 #if BITS_PER_LONG == 32 && defined(CONFIG_SMP)
138 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin()
145 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end()
155 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_begin_irqsave()
166 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in u64_stats_update_end_irqrestore()
174 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_begin()
183 #if BITS_PER_LONG==32 && !defined(CONFIG_SMP) in u64_stats_fetch_begin()
192 #if BITS_PER_LONG==32 && defined(CONFIG_SMP) in __u64_stats_fetch_retry()
[all …]
A Dhmm.h41 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),
A Dhash.h14 #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()
A Djoystick.h14 #if BITS_PER_LONG == 64
16 #elif BITS_PER_LONG == 32
19 #error Unexpected BITS_PER_LONG
A Dmod_devicetable.h357 kernel_ulong_t evbit[INPUT_DEVICE_ID_EV_MAX / BITS_PER_LONG + 1];
358 kernel_ulong_t keybit[INPUT_DEVICE_ID_KEY_MAX / BITS_PER_LONG + 1];
359 kernel_ulong_t relbit[INPUT_DEVICE_ID_REL_MAX / BITS_PER_LONG + 1];
360 kernel_ulong_t absbit[INPUT_DEVICE_ID_ABS_MAX / BITS_PER_LONG + 1];
361 kernel_ulong_t mscbit[INPUT_DEVICE_ID_MSC_MAX / BITS_PER_LONG + 1];
362 kernel_ulong_t ledbit[INPUT_DEVICE_ID_LED_MAX / BITS_PER_LONG + 1];
363 kernel_ulong_t sndbit[INPUT_DEVICE_ID_SND_MAX / BITS_PER_LONG + 1];
364 kernel_ulong_t ffbit[INPUT_DEVICE_ID_FF_MAX / BITS_PER_LONG + 1];
365 kernel_ulong_t swbit[INPUT_DEVICE_ID_SW_MAX / BITS_PER_LONG + 1];
366 kernel_ulong_t propbit[INPUT_DEVICE_ID_PROP_MAX / BITS_PER_LONG + 1];
/linux/lib/
A Dfind_bit.c41 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
43 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
53 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
56 start += BITS_PER_LONG; in _find_next_bit()
60 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
62 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
82 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { 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()
115 unsigned long idx = (size-1) / BITS_PER_LONG; in _find_last_bit()
[all …]
A Dbitmap.c56 if (bits % BITS_PER_LONG) in __bitmap_equal()
107 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
153 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
219 (~0UL >> (BITS_PER_LONG - first % BITS_PER_LONG)); in bitmap_cut()
235 dst[first / BITS_PER_LONG] &= ~0UL << (first % BITS_PER_LONG); in bitmap_cut()
249 if (bits % BITS_PER_LONG) in __bitmap_and()
287 if (bits % BITS_PER_LONG) in __bitmap_andnot()
314 if (bits % BITS_PER_LONG) in __bitmap_intersects()
355 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_set()
376 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in __bitmap_clear()
[all …]
/linux/tools/lib/
A Dfind_bit.c41 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
43 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
60 start = round_down(start, BITS_PER_LONG); in _find_next_bit()
63 start += BITS_PER_LONG; in _find_next_bit()
67 tmp = addr1[start / BITS_PER_LONG]; in _find_next_bit()
69 tmp &= addr2[start / BITS_PER_LONG]; in _find_next_bit()
90 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in _find_first_bit()
92 return min(idx * BITS_PER_LONG + __ffs(addr[idx]), size); in _find_first_bit()
107 for (idx = 0; idx * BITS_PER_LONG < size; idx++) { in _find_first_zero_bit()
109 return min(idx * BITS_PER_LONG + ffz(addr[idx]), size); in _find_first_zero_bit()
A Dbitmap.c10 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()
93 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
98 if (bits % BITS_PER_LONG) in __bitmap_intersects()
/linux/arch/s390/include/asm/
A Dbitops.h42 #define __BITOPS_WORDS(bits) (((bits) + BITS_PER_LONG - 1) / BITS_PER_LONG)
55 return 1UL << (nr & (BITS_PER_LONG - 1)); in __bitops_mask()
229 return set_bit(nr ^ (BITS_PER_LONG - 1), ptr); in set_bit_inv()
234 return clear_bit(nr ^ (BITS_PER_LONG - 1), ptr); in clear_bit_inv()
245 return __set_bit(nr ^ (BITS_PER_LONG - 1), ptr); in __set_bit_inv()
250 return __clear_bit(nr ^ (BITS_PER_LONG - 1), ptr); in __clear_bit_inv()
256 return test_bit(nr ^ (BITS_PER_LONG - 1), ptr); in test_bit_inv()
320 return __flogr(-word & word) ^ (BITS_PER_LONG - 1); in __ffs()
332 unsigned long mask = 2 * BITS_PER_LONG - 1; in ffs()
346 return __flogr(word) ^ (BITS_PER_LONG - 1); in __fls()
[all …]
/linux/arch/mips/include/asm/
A Dbitops.h93 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()
339 num = BITS_PER_LONG - 1; in __fls()
341 #if BITS_PER_LONG == 64 in __fls()
351 if (!(word & (~0ul << (BITS_PER_LONG-8)))) { in __fls()
355 if (!(word & (~0ul << (BITS_PER_LONG-4)))) { in __fls()
[all …]
/linux/include/asm-generic/bitops/
A D__fls.h15 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()
/linux/tools/include/asm-generic/bitops/
A D__fls.h15 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()
/linux/drivers/mtd/nand/
A Dbbt.c28 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/drivers/reset/
A Dreset-zynq.c34 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/arch/mips/lib/
A Dbitops.c24 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()
/linux/include/asm-generic/
A Dbitsperlong.h9 #define BITS_PER_LONG 64 macro
11 #define BITS_PER_LONG 32 macro
18 #if 0 && BITS_PER_LONG != __BITS_PER_LONG
36 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
/linux/tools/include/asm-generic/
A Dbitsperlong.h8 #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) macro
10 #define BITS_PER_LONG __WORDSIZE macro
13 #if BITS_PER_LONG != __BITS_PER_LONG
22 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
/linux/drivers/scsi/megaraid/
A Dmegaraid_mm.h71 #if BITS_PER_LONG == 32
75 #if BITS_PER_LONG == 64
85 #if BITS_PER_LONG == 32
89 #if BITS_PER_LONG == 64
/linux/include/linux/mtd/
A Dmap.h72 # 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()
/linux/tools/include/linux/
A Dhash.h14 #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/net/netfilter/
A Dnft_set_pipapo.h58 #if BITS_PER_LONG == 64
61 #define NFT_PIPAPO_MAP_TOBITS (BITS_PER_LONG - NFT_PIPAPO_MAP_NBITS)
97 #if BITS_PER_LONG == 64
200 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
205 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_4bit()
225 f->bsize * BITS_PER_LONG); in pipapo_and_field_buckets_8bit()
/linux/drivers/video/fbdev/
A Damifb.c2568 #if BITS_PER_LONG == 32
2636 n /= BITS_PER_LONG; in bitcpy()
2699 n /= BITS_PER_LONG; in bitcpy()
2766 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2787 n /= BITS_PER_LONG; in bitcpy_rev()
2850 n /= BITS_PER_LONG; in bitcpy_rev()
2928 n /= BITS_PER_LONG; in bitcpy_not()
2991 n /= BITS_PER_LONG; in bitcpy_not()
3042 #if BITS_PER_LONG == 64 in bitfill32()
3064 n /= BITS_PER_LONG; in bitfill32()
[all …]
/linux/drivers/gpu/drm/i915/gt/
A Dintel_reset_types.h46 #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)

Completed in 53 milliseconds

12345678910>>...22