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()
677 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
683 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
684 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
686 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
705 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr64()
710 memset(bmap2, 0xff, sizeof(arr)); in test_bitmap_arr64()
712 bitmap_from_arr64(bmap2, arr, nbits); in test_bitmap_arr64()
713 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr64()
715 next_bit = find_next_bit(bmap2, round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr64()
738 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
744 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
747 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
748 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
752 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
758 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
759 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
763 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()