Lines Matching refs:nbits

76 		  unsigned int nbits)  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()
90 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument
92 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
294 unsigned int nbits = 64; in test_replace() local
295 unsigned int nlongs = DIV_ROUND_UP(nbits, BITS_PER_LONG); in test_replace()
298 BUILD_BUG_ON(EXP2_IN_BITS < nbits * 2); 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()
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()
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()
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()
324 const int nbits; member
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()
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()
528 unsigned int nbits, next_bit; in test_bitmap_arr32() local
534 for (nbits = 0; nbits < EXP1_IN_BITS; ++nbits) { in test_bitmap_arr32()
535 bitmap_to_arr32(arr, exp1, nbits); in test_bitmap_arr32()
536 bitmap_from_arr32(bmap2, arr, nbits); in test_bitmap_arr32()
537 expect_eq_bitmap(bmap2, exp1, nbits); in test_bitmap_arr32()
540 round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr32()
541 if (next_bit < round_up(nbits, BITS_PER_LONG)) in test_bitmap_arr32()
544 nbits, next_bit); in test_bitmap_arr32()
546 if (nbits < EXP1_IN_BITS - 32) in test_bitmap_arr32()
547 expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], in test_bitmap_arr32()
556 unsigned int start, nbits; in test_mem_optimisations() local
559 for (nbits = 0; nbits < 1024 - start; nbits += 8) { in test_mem_optimisations()
563 bitmap_set(bmap1, start, nbits); in test_mem_optimisations()
564 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
566 printk("set not equal %d %d\n", start, nbits); in test_mem_optimisations()
570 printk("set not __equal %d %d\n", start, nbits); in test_mem_optimisations()
574 bitmap_clear(bmap1, start, nbits); in test_mem_optimisations()
575 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
577 printk("clear not equal %d %d\n", start, nbits); in test_mem_optimisations()
582 nbits); in test_mem_optimisations()
625 unsigned int nbits; member
673 bitmap_cut(out, in, t->first, t->cut, t->nbits); in test_bitmap_cut()
675 expect_eq_bitmap(t->expected, out, t->nbits); in test_bitmap_cut()
681 unsigned long nbits; member
792 n = bitmap_print_bitmask_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()
797 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()
804 n = bitmap_print_list_to_buf(print_buf, t->bitmap, t->nbits, in test_bitmap_print_buf()