Home
last modified time | relevance | path

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

/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 …]
Dhash_hugetlbpage.c31 unsigned long old_pte, new_pte; in __hash_page_huge() local
54 old_pte = pte_val(*ptep); in __hash_page_huge()
56 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_huge()
59 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_huge()
66 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge()
69 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge()
72 if (old_pte & (H_PAGE_THP_HUGE | _PAGE_DEVMAP)) in __hash_page_huge()
80 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge()
87 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge()
90 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.c97 pte_t old_pte, pte_t pte) in radix__huge_ptep_modify_prot_commit() argument
105 if (is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__huge_ptep_modify_prot_commit()
Dradix_pgtable.c1030 unsigned long old_pte, new_pte; in radix__ptep_set_access_flags() local
1032 old_pte = __radix_pte_update(ptep, _PAGE_PRESENT, _PAGE_INVALID); in radix__ptep_set_access_flags()
1036 new_pte = old_pte | set; in radix__ptep_set_access_flags()
1053 pte_t old_pte, pte_t pte) in radix__ptep_modify_prot_commit() argument
1062 if (is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__ptep_modify_prot_commit()
Dpgtable.c437 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
441 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()
/arch/powerpc/include/asm/book3s/64/
Dradix.h130 pte_t old_pte, pte_t pte);
156 unsigned long old_pte; in radix__pte_update() local
158 old_pte = __radix_pte_update(ptep, clr, set); in radix__pte_update()
162 return old_pte; in radix__pte_update()
169 unsigned long old_pte; in radix__ptep_get_and_clear_full() local
172 old_pte = pte_val(*ptep); in radix__ptep_get_and_clear_full()
175 old_pte = radix__pte_update(mm, addr, ptep, ~0ul, 0, 0); in radix__ptep_get_and_clear_full()
177 return __pte(old_pte); in radix__ptep_get_and_clear_full()
Dhugetlb.h18 pte_t old_pte, pte_t pte);
63 pte_t old_pte, pte_t new_pte);
/arch/sparc/include/asm/
Dhugetlb.h39 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() local
40 set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
/arch/arm64/include/asm/
Dpgtable.h260 pte_t old_pte; in __check_racy_pte_update() local
265 old_pte = READ_ONCE(*ptep); in __check_racy_pte_update()
267 if (!pte_valid(old_pte) || !pte_valid(pte)) in __check_racy_pte_update()
279 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update()
280 VM_WARN_ONCE(pte_write(old_pte) && !pte_dirty(pte), in __check_racy_pte_update()
282 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update()
727 pte_t old_pte, pte; in __ptep_test_and_clear_young() local
731 old_pte = pte; in __ptep_test_and_clear_young()
734 pte_val(old_pte), pte_val(pte)); in __ptep_test_and_clear_young()
735 } while (pte_val(pte) != pte_val(old_pte)); in __ptep_test_and_clear_young()
[all …]
/arch/powerpc/include/asm/
Dkvm_book3s_64.h422 pte_t old_pte, new_pte = __pte(0); in kvmppc_read_update_linux_pte() local
428 old_pte = READ_ONCE(*ptep); in kvmppc_read_update_linux_pte()
432 if (unlikely(pte_val(old_pte) & H_PAGE_BUSY)) { in kvmppc_read_update_linux_pte()
437 if (unlikely(!(pte_val(old_pte) & _PAGE_PRESENT))) in kvmppc_read_update_linux_pte()
440 new_pte = pte_mkyoung(old_pte); in kvmppc_read_update_linux_pte()
441 if (writing && pte_write(old_pte)) in kvmppc_read_update_linux_pte()
444 if (pte_xchg(ptep, old_pte, new_pte)) in kvmppc_read_update_linux_pte()
/arch/parisc/mm/
Dhugetlbpage.c167 pte_t old_pte; in huge_ptep_set_wrprotect() local
170 old_pte = *ptep; in huge_ptep_set_wrprotect()
171 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
/arch/parisc/include/asm/
Dpgtable.h91 pte_t old_pte; \
94 old_pte = *ptep; \
521 pte_t old_pte; in ptep_get_and_clear() local
525 old_pte = *ptep; in ptep_get_and_clear()
530 return old_pte; in ptep_get_and_clear()
/arch/mips/kvm/
Dmmu.c530 pte_t old_pte; in kvm_set_spte_handler() local
536 old_pte = *gpa_pte; in kvm_set_spte_handler()
537 if (memslot->flags & KVM_MEM_LOG_DIRTY_PAGES && !pte_dirty(old_pte)) in kvm_set_spte_handler()
545 if (!pte_present(old_pte) || !pte_young(old_pte)) in kvm_set_spte_handler()
551 pte_pfn(old_pte) != pte_pfn(hva_pte) || in kvm_set_spte_handler()
552 (pte_dirty(old_pte) && !pte_dirty(hva_pte)); in kvm_set_spte_handler()
/arch/x86/mm/
Dpageattr.c1495 pte_t *kpte, old_pte; in __change_page_attr() local
1503 old_pte = *kpte; in __change_page_attr()
1504 if (pte_none(old_pte)) in __change_page_attr()
1509 pgprot_t new_prot = pte_pgprot(old_pte); in __change_page_attr()
1510 unsigned long pfn = pte_pfn(old_pte); in __change_page_attr()
1532 if (pte_val(old_pte) != pte_val(new_pte)) { in __change_page_attr()
/arch/ia64/include/asm/
Dpgtable.h448 pte_t old_pte = *ptep; in ptep_set_wrprotect()
449 set_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
/arch/arm64/mm/
Dmmu.c147 pte_t old_pte = READ_ONCE(*ptep); in init_pte() local
155 BUG_ON(!pgattr_change_is_safe(pte_val(old_pte), in init_pte()
/arch/x86/include/asm/
Dparavirt.h424 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
/arch/s390/mm/
Dpgtable.c324 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument