Lines Matching refs:pte

103 static inline int pte_write(pte_t pte)		\  in pte_write()  argument
104 { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
105 static inline int pte_dirty(pte_t pte) \ in pte_dirty() argument
106 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
107 static inline int pte_young(pte_t pte) \ in pte_young() argument
108 { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
121 static inline int pte_none(pte_t pte) in pte_none() argument
123 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); in pte_none()
126 static inline int pte_present(pte_t pte) \ in pte_present() argument
127 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present()
133 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
135 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect()
136 return pte; in pte_wrprotect()
139 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
141 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean()
142 return pte; in pte_mkclean()
145 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
147 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold()
148 return pte; in pte_mkold()
151 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
153 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
154 return pte; in pte_mkwrite()
157 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
159 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
160 return pte; in pte_mkdirty()
163 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
165 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
166 return pte; in pte_mkyoung()
169 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
173 pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask); in pte_modify()
174 return pte; in pte_modify()
188 #define pte_pfn(pte) (pte_val(pte) & 0xfffff) argument
190 #define pte_page(pte) (pfn_to_page(pte_pfn(pte))) argument
268 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
276 unsigned long address, pte_t *pte);