Lines Matching refs:pte

102 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)  in pte_modify()  argument
104 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
105 return pte; in pte_modify()
115 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK)) argument
118 static inline int pte_none(pte_t pte) in pte_none() argument
120 return !pte_val(pte); in pte_none()
123 static inline int pte_present(pte_t pte) in pte_present() argument
125 return pte_val(pte) & CF_PAGE_VALID; in pte_present()
134 #define pte_pagenr(pte) ((__pte_page(pte) - PAGE_OFFSET) >> PAGE_SHIFT) argument
135 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument
156 static inline int pte_read(pte_t pte) in pte_read() argument
158 return pte_val(pte) & CF_PAGE_READABLE; in pte_read()
161 static inline int pte_write(pte_t pte) in pte_write() argument
163 return pte_val(pte) & CF_PAGE_WRITABLE; in pte_write()
166 static inline int pte_exec(pte_t pte) in pte_exec() argument
168 return pte_val(pte) & CF_PAGE_EXEC; in pte_exec()
171 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
173 return pte_val(pte) & CF_PAGE_DIRTY; in pte_dirty()
176 static inline int pte_young(pte_t pte) in pte_young() argument
178 return pte_val(pte) & CF_PAGE_ACCESSED; in pte_young()
181 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
183 pte_val(pte) &= ~CF_PAGE_WRITABLE; in pte_wrprotect()
184 return pte; in pte_wrprotect()
187 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
189 pte_val(pte) &= ~CF_PAGE_READABLE; in pte_rdprotect()
190 return pte; in pte_rdprotect()
193 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() argument
195 pte_val(pte) &= ~CF_PAGE_EXEC; in pte_exprotect()
196 return pte; in pte_exprotect()
199 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
201 pte_val(pte) &= ~CF_PAGE_DIRTY; in pte_mkclean()
202 return pte; in pte_mkclean()
205 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
207 pte_val(pte) &= ~CF_PAGE_ACCESSED; in pte_mkold()
208 return pte; in pte_mkold()
211 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
213 pte_val(pte) |= CF_PAGE_WRITABLE; in pte_mkwrite()
214 return pte; in pte_mkwrite()
217 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
219 pte_val(pte) |= CF_PAGE_READABLE; in pte_mkread()
220 return pte; in pte_mkread()
223 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
225 pte_val(pte) |= CF_PAGE_EXEC; in pte_mkexec()
226 return pte; in pte_mkexec()
229 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
231 pte_val(pte) |= CF_PAGE_DIRTY; in pte_mkdirty()
232 return pte; in pte_mkdirty()
235 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
237 pte_val(pte) |= CF_PAGE_ACCESSED; in pte_mkyoung()
238 return pte; in pte_mkyoung()
241 static inline pte_t pte_mknocache(pte_t pte) in pte_mknocache() argument
243 pte_val(pte) |= 0x80 | (pte_val(pte) & ~0x40); in pte_mknocache()
244 return pte; in pte_mknocache()
247 static inline pte_t pte_mkcache(pte_t pte) in pte_mkcache() argument
249 pte_val(pte) &= ~CF_PAGE_NOCACHE; in pte_mkcache()
250 return pte; in pte_mkcache()
263 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
270 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument