Lines Matching refs:bmap

75 		  const unsigned long *exp_bmap, const unsigned long *bmap,  in __check_eq_bitmap()  argument
78 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
81 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
195 DECLARE_BITMAP(bmap, 1024); in test_zero_clear()
198 memset(bmap, 0xff, 128); in test_zero_clear()
200 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear()
201 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear()
204 bitmap_clear(bmap, 0, 9); in test_zero_clear()
205 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear()
207 bitmap_zero(bmap, 35); in test_zero_clear()
208 expect_eq_pbl("64-1023", bmap, 1024); in test_zero_clear()
211 bitmap_clear(bmap, 79, 19); in test_zero_clear()
212 expect_eq_pbl("64-78,98-1023", bmap, 1024); in test_zero_clear()
214 bitmap_zero(bmap, 115); in test_zero_clear()
215 expect_eq_pbl("128-1023", bmap, 1024); in test_zero_clear()
218 bitmap_zero(bmap, 1024); in test_zero_clear()
219 expect_eq_pbl("", bmap, 1024); in test_zero_clear()
224 DECLARE_BITMAP(bmap, 1024); in test_fill_set()
227 memset(bmap, 0x00, 128); in test_fill_set()
229 expect_eq_pbl("", bmap, 23); in test_fill_set()
230 expect_eq_pbl("", bmap, 1024); in test_fill_set()
233 bitmap_set(bmap, 0, 9); in test_fill_set()
234 expect_eq_pbl("0-8", bmap, 1024); in test_fill_set()
236 bitmap_fill(bmap, 35); in test_fill_set()
237 expect_eq_pbl("0-63", bmap, 1024); in test_fill_set()
240 bitmap_set(bmap, 79, 19); in test_fill_set()
241 expect_eq_pbl("0-63,79-97", bmap, 1024); in test_fill_set()
243 bitmap_fill(bmap, 115); in test_fill_set()
244 expect_eq_pbl("0-127", bmap, 1024); in test_fill_set()
247 bitmap_fill(bmap, 1024); in test_fill_set()
248 expect_eq_pbl("0-1023", bmap, 1024); in test_fill_set()
296 DECLARE_BITMAP(bmap, 1024); in test_replace()
300 bitmap_zero(bmap, 1024); in test_replace()
301 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
302 expect_eq_bitmap(bmap, exp3_0_1, nbits); in test_replace()
304 bitmap_zero(bmap, 1024); in test_replace()
305 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
306 expect_eq_bitmap(bmap, exp3_1_0, nbits); in test_replace()
308 bitmap_fill(bmap, 1024); in test_replace()
309 bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
310 expect_eq_bitmap(bmap, exp3_0_1, nbits); in test_replace()
312 bitmap_fill(bmap, 1024); in test_replace()
313 bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits); in test_replace()
314 expect_eq_bitmap(bmap, exp3_1_0, nbits); in test_replace()
418 DECLARE_BITMAP(bmap, 2048); in test_bitmap_parselist()
424 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in test_bitmap_parselist()
434 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist()
436 i, ptest.in, bmap[0], in test_bitmap_parselist()
494 DECLARE_BITMAP(bmap, 2048); in test_bitmap_parse()
501 err = bitmap_parse(test.in, len, bmap, test.nbits); in test_bitmap_parse()
511 && !__bitmap_equal(bmap, test.expected, test.nbits)) { in test_bitmap_parse()
513 i, test.in, bmap[0], in test_bitmap_parse()