Home
last modified time | relevance | path

Searched refs:old_pte (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.1.9/arch/powerpc/mm/book3s64/
Dhash_64k.c44 unsigned long old_pte, new_pte, subpg_pte; in __hash_page_4K() local
54 old_pte = pte_val(pte); in __hash_page_4K()
56 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_4K()
59 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_4K()
66 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED | H_PAGE_COMBO; in __hash_page_4K()
69 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K()
84 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K()
89 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
93 if (!(old_pte & H_PAGE_HASHPTE)) in __hash_page_4K()
99 if (!(old_pte & H_PAGE_COMBO)) { in __hash_page_4K()
[all …]
Dhugetlbpage.c26 unsigned long old_pte, new_pte; in __hash_page_huge() local
49 old_pte = pte_val(*ptep); in __hash_page_huge()
51 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_huge()
54 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_huge()
61 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge()
64 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge()
67 if (old_pte & (H_PAGE_THP_HUGE | _PAGE_DEVMAP)) in __hash_page_huge()
75 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge()
82 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge()
85 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_huge()
[all …]
Dhash_4k.c26 unsigned long old_pte, new_pte; in __hash_page_4K() local
36 old_pte = pte_val(pte); in __hash_page_4K()
38 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_4K()
41 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_4K()
48 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_4K()
51 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K()
58 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
62 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K()
65 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_4K()
74 old_pte &= ~_PAGE_HPTEFLAGS; in __hash_page_4K()
[all …]
Dradix_hugetlbpage.c46 pte_t old_pte, pte_t pte) in radix__huge_ptep_modify_prot_commit() argument
56 is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__huge_ptep_modify_prot_commit()
Dradix_pgtable.c1036 unsigned long old_pte, new_pte; in radix__ptep_set_access_flags() local
1038 old_pte = __radix_pte_update(ptep, _PAGE_PRESENT, _PAGE_INVALID); in radix__ptep_set_access_flags()
1039 new_pte = old_pte | set; in radix__ptep_set_access_flags()
1059 pte_t old_pte, pte_t pte) in radix__ptep_modify_prot_commit() argument
1069 is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__ptep_modify_prot_commit()
Dpgtable.c458 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
462 ptep, old_pte, pte); in ptep_modify_prot_commit()
Dhash_hugepage.c69 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_thp()
/linux-6.1.9/arch/powerpc/include/asm/book3s/64/
Dradix.h152 pte_t old_pte, pte_t pte);
178 unsigned long old_pte; in radix__pte_update() local
180 old_pte = __radix_pte_update(ptep, clr, set); in radix__pte_update()
184 return old_pte; in radix__pte_update()
191 unsigned long old_pte; in radix__ptep_get_and_clear_full() local
194 old_pte = pte_val(*ptep); in radix__ptep_get_and_clear_full()
197 old_pte = radix__pte_update(mm, addr, ptep, ~0ul, 0, 0); in radix__ptep_get_and_clear_full()
199 return __pte(old_pte); in radix__ptep_get_and_clear_full()
Dhugetlb.h17 pte_t old_pte, pte_t pte);
62 pte_t old_pte, pte_t new_pte);
/linux-6.1.9/mm/
Dmapping_dirty_helpers.c41 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); in wp_pte() local
43 ptent = pte_wrprotect(old_pte); in wp_pte()
44 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in wp_pte()
99 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); in clean_record_pte() local
101 ptent = pte_mkclean(old_pte); in clean_record_pte()
102 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in clean_record_pte()
Dmremap.c142 pte_t *old_pte, *new_pte, pte; in move_ptes() local
172 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes()
180 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, in move_ptes()
182 if (pte_none(*old_pte)) in move_ptes()
185 pte = ptep_get_and_clear(mm, old_addr, old_pte); in move_ptes()
210 pte_unmap_unlock(old_pte - 1, old_ptl); in move_ptes()
Dhugetlb.c5736 pte_t *ptep, pte_t old_pte) in hugetlb_pte_stable() argument
5742 same = pte_same(huge_ptep_get(ptep), old_pte); in hugetlb_pte_stable()
5752 pte_t old_pte, unsigned int flags) in hugetlb_no_page() argument
5806 if (!hugetlb_pte_stable(h, mm, ptep, old_pte)) { in hugetlb_no_page()
5830 if (hugetlb_pte_stable(h, mm, ptep, old_pte)) in hugetlb_no_page()
5880 if (!hugetlb_pte_stable(h, mm, ptep, old_pte)) { in hugetlb_no_page()
5908 if (!pte_same(huge_ptep_get(ptep), old_pte)) in hugetlb_no_page()
5922 if (unlikely(pte_marker_uffd_wp(old_pte))) in hugetlb_no_page()
6665 pte_t old_pte; in hugetlb_change_protection() local
6668 old_pte = huge_ptep_modify_prot_start(vma, address, ptep); in hugetlb_change_protection()
[all …]
/linux-6.1.9/arch/arm64/include/asm/
Dpgtable.h298 pte_t old_pte; in __check_racy_pte_update() local
303 old_pte = READ_ONCE(*ptep); in __check_racy_pte_update()
305 if (!pte_valid(old_pte) || !pte_valid(pte)) in __check_racy_pte_update()
317 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update()
318 VM_WARN_ONCE(pte_write(old_pte) && !pte_dirty(pte), in __check_racy_pte_update()
320 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update()
337 pte_t old_pte = READ_ONCE(*ptep); in __set_pte_at() local
345 if (pte_tagged(pte) || (!pte_none(old_pte) && !pte_present(old_pte))) in __set_pte_at()
346 mte_sync_tags(old_pte, pte); in __set_pte_at()
881 pte_t old_pte, pte; in __ptep_test_and_clear_young() local
[all …]
Dmte.h41 void mte_sync_tags(pte_t old_pte, pte_t pte);
62 static inline void mte_sync_tags(pte_t old_pte, pte_t pte) in mte_sync_tags() argument
/linux-6.1.9/arch/mips/kvm/
Dmmu.c453 pte_t old_pte; in kvm_set_spte_gfn() local
459 old_pte = *gpa_pte; in kvm_set_spte_gfn()
460 if (range->slot->flags & KVM_MEM_LOG_DIRTY_PAGES && !pte_dirty(old_pte)) in kvm_set_spte_gfn()
468 if (!pte_present(old_pte) || !pte_young(old_pte)) in kvm_set_spte_gfn()
474 pte_pfn(old_pte) != pte_pfn(hva_pte) || in kvm_set_spte_gfn()
475 (pte_dirty(old_pte) && !pte_dirty(hva_pte)); in kvm_set_spte_gfn()
596 pte_t *ptep, entry, old_pte; in kvm_mips_map_page() local
668 old_pte = *ptep; in kvm_mips_map_page()
/linux-6.1.9/arch/powerpc/include/asm/
Dkvm_book3s_64.h424 pte_t old_pte, new_pte = __pte(0); in kvmppc_read_update_linux_pte() local
430 old_pte = READ_ONCE(*ptep); in kvmppc_read_update_linux_pte()
434 if (unlikely(pte_val(old_pte) & H_PAGE_BUSY)) { in kvmppc_read_update_linux_pte()
439 if (unlikely(!pte_present(old_pte))) in kvmppc_read_update_linux_pte()
442 new_pte = pte_mkyoung(old_pte); in kvmppc_read_update_linux_pte()
443 if (writing && pte_write(old_pte)) in kvmppc_read_update_linux_pte()
446 if (pte_xchg(ptep, old_pte, new_pte)) in kvmppc_read_update_linux_pte()
/linux-6.1.9/arch/sparc/include/asm/
Dhugetlb.h34 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() local
35 set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
/linux-6.1.9/arch/parisc/mm/
Dhugetlbpage.c164 pte_t old_pte; in huge_ptep_set_wrprotect() local
166 old_pte = *ptep; in huge_ptep_set_wrprotect()
167 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
/linux-6.1.9/arch/arm64/kernel/
Dmte.c38 static void mte_sync_page_tags(struct page *page, pte_t old_pte, in mte_sync_page_tags() argument
41 if (check_swap && is_swap_pte(old_pte)) { in mte_sync_page_tags()
42 swp_entry_t entry = pte_to_swp_entry(old_pte); in mte_sync_page_tags()
59 void mte_sync_tags(pte_t old_pte, pte_t pte) in mte_sync_tags() argument
73 mte_sync_page_tags(page, old_pte, check_swap, in mte_sync_tags()
/linux-6.1.9/arch/parisc/include/asm/
Dpgtable.h441 pte_t old_pte; in ptep_get_and_clear() local
443 old_pte = *ptep; in ptep_get_and_clear()
446 return old_pte; in ptep_get_and_clear()
/linux-6.1.9/arch/x86/mm/pat/
Dset_memory.c1560 pte_t *kpte, old_pte; in __change_page_attr() local
1568 old_pte = *kpte; in __change_page_attr()
1569 if (pte_none(old_pte)) in __change_page_attr()
1574 pgprot_t old_prot = pte_pgprot(old_pte); in __change_page_attr()
1575 pgprot_t new_prot = pte_pgprot(old_pte); in __change_page_attr()
1576 unsigned long pfn = pte_pfn(old_pte); in __change_page_attr()
1600 if (pte_val(old_pte) != pte_val(new_pte)) { in __change_page_attr()
/linux-6.1.9/arch/ia64/include/asm/
Dpgtable.h401 pte_t old_pte = *ptep; in ptep_set_wrprotect()
402 set_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
/linux-6.1.9/include/linux/
Dpgtable.h485 pte_t old_pte = *ptep; in ptep_set_wrprotect() local
486 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
966 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
/linux-6.1.9/fs/proc/
Dtask_mmu.c1110 pte_t old_pte; in clear_soft_dirty() local
1114 old_pte = ptep_modify_prot_start(vma, addr, pte); in clear_soft_dirty()
1115 ptent = pte_wrprotect(old_pte); in clear_soft_dirty()
1117 ptep_modify_prot_commit(vma, addr, pte, old_pte, ptent); in clear_soft_dirty()
/linux-6.1.9/arch/x86/include/asm/
Dparavirt.h433 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument

12