Lines Matching refs:pte_val
36 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
37 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
182 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
188 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean()
194 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold()
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()
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()
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()
261 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()