Lines Matching refs:bmap2

297 	DECLARE_BITMAP(bmap2, 1024);  in test_copy()
300 bitmap_zero(bmap2, 1024); in test_copy()
304 bitmap_copy(bmap2, bmap1, 23); in test_copy()
305 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
307 bitmap_set(bmap2, 0, 23); in test_copy()
308 bitmap_copy(bmap2, bmap1, 23); in test_copy()
309 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
313 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
314 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
316 bitmap_fill(bmap2, 1024); in test_copy()
317 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
318 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
324 bitmap_fill(bmap2, 1024); in test_copy()
325 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
326 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
328 bitmap_fill(bmap2, 1024); in test_copy()
329 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
330 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
607 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
613 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
614 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
616 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
633 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr64()
638 memset(bmap2, 0xff, sizeof(arr)); in test_bitmap_arr64()
640 bitmap_from_arr64(bmap2, arr, nbits); in test_bitmap_arr64()
641 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr64()
643 next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr64()
662 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
668 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
671 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
672 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
676 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
682 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
683 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
687 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()