Home
last modified time | relevance | path

Searched refs:new_pte (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/arch/powerpc/mm/book3s64/
Dhash_64k.c46 unsigned long old_pte, new_pte, subpg_pte; in __hash_page_4K() local
68 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED | H_PAGE_COMBO; in __hash_page_4K()
70 new_pte |= _PAGE_DIRTY; in __hash_page_4K()
71 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K()
76 subpg_pte = new_pte & ~subpg_prot; in __hash_page_4K()
109 new_pte &= ~H_PAGE_HASHPTE; in __hash_page_4K()
131 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K()
218 new_pte |= pte_set_hidx(ptep, rpte, subpg_index, slot, PTRS_PER_PTE); in __hash_page_4K()
219 new_pte |= H_PAGE_HASHPTE; in __hash_page_4K()
224 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K()
[all …]
Dhash_4k.c28 unsigned long old_pte, new_pte; in __hash_page_4K() local
50 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_4K()
52 new_pte |= _PAGE_DIRTY; in __hash_page_4K()
53 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K()
59 rflags = htab_convert_pte_flags(new_pte, flags); in __hash_page_4K()
121 new_pte = (new_pte & ~_PAGE_HPTEFLAGS) | H_PAGE_HASHPTE; in __hash_page_4K()
122 new_pte |= pte_set_hidx(ptep, rpte, 0, slot, PTRS_PER_PTE); in __hash_page_4K()
127 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K()
Dhugetlbpage.c26 unsigned long old_pte, new_pte; in __hash_page_huge() local
61 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge()
63 new_pte |= _PAGE_DIRTY; in __hash_page_huge()
64 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge()
70 rflags = htab_convert_pte_flags(new_pte, flags); in __hash_page_huge()
101 new_pte = (new_pte & ~_PAGE_HPTEFLAGS) | H_PAGE_HASHPTE; in __hash_page_huge()
117 new_pte |= pte_set_hidx(ptep, rpte, 0, slot, offset); in __hash_page_huge()
123 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_huge()
Dradix_pgtable.c1502 unsigned long old_pte, new_pte; in radix__ptep_set_access_flags() local
1505 new_pte = old_pte | set; in radix__ptep_set_access_flags()
1507 __radix_pte_update(ptep, _PAGE_INVALID, new_pte); in radix__ptep_set_access_flags()
/linux-6.6.21/arch/arm/mm/
Dpgd.c36 pte_t *new_pte, *init_pte; in pgd_alloc() local
103 new_pte = pte_alloc_map(mm, new_pmd, 0); in pgd_alloc()
104 if (!new_pte) in pgd_alloc()
121 set_pte_ext(new_pte + 0, init_pte[0], 0); in pgd_alloc()
122 set_pte_ext(new_pte + 1, init_pte[1], 0); in pgd_alloc()
124 pte_unmap(new_pte); in pgd_alloc()
/linux-6.6.21/arch/powerpc/include/asm/
Dkvm_book3s_64.h424 pte_t old_pte, new_pte = __pte(0); in kvmppc_read_update_linux_pte() local
442 new_pte = pte_mkyoung(old_pte); in kvmppc_read_update_linux_pte()
444 new_pte = pte_mkdirty(new_pte); in kvmppc_read_update_linux_pte()
446 if (pte_xchg(ptep, old_pte, new_pte)) in kvmppc_read_update_linux_pte()
449 return new_pte; in kvmppc_read_update_linux_pte()
/linux-6.6.21/arch/riscv/kvm/
Dmmu.c139 gpa_t addr, const pte_t *new_pte) in gstage_set_pte() argument
170 *ptep = *new_pte; in gstage_set_pte()
185 pte_t new_pte; in gstage_map_page() local
216 new_pte = pfn_pte(PFN_DOWN(hpa), prot); in gstage_map_page()
217 new_pte = pte_mkdirty(new_pte); in gstage_map_page()
219 return gstage_set_pte(kvm, level, pcache, gpa, &new_pte); in gstage_map_page()
/linux-6.6.21/arch/x86/mm/
Dmem_encrypt_amd.c354 pte_t new_pte; in __set_clr_pte_enc() local
394 new_pte = pfn_pte(pfn, new_prot); in __set_clr_pte_enc()
395 set_pte_atomic(kpte, new_pte); in __set_clr_pte_enc()
Dinit_64.c296 static void __set_pte_vaddr(pud_t *pud, unsigned long vaddr, pte_t new_pte) in __set_pte_vaddr() argument
301 set_pte(pte, new_pte); in __set_pte_vaddr()
310 void set_pte_vaddr_p4d(p4d_t *p4d_page, unsigned long vaddr, pte_t new_pte) in set_pte_vaddr_p4d() argument
315 __set_pte_vaddr(pud, vaddr, new_pte); in set_pte_vaddr_p4d()
318 void set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte) in set_pte_vaddr_pud() argument
322 __set_pte_vaddr(pud, vaddr, new_pte); in set_pte_vaddr_pud()
/linux-6.6.21/arch/x86/include/asm/
Dpgtable_64.h62 void set_pte_vaddr_p4d(p4d_t *p4d_page, unsigned long vaddr, pte_t new_pte);
63 void set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte);
Dpgtable.h1317 pte_t old_pte, new_pte; in ptep_set_wrprotect() local
1321 new_pte = pte_wrprotect(old_pte); in ptep_set_wrprotect()
1322 } while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte)); in ptep_set_wrprotect()
/linux-6.6.21/arch/mips/kvm/
Dmmu.c130 pte_t *new_pte; in kvm_mips_walk_pgd() local
134 new_pte = kvm_mmu_memory_cache_alloc(cache); in kvm_mips_walk_pgd()
135 clear_page(new_pte); in kvm_mips_walk_pgd()
136 pmd_populate_kernel(NULL, pmd, new_pte); in kvm_mips_walk_pgd()
/linux-6.6.21/mm/
Dmremap.c142 pte_t *old_pte, *new_pte, pte; in move_ptes() local
178 new_pte = pte_offset_map_nolock(mm, new_pmd, new_addr, &new_ptl); in move_ptes()
179 if (!new_pte) { in move_ptes()
190 new_pte++, new_addr += PAGE_SIZE) { in move_ptes()
210 set_pte_at(mm, new_addr, new_pte, pte); in move_ptes()
218 pte_unmap(new_pte - 1); in move_ptes()
Dswapfile.c1747 pte_t *pte, new_pte, old_pte; in unuse_pte() local
1777 new_pte = swp_entry_to_pte(swp_entry); in unuse_pte()
1813 new_pte = pte_mkold(mk_pte(page, vma->vm_page_prot)); in unuse_pte()
1815 new_pte = pte_mksoft_dirty(new_pte); in unuse_pte()
1817 new_pte = pte_mkuffd_wp(new_pte); in unuse_pte()
1819 set_pte_at(vma->vm_mm, addr, pte, new_pte); in unuse_pte()
Dhugetlb.c5863 pte_t new_pte; in hugetlb_no_page() local
6019 new_pte = make_huge_pte(vma, &folio->page, ((vma->vm_flags & VM_WRITE) in hugetlb_no_page()
6026 new_pte = huge_pte_mkuffd_wp(new_pte); in hugetlb_no_page()
6027 set_huge_pte_at(mm, haddr, ptep, new_pte, huge_page_size(h)); in hugetlb_no_page()
/linux-6.6.21/arch/arm64/include/asm/
Dhugetlb.h60 pte_t old_pte, pte_t new_pte);
Dpgtable.h1118 pte_t old_pte, pte_t new_pte);
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dhugetlb.h62 pte_t old_pte, pte_t new_pte);
/linux-6.6.21/arch/x86/mm/pat/
Dset_memory.c846 pte_t new_pte, *tmp; in __should_split_large_page() local
979 new_pte = pfn_pte(old_pfn, new_prot); in __should_split_large_page()
980 __set_pmd_pte(kpte, address, new_pte); in __should_split_large_page()
1605 pte_t new_pte; in __change_page_attr() local
1627 new_pte = pfn_pte(pfn, new_prot); in __change_page_attr()
1632 if (pte_val(old_pte) != pte_val(new_pte)) { in __change_page_attr()
1633 set_pte_atomic(kpte, new_pte); in __change_page_attr()