Lines Matching refs:tee_mmap_region

50 static struct tee_mmap_region static_memory_map[CFG_MMAP_REGIONS
146 static struct tee_mmap_region *get_memory_map(void) in get_memory_map()
149 struct tee_mmap_region *map = virt_get_memory_map(); in get_memory_map()
186 static bool pa_is_in_map(struct tee_mmap_region *map, paddr_t pa, size_t len) in pa_is_in_map()
199 static bool va_is_in_map(struct tee_mmap_region *map, vaddr_t va) in va_is_in_map()
208 struct tee_mmap_region *map) in pbuf_inside_map_area()
213 static struct tee_mmap_region *find_map_by_type(enum teecore_memtypes type) in find_map_by_type()
215 struct tee_mmap_region *map; in find_map_by_type()
223 static struct tee_mmap_region *
226 struct tee_mmap_region *map; in find_map_by_type_and_pa()
237 static struct tee_mmap_region *find_map_by_va(void *va) in find_map_by_va()
239 struct tee_mmap_region *map = get_memory_map(); in find_map_by_va()
250 static struct tee_mmap_region *find_map_by_pa(unsigned long pa) in find_map_by_pa()
252 struct tee_mmap_region *map = get_memory_map(); in find_map_by_pa()
377 struct tee_mmap_region *map) in check_phys_mem_is_outside()
409 struct tee_mmap_region *map = static_memory_map; in core_mmu_set_discovered_nsec_ddr()
570 static void verify_special_mem_areas(struct tee_mmap_region *mem_map, in verify_special_mem_areas()
578 struct tee_mmap_region *mmap; in verify_special_mem_areas()
618 static void add_phys_mem(struct tee_mmap_region *memory_map, size_t num_elems, in add_phys_mem()
662 sizeof(struct tee_mmap_region) * (*last - n)); in add_phys_mem()
670 static void add_va_space(struct tee_mmap_region *memory_map, size_t num_elems, in add_va_space()
689 sizeof(struct tee_mmap_region) * (*last - n)); in add_va_space()
756 static bool __maybe_unused map_is_tee_ram(const struct tee_mmap_region *mm) in map_is_tee_ram()
774 static bool __maybe_unused map_is_secure(const struct tee_mmap_region *mm) in map_is_secure()
779 static bool __maybe_unused map_is_pgdir(const struct tee_mmap_region *mm) in map_is_pgdir()
786 const struct tee_mmap_region *mm_a = a; in cmp_mmap_by_lower_va()
787 const struct tee_mmap_region *mm_b = b; in cmp_mmap_by_lower_va()
792 static void dump_mmap_table(struct tee_mmap_region *memory_map) in dump_mmap_table()
794 struct tee_mmap_region *map; in dump_mmap_table()
873 static void add_pager_vaspace(struct tee_mmap_region *mmap, size_t num_elems, in add_pager_vaspace()
902 sizeof(struct tee_mmap_region) * (*last - pos)); in add_pager_vaspace()
923 static size_t collect_mem_ranges(struct tee_mmap_region *memory_map, in collect_mem_ranges()
958 static void assign_mem_granularity(struct tee_mmap_region *memory_map) in assign_mem_granularity()
960 struct tee_mmap_region *map = NULL; in assign_mem_granularity()
996 struct tee_mmap_region *memory_map, in assign_mem_va_dir()
999 struct tee_mmap_region *map = NULL; in assign_mem_va_dir()
1112 struct tee_mmap_region *memory_map) in assign_mem_va()
1149 const struct tee_mmap_region *mm_a = a; in cmp_init_mem_map()
1150 const struct tee_mmap_region *mm_b = b; in cmp_init_mem_map()
1167 static bool mem_map_add_id_map(struct tee_mmap_region *memory_map, in mem_map_add_id_map()
1171 struct tee_mmap_region *map = NULL; in mem_map_add_id_map()
1185 *map = (struct tee_mmap_region){ in mem_map_add_id_map()
1204 static unsigned long init_mem_map(struct tee_mmap_region *memory_map, in init_mem_map()
1224 qsort(memory_map, last, sizeof(struct tee_mmap_region), in init_mem_map()
1258 qsort(memory_map, last, sizeof(struct tee_mmap_region), in init_mem_map()
1266 static void check_mem_map(struct tee_mmap_region *map) in check_mem_map()
1268 struct tee_mmap_region *m = NULL; in check_mem_map()
1311 static struct tee_mmap_region *get_tmp_mmap(void) in get_tmp_mmap()
1313 struct tee_mmap_region *tmp_mmap = (void *)__heap1_start; in get_tmp_mmap()
1346 struct tee_mmap_region *tmp_mmap = get_tmp_mmap(); in core_init_mmu_map()
1355 static_memory_map[0] = (struct tee_mmap_region){ in core_init_mmu_map()
1401 struct tee_mmap_region *map; in core_pbuf_is()
1455 struct tee_mmap_region *map; in core_va2pa_helper()
1474 static void *map_pa2va(struct tee_mmap_region *map, paddr_t pa, size_t len) in map_pa2va()
1487 struct tee_mmap_region *map = find_map_by_type(type); in core_mmu_get_mem_by_type()
1500 struct tee_mmap_region *map = find_map_by_pa(pa); in core_mmu_get_type_by_pa()
1524 struct tee_mmap_region *region) in clear_region()
1544 struct tee_mmap_region *region) in set_region()
1570 struct tee_mmap_region r = { in set_pg_region()
1632 struct tee_mmap_region *mm __maybe_unused) in can_map_at_level()
1654 void core_mmu_map_region(struct mmu_partition *prtn, struct tee_mmap_region *mm) in core_mmu_map_region()
1719 struct tee_mmap_region *mm; in core_mmu_map_pages()
1796 struct tee_mmap_region *mm = NULL; in core_mmu_map_contiguous_pages()
1861 struct tee_mmap_region *mm; in core_mmu_unmap_pages()
1925 struct tee_mmap_region *res_map = NULL; in core_mmu_remove_mapping()
1926 struct tee_mmap_region *map = NULL; in core_mmu_remove_mapping()
1975 struct tee_mmap_region *
1978 struct tee_mmap_region *map = NULL; in core_mmu_find_mapping_exclusive()
1979 struct tee_mmap_region *map_found = NULL; in core_mmu_find_mapping_exclusive()
2003 struct tee_mmap_region *map; in core_mmu_add_mapping()
2230 struct tee_mmap_region *mmap = NULL; in phys_to_virt_tee_ram()
2281 struct tee_mmap_region *map = NULL; in phys_to_virt_io()