Lines Matching refs:pte
72 static inline pte_t pte_swp_clear_flags(pte_t pte) in pte_swp_clear_flags() argument
74 if (pte_swp_exclusive(pte)) in pte_swp_clear_flags()
75 pte = pte_swp_clear_exclusive(pte); in pte_swp_clear_flags()
76 if (pte_swp_soft_dirty(pte)) in pte_swp_clear_flags()
77 pte = pte_swp_clear_soft_dirty(pte); in pte_swp_clear_flags()
78 if (pte_swp_uffd_wp(pte)) in pte_swp_clear_flags()
79 pte = pte_swp_clear_uffd_wp(pte); in pte_swp_clear_flags()
80 return pte; in pte_swp_clear_flags()
124 static inline int is_swap_pte(pte_t pte) in is_swap_pte() argument
126 return !pte_none(pte) && !pte_present(pte); in is_swap_pte()
133 static inline swp_entry_t pte_to_swp_entry(pte_t pte) in pte_to_swp_entry() argument
137 pte = pte_swp_clear_flags(pte); in pte_to_swp_entry()
138 arch_entry = __pte_to_swp_entry(pte); in pte_to_swp_entry()
337 extern void migration_entry_wait_huge(struct vm_area_struct *vma, unsigned long addr, pte_t *pte);
362 unsigned long addr, pte_t *pte) { } in migration_entry_wait_huge() argument
458 static inline bool is_pte_marker(pte_t pte) in is_pte_marker() argument
460 return is_swap_pte(pte) && is_pte_marker_entry(pte_to_swp_entry(pte)); in is_pte_marker()
504 static inline int pte_none_mostly(pte_t pte) in pte_none_mostly() argument
506 return pte_none(pte) || is_pte_marker(pte); in pte_none_mostly()