Home
last modified time | relevance | path

Searched refs:new_pmd (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/arch/arm/mm/
Dpgd.c35 pmd_t *new_pmd, *init_pmd; in pgd_alloc() local
66 new_pmd = pmd_alloc(mm, new_pud, 0); in pgd_alloc()
67 if (!new_pmd) in pgd_alloc()
77 new_pmd = pmd_offset(new_pud, TASK_SIZE); in pgd_alloc()
78 memcpy(new_pmd, init_pmd, in pgd_alloc()
81 clean_dcache_area(new_pmd, PTRS_PER_PMD * sizeof(pmd_t)); in pgd_alloc()
99 new_pmd = pmd_alloc(mm, new_pud, 0); in pgd_alloc()
100 if (!new_pmd) in pgd_alloc()
103 new_pte = pte_alloc_map(mm, new_pmd, 0); in pgd_alloc()
113 pmd_val(*new_pmd) &= ~PMD_DOMAIN_MASK; in pgd_alloc()
[all …]
/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_hugepage.c28 unsigned long old_pmd, new_pmd; in __hash_page_thp() local
49 new_pmd = old_pmd | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_thp()
51 new_pmd |= _PAGE_DIRTY; in __hash_page_thp()
52 } while (!pmd_xchg(pmdp, __pmd(old_pmd), __pmd(new_pmd))); in __hash_page_thp()
60 rflags = htab_convert_pte_flags(new_pmd, flags); in __hash_page_thp()
134 new_pmd |= H_PAGE_HASHPTE; in __hash_page_thp()
182 new_pmd |= H_PAGE_COMBO; in __hash_page_thp()
189 *pmdp = __pmd(new_pmd & ~H_PAGE_BUSY); in __hash_page_thp()
Dradix_pgtable.c1126 pte_t new_pmd = pfn_pte(__phys_to_pfn(addr), prot); in pmd_set_huge() local
1131 set_pte_at(&init_mm, 0 /* radix unused */, ptep, new_pmd); in pmd_set_huge()
/linux-6.1.9/mm/
Dmremap.c138 struct vm_area_struct *new_vma, pmd_t *new_pmd, in move_ptes() argument
173 new_pte = pte_offset_map(new_pmd, new_addr); in move_ptes()
174 new_ptl = pte_lockptr(mm, new_pmd); in move_ptes()
226 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd) in move_normal_pmd() argument
257 if (WARN_ON_ONCE(!pmd_none(*new_pmd))) in move_normal_pmd()
265 new_ptl = pmd_lockptr(mm, new_pmd); in move_normal_pmd()
273 VM_BUG_ON(!pmd_none(*new_pmd)); in move_normal_pmd()
275 pmd_populate(mm, new_pmd, pmd_pgtable(pmd)); in move_normal_pmd()
286 pmd_t *new_pmd) in move_normal_pmd() argument
488 pmd_t *old_pmd, *new_pmd; in move_page_tables() local
[all …]
Dhuge_memory.c1725 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd) in move_huge_pmd() argument
1736 if (WARN_ON(!pmd_none(*new_pmd))) { in move_huge_pmd()
1737 VM_BUG_ON(pmd_trans_huge(*new_pmd)); in move_huge_pmd()
1747 new_ptl = pmd_lockptr(mm, new_pmd); in move_huge_pmd()
1753 VM_BUG_ON(!pmd_none(*new_pmd)); in move_huge_pmd()
1758 pgtable_trans_huge_deposit(mm, new_pmd, pgtable); in move_huge_pmd()
1761 set_pmd_at(mm, new_addr, new_pmd, pmd); in move_huge_pmd()
Dkhugepaged.c879 pmd_t *new_pmd; in check_pmd_still_valid() local
880 int result = find_pmd_or_thp_or_none(mm, address, &new_pmd); in check_pmd_still_valid()
884 if (new_pmd != pmd) in check_pmd_still_valid()
/linux-6.1.9/arch/x86/mm/
Dkmmio.c129 pmd_t new_pmd; in clear_pmd_presence() local
133 new_pmd = pmd_mkinvalid(*pmd); in clear_pmd_presence()
136 new_pmd = __pmd(*old); in clear_pmd_presence()
138 set_pmd(pmd, new_pmd); in clear_pmd_presence()
/linux-6.1.9/arch/mips/kvm/
Dmmu.c120 pmd_t *new_pmd; in kvm_mips_walk_pgd() local
124 new_pmd = kvm_mmu_memory_cache_alloc(cache); in kvm_mips_walk_pgd()
125 pmd_init((unsigned long)new_pmd, in kvm_mips_walk_pgd()
127 pud_populate(NULL, pud, new_pmd); in kvm_mips_walk_pgd()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_64_mmu_radix.c617 pmd_t *pmd, *new_pmd = NULL; in kvmppc_create_pte() local
635 new_pmd = kvmppc_pmd_alloc(); in kvmppc_create_pte()
676 if (!new_pmd) { in kvmppc_create_pte()
700 if (!new_pmd) in kvmppc_create_pte()
702 pud_populate(kvm->mm, pud, new_pmd); in kvmppc_create_pte()
703 new_pmd = NULL; in kvmppc_create_pte()
780 if (new_pmd) in kvmppc_create_pte()
781 kvmppc_pmd_free(new_pmd); in kvmppc_create_pte()
/linux-6.1.9/include/linux/
Dhuge_mm.h38 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
/linux-6.1.9/arch/arm64/mm/
Dmmu.c1423 pmd_t new_pmd = pfn_pmd(__phys_to_pfn(phys), mk_pmd_sect_prot(prot)); in pmd_set_huge() local
1427 pmd_val(new_pmd))) in pmd_set_huge()
1431 set_pmd(pmdp, new_pmd); in pmd_set_huge()