/optee_os/core/arch/arm/kernel/ |
A D | boot.c | 643 int offs; in add_dt_overlay_fragment() local 690 int offs; in add_dt_path_subnode() local 695 offs = add_dt_overlay_fragment(dt, offs); in add_dt_path_subnode() 698 offs = fdt_add_subnode(dt->blob, offs, subnode); in add_dt_path_subnode() 706 int offs; in add_optee_dt_node() local 721 offs = fdt_add_subnode(dt->blob, offs, "optee"); in add_optee_dt_node() 773 int offs; in dt_add_psci_node() local 833 offs = fdt_next_node(dt->blob, offs, NULL); in dt_add_psci_cpu_enable_methods() 843 offs = 0; in dt_add_psci_cpu_enable_methods() 888 offs = 0; in add_res_mem_dt_node() [all …]
|
/optee_os/core/tee/ |
A D | tee_time_generic.c | 15 TEE_Time offs; member 30 *offs = &tee_time_offs[n].offs; in tee_time_ta_get_offs() 39 const TEE_Time *offs, bool positive) in tee_time_ta_set_offs() argument 47 tee_time_offs[n].offs = *offs; in tee_time_ta_set_offs() 59 tee_time_offs[tee_time_num_offs].offs = *offs; in tee_time_ta_set_offs() 68 const TEE_Time *offs; in tee_time_get_ta_time() local 82 TEE_TIME_ADD(t, *offs, t2); in tee_time_get_ta_time() 88 TEE_TIME_SUB(t, *offs, t2); in tee_time_get_ta_time() 102 TEE_Time offs; in tee_time_set_ta_time() local 114 TEE_TIME_SUB(*time, t, offs); in tee_time_set_ta_time() [all …]
|
A D | entry_std.c | 58 mem->offs = pa - b; in param_mem_from_mobj() 73 mem->offs = 0; in set_fmem_param() 82 mem->offs = reg_pair_to_64(READ_ONCE(fmem->offs_high), in set_fmem_param() 90 if (ADD_OVERFLOW(mem->offs, mem->size, &req_size) || in set_fmem_param() 110 mem->offs = 0; in set_tmem_param() 123 mem->offs = 0; in set_tmem_param() 156 mem->offs = READ_ONCE(rmem->offs); in set_rmem_param() 163 if (ADD_OVERFLOW(mem->offs, mem->size, &req_size) || in set_rmem_param()
|
A D | tee_ree_fs.c | 133 uint8_t vers, size_t *offs, size_t *size) in get_offs_size() argument 194 *offs = sizeof(struct tee_fs_htree_image) * vers; in get_offs_size() 199 *offs = pbn * BLOCK_SIZE + in get_offs_size() 207 *offs = pbn * BLOCK_SIZE; in get_offs_size() 222 size_t offs; in ree_fs_rpc_read_init() local 230 offs, size, data); in ree_fs_rpc_read_init() 240 size_t offs; in ree_fs_rpc_write_init() local 248 offs, size, data); in ree_fs_rpc_write_init() 272 size_t offs; in ree_fs_ftruncate_internal() local 277 BLOCK_SIZE, 1, &offs, &sz); in ree_fs_ftruncate_internal() [all …]
|
A D | tee_svc_cryp.c | 521 size_t *offs); 523 size_t *offs); 542 (*offs) = next_offs; in op_u32_to_binary_helper() 614 (*offs) = next_offs; in op_attr_secret_value_to_binary() 636 (*offs) += s; in op_attr_secret_value_from_binary() 724 (*offs) = next_offs; in op_attr_bignum_to_binary() 742 (*offs) += n; in op_attr_bignum_from_binary() 1052 size_t offs = 0; in tee_obj_attr_to_binary() local 1075 *data_len = offs; in tee_obj_attr_to_binary() 1086 size_t offs = 0; in tee_obj_attr_from_binary() local [all …]
|
/optee_os/core/kernel/ |
A D | dt.c | 26 if (!fdt_node_check_compatible(fdt, offs, in dt_find_compatible_driver() 40 prop = fdt_getprop(fdt, offs, propname, NULL); in dt_have_prop() 99 st = _fdt_get_status(fdt, offs); in dt_map_dev() 103 pbase = _fdt_reg_base_address(fdt, offs); in dt_map_dev() 106 sz = _fdt_reg_size(fdt, offs); in dt_map_dev() 166 parent = fdt_parent_offset(fdt, offs); in _fdt_reg_base_address() 170 reg = fdt_getprop(fdt, offs, "reg", &len); in _fdt_reg_base_address() 189 parent = fdt_parent_offset(fdt, offs); in _fdt_reg_size() 223 int _fdt_get_status(const void *fdt, int offs) in _fdt_get_status() argument 263 dinfo.reg_size = _fdt_reg_size(fdt, offs); in _fdt_fill_device_info() [all …]
|
A D | console.c | 64 int offs; in get_console_node_from_dt() local 70 offs = find_chosen_node(fdt); in get_console_node_from_dt() 71 if (offs < 0) { in get_console_node_from_dt() 76 prop = fdt_get_property(fdt, offs, "stdout-path", NULL); in get_console_node_from_dt() 102 offs = fdt_path_offset(fdt, uart); in get_console_node_from_dt() 103 if (offs >= 0) { in get_console_node_from_dt() 105 *offs_out = offs; in get_console_node_from_dt() 127 int offs; in configure_console_from_dt() local 130 if (get_console_node_from_dt(fdt, &offs, &uart, &parms)) in configure_console_from_dt() 133 dt_drv = dt_find_compatible_driver(fdt, offs); in configure_console_from_dt() [all …]
|
A D | ree_fs_ta.c | 62 size_t offs; member 116 params[1].u.memref.offs = 0; in rpc_load() 137 size_t offs = 0; in ree_fs_ta_open() local 187 offs = shdr_sz; in ree_fs_ta_open() 223 offs += sizeof(*bs_hdr); in ree_fs_ta_open() 266 offs += ehdr_sz; in ree_fs_ta_open() 270 if (ta_size != offs + shdr->img_size) { in ree_fs_ta_open() 277 handle->offs = offs; in ree_fs_ta_open() 494 handle->offs = next_offs; in ree_fs_ta_read() 559 size_t offs; member [all …]
|
A D | embedded_ts.c | 20 size_t offs; member 123 uint8_t *src = (uint8_t *)h->ts->ts + h->offs; in read_uncompressed() 126 if (ADD_OVERFLOW(h->offs, len, &next_offs) || in read_uncompressed() 131 h->offs = next_offs; in read_uncompressed()
|
/optee_os/core/include/kernel/ |
A D | dt.h | 115 const struct dt_driver *dt_find_compatible_driver(const void *fdt, int offs); 131 int dt_map_dev(const void *fdt, int offs, vaddr_t *base, size_t *size); 141 bool dt_have_prop(const void *fdt, int offs, const char *propname); 171 paddr_t _fdt_reg_base_address(const void *fdt, int offs); 177 size_t _fdt_reg_size(const void *fdt, int offs); 184 int _fdt_get_status(const void *fdt, int offs); 201 int offs __unused) in dt_find_compatible_driver() 206 static inline int dt_map_dev(const void *fdt __unused, int offs __unused, in dt_map_dev() 213 int offs __unused) in _fdt_reg_base_address() 219 int offs __unused) in _fdt_reg_size() [all …]
|
/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/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/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() 473 size_t offs = 0; in test_corrupt_type() local 491 aux2.data[offs + n]++; in test_corrupt_type() [all …]
|
/optee_os/core/mm/ |
A D | mobj.c | 55 static TEE_Result mobj_phys_get_pa(struct mobj *mobj, size_t offs, in mobj_phys_get_pa() argument 64 p = moph->pa + offs; in mobj_phys_get_pa() 250 static size_t mobj_mm_offs(struct mobj *mobj, size_t offs) in mobj_mm_offs() argument 254 return (mm->offset << mm->pool->shift) + offs; in mobj_mm_offs() 260 mobj_mm_offs(mobj, offs), len); in mobj_mm_get_va() 268 mobj_mm_offs(mobj, offs), granule, pa); in mobj_mm_get_pa() 370 if (!pa || offs >= mobj->size) in mobj_shm_get_pa() 373 p = m->pa + offs; in mobj_shm_get_pa() 476 if (!mobj_check_offset_and_len(mobj, offs, len)) in mobj_seccpy_shm_get_va() 478 return (void *)(m->va + offs); in mobj_seccpy_shm_get_va() [all …]
|
A D | vm.c | 289 reg->offset = offs; in vm_map_pad() 800 size_t offs = 0; in map_kinit() local 811 mobj, offs); in map_kinit() 819 mobj, offs); in map_kinit() 881 phys_offs += mem->offs; in param_mem_to_user_va() 915 ret = CMP_TRILEAN(m0->offs, m1->offs); in cmp_param_mem() 942 mem[n].offs = ROUNDDOWN(phys_offs + param->u[n].mem.offs, in vm_map_param() 967 (mem[n].offs == (mem[m].offs + mem[m].size) || in vm_map_param() 970 mem[m].size = mem[n].offs + mem[n].size - mem[m].offs; in vm_map_param() 1311 uint16_t *prot, size_t *offs) in vm_get_mobj() argument [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/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() 84 struct mobj **mobj, size_t *offs); 103 uint16_t *prot, size_t *offs);
|
/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()
|
A D | sys.h | 43 uint32_t handle, size_t offs, size_t pad_begin, 46 size_t offs);
|
/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/clk/sam/ |
A D | at91_sckc.c | 22 static TEE_Result sckc_pmc_setup(const void *fdt __unused, int offs, in sckc_pmc_setup() argument 38 return 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,
|