Lines Matching refs:hpdp
44 static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp, in __hugepte_alloc() argument
88 for (i = 0; i < num_hugepd; i++, hpdp++) { in __hugepte_alloc()
89 if (unlikely(!hugepd_none(*hpdp))) in __hugepte_alloc()
91 hugepd_populate(hpdp, new, pshift); in __hugepte_alloc()
95 for (i = i - 1 ; i >= 0; i--, hpdp--) in __hugepte_alloc()
96 *hpdp = __hugepd(0); in __hugepte_alloc()
116 hugepd_t *hpdp = NULL; in huge_pte_alloc() local
134 hpdp = (hugepd_t *)p4; 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 *)p4; 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()
185 return pte_alloc_map(mm, (pmd_t *)hpdp, addr); in huge_pte_alloc()
187 BUG_ON(!hugepd_none(*hpdp) && !hugepd_ok(*hpdp)); in huge_pte_alloc()
189 if (hugepd_none(*hpdp) && __hugepte_alloc(mm, hpdp, addr, in huge_pte_alloc()
193 return hugepte_offset(*hpdp, addr, pdshift); in huge_pte_alloc()
298 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift, in free_hugepd_range() argument
302 pte_t *hugepte = hugepd_page(*hpdp); in free_hugepd_range()
307 unsigned int shift = hugepd_shift(*hpdp); in free_hugepd_range()
324 for (i = 0; i < num_hugepd; i++, hpdp++) in free_hugepd_range()
325 *hpdp = __hugepd(0); in free_hugepd_range()