Lines Matching refs:bmap2
236 DECLARE_BITMAP(bmap2, 1024); in test_copy()
239 bitmap_zero(bmap2, 1024); in test_copy()
243 bitmap_copy(bmap2, bmap1, 23); in test_copy()
244 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
246 bitmap_set(bmap2, 0, 23); in test_copy()
247 bitmap_copy(bmap2, bmap1, 23); in test_copy()
248 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
252 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
253 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
255 bitmap_fill(bmap2, 1024); in test_copy()
256 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
257 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
263 bitmap_fill(bmap2, 1024); in test_copy()
264 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
265 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
267 bitmap_fill(bmap2, 1024); in test_copy()
268 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
269 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
473 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
479 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
480 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
482 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
498 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
504 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
507 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
508 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
512 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
518 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
519 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
523 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()