Lines Matching refs:pmd
773 #define __pmd_to_swp_entry(pmd) (__pte_to_swp_entry(pmd_pte(pmd))) argument
912 static inline int pmd_none(pmd_t pmd) in pmd_none() argument
914 return !pmd_raw(pmd); in pmd_none()
917 static inline int pmd_present(pmd_t pmd) in pmd_present() argument
925 if (pmd_raw(pmd) & cpu_to_be64(_PAGE_PRESENT | _PAGE_INVALID)) in pmd_present()
931 static inline int pmd_is_serializing(pmd_t pmd) in pmd_is_serializing() argument
941 if ((pmd_raw(pmd) & cpu_to_be64(_PAGE_PRESENT | _PAGE_INVALID)) == in pmd_is_serializing()
948 static inline int pmd_bad(pmd_t pmd) in pmd_bad() argument
951 return radix__pmd_bad(pmd); in pmd_bad()
952 return hash__pmd_bad(pmd); in pmd_bad()
978 extern struct page *pmd_page(pmd_t pmd);
1114 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() argument
1116 return __pte_raw(pmd_raw(pmd)); in pmd_pte()
1124 static inline pte_t *pmdp_ptep(pmd_t *pmd) in pmdp_ptep() argument
1126 return (pte_t *)pmd; in pmdp_ptep()
1128 #define pmd_pfn(pmd) pte_pfn(pmd_pte(pmd)) argument
1129 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument
1130 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument
1131 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument
1132 #define pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) argument
1133 #define pmd_mkdirty(pmd) pte_pmd(pte_mkdirty(pmd_pte(pmd))) argument
1134 #define pmd_mkclean(pmd) pte_pmd(pte_mkclean(pmd_pte(pmd))) argument
1135 #define pmd_mkyoung(pmd) pte_pmd(pte_mkyoung(pmd_pte(pmd))) argument
1136 #define pmd_mkwrite(pmd) pte_pmd(pte_mkwrite(pmd_pte(pmd))) argument
1137 #define pmd_mk_savedwrite(pmd) pte_pmd(pte_mk_savedwrite(pmd_pte(pmd))) argument
1138 #define pmd_clear_savedwrite(pmd) pte_pmd(pte_clear_savedwrite(pmd_pte(pmd))) argument
1141 #define pmd_soft_dirty(pmd) pte_soft_dirty(pmd_pte(pmd)) argument
1142 #define pmd_mksoft_dirty(pmd) pte_pmd(pte_mksoft_dirty(pmd_pte(pmd))) argument
1143 #define pmd_clear_soft_dirty(pmd) pte_pmd(pte_clear_soft_dirty(pmd_pte(pmd))) argument
1146 #define pmd_swp_mksoft_dirty(pmd) pte_pmd(pte_swp_mksoft_dirty(pmd_pte(pmd))) argument
1147 #define pmd_swp_soft_dirty(pmd) pte_swp_soft_dirty(pmd_pte(pmd)) argument
1148 #define pmd_swp_clear_soft_dirty(pmd) pte_pmd(pte_swp_clear_soft_dirty(pmd_pte(pmd))) argument
1153 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() argument
1155 return pte_protnone(pmd_pte(pmd)); in pmd_protnone()
1159 #define pmd_write(pmd) pte_write(pmd_pte(pmd)) argument
1160 #define __pmd_write(pmd) __pte_write(pmd_pte(pmd)) argument
1161 #define pmd_savedwrite(pmd) pte_savedwrite(pmd_pte(pmd)) argument
1164 static inline bool pmd_access_permitted(pmd_t pmd, bool write) in pmd_access_permitted() argument
1176 if (pmd_is_serializing(pmd)) in pmd_access_permitted()
1179 return pte_access_permitted(pmd_pte(pmd), write); in pmd_access_permitted()
1185 extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot);
1187 pmd_t *pmdp, pmd_t pmd);
1189 unsigned long addr, pmd_t *pmd) in update_mmu_cache_pmd() argument
1215 static inline int pmd_large(pmd_t pmd) in pmd_large() argument
1217 return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)); in pmd_large()
1256 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() argument
1258 if (!pmd_present(pmd)) in pmd_trans_huge()
1262 return radix__pmd_trans_huge(pmd); in pmd_trans_huge()
1263 return hash__pmd_trans_huge(pmd); in pmd_trans_huge()
1274 static inline pmd_t __pmd_mkhuge(pmd_t pmd) in __pmd_mkhuge() argument
1277 return radix__pmd_mkhuge(pmd); in __pmd_mkhuge()
1278 return hash__pmd_mkhuge(pmd); in __pmd_mkhuge()
1284 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() argument
1288 WARN_ON((pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)) == 0); in pmd_mkhuge()
1290 WARN_ON((pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE | H_PAGE_THP_HUGE)) != in pmd_mkhuge()
1293 return pmd; in pmd_mkhuge()
1369 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap() argument
1372 return radix__pmd_mkdevmap(pmd); in pmd_mkdevmap()
1373 return hash__pmd_mkdevmap(pmd); in pmd_mkdevmap()
1376 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() argument
1378 return pte_devmap(pmd_pte(pmd)); in pmd_devmap()
1426 static inline bool pmd_is_leaf(pmd_t pmd) in pmd_is_leaf() argument
1428 return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)); in pmd_is_leaf()