Lines Matching refs:old_pte

46 	unsigned long old_pte, new_pte, subpg_pte;  in __hash_page_4K()  local
56 old_pte = pte_val(pte); in __hash_page_4K()
58 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_4K()
61 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_4K()
68 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED | H_PAGE_COMBO; in __hash_page_4K()
71 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K()
86 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K()
91 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K()
95 if (!(old_pte & H_PAGE_HASHPTE)) in __hash_page_4K()
101 if (!(old_pte & H_PAGE_COMBO)) { in __hash_page_4K()
108 old_pte &= ~H_PAGE_HASHPTE; in __hash_page_4K()
141 if (!(old_pte & H_PAGE_COMBO)) in __hash_page_4K()
147 if (old_pte & H_PAGE_4K_PFN) { in __hash_page_4K()
152 pa = pte_pfn(__pte(old_pte)) << HW_PAGE_SHIFT; in __hash_page_4K()
154 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K()
212 *ptep = __pte(old_pte); in __hash_page_4K()
214 MMU_PAGE_4K, MMU_PAGE_4K, old_pte); in __hash_page_4K()
235 unsigned long old_pte, new_pte; in __hash_page_64K() local
245 old_pte = pte_val(pte); in __hash_page_64K()
247 if (unlikely(old_pte & H_PAGE_BUSY)) in __hash_page_64K()
250 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_64K()
263 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_64K()
266 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_64K()
269 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_64K()
273 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_64K()
276 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_64K()
286 old_pte &= ~_PAGE_HPTEFLAGS; in __hash_page_64K()
289 if (likely(!(old_pte & H_PAGE_HASHPTE))) { in __hash_page_64K()
291 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_64K()
327 *ptep = __pte(old_pte); in __hash_page_64K()
329 MMU_PAGE_64K, MMU_PAGE_64K, old_pte); in __hash_page_64K()