Lines Matching refs:hpdp
44 static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, in __hugepte_alloc() argument
91 for (i = 0; i < num_hugepd; i++, hpdp++) { in __hugepte_alloc()
92 if (unlikely(!hugepd_none(*hpdp))) in __hugepte_alloc()
94 hugepd_populate(hpdp, new, pshift); in __hugepte_alloc()
98 for (i = i - 1 ; i >= 0; i--, hpdp--) in __hugepte_alloc()
99 *hpdp = __hugepd(0); in __hugepte_alloc()
117 hugepd_t *hpdp = NULL; in huge_pte_alloc() local
134 hpdp = (hugepd_t *)pg; in huge_pte_alloc()
144 hpdp = (hugepd_t *)pu; in huge_pte_alloc()
155 hpdp = (hugepd_t *)pm; in huge_pte_alloc()
162 hpdp = (hugepd_t *)pg; in huge_pte_alloc()
170 hpdp = (hugepd_t *)pu; in huge_pte_alloc()
177 hpdp = (hugepd_t *)pm; in huge_pte_alloc()
181 if (!hpdp) in huge_pte_alloc()
184 BUG_ON(!hugepd_none(*hpdp) && !hugepd_ok(*hpdp)); in huge_pte_alloc()
186 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr, in huge_pte_alloc()
190 return hugepte_offset(*hpdp, addr, pdshift); in huge_pte_alloc()
295 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift, in free_hugepd_range() argument
299 pte_t *hugepte = hugepd_page(*hpdp); in free_hugepd_range()
304 unsigned int shift = hugepd_shift(*hpdp); in free_hugepd_range()
321 for (i = 0; i < num_hugepd; i++, hpdp++) in free_hugepd_range()
322 *hpdp = __hugepd(0); in free_hugepd_range()