/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
D | hash_64k.c | 44 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 …]
|
D | hash_hugetlbpage.c | 29 unsigned long old_pte, new_pte; in __hash_page_huge() local 52 old_pte = pte_val(*ptep); in __hash_page_huge() 54 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_huge() 57 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_huge() 64 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge() 67 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge() 70 if (old_pte & (H_PAGE_THP_HUGE | _PAGE_DEVMAP)) in __hash_page_huge() 78 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge() 85 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge() 88 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_huge() [all …]
|
D | hash_4k.c | 26 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 …]
|
D | radix_hugetlbpage.c | 95 pte_t old_pte, pte_t pte) in radix__huge_ptep_modify_prot_commit() argument 103 if (is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__huge_ptep_modify_prot_commit()
|
D | radix_pgtable.c | 1076 unsigned long old_pte, new_pte; in radix__ptep_set_access_flags() local 1078 old_pte = __radix_pte_update(ptep, _PAGE_PRESENT, _PAGE_INVALID); in radix__ptep_set_access_flags() 1082 new_pte = old_pte | set; in radix__ptep_set_access_flags() 1099 pte_t old_pte, pte_t pte) in radix__ptep_modify_prot_commit() argument 1108 if (is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) && in radix__ptep_modify_prot_commit()
|
D | pgtable.c | 441 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument 445 ptep, old_pte, pte); in ptep_modify_prot_commit()
|
D | hash_hugepage.c | 69 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_thp()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/ |
D | radix.h | 146 pte_t old_pte, pte_t pte); 172 unsigned long old_pte; in radix__pte_update() local 174 old_pte = __radix_pte_update(ptep, clr, set); in radix__pte_update() 178 return old_pte; in radix__pte_update() 185 unsigned long old_pte; in radix__ptep_get_and_clear_full() local 188 old_pte = pte_val(*ptep); in radix__ptep_get_and_clear_full() 191 old_pte = radix__pte_update(mm, addr, ptep, ~0ul, 0, 0); in radix__ptep_get_and_clear_full() 193 return __pte(old_pte); in radix__ptep_get_and_clear_full()
|
D | hugetlb.h | 18 pte_t old_pte, pte_t pte); 63 pte_t old_pte, pte_t new_pte);
|
/kernel/linux/linux-5.10/mm/ |
D | mapping_dirty_helpers.c | 39 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); in wp_pte() local 41 ptent = pte_wrprotect(old_pte); in wp_pte() 42 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in wp_pte() 96 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); in clean_record_pte() local 98 ptent = pte_mkclean(old_pte); in clean_record_pte() 99 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent); in clean_record_pte()
|
D | mremap.c | 121 pte_t *old_pte, *new_pte, pte; in move_ptes() local 151 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes() 159 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, in move_ptes() 161 if (pte_none(*old_pte)) in move_ptes() 164 pte = ptep_get_and_clear(mm, old_addr, old_pte); in move_ptes() 189 pte_unmap_unlock(old_pte - 1, old_ptl); in move_ptes()
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | pgtable.h | 289 pte_t old_pte; in __check_racy_pte_update() local 294 old_pte = READ_ONCE(*ptep); in __check_racy_pte_update() 296 if (!pte_valid(old_pte) || !pte_valid(pte)) in __check_racy_pte_update() 308 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update() 309 VM_WARN_ONCE(pte_write(old_pte) && !pte_dirty(pte), in __check_racy_pte_update() 311 __func__, pte_val(old_pte), pte_val(pte)); in __check_racy_pte_update() 786 pte_t old_pte, pte; in __ptep_test_and_clear_young() local 790 old_pte = pte; in __ptep_test_and_clear_young() 793 pte_val(old_pte), pte_val(pte)); in __ptep_test_and_clear_young() 794 } while (pte_val(pte) != pte_val(old_pte)); in __ptep_test_and_clear_young() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 423 pte_t old_pte, new_pte = __pte(0); in kvmppc_read_update_linux_pte() local 429 old_pte = READ_ONCE(*ptep); in kvmppc_read_update_linux_pte() 433 if (unlikely(pte_val(old_pte) & H_PAGE_BUSY)) { in kvmppc_read_update_linux_pte() 438 if (unlikely(!pte_present(old_pte))) in kvmppc_read_update_linux_pte() 441 new_pte = pte_mkyoung(old_pte); in kvmppc_read_update_linux_pte() 442 if (writing && pte_write(old_pte)) in kvmppc_read_update_linux_pte() 445 if (pte_xchg(ptep, old_pte, new_pte)) in kvmppc_read_update_linux_pte()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | hugetlb.h | 33 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() local 34 set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
|
/kernel/linux/linux-5.10/arch/parisc/mm/ |
D | hugetlbpage.c | 164 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()
|
/kernel/linux/linux-5.10/arch/mips/kvm/ |
D | mmu.c | 504 pte_t old_pte; in kvm_set_spte_handler() local 510 old_pte = *gpa_pte; in kvm_set_spte_handler() 511 if (memslot->flags & KVM_MEM_LOG_DIRTY_PAGES && !pte_dirty(old_pte)) in kvm_set_spte_handler() 519 if (!pte_present(old_pte) || !pte_young(old_pte)) in kvm_set_spte_handler() 525 pte_pfn(old_pte) != pte_pfn(hva_pte) || in kvm_set_spte_handler() 526 (pte_dirty(old_pte) && !pte_dirty(hva_pte)); in kvm_set_spte_handler() 670 pte_t *ptep, entry, old_pte; in kvm_mips_map_page() local 742 old_pte = *ptep; in kvm_mips_map_page()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
D | mte.c | 25 pte_t old_pte = READ_ONCE(*ptep); in mte_sync_page_tags() local 27 if (check_swap && is_swap_pte(old_pte)) { in mte_sync_page_tags() 28 swp_entry_t entry = pte_to_swp_entry(old_pte); in mte_sync_page_tags()
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | pgtable.h | 452 pte_t old_pte; in ptep_get_and_clear() local 454 old_pte = *ptep; in ptep_get_and_clear() 457 return old_pte; in ptep_get_and_clear()
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | pgtable.h | 424 pte_t old_pte = *ptep; in ptep_set_wrprotect() 425 set_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
|
/kernel/linux/linux-5.10/arch/x86/mm/pat/ |
D | set_memory.c | 1514 pte_t *kpte, old_pte; in __change_page_attr() local 1522 old_pte = *kpte; in __change_page_attr() 1523 if (pte_none(old_pte)) in __change_page_attr() 1528 pgprot_t new_prot = pte_pgprot(old_pte); in __change_page_attr() 1529 unsigned long pfn = pte_pfn(old_pte); in __change_page_attr() 1551 if (pte_val(old_pte) != pte_val(new_pte)) { in __change_page_attr()
|
/kernel/linux/linux-5.10/include/linux/ |
D | pgtable.h | 368 pte_t old_pte = *ptep; in ptep_set_wrprotect() local 369 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect() 829 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
|
D | hugetlb.h | 761 pte_t old_pte, pte_t pte) in huge_ptep_modify_prot_commit() argument
|
/kernel/linux/linux-5.10/fs/proc/ |
D | task_mmu.c | 1109 pte_t old_pte; in clear_soft_dirty() local 1113 old_pte = ptep_modify_prot_start(vma, addr, pte); in clear_soft_dirty() 1114 ptent = pte_wrprotect(old_pte); in clear_soft_dirty() 1116 ptep_modify_prot_commit(vma, addr, pte, old_pte, ptent); in clear_soft_dirty()
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | mmu.c | 161 pte_t old_pte = READ_ONCE(*ptep); in init_pte() local 169 BUG_ON(!pgattr_change_is_safe(pte_val(old_pte), in init_pte()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | paravirt.h | 404 pte_t *ptep, pte_t old_pte, pte_t pte) in ptep_modify_prot_commit() argument
|