Lines Matching refs:bmap

72 		  const unsigned long *exp_bmap, const unsigned long *bmap,  in __check_eq_bitmap()  argument
75 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
78 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
177 DECLARE_BITMAP(bmap, 1024); in test_zero_clear()
180 memset(bmap, 0xff, 128); in test_zero_clear()
182 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear()
183 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear()
186 bitmap_clear(bmap, 0, 9); in test_zero_clear()
187 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear()
189 bitmap_zero(bmap, 35); in test_zero_clear()
190 expect_eq_pbl("64-1023", bmap, 1024); in test_zero_clear()
193 bitmap_clear(bmap, 79, 19); in test_zero_clear()
194 expect_eq_pbl("64-78,98-1023", bmap, 1024); in test_zero_clear()
196 bitmap_zero(bmap, 115); in test_zero_clear()
197 expect_eq_pbl("128-1023", bmap, 1024); in test_zero_clear()
200 bitmap_zero(bmap, 1024); in test_zero_clear()
201 expect_eq_pbl("", bmap, 1024); in test_zero_clear()
206 DECLARE_BITMAP(bmap, 1024); in test_fill_set()
209 memset(bmap, 0x00, 128); in test_fill_set()
211 expect_eq_pbl("", bmap, 23); in test_fill_set()
212 expect_eq_pbl("", bmap, 1024); in test_fill_set()
215 bitmap_set(bmap, 0, 9); in test_fill_set()
216 expect_eq_pbl("0-8", bmap, 1024); in test_fill_set()
218 bitmap_fill(bmap, 35); in test_fill_set()
219 expect_eq_pbl("0-63", bmap, 1024); in test_fill_set()
222 bitmap_set(bmap, 79, 19); in test_fill_set()
223 expect_eq_pbl("0-63,79-97", bmap, 1024); in test_fill_set()
225 bitmap_fill(bmap, 115); in test_fill_set()
226 expect_eq_pbl("0-127", bmap, 1024); in test_fill_set()
229 bitmap_fill(bmap, 1024); in test_fill_set()
230 expect_eq_pbl("0-1023", bmap, 1024); in test_fill_set()
278 DECLARE_BITMAP(bmap, 1024); in test_replace()
282 bitmap_zero(bmap, 1024); in test_replace()
283 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
284 expect_eq_bitmap(bmap, exp3_0_1, nbits); in test_replace()
286 bitmap_zero(bmap, 1024); in test_replace()
287 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
288 expect_eq_bitmap(bmap, exp3_1_0, nbits); in test_replace()
290 bitmap_fill(bmap, 1024); in test_replace()
291 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
292 expect_eq_bitmap(bmap, exp3_0_1, nbits); in test_replace()
294 bitmap_fill(bmap, 1024); in test_replace()
295 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
296 expect_eq_bitmap(bmap, exp3_1_0, nbits); in test_replace()
361 DECLARE_BITMAP(bmap, 2048); in test_bitmap_parselist()
367 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in test_bitmap_parselist()
377 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist()
379 i, ptest.in, bmap[0], in test_bitmap_parselist()
437 DECLARE_BITMAP(bmap, 2048); in test_bitmap_parse()
444 err = bitmap_parse(test.in, len, bmap, test.nbits); in test_bitmap_parse()
454 && !__bitmap_equal(bmap, test.expected, test.nbits)) { in test_bitmap_parse()
456 i, test.in, bmap[0], in test_bitmap_parse()