Home
last modified time | relevance | path

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

/linux-4.1.27/arch/powerpc/mm/
Dhugetlbpage-hash64.c26 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 …]
Dhugepage-hash64.c77 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_thp()
/linux-4.1.27/arch/powerpc/include/asm/
Dkvm_book3s_64.h302 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.1.27/arch/parisc/include/asm/
Dpgtable.h64 pte_t old_pte; \
67 old_pte = *ptep; \
69 if (pte_inserted(old_pte)) \
471 pte_t old_pte; in ptep_get_and_clear() local
475 old_pte = *ptep; in ptep_get_and_clear()
477 if (pte_inserted(old_pte)) in ptep_get_and_clear()
481 return old_pte; in ptep_get_and_clear()
/linux-4.1.27/arch/sparc/include/asm/
Dhugetlb.h64 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() local
65 set_huge_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in huge_ptep_set_wrprotect()
/linux-4.1.27/mm/
Dmremap.c96 pte_t *old_pte, *new_pte, pte; in move_ptes() local
132 old_pte = pte_offset_map_lock(mm, old_pmd, old_addr, &old_ptl); in move_ptes()
139 for (; old_addr < old_end; old_pte++, old_addr += PAGE_SIZE, in move_ptes()
141 if (pte_none(*old_pte)) in move_ptes()
143 pte = ptep_get_and_clear(mm, old_addr, old_pte); in move_ptes()
153 pte_unmap_unlock(old_pte - 1, old_ptl); in move_ptes()
/linux-4.1.27/arch/x86/mm/
Dpageattr.c465 pte_t new_pte, old_pte, *tmp; in try_preserve_large_page() local
509 old_pte = *kpte; in try_preserve_large_page()
510 old_prot = req_prot = pgprot_large_2_4k(pte_pgprot(old_pte)); in try_preserve_large_page()
539 pfn = pte_pfn(old_pte) + ((address & (psize - 1)) >> PAGE_SHIFT); in try_preserve_large_page()
550 pfn = pte_pfn(old_pte); in try_preserve_large_page()
580 new_pte = pfn_pte(pte_pfn(old_pte), new_prot); in try_preserve_large_page()
1128 pte_t *kpte, old_pte; in __change_page_attr() local
1144 old_pte = *kpte; in __change_page_attr()
1145 if (!pte_val(old_pte)) in __change_page_attr()
1150 pgprot_t new_prot = pte_pgprot(old_pte); in __change_page_attr()
[all …]
/linux-4.1.27/include/asm-generic/
Dpgtable.h165 pte_t old_pte = *ptep; in ptep_set_wrprotect() local
166 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()
/linux-4.1.27/arch/arm/kvm/
Dmmu.c215 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.1.27/arch/ia64/include/asm/
Dpgtable.h447 pte_t old_pte = *ptep; in ptep_set_wrprotect()
448 set_pte_at(mm, addr, ptep, pte_wrprotect(old_pte)); in ptep_set_wrprotect()