/optee_os/core/include/ |
A D | io.h | 55 io_write8(addr, (io_read8(addr) & ~mask) | (val & mask)); in io_mask8() 60 io_write16(addr, (io_read16(addr) & ~mask) | (val & mask)); in io_mask16() 65 io_write32(addr, (io_read32(addr) & ~mask) | (val & mask)); in io_mask32() 130 io_write32(addr, io_read32(addr) | set_mask); in io_setbits32() 135 io_write32(addr, io_read32(addr) & ~clear_mask); in io_clrbits32() 141 io_write32(addr, (io_read32(addr) & ~clear_mask) | set_mask); in io_clrsetbits32() 146 io_write16(addr, io_read16(addr) | set_mask); in io_setbits16() 151 io_write16(addr, io_read16(addr) & ~clear_mask); in io_clrbits16() 162 io_write8(addr, io_read8(addr) | set_mask); in io_setbits8() 167 io_write8(addr, io_read8(addr) & ~clear_mask); in io_clrbits8() [all …]
|
/optee_os/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 …]
|
A D | dt.c | 131 paddr_t addr; in _fdt_read_paddr() local 136 addr = fdt32_to_cpu(*cell); in _fdt_read_paddr() 140 if (addr) { in _fdt_read_paddr() 144 addr = fdt32_to_cpu(*cell); in _fdt_read_paddr() 146 addr = (addr << 32) | fdt32_to_cpu(*cell); in _fdt_read_paddr() 150 if (!addr) in _fdt_read_paddr() 153 return addr; in _fdt_read_paddr()
|
/optee_os/core/arch/arm/kernel/ |
A D | unwind_arm64.c | 45 vaddr_t *addr = NULL; in unw_get_kernel_stack() local 54 tmp = unw_grow(addr, &size, (n + 1) * sizeof(vaddr_t)); in unw_get_kernel_stack() 57 addr = tmp; in unw_get_kernel_stack() 58 addr[n] = state.pc; in unw_get_kernel_stack() 62 if (addr) { in unw_get_kernel_stack() 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] = 0; in unw_get_kernel_stack() 70 return addr; in unw_get_kernel_stack() 73 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/scripts/ |
A D | symbolize.py | 165 def elf_load_addr(self, addr): argument 170 i_addr = int(addr, 16) 185 def elf_for_addr(self, addr): argument 203 def resolve(self, addr): argument 242 iaddr = int(addr, 16) 292 addr = match.group('addr') 299 ret += addr 343 addr = self.subtract_load_addr(addr) 344 if not addr: 346 iaddr = int(addr, 16) [all …]
|
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 …]
|
/optee_os/out/arm/export-ta_arm32/scripts/ |
A D | symbolize.py | 165 def elf_load_addr(self, addr): argument 170 i_addr = int(addr, 16) 185 def elf_for_addr(self, addr): argument 203 def resolve(self, addr): argument 242 iaddr = int(addr, 16) 292 addr = match.group('addr') 299 ret += addr 343 addr = self.subtract_load_addr(addr) 344 if not addr: 346 iaddr = int(addr, 16) [all …]
|
/optee_os/out/arm/export-ta_arm64/scripts/ |
A D | symbolize.py | 165 def elf_load_addr(self, addr): argument 170 i_addr = int(addr, 16) 185 def elf_for_addr(self, addr): argument 203 def resolve(self, addr): argument 242 iaddr = int(addr, 16) 292 addr = match.group('addr') 299 ret += addr 343 addr = self.subtract_load_addr(addr) 344 if not addr: 346 iaddr = int(addr, 16) [all …]
|
/optee_os/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/core/arch/arm/include/mm/ |
A D | core_mmu.h | 210 paddr_t addr; member 239 __register_memory(#addr, (type), (addr), (size), \ 243 __register_memory_ul(#addr, (type), (addr), (size), \ 249 ROUNDUP(size + addr - ROUNDDOWN(addr, CORE_MMU_PGDIR_SIZE), \ 253 #define register_sdp_mem(addr, size) \ argument 254 __register_memory(#addr, MEM_AREA_SDP_MEM, (addr), (size), \ 257 #define register_sdp_mem(addr, size) \ argument 263 #define register_dynamic_shm(addr, size) \ argument 264 __register_memory(#addr, MEM_AREA_DDR_OVERALL, (addr), (size), \ 282 #define register_ddr(addr, size) \ argument [all …]
|
/optee_os/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/core/arch/arm/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/core/arch/arm/plat-ls/ |
A D | main.c | 76 vaddr_t addr; in plat_primary_init_early() local 93 for (addr = CSU_BASE + CSU_CSL_START; in plat_primary_init_early() 94 addr != CSU_BASE + CSU_CSL_END; in plat_primary_init_early() 95 addr += 4) in plat_primary_init_early() 96 io_write32(addr, __compiler_bswap32(CSU_ACCESS_ALL)); in plat_primary_init_early() 105 for (addr = CSU_BASE + CSU_CSL_START; in plat_primary_init_early() 106 addr != CSU_BASE + CSU_CSL_END; in plat_primary_init_early() 107 addr += 4) in plat_primary_init_early() 108 io_setbits32(addr, in plat_primary_init_early()
|
/optee_os/core/arch/arm/plat-zynq7k/ |
A D | main.c | 175 static uint32_t write_slcr(uint32_t addr, uint32_t val) in write_slcr() argument 180 if (addr >= slcr_access_range[i] && in write_slcr() 181 addr <= slcr_access_range[i+1]) { in write_slcr() 187 addr + in write_slcr() 189 io_write32(va + addr, val); in write_slcr() 196 static uint32_t read_slcr(uint32_t addr, uint32_t *val) in read_slcr() argument 201 if (addr >= slcr_access_range[i] && in read_slcr() 202 addr <= slcr_access_range[i+1]) { in read_slcr() 208 addr + in read_slcr() 210 *val = io_read32(va + addr); in read_slcr()
|
/optee_os/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/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/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/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/core/arch/arm/plat-imx/drivers/ |
A D | tzc380.c | 28 vaddr_t addr[2] = {0}; in imx_configure_tzasc() local 32 addr[0] = core_mmu_get_va(TZASC_BASE, MEM_AREA_IO_SEC, 1); in imx_configure_tzasc() 37 addr[1] = core_mmu_get_va(TZASC2_BASE, MEM_AREA_IO_SEC, 1); in imx_configure_tzasc() 44 tzc_init(addr[i]); in imx_configure_tzasc()
|
/optee_os/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/core/include/mm/ |
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/core/drivers/ |
A D | tzc380.c | 161 static uint32_t addr_low(vaddr_t addr) in addr_low() argument 163 return (uint32_t)addr; in addr_low() 166 static uint32_t addr_high(vaddr_t addr __maybe_unused) in addr_high() 169 return addr >> 32; in addr_high() 221 int tzc_auto_configure(vaddr_t addr, vaddr_t size, uint32_t attr, in tzc_auto_configure() argument 229 vaddr_t address = addr; in tzc_auto_configure() 289 assert(address == addr + size); in tzc_auto_configure()
|
/optee_os/core/arch/arm/mm/ |
A D | core_mmu.c | 318 } else if (pa == m[n].addr) { in carve_out_phys_mem() 319 m[n].addr += size; in carve_out_phys_mem() 331 m[n].size = pa - m[n].addr; in carve_out_phys_mem() 333 m[n + 1].addr = pa + size; in carve_out_phys_mem() 363 return CMP_TRILEAN(pmem_a->addr, pmem_b->addr); in cmp_pmem_by_addr() 524 area_name, mem->addr, (uint64_t)mem->addr + mem->size); in verify_special_mem_areas() 530 mem->addr, mem->size)) { in verify_special_mem_areas() 532 mem->addr, mem->size); in verify_special_mem_areas() 602 memory_map[n].pa = mem->addr; in add_phys_mem() 1920 paddr_t pa = virt_to_phys(addr); in core_mmu_remove_mapping() [all …]
|