Lines Matching refs:pgtable

659 	pgtable_t pgtable;  in __do_huge_pmd_anonymous_page()  local
673 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
674 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
701 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
711 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
725 if (pgtable) in __do_huge_pmd_anonymous_page()
726 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
768 static void set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument
777 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page()
798 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local
801 pgtable = pte_alloc_one(vma->vm_mm); in do_huge_pmd_anonymous_page()
802 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
806 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()
819 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
823 set_huge_zero_page(pgtable, vma->vm_mm, vma, in do_huge_pmd_anonymous_page()
830 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
845 pgtable_t pgtable) in insert_pfn_pmd() argument
875 if (pgtable) { in insert_pfn_pmd()
876 pgtable_trans_huge_deposit(mm, pmd, pgtable); in insert_pfn_pmd()
878 pgtable = NULL; in insert_pfn_pmd()
886 if (pgtable) in insert_pfn_pmd()
887 pte_free(mm, pgtable); in insert_pfn_pmd()
908 pgtable_t pgtable = NULL; in vmf_insert_pfn_pmd_prot() local
925 pgtable = pte_alloc_one(vma->vm_mm); in vmf_insert_pfn_pmd_prot()
926 if (!pgtable) in vmf_insert_pfn_pmd_prot()
932 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()
1666 pgtable_t pgtable; in zap_deposited_table() local
1668 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in zap_deposited_table()
1669 pte_free(mm, pgtable); in zap_deposited_table()
1793 pgtable_t pgtable; in move_huge_pmd() local
1794 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
1795 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
2039 pgtable_t pgtable; in __split_huge_zero_page_pmd() local
2053 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_zero_page_pmd()
2054 pmd_populate(mm, &_pmd, pgtable); in __split_huge_zero_page_pmd()
2066 pmd_populate(mm, pmd, pgtable); in __split_huge_zero_page_pmd()
2074 pgtable_t pgtable; in __split_huge_pmd_locked() local
2204 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_pmd_locked()
2205 pmd_populate(mm, &_pmd, pgtable); in __split_huge_pmd_locked()
2269 pmd_populate(mm, pmd, pgtable); in __split_huge_pmd_locked()