/linux-6.6.21/arch/riscv/mm/ |
D | hugetlbpage.c | 10 pte_t orig_pte = ptep_get(ptep); in huge_ptep_get() local 12 if (!pte_present(orig_pte) || !pte_napot(orig_pte)) in huge_ptep_get() 13 return orig_pte; in huge_ptep_get() 15 pte_num = napot_pte_num(napot_cont_order(orig_pte)); in huge_ptep_get() 21 orig_pte = pte_mkdirty(orig_pte); in huge_ptep_get() 24 orig_pte = pte_mkyoung(orig_pte); in huge_ptep_get() 27 return orig_pte; in huge_ptep_get() 153 pte_t orig_pte = ptep_get(ptep); in get_clear_contig() local 160 orig_pte = pte_mkdirty(orig_pte); in get_clear_contig() 163 orig_pte = pte_mkyoung(orig_pte); in get_clear_contig() [all …]
|
/linux-6.6.21/arch/arm64/mm/ |
D | hugetlbpage.c | 155 pte_t orig_pte = ptep_get(ptep); in huge_ptep_get() local 157 if (!pte_present(orig_pte) || !pte_cont(orig_pte)) in huge_ptep_get() 158 return orig_pte; in huge_ptep_get() 160 ncontig = num_contig_ptes(page_size(pte_page(orig_pte)), &pgsize); in huge_ptep_get() 165 orig_pte = pte_mkdirty(orig_pte); in huge_ptep_get() 168 orig_pte = pte_mkyoung(orig_pte); in huge_ptep_get() 170 return orig_pte; in huge_ptep_get() 187 pte_t orig_pte = ptep_get(ptep); in get_clear_contig() local 199 orig_pte = pte_mkdirty(orig_pte); in get_clear_contig() 202 orig_pte = pte_mkyoung(orig_pte); in get_clear_contig() [all …]
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 130 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, in kvmppc_mmu_map_page() argument 138 u32 eaddr = orig_pte->eaddr; in kvmppc_mmu_map_page() 148 hpaddr = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable); in kvmppc_mmu_map_page() 151 orig_pte->raddr); in kvmppc_mmu_map_page() 158 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page() 198 if (orig_pte->may_write && writable) { in kvmppc_mmu_map_page() 200 mark_page_dirty(vcpu->kvm, orig_pte->raddr >> PAGE_SHIFT); in kvmppc_mmu_map_page() 205 if (orig_pte->may_execute) in kvmppc_mmu_map_page() 241 orig_pte->may_write ? 'w' : '-', in kvmppc_mmu_map_page() 242 orig_pte->may_execute ? 'x' : '-', in kvmppc_mmu_map_page() [all …]
|
D | book3s_64_mmu_host.c | 71 int kvmppc_mmu_map_page(struct kvm_vcpu *vcpu, struct kvmppc_pte *orig_pte, in kvmppc_mmu_map_page() argument 89 unsigned long gfn = orig_pte->raddr >> PAGE_SHIFT; in kvmppc_mmu_map_page() 97 pfn = kvmppc_gpa_to_pfn(vcpu, orig_pte->raddr, iswrite, &writable); in kvmppc_mmu_map_page() 100 orig_pte->raddr); in kvmppc_mmu_map_page() 107 vcpu->arch.mmu.esid_to_vsid(vcpu, orig_pte->eaddr >> SID_SHIFT, &vsid); in kvmppc_mmu_map_page() 110 ret = kvmppc_mmu_map_segment(vcpu, orig_pte->eaddr); in kvmppc_mmu_map_page() 116 vsid, orig_pte->eaddr); in kvmppc_mmu_map_page() 122 vpn = hpt_vpn(orig_pte->eaddr, map->host_vsid, MMU_SEGSIZE_256M); in kvmppc_mmu_map_page() 125 if (!orig_pte->may_write || !writable) in kvmppc_mmu_map_page() 132 if (!orig_pte->may_execute) in kvmppc_mmu_map_page() [all …]
|
D | trace_pr.h | 33 struct kvmppc_pte *orig_pte), 34 TP_ARGS(rflags, hpteg, va, hpaddr, orig_pte), 49 __entry->eaddr = orig_pte->eaddr; 52 __entry->vpage = orig_pte->vpage;
|
D | book3s_hv_rm_mmu.c | 492 u64 pte, orig_pte, pte_r; in kvmppc_do_h_remove() local 501 pte = orig_pte = be64_to_cpu(hpte[0]); in kvmppc_do_h_remove() 510 __unlock_hpte(hpte, orig_pte); in kvmppc_do_h_remove()
|
/linux-6.6.21/mm/ |
D | memory.c | 119 return pte_marker_uffd_wp(vmf->orig_pte); in vmf_orig_pte_uffd_wp() 700 pte_t orig_pte; in restore_exclusive_pte() local 704 orig_pte = ptep_get(ptep); in restore_exclusive_pte() 706 if (pte_swp_soft_dirty(orig_pte)) in restore_exclusive_pte() 709 entry = pte_to_swp_entry(orig_pte); in restore_exclusive_pte() 710 if (pte_swp_uffd_wp(orig_pte)) in restore_exclusive_pte() 771 pte_t orig_pte = ptep_get(src_pte); in copy_nonpresent_pte() local 772 pte_t pte = orig_pte; in copy_nonpresent_pte() 774 swp_entry_t entry = pte_to_swp_entry(orig_pte); in copy_nonpresent_pte() 789 if (pte_swp_exclusive(orig_pte)) { in copy_nonpresent_pte() [all …]
|
D | migrate_device.c | 577 pte_t orig_pte; in migrate_vma_insert_page() local 633 orig_pte = ptep_get(ptep); in migrate_vma_insert_page() 638 if (pte_present(orig_pte)) { in migrate_vma_insert_page() 639 unsigned long pfn = pte_pfn(orig_pte); in migrate_vma_insert_page() 644 } else if (!pte_none(orig_pte)) in migrate_vma_insert_page() 661 flush_cache_page(vma, addr, pte_pfn(orig_pte)); in migrate_vma_insert_page()
|
D | ksm.c | 1096 pte_t *orig_pte) in write_protect_page() argument 1166 *orig_pte = entry; in write_protect_page() 1187 struct page *kpage, pte_t orig_pte) in replace_page() argument 1223 if (!pte_same(ptep_get(ptep), orig_pte)) { in replace_page() 1292 pte_t orig_pte = __pte(0); in try_to_merge_one_page() local 1322 if (write_protect_page(vma, page, &orig_pte) == 0) { in try_to_merge_one_page() 1339 err = replace_page(vma, page, kpage, orig_pte); in try_to_merge_one_page()
|
D | khugepaged.c | 1016 vmf.orig_pte = ptep_get_lockless(pte); in __collapse_huge_page_swapin() 1017 if (!is_swap_pte(vmf.orig_pte)) in __collapse_huge_page_swapin()
|
/linux-6.6.21/arch/sparc/mm/ |
D | tlb.c | 210 pte_t orig_pte = __pte(pmd_val(orig)); in __set_pmd_acct() local 211 bool exec = pte_exec(orig_pte); in __set_pmd_acct()
|
/linux-6.6.21/arch/x86/kvm/mmu/ |
D | paging_tmpl.h | 203 pt_element_t pte, orig_pte; in FNAME() local 213 pte = orig_pte = walker->ptes[level - 1]; in FNAME() 230 if (pte == orig_pte) in FNAME() 249 ret = __try_cmpxchg_user(ptep_user, &orig_pte, pte, fault); in FNAME()
|
/linux-6.6.21/fs/proc/ |
D | task_mmu.c | 1465 pte_t *pte, *orig_pte; in pagemap_pmd_range() local 1542 orig_pte = pte = pte_offset_map_lock(walk->mm, pmdp, addr, &ptl); in pagemap_pmd_range() 1555 pte_unmap_unlock(orig_pte, ptl); in pagemap_pmd_range() 1872 pte_t *orig_pte; in gather_pte_stats() local 1888 orig_pte = pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl); in gather_pte_stats() 1901 pte_unmap_unlock(orig_pte, ptl); in gather_pte_stats()
|
/linux-6.6.21/arch/arm64/kvm/hyp/ |
D | pgtable.c | 1196 kvm_pte_t attr_clr, kvm_pte_t *orig_pte, in stage2_update_leaf_attrs() argument 1215 if (orig_pte) in stage2_update_leaf_attrs() 1216 *orig_pte = data.pte; in stage2_update_leaf_attrs()
|
/linux-6.6.21/include/linux/ |
D | pgtable.h | 888 pte_t orig_pte) in arch_unmap_one() argument
|
D | mm.h | 524 pte_t orig_pte; /* Value of PTE at the time of fault */ member
|