Lines Matching refs:numentries
8694 unsigned long numentries, in alloc_large_system_hash() argument
8710 if (!numentries) { in alloc_large_system_hash()
8712 numentries = nr_kernel_pages; in alloc_large_system_hash()
8713 numentries -= arch_reserved_kernel_pages(); in alloc_large_system_hash()
8717 numentries = round_up(numentries, (1<<20)/PAGE_SIZE); in alloc_large_system_hash()
8723 for (adapt = ADAPT_SCALE_NPAGES; adapt < numentries; in alloc_large_system_hash()
8731 numentries >>= (scale - PAGE_SHIFT); in alloc_large_system_hash()
8733 numentries <<= (PAGE_SHIFT - scale); in alloc_large_system_hash()
8739 if (!(numentries >> *_hash_shift)) { in alloc_large_system_hash()
8740 numentries = 1UL << *_hash_shift; in alloc_large_system_hash()
8741 BUG_ON(!numentries); in alloc_large_system_hash()
8743 } else if (unlikely((numentries * bucketsize) < PAGE_SIZE)) in alloc_large_system_hash()
8744 numentries = PAGE_SIZE / bucketsize; in alloc_large_system_hash()
8746 numentries = roundup_pow_of_two(numentries); in alloc_large_system_hash()
8755 if (numentries < low_limit) in alloc_large_system_hash()
8756 numentries = low_limit; in alloc_large_system_hash()
8757 if (numentries > max) in alloc_large_system_hash()
8758 numentries = max; in alloc_large_system_hash()
8760 log2qty = ilog2(numentries); in alloc_large_system_hash()