Lines Matching refs:hpdp
45 static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
89 for (i = 0; i < num_hugepd; i++, hpdp++) {
90 if (unlikely(!hugepd_none(*hpdp)))
92 hugepd_populate(hpdp, new, pshift);
96 for (i = i - 1 ; i >= 0; i--, hpdp--)
97 *hpdp = __hugepd(0);
117 hugepd_t *hpdp = NULL;
135 hpdp = (hugepd_t *)p4;
145 hpdp = (hugepd_t *)pu;
156 hpdp = (hugepd_t *)pm;
163 hpdp = (hugepd_t *)p4;
171 hpdp = (hugepd_t *)pu;
178 hpdp = (hugepd_t *)pm;
182 if (!hpdp)
186 return pte_alloc_huge(mm, (pmd_t *)hpdp, addr);
188 BUG_ON(!hugepd_none(*hpdp) && !hugepd_ok(*hpdp));
190 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr,
194 return hugepte_offset(*hpdp, addr, pdshift);
319 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift,
323 pte_t *hugepte = hugepd_page(*hpdp);
328 unsigned int shift = hugepd_shift(*hpdp);
330 /* Note: On fsl the hpdp may be the first of several */
337 for (i = 0; i < num_hugepd; i++, hpdp++)
338 *hpdp = __hugepd(0);