Lines Matching refs:pmd
152 static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr, in early_pte_alloc() argument
155 if (pmd_none(*pmd)) { in early_pte_alloc()
157 __pmd_populate(pmd, __pa(pte) | prot); in early_pte_alloc()
159 BUG_ON(pmd_bad(*pmd)); in early_pte_alloc()
160 return pte_offset_kernel(pmd, addr); in early_pte_alloc()
163 static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr, in alloc_init_pte() argument
167 pte_t *pte = early_pte_alloc(pmd, addr, type->prot_l1); in alloc_init_pte()
178 pmd_t *pmd = pmd_offset((pud_t *)pgd, addr); in alloc_init_section() local
185 pmd_t *p = pmd; in alloc_init_section()
188 set_pmd(pmd, __pmd(phys | type->prot_sect)); in alloc_init_section()
190 } while (pmd++, addr += SECTION_SIZE, addr != end); in alloc_init_section()
198 alloc_init_pte(pmd, addr, end, __phys_to_pfn(phys), type); in alloc_init_section()
465 pmd_t *pmd; in setup_mm_for_reboot() local
467 pmd = pmd_off(pgd, i << PGDIR_SHIFT); in setup_mm_for_reboot()
468 set_pmd(pmd, __pmd(pmdval)); in setup_mm_for_reboot()
469 flush_pmd_entry(pmd); in setup_mm_for_reboot()