Lines Matching refs:pte
38 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument
39 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
54 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
104 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() argument
106 *p = pte; in set_pte()
161 static inline int pte_read(pte_t pte) in pte_read() argument
163 return pte.pte_low & _PAGE_READ; in pte_read()
166 static inline int pte_write(pte_t pte) in pte_write() argument
168 return (pte).pte_low & _PAGE_WRITE; in pte_write()
171 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
173 return (pte).pte_low & _PAGE_MODIFIED; in pte_dirty()
176 static inline int pte_young(pte_t pte) in pte_young() argument
178 return (pte).pte_low & _PAGE_ACCESSED; in pte_young()
181 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
183 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
184 return pte; in pte_wrprotect()
187 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
189 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean()
190 return pte; in pte_mkclean()
193 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
195 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold()
196 return pte; in pte_mkold()
199 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
201 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
202 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
203 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite()
204 return pte; in pte_mkwrite()
207 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
209 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
210 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
211 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
212 return pte; in pte_mkdirty()
215 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
217 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
218 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung()
219 pte_val(pte) |= _PAGE_VALID; in pte_mkyoung()
220 return pte; in pte_mkyoung()
260 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
262 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
270 pte_t *pte);