/optee_os-3.20.0/lib/libutils/ext/include/ |
A D | memtag.h | 32 void (*clear_mem)(void *addr, size_t size); 33 uint8_t (*read_tag)(const void *addr); 42 return addr; in __memtag_disabled_set_tags() 48 return addr; in __memtag_disabled_set_random_tags() 53 memset(addr, 0, size); in __memtag_disabled_clear_mem() 110 __memtag_ops->clear_mem(addr, size); in memtag_clear_mem() 112 __memtag_disabled_clear_mem(addr, size); in memtag_clear_mem() 124 vaddr_t va = (vaddr_t)addr; in memtag_strip_tag_vaddr() 195 uint64_t va = (vaddr_t)addr; in memtag_get_tag() 206 return __memtag_ops->read_tag(addr); in memtag_read_tag() [all …]
|
/optee_os-3.20.0/core/include/ |
A D | io.h | 65 io_write8(addr, (io_read8(addr) & ~mask) | (val & mask)); in io_mask8() 70 io_write16(addr, (io_read16(addr) & ~mask) | (val & mask)); in io_mask16() 75 io_write32(addr, (io_read32(addr) & ~mask) | (val & mask)); in io_mask32() 230 io_write32(addr, io_read32(addr) | set_mask); in io_setbits32() 235 io_write32(addr, io_read32(addr) & ~clear_mask); in io_clrbits32() 241 io_write32(addr, (io_read32(addr) & ~clear_mask) | set_mask); in io_clrsetbits32() 246 io_write16(addr, io_read16(addr) | set_mask); in io_setbits16() 251 io_write16(addr, io_read16(addr) & ~clear_mask); in io_clrbits16() 262 io_write8(addr, io_read8(addr) | set_mask); in io_setbits8() 267 io_write8(addr, io_read8(addr) & ~clear_mask); in io_clrbits8() [all …]
|
/optee_os-3.20.0/core/drivers/ |
A D | lpc_uart.c | 21 static void lpc_byte_read(paddr_t addr, uint8_t *data) in lpc_byte_read() argument 28 io_write32(LPC_OP_LEN_REG_OFFSET + addr, 1); in lpc_byte_read() 31 io_write32(LPC_START_REG_OFFSET + addr, 1); in lpc_byte_read() 33 status = io_read32(LPC_IRQ_ST_REG_OFFSET + addr); in lpc_byte_read() 38 status = io_read32(LPC_IRQ_ST_REG_OFFSET + addr); in lpc_byte_read() 44 *data = io_read32(LPC_RDATA_REG_OFFSET + addr); in lpc_byte_read() 53 io_write32(LPC_OP_LEN_REG_OFFSET + addr, 1); in lpc_byte_write() 54 io_write32(LPC_WDATA_REG_OFFSET + addr, data); in lpc_byte_write() 57 io_write32(LPC_START_REG_OFFSET + addr, 1); in lpc_byte_write() 59 status = io_read32(LPC_IRQ_ST_REG_OFFSET + addr); in lpc_byte_write() [all …]
|
A D | versal_trng.c | 175 vaddr_t addr; member 489 return io_read32(addr + off); in trng_read32() 494 io_write32(addr + off, val); in trng_write32() 513 trng_write32(trng->cfg.addr, off, 0); in trng_write32_range() 522 trng_write32(trng->cfg.addr, off, val); in trng_write32_range() 561 trng_clrset32(trng->cfg.addr, TRNG_CTRL, in trng_hold_reset() 595 trng_clrset32(trng->cfg.addr, TRNG_CTRL, in trng_collect_random() 603 if (trng_wait_for_event(trng->cfg.addr, in trng_collect_random() 664 trng_write32(trng->cfg.addr, TRNG_CTRL, in trng_reseed_internal_nodf() 744 trng_write32(trng->cfg.addr, TRNG_CTRL, in trng_reseed_internal() [all …]
|
/optee_os-3.20.0/lib/libutils/ext/arch/arm/ |
A D | memtag.c | 46 static void *insert_random_tag(void *addr) in insert_random_tag() argument 48 asm volatile("irg %0, %0" : "+r"(addr) : : ); in insert_random_tag() 49 return addr; in insert_random_tag() 52 static void *load_tag(void *addr) in load_tag() argument 55 return addr; in load_tag() 78 vaddr_t va = (vaddr_t)addr; in set_tags_helper() 87 return addr; in set_tags_helper() 93 vaddr_t va = (vaddr_t)addr; in set_tags_dc_helper() 112 return addr; in set_tags_dc_helper() 144 vaddr_t va = (vaddr_t)addr; in clear_mem_dc() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | asan.c | 170 void *begin = (void *)addr; in check_access() 171 void *end = (void *)(addr + size); in check_access() 198 check_access(addr, size); in check_load() 203 check_access(addr, size); in check_store() 221 { check_##type(addr, size); } \ 224 { check_##type(addr, size); } \ 227 { report_##type(addr, size); } 243 check_load(addr, size); in __asan_loadN_noabort() 249 check_store(addr, size); in __asan_storeN_noabort() 255 report_load(addr, size); in __asan_report_load_n_noabort() [all …]
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | unwind_arm64.c | 54 vaddr_t *addr = NULL; in unw_get_kernel_stack() local 63 tmp = unw_grow(addr, &size, (n + 1) * sizeof(vaddr_t)); in unw_get_kernel_stack() 66 addr = tmp; in unw_get_kernel_stack() 67 addr[n] = state.pc; in unw_get_kernel_stack() 71 if (addr) { in unw_get_kernel_stack() 72 tmp = unw_grow(addr, &size, (n + 1) * sizeof(vaddr_t)); in unw_get_kernel_stack() 75 addr = tmp; in unw_get_kernel_stack() 76 addr[n] = 0; in unw_get_kernel_stack() 79 return addr; in unw_get_kernel_stack() 82 free(addr); in unw_get_kernel_stack()
|
A D | unwind_arm32.c | 48 bool find_exidx(vaddr_t addr __unused, vaddr_t *idx_start, vaddr_t *idx_end) in find_exidx() 61 vaddr_t *addr = NULL; in unw_get_kernel_stack() local 85 tmp = unw_grow(addr, &size, (n + 1) * sizeof(vaddr_t)); in unw_get_kernel_stack() 88 addr = tmp; in unw_get_kernel_stack() 89 addr[n] = state.registers[PC]; in unw_get_kernel_stack() 93 if (addr) { in unw_get_kernel_stack() 94 tmp = unw_grow(addr, &size, (n + 1) * sizeof(vaddr_t)); in unw_get_kernel_stack() 97 addr = tmp; in unw_get_kernel_stack() 98 addr[n] = 0; in unw_get_kernel_stack() 101 return addr; in unw_get_kernel_stack()
|
A D | tee_l2cc_mutex.c | 112 uint32_t addr; in tee_set_l2cc_mutex() local 117 addr = *mutex; in tee_set_l2cc_mutex() 118 va = phys_to_virt(addr, MEM_AREA_NSEC_SHM, MUTEX_SZ); in tee_set_l2cc_mutex() 121 l2cc_mutex_pa = addr; in tee_set_l2cc_mutex()
|
/optee_os-3.20.0/core/arch/arm/plat-ls/ |
A D | main.c | 79 vaddr_t addr; in plat_primary_init_early() local 96 for (addr = CSU_BASE + CSU_CSL_START; in plat_primary_init_early() 97 addr != CSU_BASE + CSU_CSL_END; in plat_primary_init_early() 98 addr += 4) in plat_primary_init_early() 108 for (addr = CSU_BASE + CSU_CSL_START; in plat_primary_init_early() 109 addr != CSU_BASE + CSU_CSL_END; in plat_primary_init_early() 110 addr += 4) in plat_primary_init_early() 111 io_setbits32(addr, in plat_primary_init_early() 178 vaddr_t addr = 0; in get_gic_offset() local 183 if (!addr) { in get_gic_offset() [all …]
|
/optee_os-3.20.0/core/include/kernel/ |
A D | cache_helpers.h | 20 void dcache_cleaninv_range(void *addr, size_t size); 21 void dcache_clean_range(void *addr, size_t size); 22 void dcache_inv_range(void *addr, size_t size); 23 void dcache_clean_range_pou(void *addr, size_t size); 26 void icache_inv_range(void *addr, size_t size); 27 void icache_inv_user_range(void *addr, size_t size);
|
/optee_os-3.20.0/core/include/drivers/ |
A D | ns16550.h | 46 static inline unsigned int serial_in(vaddr_t addr, uint8_t io_width) in serial_in() argument 49 return io_read32(addr); in serial_in() 51 return io_read8(addr); in serial_in() 54 static inline void serial_out(vaddr_t addr, uint8_t io_width, int ch) in serial_out() argument 57 io_write32(addr, ch); in serial_out() 59 io_write8(addr, ch); in serial_out()
|
/optee_os-3.20.0/scripts/ |
A D | mem_usage.py | 59 printf('%-16s %.8X - %.8X size %.8X %3d KiB', name, addr, addr + size, 117 (_, name, _, addr, offs, size, _, 127 addr = sect['addr'] 129 first_addr = addr 130 if int(addr, 16) >= end_of_ram: 132 last_addr = addr 142 addr = int(sect['addr'], 16) 145 if addr >= end_of_ram: 149 addr - (last_addr + last_size)) 150 print_sect(name, addr, size) [all …]
|
A D | symbolize.py | 199 def elf_load_addr(self, addr): argument 219 def elf_for_addr(self, addr): argument 237 def resolve(self, addr): argument 254 i_addr = int(addr, 16) 261 addr = self.strip_armv85_mte_tag(addr) 283 iaddr = int(addr, 16) 333 addr = match.group('addr') 340 ret += addr 384 addr = self.subtract_load_addr(addr) 385 if not addr: [all …]
|
/optee_os-3.20.0/core/drivers/bnxt/ |
A D | bnxt.c | 50 addr &= BNXT_INDIRECT_BASE_MASK; in bnxt_prepare_access_window() 51 io_write32(bnxt_access_window_virt_addr, addr); in bnxt_prepare_access_window() 54 static vaddr_t bnxt_indirect_tgt_addr(uint32_t addr) in bnxt_indirect_tgt_addr() argument 56 addr &= BNXT_INDIRECT_ADDR_MASK; in bnxt_indirect_tgt_addr() 57 return (vaddr_t)(bnxt_indirect_dest_addr + addr); in bnxt_indirect_tgt_addr() 91 static uint32_t bnxt_read(uint32_t addr) in bnxt_read() argument 93 bnxt_prepare_access_window(addr); in bnxt_read() 94 return io_read32(bnxt_indirect_tgt_addr(addr)); in bnxt_read() 104 bnxt_prepare_access_window(addr); in bnxt_write() 105 io_write32(bnxt_indirect_tgt_addr(addr), value); in bnxt_write() [all …]
|
/optee_os-3.20.0/core/include/mm/ |
A D | core_mmu.h | 170 paddr_t addr; member 199 __register_memory(#addr, (type), (addr), (size), \ 203 __register_memory_ul(#addr, (type), (addr), (size), \ 209 ROUNDUP(size + addr - ROUNDDOWN(addr, CORE_MMU_PGDIR_SIZE), \ 213 #define register_sdp_mem(addr, size) \ argument 214 __register_memory(#addr, MEM_AREA_SDP_MEM, (addr), (size), \ 217 #define register_sdp_mem(addr, size) \ argument 223 #define register_dynamic_shm(addr, size) \ argument 224 __register_memory(#addr, MEM_AREA_DDR_OVERALL, (addr), (size), \ 242 #define register_ddr(addr, size) \ argument [all …]
|
A D | tee_mm.h | 53 tee_mm_entry_t *tee_mm_find(const tee_mm_pool_t *pool, paddr_t addr); 61 static inline bool tee_mm_validate(const tee_mm_pool_t *pool, paddr_t addr) in tee_mm_validate() argument 63 return tee_mm_find(pool, addr) != 0; in tee_mm_validate() 110 bool tee_mm_addr_is_within_range(const tee_mm_pool_t *pool, paddr_t addr);
|
/optee_os-3.20.0/core/arch/arm/plat-zynq7k/ |
A D | main.c | 163 static uint32_t write_slcr(uint32_t addr, uint32_t val) in write_slcr() argument 168 if (addr >= slcr_access_range[i] && in write_slcr() 169 addr <= slcr_access_range[i+1]) { in write_slcr() 175 addr + in write_slcr() 177 io_write32(va + addr, val); in write_slcr() 184 static uint32_t read_slcr(uint32_t addr, uint32_t *val) in read_slcr() argument 189 if (addr >= slcr_access_range[i] && in read_slcr() 190 addr <= slcr_access_range[i+1]) { in read_slcr() 196 addr + in read_slcr() 198 *val = io_read32(va + addr); in read_slcr()
|
/optee_os-3.20.0/core/arch/arm/plat-imx/ |
A D | imx-common.c | 27 vaddr_t addr = 0; in imx_get_digprog() local 32 addr = core_mmu_get_va(ANATOP_BASE, MEM_AREA_IO_SEC, 0x1000); in imx_get_digprog() 33 if (!addr) in imx_get_digprog() 36 imx_digprog = io_read32(addr + DIGPROG_OFFSET); in imx_get_digprog() 43 addr = core_mmu_get_va(OCOTP_BASE, MEM_AREA_IO_SEC, OCOTP_SIZE); in imx_get_digprog() 44 if (!addr) in imx_get_digprog() 47 if (io_read32(addr + OCOTP_SW_INFO_B1) == OCOTP_SW_MAGIC_B1) in imx_get_digprog()
|
/optee_os-3.20.0/core/arch/arm/plat-marvell/armada7k8k/ |
A D | hal_sec_perf.c | 35 #define PHY_2_VIR(addr) ((vaddr_t)phys_to_virt((addr), MEM_AREA_IO_SEC, 1)) argument 152 static int32_t set_range(uint32_t addr, uint32_t size, uint32_t perm) in set_range() argument 159 if (!IS_ALIGNED(addr, SIZE_1M)) { in set_range() 161 addr); in set_range() 171 if (!IS_ALIGNED(addr, size)) { in set_range() 174 size, addr); in set_range() 195 TZ_SET_START_ADDR_L(data, addr); in set_range() 238 static uint32_t _find_granule(uint32_t addr, uint32_t size) in _find_granule() argument 246 if (max_granule <= size && IS_ALIGNED(addr, max_granule)) in _find_granule() 255 static void _set_range(uint32_t addr, uint32_t size, uint32_t perm) in _set_range() argument [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-imx/drivers/ |
A D | tzc380.c | 32 vaddr_t addr[2] = {0}; in imx_configure_tzasc() local 36 addr[0] = core_mmu_get_va(TZASC_BASE, MEM_AREA_IO_SEC, 1); in imx_configure_tzasc() 41 addr[1] = core_mmu_get_va(TZASC2_BASE, MEM_AREA_IO_SEC, 1); in imx_configure_tzasc() 48 tzc_init(addr[i]); in imx_configure_tzasc()
|
/optee_os-3.20.0/core/lib/libfdt/ |
A D | fdt_addresses.c | 58 const char *name, uint64_t addr, uint64_t size) in fdt_appendprop_addrrange() argument 76 if ((addr > UINT32_MAX) || ((UINT32_MAX + 1 - addr) < size)) in fdt_appendprop_addrrange() 79 fdt32_st(prop, (uint32_t)addr); in fdt_appendprop_addrrange() 81 fdt64_st(prop, addr); in fdt_appendprop_addrrange()
|
/optee_os-3.20.0/core/arch/arm/plat-rzn1/ |
A D | sm_platform_handler.c | 36 static uint32_t oem_sysreg(uint32_t addr, uint32_t mask, uint32_t *pvalue) in oem_sysreg() argument 39 const struct regauth_t *auth = get_regauth(addr); in oem_sysreg() 45 reg = core_mmu_get_va(addr, MEM_AREA_IO_SEC, sizeof(uint32_t)); in oem_sysreg() 52 PRIx32" (0x%"PRIxVA")", *pvalue, addr, reg); in oem_sysreg() 61 PRIxVA")", addr, reg); in oem_sysreg()
|
/optee_os-3.20.0/core/arch/arm/plat-marvell/armada3700/ |
A D | hal_sec_perf.c | 35 #define PHY_2_VIR(addr) ((vaddr_t)phys_to_virt((addr), MEM_AREA_IO_SEC, 1)) argument 150 static int32_t set_range(uint32_t addr, uint32_t size, uint32_t perm) in set_range() argument 157 if (!IS_ALIGNED(addr, SIZE_1M)) { in set_range() 159 addr); in set_range() 186 TZ_SET_START_ADDR_L(data, addr); in set_range() 226 static void _set_range(uint32_t addr, uint32_t size, uint32_t perm) in _set_range() argument 228 uint32_t rgn_addr = addr; in _set_range()
|
/optee_os-3.20.0/core/drivers/imx/mu/ |
A D | imx_mu_8ulp.c | 24 static TEE_Result mu_wait_for(vaddr_t addr, uint32_t mask) in mu_wait_for() argument 28 while (!(io_read32(addr) & mask)) in mu_wait_for() 32 if (io_read32(addr) & mask) in mu_wait_for()
|