Lines Matching refs:pte_val
109 __FILE__, __LINE__, pte_val(e))
221 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0)
222 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
232 ((pte_val(x) - memory_start) >> PAGE_SHIFT))
235 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET)
245 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
246 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
247 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
248 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
249 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
251 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache()
252 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache()
255 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
257 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
259 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect()
261 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } in pte_mkclean()
263 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
266 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
268 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
270 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
272 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
274 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
284 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys()
291 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
298 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
412 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 2 })
417 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; in pte_swp_exclusive()
422 pte_val(pte) |= _PAGE_SWP_EXCLUSIVE; in pte_swp_mkexclusive()
428 pte_val(pte) &= ~_PAGE_SWP_EXCLUSIVE; in pte_swp_clear_exclusive()