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