Home
last modified time | relevance | path

Searched refs:ptev (Results 1 – 6 of 6) sorted by relevance

/arch/powerpc/include/asm/nohash/
Dpgtable.h63 pte_basic_t ptev; in pte_wrprotect() local
65 ptev = pte_val(pte) & ~(_PAGE_RW | _PAGE_HWWRITE); in pte_wrprotect()
66 ptev |= _PAGE_RO; in pte_wrprotect()
67 return __pte(ptev); in pte_wrprotect()
82 pte_basic_t ptev; in pte_mkwrite() local
84 ptev = pte_val(pte) & ~_PAGE_RO; in pte_mkwrite()
85 ptev |= _PAGE_RW; in pte_mkwrite()
86 return __pte(ptev); in pte_mkwrite()
/arch/powerpc/mm/
Dhash64_64k.c24 unsigned long ptev = pte_val(rpte.pte); in __rpte_sub_valid() local
26 g_idx = (ptev & H_PAGE_COMBO_VALID) >> H_PAGE_F_GIX_SHIFT; in __rpte_sub_valid()
36 static unsigned long mark_subptegroup_valid(unsigned long ptev, unsigned long index) in mark_subptegroup_valid() argument
40 if (!(ptev & H_PAGE_COMBO)) in mark_subptegroup_valid()
41 return ptev; in mark_subptegroup_valid()
45 return ptev | (g_idx << H_PAGE_F_GIX_SHIFT); in mark_subptegroup_valid()
/arch/s390/mm/
Dpgtable.c677 unsigned long ptev; in ptep_zap_key() local
685 ptev = pte_val(*ptep); in ptep_zap_key()
686 if (!(ptev & _PAGE_INVALID) && (ptev & _PAGE_WRITE)) in ptep_zap_key()
687 page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 1); in ptep_zap_key()
/arch/x86/xen/
Dmmu_pv.c127 pte_t *pte, ptev; in make_lowmem_page_readonly() local
135 ptev = pte_wrprotect(*pte); in make_lowmem_page_readonly()
137 if (HYPERVISOR_update_va_mapping(address, ptev, 0)) in make_lowmem_page_readonly()
143 pte_t *pte, ptev; in make_lowmem_page_readwrite() local
151 ptev = pte_mkwrite(*pte); in make_lowmem_page_readwrite()
153 if (HYPERVISOR_update_va_mapping(address, ptev, 0)) in make_lowmem_page_readwrite()
/arch/powerpc/include/asm/book3s/64/
Dpgtable.h694 static inline bool check_pte_access(unsigned long access, unsigned long ptev) in check_pte_access() argument
699 if (access & ~ptev) in check_pte_access()
704 if ((access & _PAGE_PRIVILEGED) != (ptev & _PAGE_PRIVILEGED)) in check_pte_access()
/arch/s390/kvm/
Dpriv.c965 unsigned long gfn, hva, res, pgstev, ptev; in do_essa() local
981 nappended = pgste_perform_essa(vcpu->kvm->mm, hva, orc, &ptev, &pgstev); in do_essa()
994 if (ptev & _PAGE_INVALID) { in do_essa()