Lines Matching refs:pmd
28 #define pmd_none(pmd) (!pmd_val(pmd)) argument
33 #define pmd_valid(pmd) (pmd_val(pmd) & cpu_to_be64(_PAGE_VALID)) argument
36 #define pmd_huge(pmd) false argument
48 static inline pte_t *pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() argument
50 return pgtable_va(be64_to_cpu(pmd_val(pmd)) & PHYS_MASK & ~0xfffULL); in pmd_page_vaddr()
60 #define pte_offset(pmd, addr) (pmd_page_vaddr(*(pmd)) + pte_index(addr)) argument
89 #define pmd_free(pmd) free(pmd) argument
93 pmd_t *pmd = memalign_pages(sz, sz); in pmd_alloc_one() local
94 memset(pmd, 0, sz); in pmd_alloc_one()
95 return pmd; in pmd_alloc_one()
115 static inline pte_t *pte_alloc(pmd_t *pmd, unsigned long addr) in pte_alloc() argument
117 if (pmd_none(*pmd)) { in pte_alloc()
120 WRITE_ONCE(*pmd, entry); in pte_alloc()
122 return pte_offset(pmd, addr); in pte_alloc()