Home
last modified time | relevance | path

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

/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 …]
/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.c1592 pte_t new_pmd = pfn_pte(__phys_to_pfn(addr), prot); in pmd_set_huge() local
1597 set_pte_at(&init_mm, 0 /* radix unused */, ptep, new_pmd); in pmd_set_huge()
/arch/riscv/mm/
Dpgtable.c58 pmd_t new_pmd = pfn_pmd(__phys_to_pfn(phys), prot); in pmd_set_huge() local
60 set_pmd(pmd, new_pmd); in pmd_set_huge()
/arch/x86/mm/
Dkmmio.c135 pmd_t new_pmd; in clear_pmd_presence() local
139 new_pmd = pmd_mkinvalid(*pmd); in clear_pmd_presence()
142 new_pmd = __pmd(*old); in clear_pmd_presence()
144 set_pmd(pmd, new_pmd); in clear_pmd_presence()
/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(new_pmd); in kvm_mips_walk_pgd()
126 pud_populate(NULL, pud, new_pmd); in kvm_mips_walk_pgd()
/arch/powerpc/kvm/
Dbook3s_64_mmu_radix.c618 pmd_t *pmd, *new_pmd = NULL; in kvmppc_create_pte() local
636 new_pmd = kvmppc_pmd_alloc(); in kvmppc_create_pte()
677 if (!new_pmd) { in kvmppc_create_pte()
701 if (!new_pmd) in kvmppc_create_pte()
703 pud_populate(kvm->mm, pud, new_pmd); in kvmppc_create_pte()
704 new_pmd = NULL; in kvmppc_create_pte()
781 if (new_pmd) in kvmppc_create_pte()
782 kvmppc_pmd_free(new_pmd); in kvmppc_create_pte()
/arch/arm64/mm/
Dmmu.c1187 pmd_t new_pmd = pfn_pmd(__phys_to_pfn(phys), mk_pmd_sect_prot(prot)); in pmd_set_huge() local
1191 pmd_val(new_pmd))) in pmd_set_huge()
1195 set_pmd(pmdp, new_pmd); in pmd_set_huge()
/arch/x86/include/asm/
Dpgtable.h1363 pmd_t old_pmd, new_pmd; in pmdp_set_wrprotect() local
1367 new_pmd = pmd_wrprotect(old_pmd); in pmdp_set_wrprotect()
1368 } while (!try_cmpxchg((long *)pmdp, (long *)&old_pmd, *(long *)&new_pmd)); in pmdp_set_wrprotect()