Lines Matching refs:pte_val
226 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
251 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))
253 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID)
256 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \
257 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE))
267 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write()
268 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
269 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
273 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect()
275 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean()
277 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
279 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
281 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
283 { pte_val(pte) |= _PAGE_WRITABLE; return pte; } in pte_mkwrite()
294 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT)
295 #define pte_same(a,b) (pte_val(a) == pte_val(b))
302 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
396 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })