Lines Matching refs:pshift
56 unsigned int pshift, spinlock_t *ptl) in __hugepte_alloc() argument
63 if (pshift >= pdshift) { in __hugepte_alloc()
65 num_hugepd = 1 << (pshift - pdshift); in __hugepte_alloc()
67 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
73 BUG_ON(pshift > HUGEPD_SHIFT_MASK); in __hugepte_alloc()
99 (shift_to_mmu_psize(pshift) << 2)); in __hugepte_alloc()
102 (pshift == PAGE_SHIFT_8M ? _PMD_PAGE_8M : in __hugepte_alloc()
106 *hpdp = __hugepd(((unsigned long)new & ~PD_HUGE) | pshift); in __hugepte_alloc()
130 unsigned pshift = __ffs(sz); in huge_pte_alloc() local
138 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
141 else if (pshift > PUD_SHIFT) { in huge_pte_alloc()
150 if (pshift == PUD_SHIFT) in huge_pte_alloc()
152 else if (pshift > PMD_SHIFT) { in huge_pte_alloc()
158 if (pshift == PMD_SHIFT) in huge_pte_alloc()
168 if (pshift >= PGDIR_SHIFT) { in huge_pte_alloc()
174 if (pshift >= PUD_SHIFT) { in huge_pte_alloc()
191 pdshift, pshift, ptl)) in huge_pte_alloc()