Lines Matching refs:BITS_PER_LONG
57 int k, lim = bits/BITS_PER_LONG; in __bitmap_empty()
62 if (bits % BITS_PER_LONG) in __bitmap_empty()
72 int k, lim = bits/BITS_PER_LONG; in __bitmap_full()
77 if (bits % BITS_PER_LONG) in __bitmap_full()
88 int k, lim = bits/BITS_PER_LONG; in __bitmap_equal()
93 if (bits % BITS_PER_LONG) in __bitmap_equal()
103 int k, lim = bits/BITS_PER_LONG; in __bitmap_complement()
107 if (bits % BITS_PER_LONG) in __bitmap_complement()
126 int k, lim = BITS_TO_LONGS(bits), left = bits % BITS_PER_LONG; in __bitmap_shift_right()
127 int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right()
147 ? (upper << (BITS_PER_LONG - rem)) | (lower >> rem) in __bitmap_shift_right()
173 int k, lim = BITS_TO_LONGS(bits), left = bits % BITS_PER_LONG; in __bitmap_shift_left()
174 int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left()
189 dst[k + off] = rem ? (lower >> (BITS_PER_LONG - rem)) in __bitmap_shift_left()
247 int k, lim = bits/BITS_PER_LONG; in __bitmap_intersects()
252 if (bits % BITS_PER_LONG) in __bitmap_intersects()
262 int k, lim = bits/BITS_PER_LONG; in __bitmap_subset()
267 if (bits % BITS_PER_LONG) in __bitmap_subset()
274 #if BITS_PER_LONG == 32
277 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight()
282 if (bits % BITS_PER_LONG) in __bitmap_weight()
290 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight()
295 if (bits % BITS_PER_LONG) in __bitmap_weight()
340 word = i / BITS_PER_LONG; in bitmap_scnprintf()
341 bit = i % BITS_PER_LONG; in bitmap_scnprintf()
430 if(pages > BITS_PER_LONG) in bitmap_find_free_region()
439 int index = i/BITS_PER_LONG; in bitmap_find_free_region()
440 int offset = i - (index * BITS_PER_LONG); in bitmap_find_free_region()
464 int index = pos/BITS_PER_LONG; in bitmap_release_region()
465 int offset = pos - (index * BITS_PER_LONG); in bitmap_release_region()
475 int index = pos/BITS_PER_LONG; in bitmap_allocate_region()
476 int offset = pos - (index * BITS_PER_LONG); in bitmap_allocate_region()
482 BUG_ON(pages > BITS_PER_LONG); in bitmap_allocate_region()
535 if (nbits & (BITS_PER_LONG-1)) in bitmap_byte_to_long()