Lines Matching refs:bmap2
237 DECLARE_BITMAP(bmap2, 1024); in test_copy()
240 bitmap_zero(bmap2, 1024); in test_copy()
244 bitmap_copy(bmap2, bmap1, 23); in test_copy()
245 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
247 bitmap_set(bmap2, 0, 23); in test_copy()
248 bitmap_copy(bmap2, bmap1, 23); in test_copy()
249 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
253 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
254 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
256 bitmap_fill(bmap2, 1024); in test_copy()
257 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
258 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
264 bitmap_fill(bmap2, 1024); in test_copy()
265 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
266 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
268 bitmap_fill(bmap2, 1024); in test_copy()
269 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
270 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
474 DECLARE_BITMAP(bmap2, EXP1_IN_BITS); in test_bitmap_arr32()
480 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
481 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
483 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
499 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
505 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
508 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
509 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
513 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
519 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
520 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
524 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()