Lines Matching refs:pte

35 #define pte_none(pte)		(!(pte_val(pte) & ~_PAGE_GLOBAL))  argument
36 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
41 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
84 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() argument
86 *p = pte; in set_pte()
141 static inline int pte_read(pte_t pte) in pte_read() argument
143 return pte.pte_low & _PAGE_READ; in pte_read()
146 static inline int pte_write(pte_t pte) in pte_write() argument
148 return (pte).pte_low & _PAGE_WRITE; in pte_write()
151 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
153 return (pte).pte_low & _PAGE_MODIFIED; in pte_dirty()
156 static inline int pte_young(pte_t pte) in pte_young() argument
158 return (pte).pte_low & _PAGE_ACCESSED; in pte_young()
161 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
163 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
164 return pte; in pte_wrprotect()
167 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
169 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean()
170 return pte; in pte_mkclean()
173 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
175 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold()
176 return pte; in pte_mkold()
179 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
181 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
182 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
183 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite()
184 return pte; in pte_mkwrite()
187 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
189 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
190 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
191 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
192 return pte; in pte_mkdirty()
195 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
197 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
198 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung()
199 pte_val(pte) |= _PAGE_VALID; in pte_mkyoung()
200 return pte; in pte_mkyoung()
240 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
242 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
250 pte_t *pte);