Lines Matching refs:pte_t

29 extern pte_t *va_to_pte(unsigned long address);
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()
268 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect()
270 static inline pte_t pte_wrprotect(pte_t pte) \ in pte_wrprotect()
272 static inline pte_t pte_exprotect(pte_t pte) \ in pte_exprotect()
274 static inline pte_t pte_mkclean(pte_t pte) \ in pte_mkclean()
276 static inline pte_t pte_mkold(pte_t pte) \ in pte_mkold()
279 static inline pte_t pte_mkread(pte_t pte) \ in pte_mkread()
281 static inline pte_t pte_mkexec(pte_t pte) \ in pte_mkexec()
283 static inline pte_t pte_mkwrite(pte_t pte) \ in pte_mkwrite()
285 static inline pte_t pte_mkdirty(pte_t pte) \ in pte_mkdirty()
287 static inline pte_t pte_mkyoung(pte_t pte) \ in pte_mkyoung()
295 static inline pte_t mk_pte_phys(phys_addr_t physpage, pgprot_t pgprot) in mk_pte_phys()
297 pte_t pte; in mk_pte_phys()
304 pte_t pte; \
310 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
324 static inline unsigned long pte_update(pte_t *p, unsigned long clr, in pte_update()
348 pte_t *ptep, pte_t pte) in set_pte()
354 pte_t *ptep, pte_t pte) in set_pte_at()
361 unsigned long address, pte_t *ptep) in ptep_test_and_clear_young()
367 unsigned long addr, pte_t *ptep) in ptep_test_and_clear_dirty()
374 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, in ptep_get_and_clear()
375 unsigned long addr, pte_t *ptep) in ptep_get_and_clear()
387 unsigned long addr, pte_t *ptep) in ptep_mkdirty()
420 #define __swp_entry_to_pte(x) ((pte_t) { (x).val << 2 })