Lines Matching refs:pgtable
585 pgtable_t pgtable; in __do_huge_pmd_anonymous_page() local
599 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
600 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
629 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
639 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
652 if (pgtable) in __do_huge_pmd_anonymous_page()
653 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
695 static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument
704 if (pgtable) in set_huge_zero_page()
705 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page()
727 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local
730 pgtable = pte_alloc_one(vma->vm_mm); in do_huge_pmd_anonymous_page()
731 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
735 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
745 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
748 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
752 set_huge_zero_page(pgtable, vma->vm_mm, vma, in do_huge_pmd_anonymous_page()
758 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
774 pgtable_t pgtable) in insert_pfn_pmd() argument
804 if (pgtable) { in insert_pfn_pmd()
805 pgtable_trans_huge_deposit(mm, pmd, pgtable); in insert_pfn_pmd()
807 pgtable = NULL; in insert_pfn_pmd()
815 if (pgtable) in insert_pfn_pmd()
816 pte_free(mm, pgtable); in insert_pfn_pmd()
837 pgtable_t pgtable = NULL; in vmf_insert_pfn_pmd_prot() local
854 pgtable = pte_alloc_one(vma->vm_mm); in vmf_insert_pfn_pmd_prot()
855 if (!pgtable) in vmf_insert_pfn_pmd_prot()
861 insert_pfn_pmd(vma, addr, vmf->pmd, pfn, pgprot, write, pgtable); in vmf_insert_pfn_pmd_prot()
1020 pgtable_t pgtable = NULL; in copy_huge_pmd() local
1027 pgtable = pte_alloc_one(dst_mm); in copy_huge_pmd()
1028 if (unlikely(!pgtable)) in copy_huge_pmd()
1054 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1064 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1095 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1107 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1643 pgtable_t pgtable; in zap_deposited_table() local
1645 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in zap_deposited_table()
1646 pte_free(mm, pgtable); in zap_deposited_table()
1773 pgtable_t pgtable; in move_huge_pmd() local
1774 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
1775 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
1996 pgtable_t pgtable; in __split_huge_zero_page_pmd() local
2010 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_zero_page_pmd()
2011 pmd_populate(mm, &_pmd, pgtable); in __split_huge_zero_page_pmd()
2023 pmd_populate(mm, pmd, pgtable); in __split_huge_zero_page_pmd()
2031 pgtable_t pgtable; in __split_huge_pmd_locked() local
2135 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_pmd_locked()
2136 pmd_populate(mm, &_pmd, pgtable); in __split_huge_pmd_locked()
2210 pmd_populate(mm, pmd, pgtable); in __split_huge_pmd_locked()