Lines Matching refs:pte

20 static inline int pte_none(pte_t pte)    { return !(pte_val(pte) & ~_PAGE_GLOBAL); }  in pte_none()  argument
28 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
30 (pte).pte_low &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); in pte_wrprotect()
31 (pte).pte_high &= ~_PAGE_SILENT_WRITE; in pte_wrprotect()
32 return pte; in pte_wrprotect()
35 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() argument
37 (pte).pte_low &= ~(_PAGE_READ | _PAGE_SILENT_READ); in pte_rdprotect()
38 (pte).pte_high &= ~_PAGE_SILENT_READ; in pte_rdprotect()
39 return pte; in pte_rdprotect()
42 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
44 (pte).pte_low &= ~(_PAGE_MODIFIED|_PAGE_SILENT_WRITE); in pte_mkclean()
45 (pte).pte_high &= ~_PAGE_SILENT_WRITE; in pte_mkclean()
46 return pte; in pte_mkclean()
49 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
51 (pte).pte_low &= ~(_PAGE_ACCESSED|_PAGE_SILENT_READ); in pte_mkold()
52 (pte).pte_high &= ~_PAGE_SILENT_READ; in pte_mkold()
53 return pte; in pte_mkold()
56 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
58 (pte).pte_low |= _PAGE_WRITE; in pte_mkwrite()
59 if ((pte).pte_low & _PAGE_MODIFIED) { in pte_mkwrite()
60 (pte).pte_low |= _PAGE_SILENT_WRITE; in pte_mkwrite()
61 (pte).pte_high |= _PAGE_SILENT_WRITE; in pte_mkwrite()
63 return pte; in pte_mkwrite()
66 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() argument
68 (pte).pte_low |= _PAGE_READ; in pte_mkread()
69 if ((pte).pte_low & _PAGE_ACCESSED) { in pte_mkread()
70 (pte).pte_low |= _PAGE_SILENT_READ; in pte_mkread()
71 (pte).pte_high |= _PAGE_SILENT_READ; in pte_mkread()
73 return pte; in pte_mkread()
76 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
78 (pte).pte_low |= _PAGE_MODIFIED; in pte_mkdirty()
79 if ((pte).pte_low & _PAGE_WRITE) { in pte_mkdirty()
80 (pte).pte_low |= _PAGE_SILENT_WRITE; in pte_mkdirty()
81 (pte).pte_high |= _PAGE_SILENT_WRITE; in pte_mkdirty()
83 return pte; in pte_mkdirty()
103 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
105 (pte).pte_low |= _PAGE_ACCESSED; in pte_mkyoung()
106 if ((pte).pte_low & _PAGE_READ) in pte_mkyoung()
107 (pte).pte_low |= _PAGE_SILENT_READ; in pte_mkyoung()
108 (pte).pte_high |= _PAGE_SILENT_READ; in pte_mkyoung()
109 return pte; in pte_mkyoung()
119 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
121 pte.pte_low &= _PAGE_CHG_MASK; in pte_modify()
122 pte.pte_low |= pgprot_val(newprot); in pte_modify()
123 pte.pte_high |= pgprot_val(newprot) & 0x3f; in pte_modify()
124 return pte; in pte_modify()
145 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte() argument
147 ptep->pte_high = pte.pte_high; in set_pte()
149 ptep->pte_low = pte.pte_low; in set_pte()
151 if (pte_val(pte) & _PAGE_GLOBAL) { in set_pte()
165 pte_t pte; in __mk_pte() local
167 pte.pte_high = (page_nr << 6) | (pgprot_val(pgprot) & 0x3f); in __mk_pte()
168 pte.pte_low = pgprot_val(pgprot); in __mk_pte()
169 return pte; in __mk_pte()