/linux-4.4.14/arch/powerpc/mm/ |
D | hugetlbpage-hash64.c | 26 unsigned long old_pte, new_pte; in __hash_page_huge() local 48 old_pte = pte_val(*ptep); in __hash_page_huge() 50 if (unlikely(old_pte & _PAGE_BUSY)) in __hash_page_huge() 53 if (unlikely(access & ~old_pte)) in __hash_page_huge() 57 new_pte = old_pte | _PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge() 60 } while(old_pte != __cmpxchg_u64((unsigned long *)ptep, in __hash_page_huge() 61 old_pte, new_pte)); in __hash_page_huge() 70 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge() 73 if (unlikely(old_pte & _PAGE_HASHPTE)) { in __hash_page_huge() 78 if (old_pte & _PAGE_F_SECOND) in __hash_page_huge() [all …]
|
D | hugepage-hash64.c | 77 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_thp()
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 302 pte_t old_pte, new_pte = __pte(0); in kvmppc_read_update_linux_pte() local 308 old_pte = READ_ONCE(*ptep); in kvmppc_read_update_linux_pte() 312 if (unlikely(pte_val(old_pte) & _PAGE_BUSY)) { in kvmppc_read_update_linux_pte() 317 if (unlikely(!(pte_val(old_pte) & _PAGE_PRESENT))) in kvmppc_read_update_linux_pte() 320 new_pte = pte_mkyoung(old_pte); in kvmppc_read_update_linux_pte() 321 if (writing && pte_write(old_pte)) in kvmppc_read_update_linux_pte() 324 if (pte_val(old_pte) == __cmpxchg_u64((unsigned long *)ptep, in kvmppc_read_update_linux_pte() 325 pte_val(old_pte), in kvmppc_read_update_linux_pte()
|
/linux-4.4.14/arch/parisc/mm/ |
D | hugetlbpage.c | 164 pte_t old_pte; in huge_ptep_set_wrprotect() local 167 old_pte = *ptep; in huge_ptep_set_wrprotect() 168 __set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | pgtable.h | 64 pte_t old_pte; \ 67 old_pte = *ptep; \ 69 if (pte_inserted(old_pte)) \ 490 pte_t old_pte; in ptep_get_and_clear() local 494 old_pte = *ptep; in ptep_get_and_clear() 496 if (pte_inserted(old_pte)) in ptep_get_and_clear() 500 return old_pte; in ptep_get_and_clear()
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | hugetlb.h | 60 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() local 61 set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
|
/linux-4.4.14/mm/ |
D | mremap.c | 97 pte_t *old_pte, *new_pte, pte; in move_ptes() local 133 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes() 140 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, in move_ptes() 142 if (pte_none(*old_pte)) in move_ptes() 144 pte = ptep_get_and_clear(mm, old_addr, old_pte); in move_ptes() 154 pte_unmap_unlock(old_pte - 1, old_ptl); in move_ptes()
|
/linux-4.4.14/arch/x86/mm/ |
D | pageattr.c | 478 pte_t new_pte, old_pte, *tmp; in try_preserve_large_page() local 526 old_pte = *kpte; in try_preserve_large_page() 1155 pte_t *kpte, old_pte; in __change_page_attr() local 1171 old_pte = *kpte; in __change_page_attr() 1172 if (!pte_val(old_pte)) in __change_page_attr() 1177 pgprot_t new_prot = pte_pgprot(old_pte); in __change_page_attr() 1178 unsigned long pfn = pte_pfn(old_pte); in __change_page_attr() 1207 if (pte_val(old_pte) != pte_val(new_pte)) { in __change_page_attr()
|
/linux-4.4.14/include/asm-generic/ |
D | pgtable.h | 188 pte_t old_pte = *ptep; in ptep_set_wrprotect() local 189 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
|
/linux-4.4.14/arch/arm/kvm/ |
D | mmu.c | 215 pte_t old_pte = *pte; in unmap_ptes() local 221 if (!kvm_is_device_pfn(pte_pfn(old_pte))) in unmap_ptes() 222 kvm_flush_dcache_pte(old_pte); in unmap_ptes() 905 pte_t *pte, old_pte; in stage2_set_pte() local 944 old_pte = *pte; in stage2_set_pte() 945 if (pte_present(old_pte)) { in stage2_set_pte()
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | pgtable.h | 447 pte_t old_pte = *ptep; in ptep_set_wrprotect() 448 set_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
|