Lines Matching full:old

91 	pte_t old;  in ptep_flush_direct()  local
93 old = *ptep; in ptep_flush_direct()
94 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct()
95 return old; in ptep_flush_direct()
103 return old; in ptep_flush_direct()
110 pte_t old; in ptep_flush_lazy() local
112 old = *ptep; in ptep_flush_lazy()
113 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy()
114 return old; in ptep_flush_lazy()
123 return old; in ptep_flush_lazy()
130 unsigned long old; in pgste_get_lock() local
135 " nihh %0,0xff7f\n" /* clear PCL bit in old */ in pgste_get_lock()
139 : "=&d" (old), "=&d" (new), "=Q" (ptep[PTRS_PER_PTE]) in pgste_get_lock()
269 pgste_t pgste, pte_t old, pte_t new) in ptep_xchg_commit() argument
272 if (pte_val(old) & _PAGE_INVALID) in ptep_xchg_commit()
275 pgste = pgste_update_all(old, pgste, mm); in ptep_xchg_commit()
278 old = set_pte_bit(old, __pgprot(_PAGE_UNUSED)); in ptep_xchg_commit()
285 return old; in ptep_xchg_commit()
292 pte_t old; in ptep_xchg_direct() local
298 old = ptep_flush_direct(mm, addr, ptep, nodat); in ptep_xchg_direct()
299 old = ptep_xchg_commit(mm, addr, ptep, pgste, old, new); in ptep_xchg_direct()
301 return old; in ptep_xchg_direct()
334 pte_t old; in ptep_xchg_lazy() local
340 old = ptep_flush_lazy(mm, addr, ptep, nodat); in ptep_xchg_lazy()
341 old = ptep_xchg_commit(mm, addr, ptep, pgste, old, new); in ptep_xchg_lazy()
343 return old; in ptep_xchg_lazy()
351 pte_t old; in ptep_modify_prot_start() local
358 old = ptep_flush_lazy(mm, addr, ptep, nodat); in ptep_modify_prot_start()
360 pgste = pgste_update_all(old, pgste, mm); in ptep_modify_prot_start()
363 return old; in ptep_modify_prot_start()
419 pmd_t old; in pmdp_flush_direct() local
421 old = *pmdp; in pmdp_flush_direct()
422 if (pmd_val(old) & _SEGMENT_ENTRY_INVALID) in pmdp_flush_direct()
423 return old; in pmdp_flush_direct()
431 return old; in pmdp_flush_direct()
437 pmd_t old; in pmdp_flush_lazy() local
439 old = *pmdp; in pmdp_flush_lazy()
440 if (pmd_val(old) & _SEGMENT_ENTRY_INVALID) in pmdp_flush_lazy()
441 return old; in pmdp_flush_lazy()
453 return old; in pmdp_flush_lazy()
493 pmd_t old; in pmdp_xchg_direct() local
496 old = pmdp_flush_direct(mm, addr, pmdp); in pmdp_xchg_direct()
499 return old; in pmdp_xchg_direct()
506 pmd_t old; in pmdp_xchg_lazy() local
509 old = pmdp_flush_lazy(mm, addr, pmdp); in pmdp_xchg_lazy()
512 return old; in pmdp_xchg_lazy()
545 pud_t old; in pudp_flush_direct() local
547 old = *pudp; in pudp_flush_direct()
548 if (pud_val(old) & _REGION_ENTRY_INVALID) in pudp_flush_direct()
549 return old; in pudp_flush_direct()
557 return old; in pudp_flush_direct()
563 pud_t old; in pudp_xchg_direct() local
566 old = pudp_flush_direct(mm, addr, pudp); in pudp_xchg_direct()
569 return old; in pudp_xchg_direct()
816 pgste_t old, new; in set_guest_storage_key() local
855 new = old = pgste_get_lock(ptep); in set_guest_storage_key()
874 if ((pgste_val(new) ^ pgste_val(old)) & in set_guest_storage_key()
926 pgste_t old, new; in reset_guest_reference_bit() local
962 new = old = pgste_get_lock(ptep); in reset_guest_reference_bit()
973 cc |= (pgste_val(old) & (PGSTE_GR_BIT | PGSTE_GC_BIT)) >> 49; in reset_guest_reference_bit()
975 if ((pgste_val(new) ^ pgste_val(old)) & PGSTE_GR_BIT) in reset_guest_reference_bit()
1045 * @oldpgste: the old PGSTE will be saved there if the pointer is not NULL.