Lines Matching refs:pgtable

1145 	pgtable_t pgtable;  in __do_huge_pmd_anonymous_page()  local
1161 pgtable = pte_alloc_one(vma->vm_mm); in __do_huge_pmd_anonymous_page()
1162 if (unlikely(!pgtable)) { in __do_huge_pmd_anonymous_page()
1189 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
1199 pgtable_trans_huge_deposit(vma->vm_mm, vmf->pmd, pgtable); in __do_huge_pmd_anonymous_page()
1215 if (pgtable) in __do_huge_pmd_anonymous_page()
1216 pte_free(vma->vm_mm, pgtable); in __do_huge_pmd_anonymous_page()
1258 static void set_huge_zero_folio(pgtable_t pgtable, struct mm_struct *mm, in set_huge_zero_folio() argument
1267 pgtable_trans_huge_deposit(mm, pmd, pgtable); in set_huge_zero_folio()
1290 pgtable_t pgtable; in do_huge_pmd_anonymous_page() local
1294 pgtable = pte_alloc_one(vma->vm_mm); in do_huge_pmd_anonymous_page()
1295 if (unlikely(!pgtable)) in do_huge_pmd_anonymous_page()
1299 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
1309 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
1312 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
1316 set_huge_zero_folio(pgtable, vma->vm_mm, vma, in do_huge_pmd_anonymous_page()
1323 pte_free(vma->vm_mm, pgtable); in do_huge_pmd_anonymous_page()
1339 pgtable_t pgtable) in insert_pfn_pmd() argument
1371 if (pgtable) { in insert_pfn_pmd()
1372 pgtable_trans_huge_deposit(mm, pmd, pgtable); in insert_pfn_pmd()
1374 pgtable = NULL; in insert_pfn_pmd()
1382 if (pgtable) in insert_pfn_pmd()
1383 pte_free(mm, pgtable); in insert_pfn_pmd()
1401 pgtable_t pgtable = NULL; in vmf_insert_pfn_pmd() local
1418 pgtable = pte_alloc_one(vma->vm_mm); in vmf_insert_pfn_pmd()
1419 if (!pgtable) in vmf_insert_pfn_pmd()
1425 insert_pfn_pmd(vma, addr, vmf->pmd, pfn, pgprot, write, pgtable); in vmf_insert_pfn_pmd()
1574 pgtable_t pgtable = NULL; in copy_huge_pmd() local
1599 pgtable = pte_alloc_one(dst_mm); in copy_huge_pmd()
1600 if (unlikely(!pgtable)) in copy_huge_pmd()
1627 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
1637 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1663 pte_free(dst_mm, pgtable); in copy_huge_pmd()
1672 pgtable_trans_huge_deposit(dst_mm, dst_pmd, pgtable); in copy_huge_pmd()
2036 pgtable_t pgtable; in zap_deposited_table() local
2038 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in zap_deposited_table()
2039 pte_free(mm, pgtable); in zap_deposited_table()
2168 pgtable_t pgtable; in move_huge_pmd() local
2169 pgtable = pgtable_trans_huge_withdraw(mm, old_pmd); in move_huge_pmd()
2170 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
2610 pgtable_t pgtable; in __split_huge_zero_page_pmd() local
2626 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_zero_page_pmd()
2627 pmd_populate(mm, &_pmd, pgtable); in __split_huge_zero_page_pmd()
2644 pmd_populate(mm, pmd, pgtable); in __split_huge_zero_page_pmd()
2653 pgtable_t pgtable; in __split_huge_pmd_locked() local
2798 pgtable = pgtable_trans_huge_withdraw(mm, pmd); in __split_huge_pmd_locked()
2799 pmd_populate(mm, &_pmd, pgtable); in __split_huge_pmd_locked()
2864 pmd_populate(mm, pmd, pgtable); in __split_huge_pmd_locked()