Lines Matching refs:pmd

78 	pmdval_t	pmd;  member
93 .pmd = PMD_SECT_UNCACHED,
99 .pmd = PMD_SECT_BUFFERED,
105 .pmd = PMD_SECT_WT,
111 .pmd = PMD_SECT_WB,
117 .pmd = PMD_SECT_WBWA,
133 void __init init_default_cache_policy(unsigned long pmd) in init_default_cache_policy() argument
137 initial_pmd_value = pmd; in init_default_cache_policy()
139 pmd &= PMD_SECT_TEX(1) | PMD_SECT_BUFFERABLE | PMD_SECT_CACHEABLE; in init_default_cache_policy()
142 if (cache_policies[i].pmd == pmd) { in init_default_cache_policy()
629 mem_types[MT_MEMORY_RWX].prot_sect |= ecc_mask | cp->pmd; in build_mem_type_table()
631 mem_types[MT_MEMORY_RW].prot_sect |= ecc_mask | cp->pmd; in build_mem_type_table()
635 mem_types[MT_ROM].prot_sect |= cp->pmd; in build_mem_type_table()
637 switch (cp->pmd) { in build_mem_type_table()
685 static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr, unsigned long prot) in early_pte_alloc() argument
687 if (pmd_none(*pmd)) { in early_pte_alloc()
689 __pmd_populate(pmd, __pa(pte), prot); in early_pte_alloc()
691 BUG_ON(pmd_bad(*pmd)); in early_pte_alloc()
692 return pte_offset_kernel(pmd, addr); in early_pte_alloc()
695 static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr, in alloc_init_pte() argument
699 pte_t *pte = early_pte_alloc(pmd, addr, type->prot_l1); in alloc_init_pte()
706 static void __init __map_init_section(pmd_t *pmd, unsigned long addr, in __map_init_section() argument
710 pmd_t *p = pmd; in __map_init_section()
723 pmd++; in __map_init_section()
726 *pmd = __pmd(phys | type->prot_sect); in __map_init_section()
728 } while (pmd++, addr += SECTION_SIZE, addr != end); in __map_init_section()
737 pmd_t *pmd = pmd_offset(pud, addr); in alloc_init_pmd() local
753 __map_init_section(pmd, addr, next, phys, type); in alloc_init_pmd()
755 alloc_init_pte(pmd, addr, next, in alloc_init_pmd()
761 } while (pmd++, addr = next, addr != end); in alloc_init_pmd()
824 pmd_t *pmd = pmd_offset(pud, addr); in create_36bit_mapping() local
828 *pmd++ = __pmd(phys | type->prot_sect | PMD_SECT_SUPER); in create_36bit_mapping()
967 pmd_t *pmd; in fill_pmd_gaps() local
981 pmd = pmd_off_k(addr); in fill_pmd_gaps()
982 if (pmd_none(*pmd)) in fill_pmd_gaps()
993 pmd = pmd_off_k(addr) + 1; in fill_pmd_gaps()
994 if (pmd_none(*pmd)) in fill_pmd_gaps()