Lines Matching refs:hpdp
44 static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
88 for (i = 0; i < num_hugepd; i++, hpdp++) {
89 if (unlikely(!hugepd_none(*hpdp)))
91 hugepd_populate(hpdp, new, pshift);
95 for (i = i - 1 ; i >= 0; i--, hpdp--)
96 *hpdp = __hugepd(0);
115 hugepd_t *hpdp = NULL;
133 hpdp = (hugepd_t *)p4;
143 hpdp = (hugepd_t *)pu;
154 hpdp = (hugepd_t *)pm;
161 hpdp = (hugepd_t *)p4;
169 hpdp = (hugepd_t *)pu;
176 hpdp = (hugepd_t *)pm;
180 if (!hpdp)
184 return pte_alloc_map(mm, (pmd_t *)hpdp, addr);
186 BUG_ON(!hugepd_none(*hpdp) && !hugepd_ok(*hpdp));
188 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr,
192 return hugepte_offset(*hpdp, addr, pdshift);
297 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift,
301 pte_t *hugepte = hugepd_page(*hpdp);
306 unsigned int shift = hugepd_shift(*hpdp);
308 /* Note: On fsl the hpdp may be the first of several */
323 for (i = 0; i < num_hugepd; i++, hpdp++)
324 *hpdp = __hugepd(0);