Lines Matching refs:pmd

114 #define pmd_table(pmd)		((pmd_val(pmd) & PMD_TYPE_MASK) == \  argument
116 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument
118 #define pmd_large(pmd) pmd_sect(pmd) argument
119 #define pmd_leaf(pmd) pmd_sect(pmd) argument
138 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) argument
174 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ argument
175 : !!(pmd_val(pmd) & (val)))
176 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument
178 #define pmd_present(pmd) (pmd_isset((pmd), L_PMD_SECT_VALID)) argument
179 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument
187 #define pmd_write(pmd) (pmd_isclear((pmd), L_PMD_SECT_RDONLY)) argument
188 #define pmd_dirty(pmd) (pmd_isset((pmd), L_PMD_SECT_DIRTY)) argument
190 #define pmd_hugewillfault(pmd) (!pmd_young(pmd) || !pmd_write(pmd)) argument
191 #define pmd_thp_or_huge(pmd) (pmd_huge(pmd) || pmd_trans_huge(pmd)) argument
194 #define pmd_trans_huge(pmd) (pmd_val(pmd) && !pmd_table(pmd)) argument
198 static inline pmd_t pmd_##fn(pmd_t pmd) { pmd_val(pmd) op; return pmd; }
207 #define pmd_mkhuge(pmd) (__pmd(pmd_val(pmd) & ~PMD_TABLE_BIT)) argument
209 #define pmd_pfn(pmd) (((pmd_val(pmd) & PMD_MASK) & PHYS_MASK) >> PAGE_SHIFT) argument
217 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid() argument
219 return __pmd(pmd_val(pmd) & ~L_PMD_SECT_VALID); in pmd_mkinvalid()
222 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() argument
226 pmd_val(pmd) = (pmd_val(pmd) & ~mask) | (pgprot_val(newprot) & mask); in pmd_modify()
227 return pmd; in pmd_modify()
231 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() argument
236 if (pmd_val(pmd) & L_PMD_SECT_NONE) in set_pmd_at()
237 pmd_val(pmd) &= ~L_PMD_SECT_VALID; in set_pmd_at()
239 if (pmd_write(pmd) && pmd_dirty(pmd)) in set_pmd_at()
240 pmd_val(pmd) &= ~PMD_SECT_AP2; in set_pmd_at()
242 pmd_val(pmd) |= PMD_SECT_AP2; in set_pmd_at()
244 *pmdp = __pmd(pmd_val(pmd) | PMD_SECT_nG); in set_pmd_at()