Lines Matching refs:pte
43 static inline int pte_write(pte_t pte) in pte_write() argument
45 return pte_val(pte) & _PAGE_RW; in pte_write()
48 static inline int pte_read(pte_t pte) { return 1; } in pte_read() argument
49 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
50 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() argument
51 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() argument
52 static inline bool pte_hashpte(pte_t pte) { return false; } in pte_hashpte() argument
53 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci() argument
54 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() argument
62 static inline int pte_protnone(pte_t pte) in pte_protnone() argument
64 return pte_present(pte) && !pte_user(pte); in pte_protnone()
73 static inline int pte_present(pte_t pte) in pte_present() argument
75 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
78 static inline bool pte_hw_valid(pte_t pte) in pte_hw_valid() argument
80 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid()
89 static inline bool pte_user(pte_t pte) in pte_user() argument
91 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user()
100 static inline bool pte_access_permitted(pte_t pte, bool write) in pte_access_permitted() argument
106 if (!pte_present(pte) || !pte_user(pte) || !pte_read(pte)) in pte_access_permitted()
109 if (write && !pte_write(pte)) in pte_access_permitted()
124 static inline unsigned long pte_pfn(pte_t pte) { in pte_pfn() argument
125 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn()
128 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() argument
130 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect()
133 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
135 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean()
138 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
140 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold()
143 static inline pte_t pte_mkspecial(pte_t pte) in pte_mkspecial() argument
145 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial()
149 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() argument
151 return __pte(pte_val(pte)); in pte_mkhuge()
156 static inline pte_t pte_mkprivileged(pte_t pte) in pte_mkprivileged() argument
158 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged()
163 static inline pte_t pte_mkuser(pte_t pte) in pte_mkuser() argument
165 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser()
169 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
171 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
178 pte_t pte);
186 pte_t *ptep, pte_t pte, int percpu) in __set_pte_at() argument
199 : "r" (pte) : "memory"); in __set_pte_at()
206 ptep->pte = ptep->pte1 = ptep->pte2 = ptep->pte3 = pte_val(pte); in __set_pte_at()
208 *ptep = pte; in __set_pte_at()