Home
last modified time | relevance | path

Searched refs:region (Results 1 – 13 of 13) sorted by relevance

/optee_os/core/drivers/
A Dtzc400.c107 static void tzc_write_region_base_low(vaddr_t base, uint32_t region, in tzc_write_region_base_low() argument
129 static void tzc_write_region_top_low(vaddr_t base, uint32_t region, in tzc_write_region_top_low() argument
271 (region < tzc.num_regions)); in tzc_configure_region()
291 tzc_write_region_base_low(tzc.base, region, addr_low(cfg->base)); in tzc_configure_region()
294 tzc_write_region_top_low(tzc.base, region, addr_low(cfg->top)); in tzc_configure_region()
295 tzc_write_region_top_high(tzc.base, region, addr_high(cfg->top)); in tzc_configure_region()
298 tzc_write_region_attributes(tzc.base, region, in tzc_configure_region()
313 if (region >= tzc.num_regions) in tzc_get_region_config()
317 tzc_read_region_base_low(tzc.base, region)); in tzc_get_region_config()
319 tzc_read_region_top_low(tzc.base, region)); in tzc_get_region_config()
[all …]
A Dtzc380.c73 io_write32(base + REGION_SETUP_LOW_OFF(region), val); in tzc_write_region_base_low()
126 void tzc_region_enable(uint8_t region) in tzc_region_enable() argument
130 val = tzc_read_region_attributes(tzc.base, region); in tzc_region_enable()
132 tzc_write_region_attributes(tzc.base, region, val); in tzc_region_enable()
184 assert(region < tzc.num_regions); in tzc_configure_region()
190 if (region) { in tzc_configure_region()
191 tzc_write_region_base_low(tzc.base, region, in tzc_configure_region()
193 tzc_write_region_base_high(tzc.base, region, in tzc_configure_region()
197 tzc_write_region_attributes(tzc.base, region, in tzc_configure_region()
222 uint8_t region) in tzc_auto_configure() argument
[all …]
/optee_os/core/arch/arm/plat-imx/drivers/
A Dtzc380.c42 uint8_t region = 1; in imx_configure_tzasc() local
46 region = tzc_auto_configure(CFG_DRAM_BASE, CFG_DDR_SIZE, in imx_configure_tzasc()
47 TZC_ATTR_SP_NS_RW, region); in imx_configure_tzasc()
48 region = tzc_auto_configure(CFG_TZDRAM_START, CFG_TZDRAM_SIZE, in imx_configure_tzasc()
49 TZC_ATTR_SP_S_RW, region); in imx_configure_tzasc()
50 region = tzc_auto_configure(CFG_SHMEM_START, CFG_SHMEM_SIZE, in imx_configure_tzasc()
51 TZC_ATTR_SP_ALL, region); in imx_configure_tzasc()
/optee_os/core/mm/
A Dvm.c876 if (mem->mobj != region->mobj) in param_mem_to_user_va()
884 if (phys_offs >= (region->offset + region->size)) in param_mem_to_user_va()
886 va = region->va + phys_offs - region->offset; in param_mem_to_user_va()
1145 region->size)) in tee_mmu_user_va2pa_attr()
1166 offset = region->offset + in tee_mmu_user_va2pa_attr()
1176 *attr = region->attr; in tee_mmu_user_va2pa_attr()
1200 if (!region->mobj) in vm_pa2va()
1207 for (ofs = region->offset; ofs < region->size; ofs += size) { in vm_pa2va()
1214 size = region->size - ofs; in vm_pa2va()
1216 size = region->size; in vm_pa2va()
[all …]
/optee_os/core/arch/arm/mm/
A Dsp_mem.c195 struct vm_region *region = NULL; in sp_mem_get_va() local
197 TAILQ_FOREACH(region, &uctx->vm_info.regions, link) { in sp_mem_get_va()
198 if (region->mobj == mobj && region->offset == offset) in sp_mem_get_va()
199 return (void *)region->va; in sp_mem_get_va()
295 struct sp_mem_map_region *region = SLIST_FIRST(&smem->regions); in sp_mem_remove() local
297 mobj_put(region->mobj); in sp_mem_remove()
300 free(region); in sp_mem_remove()
A Dcore_mmu.c1516 struct tee_mmap_region *region) in clear_region() argument
1526 idx = core_mmu_va2idx(tbl_info, region->va); in clear_region()
1527 end = core_mmu_va2idx(tbl_info, region->va + region->size); in clear_region()
1536 struct tee_mmap_region *region) in set_region() argument
1548 end = core_mmu_va2idx(tbl_info, region->va + region->size); in set_region()
1549 pa = region->pa; in set_region()
1563 .va = region->va, in set_pg_region()
1564 .size = region->size, in set_pg_region()
1565 .attr = region->attr, in set_pg_region()
1611 if (!mobj_is_paged(region->mobj)) { in set_pg_region()
[all …]
/optee_os/core/arch/arm/kernel/
A Dspmc_sp_handler.c172 struct sp_mem_map_region *region = NULL; in spmc_sp_add_sp_region() local
201 region = calloc(1, sizeof(*region)); in spmc_sp_add_sp_region()
202 region->mobj = mobj; in spmc_sp_add_sp_region()
203 region->page_offset = offs; in spmc_sp_add_sp_region()
207 free(region); in spmc_sp_add_sp_region()
228 struct sp_mem_map_region *region = NULL; in spmc_sp_add_nw_region() local
250 region = calloc(1, sizeof(*region)); in spmc_sp_add_nw_region()
251 if (!region) { in spmc_sp_add_nw_region()
256 region->mobj = m; in spmc_sp_add_nw_region()
257 region->page_count = page_count; in spmc_sp_add_nw_region()
[all …]
A Dsecure_partition.c120 struct vm_region *region = NULL; in sp_has_exclusive_access() local
123 TAILQ_FOREACH(region, &uctx->vm_info.regions, link) { in sp_has_exclusive_access()
124 if (region->mobj == mem->mobj) in sp_has_exclusive_access()
128 if (!region) in sp_has_exclusive_access()
/optee_os/core/drivers/bnxt/
A Dbnxt_fw.c217 struct ape_mem_region_s *region = ape_mem_regions; in ape_host_view_addr_get() local
220 for (; region->size != 0; region++) { in ape_host_view_addr_get()
221 if (bnxt_view_addr < region->c_base) in ape_host_view_addr_get()
224 if (bnxt_view_addr >= (region->c_base + region->size)) in ape_host_view_addr_get()
227 if (size > (region->c_base + region->size - bnxt_view_addr)) { in ape_host_view_addr_get()
233 addr = bnxt_view_addr - region->c_base; in ape_host_view_addr_get()
234 addr += region->h_base; in ape_host_view_addr_get()
/optee_os/core/include/drivers/
A Dtzc400.h93 #define REGION_NUM_OFF(region) (U(0x20) * (region)) argument
233 void tzc_configure_region(uint8_t region, const struct tzc_region_config *cfg);
234 TEE_Result tzc_get_region_config(uint8_t region, struct tzc_region_config *cfg);
A Dtzc380.h212 void tzc_configure_region(uint8_t region, vaddr_t region_base, uint32_t attr);
213 void tzc_region_enable(uint8_t region);
220 uint8_t region);
/optee_os/core/arch/arm/dts/
A Dstm32mp157c-ed1.dts289 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
A Dstm32mp15xx-dkx.dtsi410 memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,

Completed in 22 milliseconds