Lines Matching refs:ptep

627 	pte_t *ptep, pte;  in __gmap_zap()  local
638 ptep = get_locked_pte(gmap->mm, vmaddr, &ptl); in __gmap_zap()
639 if (unlikely(!ptep)) in __gmap_zap()
641 pte = *ptep; in __gmap_zap()
645 pgste = pgste_get_lock(ptep); in __gmap_zap()
651 pte_clear(gmap->mm, vmaddr, ptep); in __gmap_zap()
653 pgste_set_unlock(ptep, pgste); in __gmap_zap()
655 pte_unmap_unlock(ptep, ptl); in __gmap_zap()
725 pte_t *ptep, entry; in gmap_ipte_notify() local
748 ptep = get_locked_pte(gmap->mm, addr, &ptl); in gmap_ipte_notify()
749 VM_BUG_ON(!ptep); in gmap_ipte_notify()
751 entry = *ptep; in gmap_ipte_notify()
753 pgste = pgste_get_lock(ptep); in gmap_ipte_notify()
755 pgste_set_unlock(ptep, pgste); in gmap_ipte_notify()
759 pte_unmap_unlock(ptep, ptl); in gmap_ipte_notify()
837 pte_t *ptep; in set_guest_storage_key() local
841 ptep = get_locked_pte(mm, addr, &ptl); in set_guest_storage_key()
842 if (unlikely(!ptep)) { in set_guest_storage_key()
846 if (!(pte_val(*ptep) & _PAGE_INVALID) && in set_guest_storage_key()
847 (pte_val(*ptep) & _PAGE_PROTECT)) { in set_guest_storage_key()
848 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key()
856 new = old = pgste_get_lock(ptep); in set_guest_storage_key()
861 if (!(pte_val(*ptep) & _PAGE_INVALID)) { in set_guest_storage_key()
864 address = pte_val(*ptep) & PAGE_MASK; in set_guest_storage_key()
878 pgste_set_unlock(ptep, new); in set_guest_storage_key()
879 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key()
889 pte_t *ptep; in get_guest_storage_key() local
894 ptep = get_locked_pte(mm, addr, &ptl); in get_guest_storage_key()
895 if (unlikely(!ptep)) { in get_guest_storage_key()
899 pgste = pgste_get_lock(ptep); in get_guest_storage_key()
901 if (pte_val(*ptep) & _PAGE_INVALID) { in get_guest_storage_key()
907 physaddr = pte_val(*ptep) & PAGE_MASK; in get_guest_storage_key()
917 pgste_set_unlock(ptep, pgste); in get_guest_storage_key()
918 pte_unmap_unlock(ptep, ptl); in get_guest_storage_key()
1393 pte_t *ptep; in pgtable_trans_huge_withdraw() local
1406 ptep = (pte_t *) pgtable; in pgtable_trans_huge_withdraw()
1407 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw()
1408 ptep++; in pgtable_trans_huge_withdraw()
1409 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw()