Lines Matching refs:vaddr
110 pmd_t * __init populate_extra_pmd(unsigned long vaddr) in populate_extra_pmd() argument
112 int pgd_idx = pgd_index(vaddr); in populate_extra_pmd()
113 int pmd_idx = pmd_index(vaddr); in populate_extra_pmd()
118 pte_t * __init populate_extra_pte(unsigned long vaddr) in populate_extra_pte() argument
120 int pte_idx = pte_index(vaddr); in populate_extra_pte()
123 pmd = populate_extra_pmd(vaddr); in populate_extra_pte()
135 unsigned long vaddr; in page_table_range_init_count() local
140 vaddr = start; in page_table_range_init_count()
141 pgd_idx = pgd_index(vaddr); in page_table_range_init_count()
142 pmd_idx = pmd_index(vaddr); in page_table_range_init_count()
144 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd_idx++) { in page_table_range_init_count()
145 for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end); in page_table_range_init_count()
147 if ((vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin && in page_table_range_init_count()
148 (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) in page_table_range_init_count()
150 vaddr += PMD_SIZE; in page_table_range_init_count()
159 unsigned long vaddr, pte_t *lastpte, in page_table_kmap_check() argument
173 && (vaddr >> PMD_SHIFT) >= pmd_idx_kmap_begin in page_table_kmap_check()
174 && (vaddr >> PMD_SHIFT) <= pmd_idx_kmap_end) { in page_table_kmap_check()
192 BUG_ON(vaddr < fix_to_virt(FIX_KMAP_BEGIN - 1) in page_table_kmap_check()
193 && vaddr > fix_to_virt(FIX_KMAP_END) in page_table_kmap_check()
212 unsigned long vaddr; in page_table_range_init() local
222 vaddr = start; in page_table_range_init()
223 pgd_idx = pgd_index(vaddr); in page_table_range_init()
224 pmd_idx = pmd_index(vaddr); in page_table_range_init()
227 for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd++, pgd_idx++) { in page_table_range_init()
229 pmd = pmd + pmd_index(vaddr); in page_table_range_init()
230 for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end); in page_table_range_init()
233 pmd, vaddr, pte, &adr); in page_table_range_init()
235 vaddr += PMD_SIZE; in page_table_range_init()
396 unsigned long vaddr = PKMAP_BASE; in permanent_kmaps_init() local
398 page_table_range_init(vaddr, vaddr + PAGE_SIZE*LAST_PKMAP, pgd_base); in permanent_kmaps_init()
400 pkmap_page_table = virt_to_kpte(vaddr); in permanent_kmaps_init()
511 unsigned long vaddr, end; in early_ioremap_page_table_range_init() local
517 vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK; in early_ioremap_page_table_range_init()
519 page_table_range_init(vaddr, end, pgd_base); in early_ioremap_page_table_range_init()