Lines Matching refs:pte
39 #define set_pte(ptep, pte) native_set_pte(ptep, pte) argument
40 #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte) argument
43 #define set_pte_atomic(ptep, pte) \ argument
44 native_set_pte_atomic(ptep, pte)
93 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
95 return pte_flags(pte) & _PAGE_DIRTY; in pte_dirty()
98 static inline int pte_young(pte_t pte) in pte_young() argument
100 return pte_flags(pte) & _PAGE_ACCESSED; in pte_young()
113 static inline int pte_write(pte_t pte) in pte_write() argument
115 return pte_flags(pte) & _PAGE_RW; in pte_write()
118 static inline int pte_huge(pte_t pte) in pte_huge() argument
120 return pte_flags(pte) & _PAGE_PSE; in pte_huge()
123 static inline int pte_global(pte_t pte) in pte_global() argument
125 return pte_flags(pte) & _PAGE_GLOBAL; in pte_global()
128 static inline int pte_exec(pte_t pte) in pte_exec() argument
130 return !(pte_flags(pte) & _PAGE_NX); in pte_exec()
133 static inline int pte_special(pte_t pte) in pte_special() argument
135 return pte_flags(pte) & _PAGE_SPECIAL; in pte_special()
138 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() argument
140 return (pte_val(pte) & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_pfn()
153 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument
155 static inline int pmd_large(pmd_t pte) in pmd_large() argument
157 return pmd_flags(pte) & _PAGE_PSE; in pmd_large()
177 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags() argument
179 pteval_t v = native_pte_val(pte); in pte_set_flags()
184 static inline pte_t pte_clear_flags(pte_t pte, pteval_t clear) in pte_clear_flags() argument
186 pteval_t v = native_pte_val(pte); in pte_clear_flags()
191 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
193 return pte_clear_flags(pte, _PAGE_DIRTY); in pte_mkclean()
196 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
198 return pte_clear_flags(pte, _PAGE_ACCESSED); in pte_mkold()
201 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
203 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
206 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
208 return pte_clear_flags(pte, _PAGE_NX); in pte_mkexec()
211 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
213 return pte_set_flags(pte, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); in pte_mkdirty()
216 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
218 return pte_set_flags(pte, _PAGE_ACCESSED); in pte_mkyoung()
221 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
223 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite()
226 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() argument
228 return pte_set_flags(pte, _PAGE_PSE); in pte_mkhuge()
231 static inline pte_t pte_clrhuge(pte_t pte) in pte_clrhuge() argument
233 return pte_clear_flags(pte, _PAGE_PSE); in pte_clrhuge()
236 static inline pte_t pte_mkglobal(pte_t pte) in pte_mkglobal() argument
238 return pte_set_flags(pte, _PAGE_GLOBAL); in pte_mkglobal()
241 static inline pte_t pte_clrglobal(pte_t pte) in pte_clrglobal() argument
243 return pte_clear_flags(pte, _PAGE_GLOBAL); in pte_clrglobal()
246 static inline pte_t pte_mkspecial(pte_t pte) in pte_mkspecial() argument
248 return pte_set_flags(pte, _PAGE_SPECIAL); in pte_mkspecial()
301 static inline int pte_soft_dirty(pte_t pte) in pte_soft_dirty() argument
303 return pte_flags(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty()
311 static inline pte_t pte_mksoft_dirty(pte_t pte) in pte_mksoft_dirty() argument
313 return pte_set_flags(pte, _PAGE_SOFT_DIRTY); in pte_mksoft_dirty()
349 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
351 pteval_t val = pte_val(pte); in pte_modify()
427 static inline int pte_none(pte_t pte) in pte_none() argument
429 return !pte.pte; in pte_none()
435 return a.pte == b.pte; in pte_same()
456 static inline int pte_hidden(pte_t pte) in pte_hidden() argument
458 return pte_flags(pte) & _PAGE_HIDDEN; in pte_hidden()
477 static inline int pte_protnone(pte_t pte) in pte_protnone() argument
479 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone()
688 pte_t *ptep , pte_t pte) in native_set_pte_at() argument
690 native_set_pte(ptep, pte); in native_set_pte_at()
743 pte_t pte = native_ptep_get_and_clear(ptep); in ptep_get_and_clear() local
745 return pte; in ptep_get_and_clear()
753 pte_t pte; in ptep_get_and_clear_full() local
759 pte = native_local_ptep_get_and_clear(ptep); in ptep_get_and_clear_full()
761 pte = ptep_get_and_clear(mm, addr, ptep); in ptep_get_and_clear_full()
763 return pte; in ptep_get_and_clear_full()
770 clear_bit(_PAGE_BIT_RW, (unsigned long *)&ptep->pte); in ptep_set_wrprotect()
862 static inline pte_t pte_swp_mksoft_dirty(pte_t pte) in pte_swp_mksoft_dirty() argument
864 return pte_set_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_mksoft_dirty()
867 static inline int pte_swp_soft_dirty(pte_t pte) in pte_swp_soft_dirty() argument
869 return pte_flags(pte) & _PAGE_SWP_SOFT_DIRTY; in pte_swp_soft_dirty()
872 static inline pte_t pte_swp_clear_soft_dirty(pte_t pte) in pte_swp_clear_soft_dirty() argument
874 return pte_clear_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_clear_soft_dirty()