Lines Matching refs:ptep
591 pte_t *ptep, pte; in __gmap_zap() local
602 ptep = get_locked_pte(gmap->mm, vmaddr, &ptl); in __gmap_zap()
603 if (unlikely(!ptep)) in __gmap_zap()
605 pte = *ptep; in __gmap_zap()
609 pgste = pgste_get_lock(ptep); in __gmap_zap()
615 pte_clear(gmap->mm, vmaddr, ptep); in __gmap_zap()
617 pgste_set_unlock(ptep, pgste); in __gmap_zap()
619 pte_unmap_unlock(ptep, ptl); in __gmap_zap()
689 pte_t *ptep, entry; in gmap_ipte_notify() local
712 ptep = get_locked_pte(gmap->mm, addr, &ptl); in gmap_ipte_notify()
713 VM_BUG_ON(!ptep); in gmap_ipte_notify()
715 entry = *ptep; in gmap_ipte_notify()
717 pgste = pgste_get_lock(ptep); in gmap_ipte_notify()
719 pgste_set_unlock(ptep, pgste); in gmap_ipte_notify()
723 pte_unmap_unlock(ptep, ptl); in gmap_ipte_notify()
767 pte_t *ptep; in set_guest_storage_key() local
771 ptep = get_locked_pte(mm, addr, &ptl); in set_guest_storage_key()
772 if (unlikely(!ptep)) { in set_guest_storage_key()
776 if (!(pte_val(*ptep) & _PAGE_INVALID) && in set_guest_storage_key()
777 (pte_val(*ptep) & _PAGE_PROTECT)) { in set_guest_storage_key()
778 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key()
786 new = old = pgste_get_lock(ptep); in set_guest_storage_key()
791 if (!(pte_val(*ptep) & _PAGE_INVALID)) { in set_guest_storage_key()
794 address = pte_val(*ptep) & PAGE_MASK; in set_guest_storage_key()
808 pgste_set_unlock(ptep, new); in set_guest_storage_key()
809 pte_unmap_unlock(ptep, ptl); in set_guest_storage_key()
819 pte_t *ptep; in get_guest_storage_key() local
824 ptep = get_locked_pte(mm, addr, &ptl); in get_guest_storage_key()
825 if (unlikely(!ptep)) { in get_guest_storage_key()
829 pgste = pgste_get_lock(ptep); in get_guest_storage_key()
831 if (pte_val(*ptep) & _PAGE_INVALID) { in get_guest_storage_key()
837 physaddr = pte_val(*ptep) & PAGE_MASK; in get_guest_storage_key()
847 pgste_set_unlock(ptep, pgste); in get_guest_storage_key()
848 pte_unmap_unlock(ptep, ptl); in get_guest_storage_key()
1317 pte_t *ptep; in pgtable_trans_huge_withdraw() local
1330 ptep = (pte_t *) pgtable; in pgtable_trans_huge_withdraw()
1331 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw()
1332 ptep++; in pgtable_trans_huge_withdraw()
1333 pte_val(*ptep) = _PAGE_INVALID; in pgtable_trans_huge_withdraw()