Lines Matching full:pte
27 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, (e).pte_low)
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
85 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() argument
87 *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_novma(pte_t pte) in pte_mkwrite_novma() argument
181 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite_novma()
182 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite_novma()
183 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite_novma()
184 return pte; in pte_mkwrite_novma()
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()
203 static inline int pte_swp_exclusive(pte_t pte) in pte_swp_exclusive() argument
205 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; in pte_swp_exclusive()
208 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive() argument
210 pte_val(pte) |= _PAGE_SWP_EXCLUSIVE; in pte_swp_mkexclusive()
211 return pte; in pte_swp_mkexclusive()
214 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive() argument
216 pte_val(pte) &= ~_PAGE_SWP_EXCLUSIVE; in pte_swp_clear_exclusive()
217 return pte; in pte_swp_clear_exclusive()
257 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
259 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
267 unsigned long address, pte_t *pte, unsigned int nr);