Lines Matching refs:pte

46 #define set_pte(ptep, pte)		native_set_pte(ptep, pte)  argument
47 #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte) argument
50 #define set_pte_atomic(ptep, pte) \ argument
51 native_set_pte_atomic(ptep, pte)
100 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
102 return pte_flags(pte) & _PAGE_DIRTY; in pte_dirty()
105 static inline int pte_young(pte_t pte) in pte_young() argument
107 return pte_flags(pte) & _PAGE_ACCESSED; in pte_young()
120 static inline int pte_write(pte_t pte) in pte_write() argument
122 return pte_flags(pte) & _PAGE_RW; in pte_write()
125 static inline int pte_huge(pte_t pte) in pte_huge() argument
127 return pte_flags(pte) & _PAGE_PSE; in pte_huge()
130 static inline int pte_global(pte_t pte) in pte_global() argument
132 return pte_flags(pte) & _PAGE_GLOBAL; in pte_global()
135 static inline int pte_exec(pte_t pte) in pte_exec() argument
137 return !(pte_flags(pte) & _PAGE_NX); in pte_exec()
140 static inline int pte_special(pte_t pte) in pte_special() argument
142 return pte_flags(pte) & _PAGE_SPECIAL; in pte_special()
145 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() argument
147 return (pte_val(pte) & PTE_PFN_MASK) >> PAGE_SHIFT; in pte_pfn()
160 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument
162 static inline int pmd_large(pmd_t pte) in pmd_large() argument
164 return pmd_flags(pte) & _PAGE_PSE; in pmd_large()
184 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags() argument
186 pteval_t v = native_pte_val(pte); in pte_set_flags()
191 static inline pte_t pte_clear_flags(pte_t pte, pteval_t clear) in pte_clear_flags() argument
193 pteval_t v = native_pte_val(pte); in pte_clear_flags()
198 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
200 return pte_clear_flags(pte, _PAGE_DIRTY); in pte_mkclean()
203 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
205 return pte_clear_flags(pte, _PAGE_ACCESSED); in pte_mkold()
208 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
210 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
213 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
215 return pte_clear_flags(pte, _PAGE_NX); in pte_mkexec()
218 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
220 return pte_set_flags(pte, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); in pte_mkdirty()
223 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
225 return pte_set_flags(pte, _PAGE_ACCESSED); in pte_mkyoung()
228 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
230 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite()
233 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() argument
235 return pte_set_flags(pte, _PAGE_PSE); in pte_mkhuge()
238 static inline pte_t pte_clrhuge(pte_t pte) in pte_clrhuge() argument
240 return pte_clear_flags(pte, _PAGE_PSE); in pte_clrhuge()
243 static inline pte_t pte_mkglobal(pte_t pte) in pte_mkglobal() argument
245 return pte_set_flags(pte, _PAGE_GLOBAL); in pte_mkglobal()
248 static inline pte_t pte_clrglobal(pte_t pte) in pte_clrglobal() argument
250 return pte_clear_flags(pte, _PAGE_GLOBAL); in pte_clrglobal()
253 static inline pte_t pte_mkspecial(pte_t pte) in pte_mkspecial() argument
255 return pte_set_flags(pte, _PAGE_SPECIAL); in pte_mkspecial()
308 static inline int pte_soft_dirty(pte_t pte) in pte_soft_dirty() argument
310 return pte_flags(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty()
318 static inline pte_t pte_mksoft_dirty(pte_t pte) in pte_mksoft_dirty() argument
320 return pte_set_flags(pte, _PAGE_SOFT_DIRTY); in pte_mksoft_dirty()
328 static inline pte_t pte_clear_soft_dirty(pte_t pte) in pte_clear_soft_dirty() argument
330 return pte_clear_flags(pte, _PAGE_SOFT_DIRTY); in pte_clear_soft_dirty()
366 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
368 pteval_t val = pte_val(pte); in pte_modify()
452 static inline int pte_none(pte_t pte) in pte_none() argument
454 return !pte.pte; in pte_none()
460 return a.pte == b.pte; in pte_same()
481 static inline int pte_hidden(pte_t pte) in pte_hidden() argument
483 return pte_flags(pte) & _PAGE_HIDDEN; in pte_hidden()
502 static inline int pte_protnone(pte_t pte) in pte_protnone() argument
504 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone()
715 pte_t *ptep , pte_t pte) in native_set_pte_at() argument
717 native_set_pte(ptep, pte); in native_set_pte_at()
770 pte_t pte = native_ptep_get_and_clear(ptep); in ptep_get_and_clear() local
772 return pte; in ptep_get_and_clear()
780 pte_t pte; in ptep_get_and_clear_full() local
786 pte = native_local_ptep_get_and_clear(ptep); in ptep_get_and_clear_full()
788 pte = ptep_get_and_clear(mm, addr, ptep); in ptep_get_and_clear_full()
790 return pte; in ptep_get_and_clear_full()
797 clear_bit(_PAGE_BIT_RW, (unsigned long *)&ptep->pte); in ptep_set_wrprotect()
889 static inline pte_t pte_swp_mksoft_dirty(pte_t pte) in pte_swp_mksoft_dirty() argument
891 return pte_set_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_mksoft_dirty()
894 static inline int pte_swp_soft_dirty(pte_t pte) in pte_swp_soft_dirty() argument
896 return pte_flags(pte) & _PAGE_SWP_SOFT_DIRTY; in pte_swp_soft_dirty()
899 static inline pte_t pte_swp_clear_soft_dirty(pte_t pte) in pte_swp_clear_soft_dirty() argument
901 return pte_clear_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_clear_soft_dirty()