Lines Matching refs:pte

235 #define pte_none(pte)		((pte_val(pte) & ~_PTE_NONE_MASK) == 0)  argument
236 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
259 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() argument
260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() argument
261 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() argument
262 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
263 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
265 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache() argument
266 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache() argument
268 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect() argument
269 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
270 static inline pte_t pte_wrprotect(pte_t pte) \ in pte_wrprotect() argument
271 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
272 static inline pte_t pte_exprotect(pte_t pte) \ in pte_exprotect() argument
273 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect()
274 static inline pte_t pte_mkclean(pte_t pte) \ in pte_mkclean() argument
275 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } in pte_mkclean()
276 static inline pte_t pte_mkold(pte_t pte) \ in pte_mkold() argument
277 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
279 static inline pte_t pte_mkread(pte_t pte) \ in pte_mkread() argument
280 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
281 static inline pte_t pte_mkexec(pte_t pte) \ in pte_mkexec() argument
282 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
283 static inline pte_t pte_mkwrite(pte_t pte) \ in pte_mkwrite() argument
284 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
285 static inline pte_t pte_mkdirty(pte_t pte) \ in pte_mkdirty() argument
286 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
287 static inline pte_t pte_mkyoung(pte_t pte) \ in pte_mkyoung() argument
288 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
297 pte_t pte; in mk_pte_phys() local
298 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys()
299 return pte; in mk_pte_phys()
304 pte_t pte; \
305 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
307 pte; \
310 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
312 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
313 return pte; in pte_modify()
348 pte_t *ptep, pte_t pte) in set_pte() argument
350 *ptep = pte; in set_pte()
354 pte_t *ptep, pte_t pte) in set_pte_at() argument
356 *ptep = pte; in set_pte_at()
419 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 2 }) argument