Lines Matching refs:numentries
8468 unsigned long numentries, in alloc_large_system_hash() argument
8483 if (!numentries) { in alloc_large_system_hash()
8485 numentries = nr_kernel_pages; in alloc_large_system_hash()
8486 numentries -= arch_reserved_kernel_pages(); in alloc_large_system_hash()
8490 numentries = round_up(numentries, (1<<20)/PAGE_SIZE); in alloc_large_system_hash()
8496 for (adapt = ADAPT_SCALE_NPAGES; adapt < numentries; in alloc_large_system_hash()
8504 numentries >>= (scale - PAGE_SHIFT); in alloc_large_system_hash()
8506 numentries <<= (PAGE_SHIFT - scale); in alloc_large_system_hash()
8512 if (!(numentries >> *_hash_shift)) { in alloc_large_system_hash()
8513 numentries = 1UL << *_hash_shift; in alloc_large_system_hash()
8514 BUG_ON(!numentries); in alloc_large_system_hash()
8516 } else if (unlikely((numentries * bucketsize) < PAGE_SIZE)) in alloc_large_system_hash()
8517 numentries = PAGE_SIZE / bucketsize; in alloc_large_system_hash()
8519 numentries = roundup_pow_of_two(numentries); in alloc_large_system_hash()
8528 if (numentries < low_limit) in alloc_large_system_hash()
8529 numentries = low_limit; in alloc_large_system_hash()
8530 if (numentries > max) in alloc_large_system_hash()
8531 numentries = max; in alloc_large_system_hash()
8533 log2qty = ilog2(numentries); in alloc_large_system_hash()