Lines Matching refs:uintptr_t
66 uintptr_t _dtb_early_pa __initdata;
345 return (pte_t *)((uintptr_t)pa); in get_pte_virt_early()
359 static inline phys_addr_t __init alloc_pte_early(uintptr_t va) in alloc_pte_early()
368 static inline phys_addr_t __init alloc_pte_fixmap(uintptr_t va) in alloc_pte_fixmap()
373 static phys_addr_t __init alloc_pte_late(uintptr_t va) in alloc_pte_late()
382 uintptr_t va, phys_addr_t pa, in create_pte_mapping()
385 uintptr_t pte_idx = pte_index(va); in create_pte_mapping()
428 return (pmd_t *)((uintptr_t)pa); in get_pmd_virt_early()
442 static phys_addr_t __init alloc_pmd_early(uintptr_t va) in alloc_pmd_early()
446 return (uintptr_t)early_pmd; in alloc_pmd_early()
449 static phys_addr_t __init alloc_pmd_fixmap(uintptr_t va) in alloc_pmd_fixmap()
454 static phys_addr_t __init alloc_pmd_late(uintptr_t va) in alloc_pmd_late()
463 uintptr_t va, phys_addr_t pa, in create_pmd_mapping()
468 uintptr_t pmd_idx = pmd_index(va); in create_pmd_mapping()
491 return (pud_t *)((uintptr_t)pa); in get_pud_virt_early()
505 static phys_addr_t __init alloc_pud_early(uintptr_t va) in alloc_pud_early()
510 return (uintptr_t)early_pud; in alloc_pud_early()
513 static phys_addr_t __init alloc_pud_fixmap(uintptr_t va) in alloc_pud_fixmap()
518 static phys_addr_t alloc_pud_late(uintptr_t va) in alloc_pud_late()
529 return (p4d_t *)((uintptr_t)pa); in get_p4d_virt_early()
543 static phys_addr_t __init alloc_p4d_early(uintptr_t va) in alloc_p4d_early()
548 return (uintptr_t)early_p4d; in alloc_p4d_early()
551 static phys_addr_t __init alloc_p4d_fixmap(uintptr_t va) in alloc_p4d_fixmap()
556 static phys_addr_t alloc_p4d_late(uintptr_t va) in alloc_p4d_late()
566 uintptr_t va, phys_addr_t pa, in create_pud_mapping()
571 uintptr_t pud_index = pud_index(va); in create_pud_mapping()
593 uintptr_t va, phys_addr_t pa, in create_p4d_mapping()
598 uintptr_t p4d_index = p4d_index(va); in create_p4d_mapping()
633 (uintptr_t)fixmap_p4d : (pgtable_l4_enabled ? \
634 (uintptr_t)fixmap_pud : (uintptr_t)fixmap_pmd))
636 (uintptr_t)trampoline_p4d : (pgtable_l4_enabled ? \
637 (uintptr_t)trampoline_pud : (uintptr_t)trampoline_pmd))
644 #define fixmap_pgd_next ((uintptr_t)fixmap_pte)
651 uintptr_t va, phys_addr_t pa, in create_pgd_mapping()
656 uintptr_t pgd_idx = pgd_index(va); in create_pgd_mapping()
677 static uintptr_t __init best_map_size(phys_addr_t pa, uintptr_t va, in best_map_size()
707 size_t sz = (size_t)((uintptr_t)(&_end) - (uintptr_t)(&_sdata)); in __copy_data()
714 static __init pgprot_t pgprot_from_va(uintptr_t va) in pgprot_from_va()
741 static __init pgprot_t pgprot_from_va(uintptr_t va) in pgprot_from_va()
751 u64 __pi_set_satp_mode_from_cmdline(uintptr_t dtb_pa);
787 static __init void set_satp_mode(uintptr_t dtb_pa) in set_satp_mode()
790 uintptr_t set_satp_mode_pmd = ((unsigned long)set_satp_mode) & PMD_MASK; in set_satp_mode()
802 set_satp_mode_pmd, (uintptr_t)early_pud, in set_satp_mode()
805 set_satp_mode_pmd, (uintptr_t)early_pmd, in set_satp_mode()
819 (uintptr_t)early_p4d : (uintptr_t)early_pud, in set_satp_mode()
822 identity_satp = PFN_DOWN((uintptr_t)&early_pg_dir) | satp_mode; in set_satp_mode()
873 uintptr_t reloc_offset = kernel_map.virt_addr - KERNEL_LINK_ADDR; in relocate_kernel()
878 uintptr_t va_kernel_link_pa_offset = KERNEL_LINK_ADDR - kernel_map.phys_addr; in relocate_kernel()
905 uintptr_t va, end_va; in create_kernel_page_table()
924 uintptr_t va, end_va; in create_kernel_page_table()
941 static void __init create_fdt_early_page_table(uintptr_t fix_fdt_va, in create_fdt_early_page_table()
942 uintptr_t dtb_pa) in create_fdt_early_page_table()
945 uintptr_t pa = dtb_pa & ~(PMD_SIZE - 1); in create_fdt_early_page_table()
1034 extern bool __init __pi_set_nokaslr_from_cmdline(uintptr_t dtb_pa);
1035 extern u64 __init __pi_get_kaslr_seed(uintptr_t dtb_pa);
1050 asmlinkage void __init setup_vm(uintptr_t dtb_pa) in setup_vm()
1057 u32 kernel_size = (uintptr_t)(&_end) - (uintptr_t)(&_start); in setup_vm()
1079 kernel_map.xiprom = (uintptr_t)CONFIG_XIP_PHYS_ADDR; in setup_vm()
1080 kernel_map.xiprom_sz = (uintptr_t)(&_exiprom) - (uintptr_t)(&_xiprom); in setup_vm()
1083 kernel_map.phys_addr = (uintptr_t)CONFIG_PHYS_RAM_BASE; in setup_vm()
1084 kernel_map.size = (uintptr_t)(&_end) - (uintptr_t)(&_start); in setup_vm()
1089 kernel_map.phys_addr = (uintptr_t)(&_start); in setup_vm()
1090 kernel_map.size = (uintptr_t)(&_end) - kernel_map.phys_addr; in setup_vm()
1155 (uintptr_t)fixmap_pud, P4D_SIZE, PAGE_TABLE); in setup_vm()
1159 (uintptr_t)fixmap_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm()
1161 (uintptr_t)fixmap_pte, PMD_SIZE, PAGE_TABLE); in setup_vm()
1167 (uintptr_t)trampoline_pud, P4D_SIZE, PAGE_TABLE); in setup_vm()
1170 (uintptr_t)trampoline_pmd, PUD_SIZE, PAGE_TABLE); in setup_vm()
1229 uintptr_t fixed_map_size) in create_linear_mapping_range()
1232 uintptr_t va, map_size; in create_linear_mapping_range()
1235 va = (uintptr_t)__va(pa); in create_linear_mapping_range()
1344 asmlinkage void __init setup_vm(uintptr_t dtb_pa) in setup_vm()