Lines Matching refs:pgtable
569 pgtable_t pgtable; in __do_huge_pmd_anonymous_page() local
583 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
584 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
613 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
623 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
636 if (pgtable) in __do_huge_pmd_anonymous_page()
637 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
679 static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_page() argument
688 if (pgtable) in set_huge_zero_page()
689 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_page()
711 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local
714 pgtable = pte_alloc_one(vma->vm_mm); in do_huge_pmd_anonymous_page()
715 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
719 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
729 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
732 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
736 set_huge_zero_page(pgtable, vma->vm_mm, vma, in do_huge_pmd_anonymous_page()
742 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
758 pgtable_t pgtable) in insert_pfn_pmd() argument
788 if (pgtable) { in insert_pfn_pmd()
789 pgtable_trans_huge_deposit(mm, pmd, pgtable); in insert_pfn_pmd()
791 pgtable = NULL; in insert_pfn_pmd()
799 if (pgtable) in insert_pfn_pmd()
800 pte_free(mm, pgtable); in insert_pfn_pmd()
821 pgtable_t pgtable = NULL; in vmf_insert_pfn_pmd_prot() local
838 pgtable = pte_alloc_one(vma->vm_mm); in vmf_insert_pfn_pmd_prot()
839 if (!pgtable) in vmf_insert_pfn_pmd_prot()
845 insert_pfn_pmd(vma, addr, vmf->pmd, pfn, pgprot, write, pgtable); in vmf_insert_pfn_pmd_prot()
1004 pgtable_t pgtable = NULL; in copy_huge_pmd() local
1011 pgtable = pte_alloc_one(dst_mm); in copy_huge_pmd()
1012 if (unlikely(!pgtable)) in copy_huge_pmd()
1044 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1052 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1068 set_huge_zero_page(pgtable, dst_mm, vma, addr, dst_pmd, in copy_huge_pmd()
1087 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1098 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1633 pgtable_t pgtable; in zap_deposited_table() local
1635 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in zap_deposited_table()
1636 pte_free(mm, pgtable); in zap_deposited_table()
1763 pgtable_t pgtable; in move_huge_pmd() local
1764 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
1765 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
1984 pgtable_t pgtable; in __split_huge_zero_page_pmd() local
1998 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_zero_page_pmd()
1999 pmd_populate(mm, &_pmd, pgtable); in __split_huge_zero_page_pmd()
2011 pmd_populate(mm, pmd, pgtable); in __split_huge_zero_page_pmd()
2019 pgtable_t pgtable; in __split_huge_pmd_locked() local
2113 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_pmd_locked()
2114 pmd_populate(mm, &_pmd, pgtable); in __split_huge_pmd_locked()
2176 pmd_populate(mm, pmd, pgtable); in __split_huge_pmd_locked()