Lines Matching refs:pgtable

656 	pgtable_t pgtable;  in __do_huge_pmd_anonymous_page()  local
670 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
671 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
698 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
708 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
722 if (pgtable) in __do_huge_pmd_anonymous_page()
723 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
765 static void set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument
774 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page()
795 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local
798 pgtable = pte_alloc_one(vma->vm_mm); in do_huge_pmd_anonymous_page()
799 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
803 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
813 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
816 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
820 set_huge_zero_page(pgtable, vma->vm_mm, vma, in do_huge_pmd_anonymous_page()
827 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
842 pgtable_t pgtable) in insert_pfn_pmd() argument
872 if (pgtable) { in insert_pfn_pmd()
873 pgtable_trans_huge_deposit(mm, pmd, pgtable); in insert_pfn_pmd()
875 pgtable = NULL; in insert_pfn_pmd()
883 if (pgtable) in insert_pfn_pmd()
884 pte_free(mm, pgtable); in insert_pfn_pmd()
905 pgtable_t pgtable = NULL; in vmf_insert_pfn_pmd_prot() local
922 pgtable = pte_alloc_one(vma->vm_mm); in vmf_insert_pfn_pmd_prot()
923 if (!pgtable) in vmf_insert_pfn_pmd_prot()
929 insert_pfn_pmd(vma, addr, vmf->pmd, pfn, pgprot, write, pgtable); in vmf_insert_pfn_pmd_prot()
1082 pgtable_t pgtable = NULL; in copy_huge_pmd() local
1089 pgtable = pte_alloc_one(dst_mm); in copy_huge_pmd()
1090 if (unlikely(!pgtable)) in copy_huge_pmd()
1117 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1127 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1152 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1161 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1629 pgtable_t pgtable; in zap_deposited_table() local
1631 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in zap_deposited_table()
1632 pte_free(mm, pgtable); in zap_deposited_table()
1756 pgtable_t pgtable; in move_huge_pmd() local
1757 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
1758 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
2006 pgtable_t pgtable; in __split_huge_zero_page_pmd() local
2020 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_zero_page_pmd()
2021 pmd_populate(mm, &_pmd, pgtable); in __split_huge_zero_page_pmd()
2033 pmd_populate(mm, pmd, pgtable); in __split_huge_zero_page_pmd()
2041 pgtable_t pgtable; in __split_huge_pmd_locked() local
2170 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_pmd_locked()
2171 pmd_populate(mm, &_pmd, pgtable); in __split_huge_pmd_locked()
2257 pmd_populate(mm, pmd, pgtable); in __split_huge_pmd_locked()