Lines Matching refs:pmd

61 void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd)  in ___pmd_free_tlb()  argument
63 struct page *page = virt_to_page(pmd); in ___pmd_free_tlb()
64 paravirt_release_pmd(__pa(pmd) >> PAGE_SHIFT); in ___pmd_free_tlb()
188 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate() argument
190 paravirt_alloc_pmd(mm, __pa(pmd) >> PAGE_SHIFT); in pud_populate()
194 set_pud(pudp, __pud(__pa(pmd) | _PAGE_PRESENT)); in pud_populate()
235 pmd_t *pmd = (pmd_t *)__get_free_page(gfp); in preallocate_pmds() local
236 if (!pmd) in preallocate_pmds()
238 if (pmd && !pgtable_pmd_page_ctor(virt_to_page(pmd))) { in preallocate_pmds()
239 free_page((unsigned long)pmd); in preallocate_pmds()
240 pmd = NULL; in preallocate_pmds()
243 if (pmd) in preallocate_pmds()
245 pmds[i] = pmd; in preallocate_pmds()
267 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in mop_up_one_pmd() local
272 pmd_free(mm, pmd); in mop_up_one_pmd()
309 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd() local
312 memcpy(pmd, (pmd_t *)pgd_page_vaddr(swapper_pg_dir[i]), in pgd_prepopulate_pmd()
315 pud_populate(mm, pud, pmd); in pgd_prepopulate_pmd()
336 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd() local
338 memcpy(pmd, (pmd_t *)pgd_page_vaddr(*s_pgd), in pgd_prepopulate_user_pmd()
341 pud_populate(mm, u_pud, pmd); in pgd_prepopulate_user_pmd()
730 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot) in pmd_set_huge() argument
743 if (pmd_present(*pmd) && !pmd_huge(*pmd)) in pmd_set_huge()
746 set_pte((pte_t *)pmd, pfn_pte( in pmd_set_huge()
773 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() argument
775 if (pmd_large(*pmd)) { in pmd_clear_huge()
776 pmd_clear(pmd); in pmd_clear_huge()
796 pmd_t *pmd, *pmd_sv; in pud_free_pmd_page() local
800 pmd = pud_pgtable(*pud); in pud_free_pmd_page()
806 pmd_sv[i] = pmd[i]; in pud_free_pmd_page()
807 if (!pmd_none(pmd[i])) in pud_free_pmd_page()
808 pmd_clear(&pmd[i]); in pud_free_pmd_page()
825 pgtable_pmd_page_dtor(virt_to_page(pmd)); in pud_free_pmd_page()
826 free_page((unsigned long)pmd); in pud_free_pmd_page()
839 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() argument
843 pte = (pte_t *)pmd_page_vaddr(*pmd); in pmd_free_pte_page()
844 pmd_clear(pmd); in pmd_free_pte_page()
860 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() argument
862 return pmd_none(*pmd); in pmd_free_pte_page()