Lines Matching refs:va
23 phys_addr_t v_block_mapped(unsigned long va) in v_block_mapped() argument
27 if (va >= VIRT_IMMR_BASE && va < VIRT_IMMR_BASE + IMMR_SIZE) in v_block_mapped()
28 return p + va - VIRT_IMMR_BASE; in v_block_mapped()
29 if (va >= PAGE_OFFSET && va < PAGE_OFFSET + block_mapped_ram) in v_block_mapped()
30 return __pa(va); in v_block_mapped()
49 static pte_t __init *early_hugepd_alloc_kernel(hugepd_t *pmdp, unsigned long va) in early_hugepd_alloc_kernel() argument
60 return hugepte_offset(*(hugepd_t *)pmdp, va, PGDIR_SHIFT); in early_hugepd_alloc_kernel()
63 static int __ref __early_map_kernel_hugepage(unsigned long va, phys_addr_t pa, in __early_map_kernel_hugepage() argument
66 pmd_t *pmdp = pmd_off_k(va); in __early_map_kernel_hugepage()
77 ptep = early_pte_alloc_kernel(pmdp, va); in __early_map_kernel_hugepage()
79 ptep = early_hugepd_alloc_kernel((hugepd_t *)pmdp, va); in __early_map_kernel_hugepage()
82 ptep = pte_offset_kernel(pmdp, va); in __early_map_kernel_hugepage()
84 ptep = hugepte_offset(*(hugepd_t *)pmdp, va, PGDIR_SHIFT); in __early_map_kernel_hugepage()
94 set_huge_pte_at(&init_mm, va, ptep, in __early_map_kernel_hugepage()