Lines Matching refs:pte_val

61 	return pte_val(pte) & _PAGE_USER;  in pte_user()
229 (unsigned long long)pte_val(e))
309 old = pte_val(*p); in pte_update()
354 unsigned long set = pte_val(entry) & in __ptep_set_access_flags()
363 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0)
386 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 })
391 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; in pte_swp_exclusive()
396 return __pte(pte_val(pte) | _PAGE_SWP_EXCLUSIVE); in pte_swp_mkexclusive()
401 return __pte(pte_val(pte) & ~_PAGE_SWP_EXCLUSIVE); in pte_swp_clear_exclusive()
405 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write()
407 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty()
408 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young()
409 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special()
410 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
411 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
415 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
420 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid()
425 return !!(pte_val(pte) & _PAGE_HASHPTE); in pte_hashpte()
430 return !!(pte_val(pte) & _PAGE_NO_CACHE); in pte_ci()
468 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
473 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
478 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean()
483 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold()
488 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
498 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma()
503 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty()
508 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung()
513 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial()
523 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
528 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
533 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
564 *ptep = __pte((pte_val(*ptep) & _PAGE_HASHPTE) | in __set_pte_at()
565 (pte_val(pte) & ~_PAGE_HASHPTE)); in __set_pte_at()
567 if (pte_val(*ptep) & _PAGE_HASHPTE) in __set_pte_at()
574 pte_update(mm, addr, ptep, ~_PAGE_HASHPTE, pte_val(pte), 0); in __set_pte_at()