Lines Matching refs:pmd
809 int __pte_alloc(struct mm_struct *mm, pmd_t *pmd, unsigned long address);
810 int __pte_alloc_kernel(pmd_t *pmd, unsigned long address);
842 #define pte_lockptr(mm, pmd) ({(void)(mm); __pte_lockptr(pmd_page(*(pmd)));})
849 #define pte_lockptr(mm, pmd) ({(void)(pmd); &(mm)->page_table_lock;})
852 #define pte_offset_map_lock(mm, pmd, address, ptlp) \
854 spinlock_t *__ptl = pte_lockptr(mm, pmd); \
855 pte_t *__pte = pte_offset_map(pmd, address); \
866 #define pte_alloc_map(mm, pmd, address) \
867 ((unlikely(!pmd_present(*(pmd))) && __pte_alloc(mm, pmd, address))? \
868 NULL: pte_offset_map(pmd, address))
870 #define pte_alloc_map_lock(mm, pmd, address, ptlp) \
871 ((unlikely(!pmd_present(*(pmd))) && __pte_alloc(mm, pmd, address))? \
872 NULL: pte_offset_map_lock(mm, pmd, address, ptlp))
874 #define pte_alloc_kernel(pmd, address) \
875 ((unlikely(!pmd_present(*(pmd))) && __pte_alloc_kernel(pmd, address))? \
876 NULL: pte_offset_kernel(pmd, address))