Lines Matching refs:pte

31 static inline int pte_none(pte_t pte)    { return !(pte_val(pte) & ~_PAGE_GLOBAL); }  in pte_none()  argument
33 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
35 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect()
36 return pte; in pte_wrprotect()
39 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
41 pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); in pte_rdprotect()
42 return pte; in pte_rdprotect()
45 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
47 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_SILENT_WRITE); in pte_mkclean()
48 return pte; in pte_mkclean()
51 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
53 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_SILENT_READ); in pte_mkold()
54 return pte; in pte_mkold()
57 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
59 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
60 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
61 pte_val(pte) |= _PAGE_SILENT_WRITE; in pte_mkwrite()
62 return pte; in pte_mkwrite()
65 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
67 pte_val(pte) |= _PAGE_READ; in pte_mkread()
68 if (pte_val(pte) & _PAGE_ACCESSED) in pte_mkread()
69 pte_val(pte) |= _PAGE_SILENT_READ; in pte_mkread()
70 return pte; in pte_mkread()
73 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
75 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
76 if (pte_val(pte) & _PAGE_WRITE) in pte_mkdirty()
77 pte_val(pte) |= _PAGE_SILENT_WRITE; in pte_mkdirty()
78 return pte; in pte_mkdirty()
98 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
100 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
101 if (pte_val(pte) & _PAGE_READ) in pte_mkyoung()
102 pte_val(pte) |= _PAGE_SILENT_READ; in pte_mkyoung()
103 return pte; in pte_mkyoung()
142 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
144 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()