Searched refs:mem_map (Results 1 – 7 of 7) sorted by relevance
| /optee_os/core/mm/ |
| H A D | core_mmu.c | 66 void (*memory_map_realloc_func)(struct memory_map *mem_map) __nex_bss; 122 static void heap_realloc_memory_map(struct memory_map *mem_map) in heap_realloc_memory_map() argument 125 struct tee_mmap_region *old = mem_map->map; in heap_realloc_memory_map() 126 size_t old_sz = sizeof(*old) * mem_map->alloc_count; in heap_realloc_memory_map() 133 mem_map->map = m; in heap_realloc_memory_map() 134 mem_map->alloc_count++; in heap_realloc_memory_map() 137 static void boot_mem_realloc_memory_map(struct memory_map *mem_map) in boot_mem_realloc_memory_map() argument 140 struct tee_mmap_region *old = mem_map->map; in boot_mem_realloc_memory_map() 141 size_t old_sz = sizeof(*old) * mem_map->alloc_count; in boot_mem_realloc_memory_map() 146 mem_map->map = m; in boot_mem_realloc_memory_map() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | virtualization.c | 54 struct memory_map mem_map; member 113 static TEE_Result prepare_memory_map(struct memory_map *mem_map, in prepare_memory_map() argument 129 mem_map->map = nex_calloc(kmem_map->count + 1, sizeof(*mem_map->map)); in prepare_memory_map() 130 if (!mem_map->map) in prepare_memory_map() 132 mem_map->count = kmem_map->count; in prepare_memory_map() 133 mem_map->alloc_count = kmem_map->count + 1; in prepare_memory_map() 135 memcpy(mem_map->map, kmem_map->map, in prepare_memory_map() 136 sizeof(*mem_map->map) * mem_map->count); in prepare_memory_map() 139 for (n = 0; n < mem_map->count; n++) { in prepare_memory_map() 140 map = mem_map->map + n; in prepare_memory_map() [all …]
|
| /optee_os/core/arch/riscv/mm/ |
| H A D | core_mmu_arch.c | 535 struct memory_map *mem_map) in core_init_mmu_prtn_tee() argument 539 assert(prtn && mem_map); in core_init_mmu_prtn_tee() 541 for (n = 0; n < mem_map->count; n++) { in core_init_mmu_prtn_tee() 542 struct tee_mmap_region *mm = mem_map->map + n; in core_init_mmu_prtn_tee() 554 for (n = 0; n < mem_map->count; n++) in core_init_mmu_prtn_tee() 555 core_mmu_map_region(prtn, mem_map->map + n); in core_init_mmu_prtn_tee() 1045 void core_init_mmu_prtn(struct mmu_partition *prtn, struct memory_map *mem_map) in core_init_mmu_prtn() argument 1047 core_init_mmu_prtn_tee(prtn, mem_map); in core_init_mmu_prtn() 1051 void core_init_mmu(struct memory_map *mem_map) in core_init_mmu() argument 1081 core_init_mmu_prtn_tee(prtn, mem_map); in core_init_mmu() [all …]
|
| /optee_os/core/arch/arm/mm/ |
| H A D | core_mmu_lpae.c | 848 struct memory_map *mem_map) in core_init_mmu_prtn_tee() argument 852 assert(prtn && mem_map); in core_init_mmu_prtn_tee() 854 for (n = 0; n < mem_map->count; n++) { in core_init_mmu_prtn_tee() 855 struct tee_mmap_region *mm = mem_map->map + n; in core_init_mmu_prtn_tee() 866 for (n = 0; n < mem_map->count; n++) { in core_init_mmu_prtn_tee() 867 if (core_mmu_type_is_nex_shared(mem_map->map[n].type) && in core_init_mmu_prtn_tee() 870 mem_map->map + n); in core_init_mmu_prtn_tee() 872 core_mmu_map_region(prtn, mem_map->map + n); in core_init_mmu_prtn_tee() 1026 void core_init_mmu_prtn(struct mmu_partition *prtn, struct memory_map *mem_map) in core_init_mmu_prtn() argument 1028 core_init_mmu_prtn_tee(prtn, mem_map); in core_init_mmu_prtn() [all …]
|
| H A D | core_mmu_v7.c | 775 void core_init_mmu_prtn(struct mmu_partition *prtn, struct memory_map *mem_map) in core_init_mmu_prtn() argument 783 for (n = 0; n < mem_map->count; n++) in core_init_mmu_prtn() 784 core_mmu_map_region(prtn, mem_map->map + n); in core_init_mmu_prtn() 787 void core_init_mmu(struct memory_map *mem_map) in core_init_mmu() argument 801 core_init_mmu_prtn(prtn, mem_map); in core_init_mmu()
|
| /optee_os/core/include/kernel/ |
| H A D | virtualization.h | 84 void virt_init_memory(struct memory_map *mem_map, paddr_t secmem0_base, 197 static inline void virt_init_memory(struct memory_map *mem_map __unused, in virt_init_memory()
|
| /optee_os/core/include/mm/ |
| H A D | core_mmu.h | 656 void core_init_mmu_prtn(struct mmu_partition *prtn, struct memory_map *mem_map); 678 void core_init_mmu(struct memory_map *mem_map);
|