Lines Matching refs:nbits
186 int nbits = size >> pool->min_alloc_order; in gen_pool_add_virt() local
188 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_virt()
295 int nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo() local
304 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_alloc_algo()
314 nbits, data, pool); in gen_pool_alloc_algo()
317 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo()
320 nbits - remain); in gen_pool_alloc_algo()
326 size = nbits << order; in gen_pool_alloc_algo()
378 int start_bit, nbits, remain; in gen_pool_free() local
384 nbits = (size + (1UL << order) - 1) >> order; in gen_pool_free()
390 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free()
392 size = nbits << order; in gen_pool_free()