Lines Matching refs:old_pte
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()
77 if (likely(!(old_pte & H_PAGE_HASHPTE))) { in __hash_page_4K()
79 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K()
114 *ptep = __pte(old_pte); in __hash_page_4K()
116 MMU_PAGE_4K, MMU_PAGE_4K, old_pte); in __hash_page_4K()