Lines Matching refs:nbits
187 unsigned long nbits = size >> pool->min_alloc_order; in gen_pool_add_owner() local
189 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_owner()
282 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local
294 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc_algo_owner()
304 nbits, data, pool, chunk->start_addr); in gen_pool_alloc_algo_owner()
307 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner()
310 nbits - remain); in gen_pool_alloc_algo_owner()
316 size = nbits << order; in gen_pool_alloc_algo_owner()
491 unsigned long start_bit, nbits, remain; in gen_pool_free_owner() local
500 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free_owner()
506 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free_owner()
508 size = nbits << order; in gen_pool_free_owner()