Lines Matching refs:pmd

46 #define pmd_pgtable(pmd) pmd_page(pmd)  argument
88 static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) in pte_offset_kernel() argument
90 return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); in pte_offset_kernel()
161 pmd_t *pmd = pmd_off_k(vaddr); in virt_to_kpte() local
163 return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); in virt_to_kpte()
219 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local
221 if (!pmd_young(pmd)) in pmdp_test_and_clear_young()
224 set_pmd_at(vma->vm_mm, address, pmdp, pmd_mkold(pmd)); in pmdp_test_and_clear_young()
340 pmd_t pmd = *pmdp; in pmdp_huge_get_and_clear() local
342 return pmd; in pmdp_huge_get_and_clear()
551 unsigned long address, pmd_t *pmdp, pmd_t pmd) in generic_pmdp_establish() argument
554 set_pmd_at(vma->vm_mm, address, pmdp, pmd); in generic_pmdp_establish()
590 #define pmd_access_permitted(pmd, write) \ argument
591 (pmd_present(pmd) && (!(write) || pmd_write(pmd)))
649 #define set_pmd_safe(pmdp, pmd) \ argument
651 WARN_ON_ONCE(pmd_present(*pmdp) && !pmd_same(*pmdp, pmd)); \
652 set_pmd(pmdp, pmd); \
839 static inline int pmd_none_or_clear_bad(pmd_t *pmd) in pmd_none_or_clear_bad() argument
841 if (pmd_none(*pmd)) in pmd_none_or_clear_bad()
843 if (unlikely(pmd_bad(*pmd))) { in pmd_none_or_clear_bad()
844 pmd_clear_bad(pmd); in pmd_none_or_clear_bad()
999 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty() argument
1001 return pmd; in pmd_swp_mksoft_dirty()
1004 static inline int pmd_swp_soft_dirty(pmd_t pmd) in pmd_swp_soft_dirty() argument
1009 static inline pmd_t pmd_swp_clear_soft_dirty(pmd_t pmd) in pmd_swp_clear_soft_dirty() argument
1011 return pmd; in pmd_swp_clear_soft_dirty()
1020 static inline int pmd_soft_dirty(pmd_t pmd) in pmd_soft_dirty() argument
1030 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty() argument
1032 return pmd; in pmd_mksoft_dirty()
1040 static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd) in pmd_clear_soft_dirty() argument
1042 return pmd; in pmd_clear_soft_dirty()
1060 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty() argument
1062 return pmd; in pmd_swp_mksoft_dirty()
1065 static inline int pmd_swp_soft_dirty(pmd_t pmd) in pmd_swp_soft_dirty() argument
1070 static inline pmd_t pmd_swp_clear_soft_dirty(pmd_t pmd) in pmd_swp_clear_soft_dirty() argument
1072 return pmd; in pmd_swp_clear_soft_dirty()
1179 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() argument
1184 static inline int pmd_write(pmd_t pmd) in pmd_write() argument
1201 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() argument
1285 static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd) in pmd_none_or_trans_huge_or_clear_bad() argument
1287 pmd_t pmdval = pmd_read_atomic(pmd); in pmd_none_or_trans_huge_or_clear_bad()
1324 pmd_clear_bad(pmd); in pmd_none_or_trans_huge_or_clear_bad()
1342 static inline int pmd_trans_unstable(pmd_t *pmd) in pmd_trans_unstable() argument
1345 return pmd_none_or_trans_huge_or_clear_bad(pmd); in pmd_trans_unstable()
1357 static inline int pmd_devmap_trans_unstable(pmd_t *pmd) in pmd_devmap_trans_unstable() argument
1359 return pmd_devmap(*pmd) || pmd_trans_unstable(pmd); in pmd_devmap_trans_unstable()
1376 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() argument
1401 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot);
1403 int pmd_clear_huge(pmd_t *pmd);
1406 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr);
1416 static inline int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot) in pmd_set_huge() argument
1428 static inline int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() argument
1440 static inline int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() argument