Lines Matching refs:pte
36 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument
37 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
103 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() argument
105 *p = pte; in set_pte()
160 static inline int pte_read(pte_t pte) in pte_read() argument
162 return pte.pte_low & _PAGE_READ; in pte_read()
165 static inline int pte_write(pte_t pte) in pte_write() argument
167 return (pte).pte_low & _PAGE_WRITE; in pte_write()
170 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
172 return (pte).pte_low & _PAGE_MODIFIED; in pte_dirty()
175 static inline int pte_young(pte_t pte) in pte_young() argument
177 return (pte).pte_low & _PAGE_ACCESSED; in pte_young()
180 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
182 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
183 return pte; in pte_wrprotect()
186 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
188 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean()
189 return pte; in pte_mkclean()
192 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
194 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold()
195 return pte; in pte_mkold()
198 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
200 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
201 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
202 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite()
203 return pte; in pte_mkwrite()
206 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
208 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
209 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
210 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
211 return pte; in pte_mkdirty()
214 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
216 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
217 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung()
218 pte_val(pte) |= _PAGE_VALID; in pte_mkyoung()
219 return pte; in pte_mkyoung()
259 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
261 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
269 pte_t *pte);