Lines Matching refs:pte_val
109 __FILE__, __LINE__, pte_val(e))
235 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0)
236 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
246 ((pte_val(x) - memory_start) >> PAGE_SHIFT))
249 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET)
259 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
261 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
262 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
263 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
265 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache()
266 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache()
269 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
271 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
273 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect()
275 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } in pte_mkclean()
277 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
280 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
282 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
284 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
286 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
288 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
298 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys()
305 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
312 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
419 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 2 })