Lines Matching refs:pmd
52 pmd_t *pmd; in __get_pte_phys() local
72 pmd = pmd_alloc(NULL, pud, addr); in __get_pte_phys()
73 if (unlikely(!pmd)) { in __get_pte_phys()
74 pmd_ERROR(*pmd); in __get_pte_phys()
78 return pte_offset_kernel(pmd, addr); in __get_pte_phys()
138 pmd_t *pmd; in one_md_table_init() local
140 pmd = memblock_alloc(PAGE_SIZE, PAGE_SIZE); in one_md_table_init()
141 if (!pmd) in one_md_table_init()
144 pud_populate(&init_mm, pud, pmd); in one_md_table_init()
145 BUG_ON(pmd != pmd_offset(pud, 0)); in one_md_table_init()
151 static pte_t * __init one_page_table_init(pmd_t *pmd) in one_page_table_init() argument
153 if (pmd_none(*pmd)) { in one_page_table_init()
160 pmd_populate_kernel(&init_mm, pmd, pte); in one_page_table_init()
161 BUG_ON(pte != pte_offset_kernel(pmd, 0)); in one_page_table_init()
164 return pte_offset_kernel(pmd, 0); in one_page_table_init()
167 static pte_t * __init page_table_kmap_check(pte_t *pte, pmd_t *pmd, in page_table_kmap_check() argument
178 pmd_t *pmd; in page_table_range_init() local
192 pmd = one_md_table_init(pud); in page_table_range_init()
194 pmd += k; in page_table_range_init()
196 for (; (k < PTRS_PER_PMD) && (vaddr != end); pmd++, k++) { in page_table_range_init()
197 pte = page_table_kmap_check(one_page_table_init(pmd), in page_table_range_init()
198 pmd, vaddr, pte); in page_table_range_init()