Lines Matching refs:old_pte
25 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 & H_PAGE_BUSY)) in __hash_page_huge()
53 if (unlikely(!check_pte_access(access, old_pte))) in __hash_page_huge()
60 new_pte = old_pte | H_PAGE_BUSY | _PAGE_ACCESSED; in __hash_page_huge()
63 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge()
66 if (old_pte & (H_PAGE_THP_HUGE | _PAGE_DEVMAP)) in __hash_page_huge()
74 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge()
81 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge()
84 if (unlikely(old_pte & H_PAGE_HASHPTE)) { in __hash_page_huge()
91 old_pte &= ~_PAGE_HPTEFLAGS; in __hash_page_huge()
94 if (likely(!(old_pte & H_PAGE_HASHPTE))) { in __hash_page_huge()
97 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_huge()
110 *ptep = __pte(old_pte); in __hash_page_huge()
112 mmu_psize, mmu_psize, old_pte); in __hash_page_huge()
142 pte_t *ptep, pte_t old_pte, pte_t pte) in huge_ptep_modify_prot_commit() argument
147 old_pte, pte); in huge_ptep_modify_prot_commit()