Lines Matching refs:bmap2
269 DECLARE_BITMAP(bmap2, 1024); in test_copy()
272 bitmap_zero(bmap2, 1024); in test_copy()
276 bitmap_copy(bmap2, bmap1, 23); in test_copy()
277 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
279 bitmap_set(bmap2, 0, 23); in test_copy()
280 bitmap_copy(bmap2, bmap1, 23); in test_copy()
281 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
285 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
286 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
288 bitmap_fill(bmap2, 1024); in test_copy()
289 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
290 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
296 bitmap_fill(bmap2, 1024); in test_copy()
297 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
298 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
300 bitmap_fill(bmap2, 1024); in test_copy()
301 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
302 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
649 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
655 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
656 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
658 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
677 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr64()
682 memset(bmap2, 0xff, sizeof(arr)); in test_bitmap_arr64()
684 bitmap_from_arr64(bmap2, arr, nbits); in test_bitmap_arr64()
685 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr64()
687 next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr64()
710 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
716 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
719 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
720 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
724 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
730 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
731 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
735 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()