/trusted-firmware-a/lib/xlat_mpu/ |
A D | xlat_mpu_core.c | 130 write_prlar_el2((mm->base_pa + mm->size - 1UL) in mpu_map_region() 160 unsigned long long base_pa = mm->base_pa; in mmap_add_region_check() local 164 unsigned long long end_pa = base_pa + size - 1U; in mmap_add_region_check() 167 if (base_pa != base_va) { in mmap_add_region_check() 170 if ((base_pa % 64ULL) != 0ULL) { in mmap_add_region_check() 174 if ((base_pa > end_pa) || (base_va > end_va)) { in mmap_add_region_check() 215 if ((mm_cursor->base_va - mm_cursor->base_pa) in mmap_add_region_check() 216 != (base_va - base_pa)) { in mmap_add_region_check() 231 mm_cursor->base_pa + mm_cursor->size - 1U; in mmap_add_region_check() 234 (base_pa > mm_cursor_end_pa); in mmap_add_region_check() [all …]
|
/trusted-firmware-a/lib/xlat_tables/ |
A D | xlat_tables_common.c | 65 (void *)mm->base_va, mm->base_pa, in print_mmap() 78 unsigned long long end_pa = base_pa + size - 1U; in mmap_add_region() 81 assert(IS_PAGE_ALIGNED(base_pa)); in mmap_add_region() 88 assert(base_pa < end_pa); /* Check for overflows */ in mmap_add_region() 117 assert((mm->base_va - mm->base_pa) == in mmap_add_region() 118 (base_va - base_pa)); in mmap_add_region() 128 mm->base_pa + mm->size - 1; in mmap_add_region() 130 bool separated_pa = (end_pa < mm->base_pa) || in mmap_add_region() 131 (base_pa > mm_end_pa); in mmap_add_region() 167 mm->base_pa = base_pa; in mmap_add_region() [all …]
|
/trusted-firmware-a/lib/gpt_rme/ |
A D | gpt_rme.c | 181 if ((ULONG_MAX - pas_regions[idx].base_pa) < in gpt_validate_pas_mappings() 203 pas_regions[i].base_pa, in gpt_validate_pas_mappings() 282 GPT_L0_IDX(pas_regions[idx].base_pa + in gpt_validate_pas_mappings() 290 GPT_L0_IDX(pas_regions[idx].base_pa), in gpt_validate_pas_mappings() 437 idx = pas->base_pa >> GPT_L0_IDX_SHIFT; in gpt_generate_l0_blk_desc() 584 end_pa = pas->base_pa + pas->size; in gpt_generate_l0_tbl_desc() 588 cur_pa = pas->base_pa; in gpt_generate_l0_tbl_desc() 591 for (l0_idx = GPT_L0_IDX(pas->base_pa); in gpt_generate_l0_tbl_desc() 656 start_idx = GPT_L0_IDX(pas[0].base_pa); in flush_l0_for_pas_array() 661 if (GPT_L0_IDX(pas[idx].base_pa) < start_idx) { in flush_l0_for_pas_array() [all …]
|
/trusted-firmware-a/lib/xlat_tables_v2/ |
A D | xlat_tables_context.c | 31 void mmap_add_region(unsigned long long base_pa, uintptr_t base_va, size_t size, in mmap_add_region() argument 34 mmap_region_t mm = MAP_REGION(base_pa, base_va, size, attr); in mmap_add_region() 44 void mmap_add_region_alloc_va(unsigned long long base_pa, uintptr_t *base_va, in mmap_add_region_alloc_va() argument 47 mmap_region_t mm = MAP_REGION_ALLOC_VA(base_pa, size, attr); in mmap_add_region_alloc_va() 65 int mmap_add_dynamic_region(unsigned long long base_pa, uintptr_t base_va, in mmap_add_dynamic_region() argument 68 mmap_region_t mm = MAP_REGION(base_pa, base_va, size, attr); in mmap_add_dynamic_region() 73 int mmap_add_dynamic_region_alloc_va(unsigned long long base_pa, in mmap_add_dynamic_region_alloc_va() argument 77 mmap_region_t mm = MAP_REGION_ALLOC_VA(base_pa, size, attr); in mmap_add_dynamic_region_alloc_va()
|
A D | xlat_tables_core.c | 681 unsigned long long base_pa = mm->base_pa; in mmap_add_region_check() local 686 unsigned long long end_pa = base_pa + size - 1U; in mmap_add_region_check() 700 if ((base_pa > end_pa) || (base_va > end_va)) in mmap_add_region_check() 743 if ((mm_cursor->base_va - mm_cursor->base_pa) != in mmap_add_region_check() 744 (base_va - base_pa)) in mmap_add_region_check() 759 mm_cursor->base_pa + mm_cursor->size - 1U; in mmap_add_region_check() 762 (base_pa > mm_cursor_end_pa); in mmap_add_region_check() 1028 .base_pa = 0U, in mmap_add_dynamic_region_ctx() 1114 if ((mm->base_pa + mm->size - 1U) == ctx->max_pa) in mmap_remove_dynamic_region_ctx() 1147 if ((mm->base_pa + mm->size - 1U) > ctx->max_pa) in mmap_remove_dynamic_region_ctx() [all …]
|
A D | xlat_tables_utils.c | 44 mm->base_va, mm->base_pa, mm->size, mm->attr, in xlat_mmap_print()
|
/trusted-firmware-a/lib/xlat_tables/aarch32/ |
A D | nonlpae_tables.c | 162 (void *)mm->base_va, mm->base_pa, in print_mmap() 186 unsigned long long end_pa = base_pa + size - 1U; in mmap_add_region() 189 assert(IS_PAGE_ALIGNED(base_pa)); in mmap_add_region() 197 assert(base_pa < end_pa); /* Check for overflows */ in mmap_add_region() 226 assert((mm->base_va - mm->base_pa) == in mmap_add_region() 227 (base_va - base_pa)); in mmap_add_region() 237 mm->base_pa + mm->size - 1; in mmap_add_region() 239 bool separated_pa = (end_pa < mm->base_pa) || in mmap_add_region() 240 (base_pa > mm_end_pa); in mmap_add_region() 278 mm->base_pa = base_pa; in mmap_add_region() [all …]
|
/trusted-firmware-a/include/lib/xlat_tables/ |
A D | xlat_tables_v2.h | 142 unsigned long long base_pa; member 266 void mmap_add_region(unsigned long long base_pa, uintptr_t base_va, 283 void mmap_add_region_alloc_va(unsigned long long base_pa, uintptr_t *base_va, 306 int mmap_add_dynamic_region(unsigned long long base_pa, uintptr_t base_va, 320 int mmap_add_dynamic_region_alloc_va(unsigned long long base_pa,
|
A D | xlat_tables.h | 86 unsigned long long base_pa; member 94 void mmap_add_region(unsigned long long base_pa, uintptr_t base_va,
|
A D | xlat_tables_v2_helpers.h | 41 .base_pa = (_pa), \
|
/trusted-firmware-a/plat/qti/common/src/ |
A D | qti_common.c | 130 int qti_mmap_add_dynamic_region(uintptr_t base_pa, size_t size, in qti_mmap_add_dynamic_region() argument 136 qti_align_mem_region(base_pa, size, &aligned_pa, &aligned_size); in qti_mmap_add_dynamic_region() 138 if (qti_is_overlap_atf_rg(base_pa, size)) { in qti_mmap_add_dynamic_region()
|
/trusted-firmware-a/include/lib/gpt_rme/ |
A D | gpt_rme.h | 24 uintptr_t base_pa; /* Base address for PAS. */ member 73 .base_pa = (_pa), \ 85 .base_pa = (_pa), \
|
/trusted-firmware-a/plat/qti/common/inc/ |
A D | qti_plat.h | 21 int qti_mmap_add_dynamic_region(uintptr_t base_pa, size_t size,
|
/trusted-firmware-a/plat/arm/board/rdn1edge/ |
A D | rdn1edge_plat.c | 80 rdn1edge_dynamic_mmap[i].base_pa, in bl31_platform_setup()
|
/trusted-firmware-a/plat/qti/qtiseclib/inc/ |
A D | qtiseclib_cb_interface.h | 51 int qtiseclib_cb_mmap_add_dynamic_region(unsigned long long base_pa,
|
/trusted-firmware-a/plat/arm/board/rdv1mc/ |
A D | rdv1mc_plat.c | 113 rdv1mc_dynamic_mmap[i].base_pa, in bl31_platform_setup()
|
/trusted-firmware-a/plat/qti/qtiseclib/src/ |
A D | qtiseclib_cb_interface.c | 190 int qtiseclib_cb_mmap_add_dynamic_region(unsigned long long base_pa, in qtiseclib_cb_mmap_add_dynamic_region() argument 203 return qti_mmap_add_dynamic_region(base_pa, size, l_attr); in qtiseclib_cb_mmap_add_dynamic_region()
|
/trusted-firmware-a/plat/qemu/common/ |
A D | qemu_spm.c | 134 plat_qemu_secure_partition_mmap[0].base_pa = ns_buf_base; in plat_get_secure_partition_mmap()
|