Lines Matching refs:BITS_PER_LONG
43 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_empty()
50 if (bits % BITS_PER_LONG) { in slow_bitmap_empty()
61 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_full()
69 if (bits % BITS_PER_LONG) { in slow_bitmap_full()
81 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_equal()
89 if (bits % BITS_PER_LONG) { in slow_bitmap_equal()
101 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_complement()
107 if (bits % BITS_PER_LONG) { in slow_bitmap_complement()
164 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set()
172 bits_to_set = BITS_PER_LONG; in bitmap_set()
186 int bits_to_set = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_set_atomic()
195 bits_to_set = BITS_PER_LONG; in bitmap_set_atomic()
201 if (bits_to_set == BITS_PER_LONG) { in bitmap_set_atomic()
202 while (nr >= BITS_PER_LONG) { in bitmap_set_atomic()
204 nr -= BITS_PER_LONG; in bitmap_set_atomic()
225 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_clear()
233 bits_to_clear = BITS_PER_LONG; in bitmap_clear()
247 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_test_and_clear()
260 bits_to_clear = BITS_PER_LONG; in bitmap_test_and_clear()
265 if (bits_to_clear == BITS_PER_LONG) { in bitmap_test_and_clear()
266 while (nr >= BITS_PER_LONG) { in bitmap_test_and_clear()
271 nr -= BITS_PER_LONG; in bitmap_test_and_clear()
292 int bits_to_clear = BITS_PER_LONG - (start % BITS_PER_LONG); in bitmap_test_and_clear_atomic()
304 bits_to_clear = BITS_PER_LONG; in bitmap_test_and_clear_atomic()
310 if (bits_to_clear == BITS_PER_LONG) { in bitmap_test_and_clear_atomic()
311 while (nr >= BITS_PER_LONG) { in bitmap_test_and_clear_atomic()
316 nr -= BITS_PER_LONG; in bitmap_test_and_clear_atomic()
342 nr -= BITS_PER_LONG; in bitmap_copy_and_clear_atomic()
388 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_intersects()
396 if (bits % BITS_PER_LONG) { in slow_bitmap_intersects()
406 long k, lim = nbits / BITS_PER_LONG, result = 0; in slow_bitmap_count_one()
412 if (nbits % BITS_PER_LONG) { in slow_bitmap_count_one()
463 shift %= BITS_PER_LONG; in bitmap_copy_with_src_offset()
474 while (nbits >= BITS_PER_LONG) { in bitmap_copy_with_src_offset()
476 *dst |= (src[1] & right_mask) << (BITS_PER_LONG - shift); in bitmap_copy_with_src_offset()
479 nbits -= BITS_PER_LONG; in bitmap_copy_with_src_offset()
482 if (nbits > BITS_PER_LONG - shift) { in bitmap_copy_with_src_offset()
484 nbits -= BITS_PER_LONG - shift; in bitmap_copy_with_src_offset()
486 *dst |= (src[1] & last_mask) << (BITS_PER_LONG - shift); in bitmap_copy_with_src_offset()
505 shift %= BITS_PER_LONG; in bitmap_copy_with_dst_offset()
513 right_mask = (1ul << (BITS_PER_LONG - shift)) - 1; in bitmap_copy_with_dst_offset()
517 while (nbits >= BITS_PER_LONG) { in bitmap_copy_with_dst_offset()
519 dst[1] = (*src & left_mask) >> (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
522 nbits -= BITS_PER_LONG; in bitmap_copy_with_dst_offset()
525 if (nbits > BITS_PER_LONG - shift) { in bitmap_copy_with_dst_offset()
527 nbits -= BITS_PER_LONG - shift; in bitmap_copy_with_dst_offset()
528 last_mask = ((1ul << nbits) - 1) << (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()
529 dst[1] = (*src & last_mask) >> (BITS_PER_LONG - shift); in bitmap_copy_with_dst_offset()