Lines Matching refs:pshift
135 unsigned long address, unsigned pdshift, unsigned pshift) in __hugepte_alloc() argument
142 int num_hugepd = 1 << (pshift - pdshift); in __hugepte_alloc()
145 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
150 BUG_ON(pshift > HUGEPD_SHIFT_MASK); in __hugepte_alloc()
169 hpdp->pd = ((unsigned long)new & ~PD_HUGE) | pshift; in __hugepte_alloc()
183 (shift_to_mmu_psize(pshift) << 2); in __hugepte_alloc()
185 hpdp->pd = ((unsigned long)new & ~PD_HUGE) | pshift; in __hugepte_alloc()
216 unsigned pshift = __ffs(sz); in huge_pte_alloc() local
222 if (pshift == PGDIR_SHIFT) in huge_pte_alloc()
225 else if (pshift > PUD_SHIFT) in huge_pte_alloc()
233 if (pshift == PUD_SHIFT) in huge_pte_alloc()
235 else if (pshift > PMD_SHIFT) in huge_pte_alloc()
240 if (pshift == PMD_SHIFT) in huge_pte_alloc()
252 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr, pdshift, pshift)) in huge_pte_alloc()
266 unsigned pshift = __ffs(sz); in huge_pte_alloc() local
273 if (pshift >= HUGEPD_PGD_SHIFT) { in huge_pte_alloc()
278 if (pshift >= HUGEPD_PUD_SHIFT) { in huge_pte_alloc()
292 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr, pdshift, pshift)) in huge_pte_alloc()