/trusted-firmware-a/lib/xlat_tables/ |
A D | xlat_tables_common.c | 108 ((base_va >= mm->base_va) && (end_va <= mm_end_va)) || in mmap_add_region() 109 ((mm->base_va >= base_va) && (mm_end_va <= end_va)); in mmap_add_region() 119 assert((base_va != mm->base_va) || (size != mm->size)); in mmap_add_region() 144 while ((mm->base_va < base_va) && (mm->size != 0U)) in mmap_add_region() 158 while ((mm->base_va == base_va) && (mm->size > size)) in mmap_add_region() 168 mm->base_va = base_va; in mmap_add_region() 305 if (mm->base_va > (base_va + size - 1U)) in mmap_region_attr() 308 if ((mm->base_va + mm->size - 1U) < base_va) in mmap_region_attr() 314 if ((mm->base_va > base_va) || in mmap_region_attr() 355 if (mm->base_va > (base_va + level_size - 1U)) { in init_xlation_table_inner() [all …]
|
A D | xlat_tables_private.h | 37 void init_xlation_table(uintptr_t base_va, uint64_t *table,
|
/trusted-firmware-a/lib/xlat_tables/aarch32/ |
A D | nonlpae_tables.c | 218 ((mm->base_va >= base_va) && (mm_end_va <= end_va)); in mmap_add_region() 253 while ((mm->base_va < base_va) && (mm->size != 0U)) { in mmap_add_region() 268 while ((mm->base_va == base_va) && (mm->size > size)) { in mmap_add_region() 279 mm->base_va = base_va; in mmap_add_region() 371 if (mm->base_va > (base_va + size - 1U)) { in mmap_region_attr() 375 if ((mm->base_va + mm->size - 1U) < base_va) { in mmap_region_attr() 383 if ((mm->base_va > base_va) || in mmap_region_attr() 413 if (mm->base_va + mm->size <= base_va) { in init_xlation_table_inner() 425 if (mm->base_va >= base_va + level_size) { in init_xlation_table_inner() 428 } else if ((mm->base_va <= base_va) && in init_xlation_table_inner() [all …]
|
/trusted-firmware-a/lib/xlat_tables_v2/ |
A D | xlat_tables_context.c | 34 mmap_region_t mm = MAP_REGION(base_pa, base_va, size, attr); in mmap_add_region() 51 *base_va = mm.base_va; in mmap_add_region_alloc_va() 57 assert(mm->base_va == 0U); in mmap_add_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() 74 uintptr_t *base_va, size_t size, in mmap_add_dynamic_region_alloc_va() argument 81 *base_va = mm.base_va; in mmap_add_dynamic_region_alloc_va() 87 int mmap_remove_dynamic_region(uintptr_t base_va, size_t size) in mmap_remove_dynamic_region() argument 90 base_va, size); in mmap_remove_dynamic_region() 113 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr) in xlat_get_mem_attributes() argument [all …]
|
A D | xlat_tables_core.c | 682 uintptr_t base_va = mm->base_va; in mmap_add_region_check() local 725 ((base_va >= mm_cursor->base_va) && in mmap_add_region_check() 727 ((mm_cursor->base_va >= base_va) && in mmap_add_region_check() 744 (base_va - base_pa)) in mmap_add_region_check() 747 if ((base_va == mm_cursor->base_va) && in mmap_add_region_check() 764 (base_va > mm_cursor_end_va); in mmap_add_region_check() 921 mm->base_va = round_up(mm->base_va, XLAT_BLOCK_SIZE(level)); in mmap_alloc_va_align_ctx() 928 mm->base_va = ctx->max_va + 1UL; in mmap_add_region_alloc_va_ctx() 1020 if (mm->base_va >= end_va) in mmap_add_dynamic_region_ctx() 1029 .base_va = mm->base_va, in mmap_add_dynamic_region_ctx() [all …]
|
A D | xlat_tables_utils.c | 365 entry = find_xlat_table_entry(base_va, in xlat_get_mem_attributes_internal() 458 if (!IS_PAGE_ALIGNED(base_va)) { in xlat_change_mem_attributes_ctx() 460 __func__, base_va); in xlat_change_mem_attributes_ctx() 484 pages_count, base_va); in xlat_change_mem_attributes_ctx() 486 uintptr_t base_va_original = base_va; in xlat_change_mem_attributes_ctx() 496 entry = find_xlat_table_entry(base_va, in xlat_change_mem_attributes_ctx() 515 base_va); in xlat_change_mem_attributes_ctx() 528 base_va); in xlat_change_mem_attributes_ctx() 533 base_va += PAGE_SIZE; in xlat_change_mem_attributes_ctx() 537 base_va = base_va_original; in xlat_change_mem_attributes_ctx() [all …]
|
/trusted-firmware-a/lib/xlat_mpu/ |
A D | xlat_mpu_core.c | 161 uintptr_t base_va = mm->base_va; in mmap_add_region_check() local 165 uintptr_t end_va = base_va + size - 1U; in mmap_add_region_check() 167 if (base_pa != base_va) { in mmap_add_region_check() 174 if ((base_pa > end_pa) || (base_va > end_va)) { in mmap_add_region_check() 189 mm_cursor->base_va + mm_cursor->size - 1U; in mmap_add_region_check() 196 ((base_va >= mm_cursor->base_va) && in mmap_add_region_check() 198 ((mm_cursor->base_va >= base_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() 219 if ((base_va == mm_cursor->base_va) && in mmap_add_region_check() [all …]
|
A D | xlat_mpu_context.c | 56 int xlat_get_mem_attributes(uintptr_t base_va, uint32_t *attr) in xlat_get_mem_attributes() argument 58 return xlat_get_mem_attributes_ctx(&tf_xlat_ctx, base_va, attr); in xlat_get_mem_attributes()
|
/trusted-firmware-a/include/lib/xlat_tables/ |
A D | xlat_tables_v2.h | 143 uintptr_t base_va; 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, 321 uintptr_t *base_va, 335 int mmap_remove_dynamic_region(uintptr_t base_va, size_t size); 337 uintptr_t base_va, 382 int xlat_change_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, 384 int xlat_change_mem_attributes(uintptr_t base_va, size_t size, uint32_t attr); 411 int xlat_get_mem_attributes_ctx(const xlat_ctx_t *ctx, uintptr_t base_va, [all …]
|
A D | xlat_tables.h | 87 uintptr_t base_va; member 94 void mmap_add_region(unsigned long long base_pa, uintptr_t base_va,
|
A D | xlat_tables_v2_helpers.h | 42 .base_va = (_va), \
|
/trusted-firmware-a/services/std_svc/spm_mm/ |
A D | spm_mm_xlat.c | 113 uintptr_t base_va) in spm_memory_attributes_get_smc_handler() argument 120 base_va, &attributes); in spm_memory_attributes_get_smc_handler() 139 uintptr_t base_va = (uintptr_t) page_address; in spm_memory_attributes_set_smc_handler() local 143 INFO(" Start address : 0x%lx\n", base_va); in spm_memory_attributes_set_smc_handler() 150 base_va, size, in spm_memory_attributes_set_smc_handler()
|
A D | spm_mm_private.h | 63 uintptr_t base_va);
|
/trusted-firmware-a/plat/qti/common/src/ |
A D | qti_common.c | 147 int qti_mmap_remove_dynamic_region(uintptr_t base_va, size_t size) in qti_mmap_remove_dynamic_region() argument 149 qti_align_mem_region(base_va, size, &base_va, &size); in qti_mmap_remove_dynamic_region() 150 return mmap_remove_dynamic_region(base_va, size); in qti_mmap_remove_dynamic_region()
|
/trusted-firmware-a/plat/common/ |
A D | plat_bl_common.c | 120 regions->base_va, in setup_page_tables() 121 regions->base_va + regions->size, in setup_page_tables()
|
/trusted-firmware-a/plat/qti/common/inc/ |
A D | qti_plat.h | 23 int qti_mmap_remove_dynamic_region(uintptr_t base_va, size_t size);
|
/trusted-firmware-a/plat/arm/board/rdn1edge/ |
A D | rdn1edge_plat.c | 81 rdn1edge_dynamic_mmap[i].base_va, in bl31_platform_setup()
|
/trusted-firmware-a/plat/qti/qtiseclib/inc/ |
A D | qtiseclib_cb_interface.h | 50 int qtiseclib_cb_mmap_remove_dynamic_region(uintptr_t base_va, size_t size);
|
/trusted-firmware-a/plat/arm/board/rdv1mc/ |
A D | rdv1mc_plat.c | 114 rdv1mc_dynamic_mmap[i].base_va, in bl31_platform_setup()
|
/trusted-firmware-a/plat/qti/qtiseclib/src/ |
A D | qtiseclib_cb_interface.c | 206 int qtiseclib_cb_mmap_remove_dynamic_region(uintptr_t base_va, size_t size) in qtiseclib_cb_mmap_remove_dynamic_region() argument 208 return qti_mmap_remove_dynamic_region(base_va, size); in qtiseclib_cb_mmap_remove_dynamic_region()
|
/trusted-firmware-a/plat/qemu/common/ |
A D | qemu_spm.c | 135 plat_qemu_secure_partition_mmap[0].base_va = ns_buf_base; in plat_get_secure_partition_mmap()
|