Lines Matching refs:pte

218 #define pte_none(pte)		((pte_val(pte) & ~_PTE_NONE_MASK) == 0)  argument
219 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
242 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() argument
243 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() argument
244 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() argument
245 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() argument
246 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() argument
248 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache() argument
249 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache() argument
251 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect() argument
252 { pte_val(pte) &= ~_PAGE_USER; return pte; } in pte_rdprotect()
253 static inline pte_t pte_wrprotect(pte_t pte) \ in pte_wrprotect() argument
254 { pte_val(pte) &= ~(_PAGE_RW | _PAGE_HWWRITE); return pte; } in pte_wrprotect()
255 static inline pte_t pte_exprotect(pte_t pte) \ in pte_exprotect() argument
256 { pte_val(pte) &= ~_PAGE_EXEC; return pte; } in pte_exprotect()
257 static inline pte_t pte_mkclean(pte_t pte) \ in pte_mkclean() argument
258 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HWWRITE); return pte; } in pte_mkclean()
259 static inline pte_t pte_mkold(pte_t pte) \ in pte_mkold() argument
260 { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
262 static inline pte_t pte_mkread(pte_t pte) \ in pte_mkread() argument
263 { pte_val(pte) |= _PAGE_USER; return pte; } in pte_mkread()
264 static inline pte_t pte_mkexec(pte_t pte) \ in pte_mkexec() argument
265 { pte_val(pte) |= _PAGE_USER | _PAGE_EXEC; return pte; } in pte_mkexec()
266 static inline pte_t pte_mkwrite(pte_t pte) \ in pte_mkwrite() argument
267 { pte_val(pte) |= _PAGE_RW; return pte; } in pte_mkwrite()
268 static inline pte_t pte_mkdirty(pte_t pte) \ in pte_mkdirty() argument
269 { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
270 static inline pte_t pte_mkyoung(pte_t pte) \ in pte_mkyoung() argument
271 { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
280 pte_t pte; in mk_pte_phys() local
281 pte_val(pte) = physpage | pgprot_val(pgprot); in mk_pte_phys()
282 return pte; in mk_pte_phys()
287 pte_t pte; \
288 pte_val(pte) = (((page - mem_map) << PAGE_SHIFT) + memory_start) | \
290 pte; \
293 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
295 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
296 return pte; in pte_modify()
331 pte_t *ptep, pte_t pte) in set_pte() argument
333 *ptep = pte; in set_pte()
337 pte_t *ptep, pte_t pte) in set_pte_at() argument
339 *ptep = pte; in set_pte_at()
405 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 2 }) argument