Lines Matching refs:nbits
41 unsigned int nbits) in __check_eq_bitmap() argument
43 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
46 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
55 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument
57 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
215 const int nbits; member
303 bmap, ptest.nbits); in __test_bitmap_parselist()
308 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in __test_bitmap_parselist()
319 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in __test_bitmap_parselist()
346 unsigned int nbits, next_bit; in test_bitmap_arr32() local
352 for (nbits = 0; nbits < EXP_BYTES; ++nbits) { in test_bitmap_arr32()
353 bitmap_to_arr32(arr, exp, nbits); in test_bitmap_arr32()
354 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
355 expect_eq_bitmap(bmap2, exp, nbits); in test_bitmap_arr32()
358 round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr32()
359 if (next_bit < round_up(nbits, BITS_PER_LONG)) in test_bitmap_arr32()
362 nbits, next_bit); in test_bitmap_arr32()
364 if (nbits < EXP_BYTES - 32) in test_bitmap_arr32()
365 expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], in test_bitmap_arr32()
374 unsigned int start, nbits; in test_mem_optimisations() local
377 for (nbits = 0; nbits < 1024 - start; nbits += 8) { in test_mem_optimisations()
381 bitmap_set(bmap1, start, nbits); in test_mem_optimisations()
382 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
384 printk("set not equal %d %d\n", start, nbits); in test_mem_optimisations()
388 printk("set not __equal %d %d\n", start, nbits); in test_mem_optimisations()
392 bitmap_clear(bmap1, start, nbits); in test_mem_optimisations()
393 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
395 printk("clear not equal %d %d\n", start, nbits); in test_mem_optimisations()
400 nbits); in test_mem_optimisations()