Lines Matching refs:nbits

37 		  unsigned int nbits)  in __check_eq_bitmap()  argument
39 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
42 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
51 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl() argument
53 snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap); in __check_eq_pbl()
211 const int nbits; member
276 err = bitmap_parselist(ptest.in, bmap, ptest.nbits); in test_bitmap_parselist()
286 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist()
303 unsigned int nbits, next_bit; in test_bitmap_arr32() local
309 for (nbits = 0; nbits < EXP_BYTES; ++nbits) { in test_bitmap_arr32()
310 bitmap_to_arr32(arr, exp, nbits); 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()
315 round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr32()
316 if (next_bit < round_up(nbits, BITS_PER_LONG)) in test_bitmap_arr32()
319 nbits, next_bit); in test_bitmap_arr32()
321 if (nbits < EXP_BYTES - 32) in test_bitmap_arr32()
322 expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)], in test_bitmap_arr32()
331 unsigned int start, nbits; in test_mem_optimisations() local
334 for (nbits = 0; nbits < 1024 - start; nbits += 8) { in test_mem_optimisations()
338 bitmap_set(bmap1, start, nbits); in test_mem_optimisations()
339 __bitmap_set(bmap2, start, nbits); in test_mem_optimisations()
341 printk("set not equal %d %d\n", start, nbits); in test_mem_optimisations()
345 printk("set not __equal %d %d\n", start, nbits); in test_mem_optimisations()
349 bitmap_clear(bmap1, start, nbits); in test_mem_optimisations()
350 __bitmap_clear(bmap2, start, nbits); in test_mem_optimisations()
352 printk("clear not equal %d %d\n", start, nbits); in test_mem_optimisations()
357 nbits); in test_mem_optimisations()