Lines Matching refs:pte_t

41 #define __swp_entry_to_pte(x)	((pte_t) { (x).val })
78 extern pte_t *va_to_pte(unsigned long address);
85 static inline int pte_special(pte_t pte) { return 0; } in pte_special()
87 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial()
332 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
333 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
334 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
335 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
336 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
338 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache()
339 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache()
341 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect()
343 static inline pte_t pte_wrprotect(pte_t pte) \ in pte_wrprotect()
345 static inline pte_t pte_exprotect(pte_t pte) \ in pte_exprotect()
347 static inline pte_t pte_mkclean(pte_t pte) \ in pte_mkclean()
349 static inline pte_t pte_mkold(pte_t pte) \ in pte_mkold()
352 static inline pte_t pte_mkread(pte_t pte) \ in pte_mkread()
354 static inline pte_t pte_mkexec(pte_t pte) \ in pte_mkexec()
356 static inline pte_t pte_mkwrite(pte_t pte) \ in pte_mkwrite()
358 static inline pte_t pte_mkdirty(pte_t pte) \ in pte_mkdirty()
360 static inline pte_t pte_mkyoung(pte_t pte) \ in pte_mkyoung()
368 static inline pte_t mk_pte_phys(phys_addr_t physpage, pgprot_t pgprot) in mk_pte_phys()
370 pte_t pte; in mk_pte_phys()
377 pte_t pte; \
383 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
397 static inline unsigned long pte_update(pte_t *p, unsigned long clr, in pte_update()
421 pte_t *ptep, pte_t pte) in set_pte()
427 pte_t *ptep, pte_t pte) in set_pte_at()
434 unsigned long address, pte_t *ptep) in ptep_test_and_clear_young()
440 unsigned long addr, pte_t *ptep) in ptep_test_and_clear_dirty()
447 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, in ptep_get_and_clear()
448 unsigned long addr, pte_t *ptep) in ptep_get_and_clear()
460 unsigned long addr, pte_t *ptep) in ptep_mkdirty()
492 ((pte_t *) pmd_page_kernel(*(dir)) + pte_index(addr))
494 ((pte_t *) kmap_atomic(pmd_page(*(dir))) + pte_index(addr))
511 #define __swp_entry_to_pte(x) ((pte_t) { (x).val << 2 })