/optee_os/core/tee/ |
A D | tee_time_generic.c | 14 TEE_Time offs; member 29 *offs = &tee_time_offs[n].offs; in tee_time_ta_get_offs() 38 const TEE_Time *offs, bool positive) in tee_time_ta_set_offs() argument 46 tee_time_offs[n].offs = *offs; in tee_time_ta_set_offs() 58 tee_time_offs[tee_time_num_offs].offs = *offs; in tee_time_ta_set_offs() 67 const TEE_Time *offs; in tee_time_get_ta_time() local 81 TEE_TIME_ADD(t, *offs, t2); in tee_time_get_ta_time() 87 TEE_TIME_SUB(t, *offs, t2); in tee_time_get_ta_time() 101 TEE_Time offs; in tee_time_set_ta_time() local 113 TEE_TIME_SUB(*time, t, offs); in tee_time_set_ta_time() [all …]
|
/optee_os/core/kernel/ |
A D | dt.c | 754 int offs = 0; in add_dt_overlay_fragment() local 762 if (offs < 0) in add_dt_overlay_fragment() 763 return offs; in add_dt_overlay_fragment() 791 return offs; in add_dt_overlay_fragment() 914 int offs = 0; in add_dt_path_subnode() local 917 if (offs < 0) in add_dt_path_subnode() 918 return offs; in add_dt_path_subnode() 919 offs = add_dt_overlay_fragment(dt, offs); in add_dt_path_subnode() 920 if (offs < 0) in add_dt_path_subnode() 952 offs = 0; in add_res_mem_dt_node() [all …]
|
A D | console.c | 82 int offs; in get_console_node_from_dt() local 88 offs = find_chosen_node(fdt); in get_console_node_from_dt() 89 if (offs < 0) { in get_console_node_from_dt() 94 prop = fdt_get_property(fdt, offs, "stdout-path", NULL); in get_console_node_from_dt() 120 offs = fdt_path_offset(fdt, uart); in get_console_node_from_dt() 121 if (offs >= 0) { in get_console_node_from_dt() 123 *offs_out = offs; in get_console_node_from_dt() 145 int offs; in configure_console_from_dt() local 152 if (get_console_node_from_dt(fdt, &offs, &uart, &parms)) in configure_console_from_dt() 155 dt_drv = dt_find_compatible_driver(fdt, offs); in configure_console_from_dt() [all …]
|
A D | boot.c | 13 static uint64_t get_dt_val_and_advance(const void *data, size_t *offs, in get_dt_val_and_advance() argument 21 memcpy(&v, (const uint8_t *)data + *offs, sizeof(v)); in get_dt_val_and_advance() 22 *offs += sizeof(v); in get_dt_val_and_advance() 27 memcpy(&v, (const uint8_t *)data + *offs, sizeof(v)); in get_dt_val_and_advance() 28 *offs += sizeof(v); in get_dt_val_and_advance() 50 int offs = 0; in get_nsec_memory_helper() local 63 offs = fdt_node_offset_by_prop_value(fdt, offs, "device_type", in get_nsec_memory_helper() 66 if (offs < 0) in get_nsec_memory_helper() 69 if (fdt_get_status(fdt, offs) != (DT_STATUS_OK_NSEC | in get_nsec_memory_helper() 73 prop = fdt_getprop(fdt, offs, "reg", &len); in get_nsec_memory_helper()
|
A D | ree_fs_ta.c | 64 size_t offs; member 247 size_t offs = 0; in ree_fs_ta_open() local 282 offs = shdr_sz; in ree_fs_ta_open() 287 if (offs > ta_size) { in ree_fs_ta_open() 298 if (ADD_OVERFLOW(offs, shdr->img_size, &offs) || in ree_fs_ta_open() 299 ADD_OVERFLOW(offs, pub_key.name_size, &offs) || in ree_fs_ta_open() 300 offs > ta_size) { in ree_fs_ta_open() 333 offs += shdr_sz; in ree_fs_ta_open() 465 offs += ehdr_sz; in ree_fs_ta_open() 476 handle->offs = offs; in ree_fs_ta_open() [all …]
|
/optee_os/scripts/ |
A D | sign_encrypt.py | 478 self.shdr = self.inf[offs:offs + SHDR_SIZE] 496 self.sig = self.inf[offs:offs + sig_size] 502 self.ta_version = self.inf[offs:offs + 4] 536 self.uuid = self.inf[offs:offs + UUID_SIZE] 542 self.attr = self.inf[offs:offs + img_size - 581 ta_uuid = self.inf[offs:offs + UUID_SIZE] 590 ehdr = self.inf[offs: offs + EHDR_SIZE] 623 tag = self.inf[offs:offs+tag_len] 654 .format(offs, offs)) 656 shdr = self.inf[offs:offs + SHDR_SIZE] [all …]
|
A D | ts_bin_to_c.py | 75 offs = s2.header['sh_offset'] - s2.header['sh_addr'] 77 offs = offs + symbol.entry['st_value'] 78 offs = offs + 20 # Flags offset in ta_head 79 f.seek(offs)
|
/optee_os/lib/libmbedtls/core/ |
A D | aes_ctr.c | 136 size_t offs = 0; in mbedtls_aes_crypt_ctr() local 146 output[offs] = stream_block[*nc_off] ^ input[offs]; in mbedtls_aes_crypt_ctr() 147 offs++; in mbedtls_aes_crypt_ctr() 149 if (offs == length) in mbedtls_aes_crypt_ctr() 153 if ((length - offs) >= 16) { in mbedtls_aes_crypt_ctr() 154 size_t block_count = (length - offs) / 16; in mbedtls_aes_crypt_ctr() 156 crypto_accel_aes_ctr_be_enc(output + offs, input + offs, in mbedtls_aes_crypt_ctr() 159 offs += block_count * 16; in mbedtls_aes_crypt_ctr() 162 while (offs < length) { in mbedtls_aes_crypt_ctr() 165 output[offs] = stream_block[*nc_off] ^ input[offs]; in mbedtls_aes_crypt_ctr() [all …]
|
A D | des_ecb.c | 65 size_t offs = 0; in mbed_des_ecb_update() local 70 for (offs = 0; offs < len; offs += block_size) { in mbed_des_ecb_update() 71 if (mbedtls_des_crypt_ecb(&c->des_ctx, data + offs, dst + offs)) in mbed_des_ecb_update()
|
A D | des3_ecb.c | 73 size_t offs = 0; in mbed_des3_ecb_update() local 78 for (offs = 0; offs < len; offs += block_size) { in mbed_des3_ecb_update() 79 if (mbedtls_des3_crypt_ecb(&c->des3_ctx, data + offs, in mbed_des3_ecb_update() 80 dst + offs)) in mbed_des3_ecb_update()
|
A D | aes_ecb.c | 72 size_t offs = 0; in mbed_aes_ecb_update() local 77 for (offs = 0; offs < len; offs += block_size) { in mbed_aes_ecb_update() 79 data + offs, dst + offs)) in mbed_aes_ecb_update()
|
/optee_os/core/arch/arm/kernel/ |
A D | boot.c | 480 *ptr -= offs; in undo_init_relocation() 660 int offs; in add_optee_dt_node() local 671 if (offs < 0) in add_optee_dt_node() 675 offs = fdt_add_subnode(dt->blob, offs, "optee"); in add_optee_dt_node() 676 if (offs < 0) in add_optee_dt_node() 747 int offs; in dt_add_psci_node() local 755 if (offs < 0) in dt_add_psci_node() 804 int offs = 0; in dt_add_psci_cpu_enable_methods() local 807 offs = fdt_next_node(dt->blob, offs, NULL); in dt_add_psci_cpu_enable_methods() 817 offs = 0; in dt_add_psci_cpu_enable_methods() [all …]
|
/optee_os/core/include/kernel/ |
A D | dt.h | 111 const struct dt_driver *dt_find_compatible_driver(const void *fdt, int offs); 128 int dt_map_dev(const void *fdt, int offs, vaddr_t *base, size_t *size, 139 bool dt_have_prop(const void *fdt, int offs, const char *propname); 169 paddr_t fdt_reg_base_address(const void *fdt, int offs); 175 size_t fdt_reg_size(const void *fdt, int offs); 186 int fdt_reg_info(const void *fdt, int offs, paddr_t *base, size_t *size); 193 int fdt_get_status(const void *fdt, int offs); 342 int offs __unused) in dt_find_compatible_driver() 347 static inline int dt_map_dev(const void *fdt __unused, int offs __unused, in dt_map_dev() 355 int offs __unused) in fdt_reg_base_address() [all …]
|
/optee_os/core/pta/ |
A D | secstor_ta_mgmt.c | 46 size_t offs; in install_ta() local 80 offs = SHDR_GET_SIZE(shdr); in install_ta() 81 memcpy(&bs_ta, nw + offs, sizeof(bs_ta)); in install_ta() 91 offs += sizeof(bs_ta); in install_ta() 98 property.bin_size = nw_size - offs; in install_ta() 105 while (offs < nw_size) { in install_ta() 106 size_t l = MIN(buf_size, nw_size - offs); in install_ta() 108 memcpy(buf, nw + offs, l); in install_ta() 115 offs += l; in install_ta()
|
/optee_os/core/mm/ |
A D | boot_mem.c | 113 static void *add_offs(void *p, size_t offs) in add_offs() argument 116 return (uint8_t *)p + offs; in add_offs() 119 void boot_mem_relocate(size_t offs) in boot_mem_relocate() argument 124 boot_mem_desc = add_offs(boot_mem_desc, offs); in boot_mem_relocate() 126 boot_mem_desc->orig_mem_start += offs; in boot_mem_relocate() 127 boot_mem_desc->orig_mem_end += offs; in boot_mem_relocate() 128 boot_mem_desc->mem_start += offs; in boot_mem_relocate() 129 boot_mem_desc->mem_end += offs; in boot_mem_relocate() 134 reloc->ptrs[n] = add_offs(reloc->ptrs[n], offs); in boot_mem_relocate() 135 *reloc->ptrs[n] = add_offs(*reloc->ptrs[n], offs); in boot_mem_relocate() [all …]
|
/optee_os/core/drivers/clk/ |
A D | fixed_clk.c | 28 static TEE_Result fixed_clock_probe(const void *fdt, int offs, in fixed_clock_probe() argument 37 name = fdt_get_name(fdt, offs, NULL); in fixed_clock_probe() 51 freq = fdt_getprop(fdt, offs, "clock-frequency", NULL); in fixed_clock_probe() 64 res = clk_dt_register_clk_provider(fdt, offs, clk_dt_get_simple_clk, in fixed_clock_probe()
|
/optee_os/core/pta/tests/ |
A D | fs_htree.c | 76 *offs = pbn * TEST_BLOCK_SIZE + in test_get_offs_size() 84 *offs = pbn * TEST_BLOCK_SIZE; in test_get_offs_size() 98 size_t offs = 0; in test_read_init() local 105 op->params[0].u.value.b = offs; in test_read_init() 125 if (offs + sz <= a->data_len) in test_read_final() 127 else if (offs <= a->data_len) in test_read_final() 128 *bytes = a->data_len - offs; in test_read_final() 148 size_t end = offs + sz; in test_write_final() 476 size_t offs = 0; in test_corrupt_type() local 494 aux2.data[offs + n]++; in test_corrupt_type() [all …]
|
/optee_os/core/include/mm/ |
A D | vm.h | 31 size_t offs, size_t pad_begin, size_t pad_end, 41 struct mobj *mobj, size_t offs) in vm_map() argument 43 return vm_map_pad(uctx, va, len, prot, flags, mobj, offs, 0, 0, 0); in vm_map() 80 struct mobj **mobj, size_t *offs); 99 uint16_t *prot, size_t *offs);
|
/optee_os/core/crypto/ |
A D | signed_hdr.c | 20 struct shdr *shdr_alloc_and_copy(size_t offs, const void *img, size_t img_size) in shdr_alloc_and_copy() argument 28 if (ADD_OVERFLOW(offs, sizeof(struct shdr), &end) || end > img_size) in shdr_alloc_and_copy() 31 shdr_size = SHDR_GET_SIZE((const struct shdr *)(img_va + offs)); in shdr_alloc_and_copy() 32 if (!shdr_size || ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy() 41 memcpy(shdr, (const uint8_t *)img + offs, shdr_size); in shdr_alloc_and_copy() 178 if (ADD_OVERFLOW(attrs[n].offs, attrs[n].size, &end) || in check_attrs() 246 TEE_Result shdr_load_pub_key(const struct shdr *shdr, size_t offs, in shdr_load_pub_key() argument 264 if (ADD_OVERFLOW(shdr->img_size, offs, &end) || end > ns_img_size) in shdr_load_pub_key() 270 memcpy(img + shdr->hash_size, ns_img + offs, shdr->img_size); in shdr_load_pub_key() 304 if (ADD_OVERFLOW(key->name_size, offs + shdr->img_size, &end) || in shdr_load_pub_key() [all …]
|
/optee_os/ldelf/ |
A D | sys.c | 61 uint32_t handle, size_t offs, size_t pad_begin, in sys_map_ta_bin() argument 64 return _ldelf_map_bin(va, num_bytes, handle, offs, in sys_map_ta_bin() 70 size_t offs) in sys_copy_from_ta_bin() argument 72 return _ldelf_cp_from_bin(dst, offs, num_bytes, handle); in sys_copy_from_ta_bin()
|
/optee_os/core/drivers/ |
A D | openedges_omc.c | 79 static void omc_write32(uint8_t filter, uint32_t offs, uint32_t val) in omc_write32() argument 83 io_write32(tzc.base + filter_offs + offs, val); in omc_write32() 86 static uint32_t omc_read32(uint8_t filter, uint32_t offs) in omc_read32() argument 90 return io_read32(tzc.base + filter_offs + offs); in omc_read32() 93 static void omc_write64(uint8_t filter, uint32_t offs, uint64_t val) in omc_write64() argument 97 io_write64(tzc.base + filter_offs + offs, val); in omc_write64() 100 static uint64_t omc_read64(uint8_t filter, uint32_t offs) in omc_read64() argument 104 return io_read64(tzc.base + filter_offs + offs); in omc_read64()
|
/optee_os/core/lib/zlib/ |
A D | inftrees.c | 60 unsigned short offs[MAXBITS+1]; /* offsets in table for each length */ local 142 offs[1] = 0; 144 offs[len + 1] = offs[len] + count[len]; 148 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym;
|
/optee_os/core/drivers/rstctrl/ |
A D | stm32_rstctrl.c | 90 TEE_Result stm32_rstctrl_provider_probe(const void *fdt, int offs, in stm32_rstctrl_provider_probe() argument 97 fdt_fill_device_info(fdt, &info, offs); in stm32_rstctrl_provider_probe() 102 return rstctrl_register_provider(fdt, offs, stm32_rstctrl_get_dev, in stm32_rstctrl_provider_probe()
|
/optee_os/core/drivers/clk/sam/ |
A D | at91_sckc.c | 30 static TEE_Result sckc_pmc_setup(const void *fdt __unused, int offs, in sckc_pmc_setup() argument 49 res = clk_dt_register_clk_provider(fdt, offs, clk_dt_get_simple_clk, in sckc_pmc_setup()
|
/optee_os/ldelf/include/ |
A D | ldelf_syscalls.h | 23 size_t offs, size_t pad_begin, size_t pad_end, 25 TEE_Result _ldelf_cp_from_bin(void *dst, size_t offs, size_t num_bytes,
|