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

12

/linux-master/arch/powerpc/mm/book3s64/
H A Dhash_4k.c28 unsigned long old_pte, new_pte; local
38 old_pte = pte_val(pte);
40 if (unlikely(old_pte & H_PAGE_BUSY))
43 if (unlikely(!check_pte_access(access, old_pte)))
50 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED;
53 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte)));
60 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE);
64 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap);
67 if (unlikely(old_pte & H_PAGE_HASHPTE)) {
76 old_pte
[all...]
H A Dhash_64k.c46 unsigned long old_pte, new_pte, subpg_pte; local
56 old_pte = pte_val(pte);
58 if (unlikely(old_pte & H_PAGE_BUSY))
61 if (unlikely(!check_pte_access(access, old_pte)))
68 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED | H_PAGE_COMBO;
71 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte)));
86 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap);
91 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE);
95 if (!(old_pte & H_PAGE_HASHPTE))
101 if (!(old_pte
235 unsigned long old_pte, new_pte; local
[all...]
H A Dhugetlbpage.c26 unsigned long old_pte, new_pte; local
36 * At this point, we have a pte (old_pte) which can be used to build
49 old_pte = pte_val(*ptep);
51 if (unlikely(old_pte & H_PAGE_BUSY))
54 if (unlikely(!check_pte_access(access, old_pte)))
61 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED;
64 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte)));
67 if (old_pte & (H_PAGE_THP_HUGE | _PAGE_DEVMAP))
75 rpte = __real_pte(__pte(old_pte), ptep, offset);
82 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), tra
143 huge_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
[all...]
H A Dradix_hugetlbpage.c47 pte_t old_pte, pte_t pte)
58 is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) &&
45 radix__huge_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
H A Dpgtable.c538 pte_t *ptep, pte_t old_pte, pte_t pte)
542 ptep, old_pte, pte);
537 ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
H A Dradix_pgtable.c1488 unsigned long old_pte, new_pte; local
1490 old_pte = __radix_pte_update(ptep, _PAGE_PRESENT, _PAGE_INVALID);
1491 new_pte = old_pte | set;
1511 pte_t old_pte, pte_t pte)
1521 is_pte_rw_upgrade(pte_val(old_pte), pte_val(pte)) &&
1509 radix__ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
/linux-master/arch/sparc/include/asm/
H A Dhugetlb.h36 pte_t old_pte = *ptep; local
37 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte));
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dradix.h152 pte_t old_pte, pte_t pte);
178 unsigned long old_pte; local
180 old_pte = __radix_pte_update(ptep, clr, set);
184 return old_pte;
191 unsigned long old_pte; local
194 old_pte = pte_val(*ptep);
197 old_pte = radix__pte_update(mm, addr, ptep, ~0ul, 0, 0);
199 return __pte(old_pte);
H A Dhugetlb.h17 pte_t old_pte, pte_t pte);
62 pte_t old_pte, pte_t new_pte);
/linux-master/mm/
H A Dmapping_dirty_helpers.c41 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); local
43 ptent = pte_wrprotect(old_pte);
44 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent);
99 pte_t old_pte = ptep_modify_prot_start(walk->vma, addr, pte); local
101 ptent = pte_mkclean(old_pte);
102 ptep_modify_prot_commit(walk->vma, addr, pte, old_pte, ptent);
H A Dmremap.c142 pte_t *old_pte, *new_pte, pte; local
173 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl);
174 if (!old_pte) {
180 pte_unmap_unlock(old_pte, old_ptl);
189 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE,
191 if (pte_none(ptep_get(old_pte)))
194 pte = ptep_get_and_clear(mm, old_addr, old_pte);
219 pte_unmap_unlock(old_pte - 1, old_ptl);
H A Dmigrate.c190 pte_t old_pte; local
213 old_pte = ptep_get(pvmw.pte);
215 entry = pte_to_swp_entry(old_pte);
220 if (pte_swp_soft_dirty(old_pte))
227 else if (pte_swp_uffd_wp(old_pte))
241 if (pte_swp_soft_dirty(old_pte))
243 if (pte_swp_uffd_wp(old_pte))
H A Dmemory.c5093 pte_t pte, old_pte; local
5095 old_pte = ptep_modify_prot_start(vma, fault_addr, fault_pte);
5096 pte = pte_modify(old_pte, vma->vm_page_prot);
5100 ptep_modify_prot_commit(vma, fault_addr, fault_pte, old_pte, pte);
5146 pte_t pte, old_pte; local
5155 old_pte = ptep_get(vmf->pte);
5157 if (unlikely(!pte_same(old_pte, vmf->orig_pte))) {
5162 pte = pte_modify(old_pte, vma->vm_page_prot);
/linux-master/arch/parisc/mm/
H A Dhugetlbpage.c164 pte_t old_pte; local
166 old_pte = *ptep;
167 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte));
/linux-master/arch/powerpc/include/asm/
H A Dkvm_book3s_64.h424 pte_t old_pte, new_pte = __pte(0); local
430 old_pte = READ_ONCE(*ptep);
434 if (unlikely(pte_val(old_pte) & H_PAGE_BUSY)) {
439 if (unlikely(!pte_present(old_pte)))
442 new_pte = pte_mkyoung(old_pte);
443 if (writing && pte_write(old_pte))
446 if (pte_xchg(ptep, old_pte, new_pte))
/linux-master/arch/arm64/include/asm/
H A Dhugetlb.h60 pte_t old_pte, pte_t new_pte);
H A Dpgtable.h340 pte_t old_pte; local
345 old_pte = __ptep_get(ptep);
347 if (!pte_valid(old_pte) || !pte_valid(pte))
359 __func__, pte_val(old_pte), pte_val(pte));
360 VM_WARN_ONCE(pte_write(old_pte) && !pte_dirty(pte),
362 __func__, pte_val(old_pte), pte_val(pte));
363 VM_WARN_ONCE(!pgattr_change_is_safe(pte_val(old_pte), pte_val(pte)),
365 __func__, pte_val(old_pte), pte_val(pte));
1153 pte_t old_pte, pte; local
1157 old_pte
1254 pte_t old_pte; local
1287 pte_t old_pte; local
[all...]
/linux-master/arch/parisc/include/asm/
H A Dpgtable.h469 pte_t old_pte; local
471 old_pte = *ptep;
474 return old_pte;
/linux-master/arch/x86/mm/pat/
H A Dset_memory.c1634 pte_t *kpte, old_pte; local
1643 old_pte = *kpte;
1644 if (pte_none(old_pte))
1649 pgprot_t old_prot = pte_pgprot(old_pte);
1650 pgprot_t new_prot = pte_pgprot(old_pte);
1651 unsigned long pfn = pte_pfn(old_pte);
1676 if (pte_val(old_pte) != pte_val(new_pte)) {
/linux-master/fs/proc/
H A Dtask_mmu.c1117 pte_t old_pte; local
1121 old_pte = ptep_modify_prot_start(vma, addr, pte);
1122 ptent = pte_wrprotect(old_pte);
1124 ptep_modify_prot_commit(vma, addr, pte, old_pte, ptent);
1834 pte_t old_pte; local
1836 old_pte = ptep_modify_prot_start(vma, addr, pte);
1837 ptent = pte_mkuffd_wp(old_pte);
1838 ptep_modify_prot_commit(vma, addr, pte, old_pte, ptent);
/linux-master/arch/x86/include/asm/
H A Dpgtable.h1295 pte_t old_pte, new_pte; local
1297 old_pte = READ_ONCE(*ptep);
1299 new_pte = pte_wrprotect(old_pte);
1300 } while (!try_cmpxchg((long *)&ptep->pte, (long *)&old_pte, *(long *)&new_pte));
H A Dparavirt.h428 pte_t *ptep, pte_t old_pte, pte_t pte)
427 ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
/linux-master/include/linux/
H A Dpgtable.h817 pte_t old_pte = ptep_get(ptep); local
818 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte));
1314 pte_t *ptep, pte_t old_pte, pte_t pte)
1312 ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
/linux-master/arch/arm64/mm/
H A Dmmu.c171 pte_t old_pte = __ptep_get(ptep); local
183 BUG_ON(!pgattr_change_is_safe(pte_val(old_pte),
1515 pte_t old_pte, pte_t pte)
1514 ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument
H A Dhugetlbpage.c542 pte_t old_pte, pte_t pte)
541 huge_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep, pte_t old_pte, pte_t pte) argument

Completed in 244 milliseconds

12