Lines Matching refs:bmap2
254 DECLARE_BITMAP(bmap2, 1024); in test_copy()
257 bitmap_zero(bmap2, 1024); in test_copy()
261 bitmap_copy(bmap2, bmap1, 23); in test_copy()
262 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
264 bitmap_set(bmap2, 0, 23); in test_copy()
265 bitmap_copy(bmap2, bmap1, 23); in test_copy()
266 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
270 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
271 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
273 bitmap_fill(bmap2, 1024); in test_copy()
274 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
275 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
281 bitmap_fill(bmap2, 1024); in test_copy()
282 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
283 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
285 bitmap_fill(bmap2, 1024); in test_copy()
286 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
287 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
530 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
536 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
537 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
539 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
555 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
561 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
564 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
565 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
569 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
575 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
576 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
580 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()