Lines Matching refs:bmap2
169 DECLARE_BITMAP(bmap2, 1024); in test_copy()
172 bitmap_zero(bmap2, 1024); in test_copy()
176 bitmap_copy(bmap2, bmap1, 23); in test_copy()
177 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
179 bitmap_set(bmap2, 0, 23); in test_copy()
180 bitmap_copy(bmap2, bmap1, 23); in test_copy()
181 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
185 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
186 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
188 bitmap_fill(bmap2, 1024); in test_copy()
189 bitmap_copy(bmap2, bmap1, 1024); in test_copy()
190 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
196 bitmap_fill(bmap2, 1024); in test_copy()
197 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
198 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
200 bitmap_fill(bmap2, 1024); in test_copy()
201 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
202 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
305 DECLARE_BITMAP(bmap2, EXP_BYTES); in test_bitmap_arr32()
311 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
312 expect_eq_bitmap(bmap2, exp, nbits); in test_bitmap_arr32()
314 next_bit = find_next_bit(bmap2, in test_bitmap_arr32()
330 DECLARE_BITMAP(bmap2, 1024); in test_mem_optimisations()
336 memset(bmap2, 0x5a, sizeof(bmap2)); in test_mem_optimisations()
339 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
340 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
344 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
350 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
351 if (!bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()
355 if (!__bitmap_equal(bmap1, bmap2, 1024)) { in test_mem_optimisations()