Lines Matching refs:pte_val
218 #define pte_none(x) (!pte_val(x))
219 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
220 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0)
232 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read()
233 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
234 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
235 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
236 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
240 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
246 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect()
252 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect()
258 pte_val(pte) &= ~(_PAGE_DIRTY); in pte_mkclean()
264 pte_val(pte) &= ~(_PAGE_ACCESSED); in pte_mkold()
270 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
276 pte_val(pte) |= _PAGE_READ; in pte_mkread()
282 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec()
288 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
294 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
313 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
323 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
329 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
344 return (unsigned long)__va(pte_val(pte) & PAGE_MASK); in __pte_page()
379 __FILE__, __LINE__, &(e), pte_val(e))
412 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })