Lines Matching refs:pte_val

97 	pr_err("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
269 { pte_t pte; pte_val(pte) = ((type & 0x7f) << 16) | (offset << 24); return pte; } in mk_swap_pte()
273 #define __swp_entry(type, offset) ((swp_entry_t) { pte_val(mk_swap_pte((type), (offset))) })
274 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
281 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; in pte_swp_exclusive()
286 pte_val(pte) |= _PAGE_SWP_EXCLUSIVE; in pte_swp_mkexclusive()
292 pte_val(pte) &= ~_PAGE_SWP_EXCLUSIVE; in pte_swp_clear_exclusive()
298 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
299 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE))
300 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC)
305 if (pte_val(pteval) & _PAGE_GLOBAL) { in set_pte()
332 pte_val(*buddy) = pte_val(*buddy) | _PAGE_GLOBAL; in set_pte()
346 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) in pte_clear()
363 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
364 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
365 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } in pte_dirty()
369 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold()
375 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
381 pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_MODIFIED); in pte_mkclean()
387 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
388 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
389 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
395 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
396 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
397 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite()
403 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
407 static inline int pte_huge(pte_t pte) { return pte_val(pte) & _PAGE_HUGE; } in pte_huge()
411 pte_val(pte) |= _PAGE_HUGE; in pte_mkhuge()
416 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
417 static inline pte_t pte_mkspecial(pte_t pte) { pte_val(pte) |= _PAGE_SPECIAL; return pte; } in pte_mkspecial()
423 if (pte_val(a) & _PAGE_PRESENT) in pte_accessible()
426 if ((pte_val(a) & _PAGE_PROTNONE) && in pte_accessible()
441 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
586 return (pte_val(pte) & _PAGE_PROTNONE); in pte_protnone()