Lines Matching refs:pte_val
224 #define pte_none(x) (!pte_val(x))
225 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
226 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0)
238 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read()
239 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
240 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
241 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
242 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
248 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
254 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect()
260 pte_val(pte) &= ~(_PAGE_EXEC); in pte_exprotect()
266 pte_val(pte) &= ~(_PAGE_DIRTY); in pte_mkclean()
272 pte_val(pte) &= ~(_PAGE_ACCESSED); in pte_mkold()
278 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
284 pte_val(pte) |= _PAGE_READ; in pte_mkread()
290 pte_val(pte) |= _PAGE_EXEC; in pte_mkexec()
296 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
302 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
321 pte_val(pte) = __pa(page) | pgprot_val(pgprot); in __mk_pte()
331 pte_val(__pte) = (physpage) + pgprot_val(pgprot); \
337 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
352 return (unsigned long)__va(pte_val(pte) & PAGE_MASK); in __pte_page()
410 __FILE__, __LINE__, &(e), pte_val(e))
443 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })