Lines Matching refs:pte

65 #define set_pte(ptep, pte)		native_set_pte(ptep, pte)  argument
67 #define set_pte_atomic(ptep, pte) \ argument
68 native_set_pte_atomic(ptep, pte)
124 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
126 return pte_flags(pte) & _PAGE_DIRTY; in pte_dirty()
158 static inline int pte_young(pte_t pte) in pte_young() argument
160 return pte_flags(pte) & _PAGE_ACCESSED; in pte_young()
183 static inline int pte_write(pte_t pte) in pte_write() argument
185 return pte_flags(pte) & _PAGE_RW; in pte_write()
188 static inline int pte_huge(pte_t pte) in pte_huge() argument
190 return pte_flags(pte) & _PAGE_PSE; in pte_huge()
193 static inline int pte_global(pte_t pte) in pte_global() argument
195 return pte_flags(pte) & _PAGE_GLOBAL; in pte_global()
198 static inline int pte_exec(pte_t pte) in pte_exec() argument
200 return !(pte_flags(pte) & _PAGE_NX); in pte_exec()
203 static inline int pte_special(pte_t pte) in pte_special() argument
205 return pte_flags(pte) & _PAGE_SPECIAL; in pte_special()
212 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() argument
214 phys_addr_t pfn = pte_val(pte); in pte_pfn()
250 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument
253 static inline int pmd_large(pmd_t pte) in pmd_large() argument
255 return pmd_flags(pte) & _PAGE_PSE; in pmd_large()
303 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags() argument
305 pteval_t v = native_pte_val(pte); in pte_set_flags()
310 static inline pte_t pte_clear_flags(pte_t pte, pteval_t clear) in pte_clear_flags() argument
312 pteval_t v = native_pte_val(pte); in pte_clear_flags()
318 static inline int pte_uffd_wp(pte_t pte) in pte_uffd_wp() argument
320 return pte_flags(pte) & _PAGE_UFFD_WP; in pte_uffd_wp()
323 static inline pte_t pte_mkuffd_wp(pte_t pte) in pte_mkuffd_wp() argument
325 return pte_set_flags(pte, _PAGE_UFFD_WP); in pte_mkuffd_wp()
328 static inline pte_t pte_clear_uffd_wp(pte_t pte) in pte_clear_uffd_wp() argument
330 return pte_clear_flags(pte, _PAGE_UFFD_WP); in pte_clear_uffd_wp()
334 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
336 return pte_clear_flags(pte, _PAGE_DIRTY); in pte_mkclean()
339 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
341 return pte_clear_flags(pte, _PAGE_ACCESSED); in pte_mkold()
344 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
346 return pte_clear_flags(pte, _PAGE_RW); in pte_wrprotect()
349 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
351 return pte_clear_flags(pte, _PAGE_NX); in pte_mkexec()
354 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
356 return pte_set_flags(pte, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); in pte_mkdirty()
359 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
361 return pte_set_flags(pte, _PAGE_ACCESSED); in pte_mkyoung()
364 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
366 return pte_set_flags(pte, _PAGE_RW); in pte_mkwrite()
369 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() argument
371 return pte_set_flags(pte, _PAGE_PSE); in pte_mkhuge()
374 static inline pte_t pte_clrhuge(pte_t pte) in pte_clrhuge() argument
376 return pte_clear_flags(pte, _PAGE_PSE); in pte_clrhuge()
379 static inline pte_t pte_mkglobal(pte_t pte) in pte_mkglobal() argument
381 return pte_set_flags(pte, _PAGE_GLOBAL); in pte_mkglobal()
384 static inline pte_t pte_clrglobal(pte_t pte) in pte_clrglobal() argument
386 return pte_clear_flags(pte, _PAGE_GLOBAL); in pte_clrglobal()
389 static inline pte_t pte_mkspecial(pte_t pte) in pte_mkspecial() argument
391 return pte_set_flags(pte, _PAGE_SPECIAL); in pte_mkspecial()
394 static inline pte_t pte_mkdevmap(pte_t pte) in pte_mkdevmap() argument
396 return pte_set_flags(pte, _PAGE_SPECIAL|_PAGE_DEVMAP); in pte_mkdevmap()
525 static inline int pte_soft_dirty(pte_t pte) in pte_soft_dirty() argument
527 return pte_flags(pte) & _PAGE_SOFT_DIRTY; in pte_soft_dirty()
540 static inline pte_t pte_mksoft_dirty(pte_t pte) in pte_mksoft_dirty() argument
542 return pte_set_flags(pte, _PAGE_SOFT_DIRTY); in pte_mksoft_dirty()
555 static inline pte_t pte_clear_soft_dirty(pte_t pte) in pte_clear_soft_dirty() argument
557 return pte_clear_flags(pte, _PAGE_SOFT_DIRTY); in pte_clear_soft_dirty()
635 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
637 pteval_t val = pte_val(pte), oldval = val; in pte_modify()
754 static inline int pte_none(pte_t pte) in pte_none() argument
756 return !(pte.pte & ~(_PAGE_KNL_ERRATUM_MASK)); in pte_none()
762 return a.pte == b.pte; in pte_same()
806 static inline int pte_protnone(pte_t pte) in pte_protnone() argument
808 return (pte_flags(pte) & (_PAGE_PROTNONE | _PAGE_PRESENT)) in pte_protnone()
1036 pte_t *ptep, pte_t pte) in set_pte_at() argument
1038 set_pte(ptep, pte); in set_pte_at()
1079 pte_t pte = native_ptep_get_and_clear(ptep); in ptep_get_and_clear() local
1080 return pte; in ptep_get_and_clear()
1088 pte_t pte; in ptep_get_and_clear_full() local
1094 pte = native_local_ptep_get_and_clear(ptep); in ptep_get_and_clear_full()
1096 pte = ptep_get_and_clear(mm, addr, ptep); in ptep_get_and_clear_full()
1098 return pte; in ptep_get_and_clear_full()
1105 clear_bit(_PAGE_BIT_RW, (unsigned long *)&ptep->pte); in ptep_set_wrprotect()
1298 static inline pte_t pte_swp_mksoft_dirty(pte_t pte) in pte_swp_mksoft_dirty() argument
1300 return pte_set_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_mksoft_dirty()
1303 static inline int pte_swp_soft_dirty(pte_t pte) in pte_swp_soft_dirty() argument
1305 return pte_flags(pte) & _PAGE_SWP_SOFT_DIRTY; in pte_swp_soft_dirty()
1308 static inline pte_t pte_swp_clear_soft_dirty(pte_t pte) in pte_swp_clear_soft_dirty() argument
1310 return pte_clear_flags(pte, _PAGE_SWP_SOFT_DIRTY); in pte_swp_clear_soft_dirty()
1332 static inline pte_t pte_swp_mkuffd_wp(pte_t pte) in pte_swp_mkuffd_wp() argument
1334 return pte_set_flags(pte, _PAGE_SWP_UFFD_WP); in pte_swp_mkuffd_wp()
1337 static inline int pte_swp_uffd_wp(pte_t pte) in pte_swp_uffd_wp() argument
1339 return pte_flags(pte) & _PAGE_SWP_UFFD_WP; in pte_swp_uffd_wp()
1342 static inline pte_t pte_swp_clear_uffd_wp(pte_t pte) in pte_swp_clear_uffd_wp() argument
1344 return pte_clear_flags(pte, _PAGE_SWP_UFFD_WP); in pte_swp_clear_uffd_wp()
1430 static inline bool pte_access_permitted(pte_t pte, bool write) in pte_access_permitted() argument
1432 return __pte_access_permitted(pte_val(pte), write); in pte_access_permitted()