Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 25 of 56) sorted by relevance

123

/optee_os-3.20.0/core/tee/
A Dtee_time_generic.c15 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 …]
/optee_os-3.20.0/core/arch/arm/kernel/
A Dboot.c704 int offs; in add_dt_overlay_fragment() local
751 int offs; in add_dt_path_subnode() local
756 offs = add_dt_overlay_fragment(dt, offs); in add_dt_path_subnode()
759 offs = fdt_add_subnode(dt->blob, offs, subnode); in add_dt_path_subnode()
767 int offs; in add_optee_dt_node() local
782 offs = fdt_add_subnode(dt->blob, offs, "optee"); in add_optee_dt_node()
834 int offs; in dt_add_psci_node() local
894 offs = fdt_next_node(dt->blob, offs, NULL); in dt_add_psci_cpu_enable_methods()
904 offs = 0; in dt_add_psci_cpu_enable_methods()
949 offs = 0; in add_res_mem_dt_node()
[all …]
/optee_os-3.20.0/core/kernel/
A Ddt.c26 if (!fdt_node_check_compatible(fdt, offs, in dt_find_compatible_driver()
40 prop = fdt_getprop(fdt, offs, propname, NULL); in dt_have_prop()
100 st = _fdt_get_status(fdt, offs); in dt_map_dev()
104 pbase = _fdt_reg_base_address(fdt, offs); in dt_map_dev()
107 sz = _fdt_reg_size(fdt, offs); in dt_map_dev()
177 parent = fdt_parent_offset(fdt, offs); in _fdt_reg_base_address()
181 reg = fdt_getprop(fdt, offs, "reg", &len); in _fdt_reg_base_address()
200 parent = fdt_parent_offset(fdt, offs); in _fdt_reg_size()
234 int _fdt_get_status(const void *fdt, int offs) in _fdt_get_status() argument
274 dinfo.reg_size = _fdt_reg_size(fdt, offs); in _fdt_fill_device_info()
[all …]
A Dconsole.c64 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 Dree_fs_ta.c63 size_t offs; member
245 size_t offs = 0; in ree_fs_ta_open() local
280 offs = shdr_sz; in ree_fs_ta_open()
285 if (offs > ta_size) { in ree_fs_ta_open()
296 if (ADD_OVERFLOW(offs, shdr->img_size, &offs) || in ree_fs_ta_open()
297 ADD_OVERFLOW(offs, pub_key.name_size, &offs) || in ree_fs_ta_open()
298 offs > ta_size) { in ree_fs_ta_open()
331 offs += shdr_sz; in ree_fs_ta_open()
463 offs += ehdr_sz; in ree_fs_ta_open()
474 handle->offs = offs; in ree_fs_ta_open()
[all …]
A Dembedded_ts.c21 size_t offs; member
124 uint8_t *src = (uint8_t *)h->ts->ts + h->offs; in read_uncompressed()
127 if (ADD_OVERFLOW(h->offs, len, &next_offs) || in read_uncompressed()
132 h->offs = next_offs; in read_uncompressed()
/optee_os-3.20.0/lib/libmbedtls/core/
A Daes_ctr.c136 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 Ddes_ecb.c65 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 Ddes3_ecb.c73 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 Daes_ecb.c72 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-3.20.0/scripts/
A Dsign_encrypt.py477 self.shdr = self.inf[offs:offs + SHDR_SIZE]
495 self.sig = self.inf[offs:offs + sig_size]
501 self.ta_version = self.inf[offs:offs + 4]
533 self.uuid = self.inf[offs:offs + UUID_SIZE]
539 self.attr = self.inf[offs:offs + img_size -
578 ta_uuid = self.inf[offs:offs + UUID_SIZE]
587 ehdr = self.inf[offs: offs + EHDR_SIZE]
612 nonce = self.inf[offs:offs + nonce_len]
650 .format(offs, offs))
652 shdr = self.inf[offs:offs + SHDR_SIZE]
[all …]
/optee_os-3.20.0/core/include/kernel/
A Ddt.h126 const struct dt_driver *dt_find_compatible_driver(const void *fdt, int offs);
143 int dt_map_dev(const void *fdt, int offs, vaddr_t *base, size_t *size,
154 bool dt_have_prop(const void *fdt, int offs, const char *propname);
184 paddr_t _fdt_reg_base_address(const void *fdt, int offs);
190 size_t _fdt_reg_size(const void *fdt, int offs);
197 int _fdt_get_status(const void *fdt, int offs);
244 int offs __unused) in dt_find_compatible_driver()
249 static inline int dt_map_dev(const void *fdt __unused, int offs __unused, in dt_map_dev()
257 int offs __unused) in _fdt_reg_base_address()
263 int offs __unused) in _fdt_reg_size()
[all …]
/optee_os-3.20.0/core/pta/
A Dsecstor_ta_mgmt.c46 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-3.20.0/core/drivers/clk/
A Dfixed_clk.c28 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-3.20.0/core/pta/tests/
A Dfs_htree.c76 *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-3.20.0/core/include/mm/
A Dvm.h31 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()
88 struct mobj **mobj, size_t *offs);
107 uint16_t *prot, size_t *offs);
/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c20 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 (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-3.20.0/ldelf/
A Dsys.c61 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 Dsys.h43 uint32_t handle, size_t offs, size_t pad_begin,
46 size_t offs);
/optee_os-3.20.0/core/mm/
A Dmobj.c55 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()
252 static size_t mobj_mm_offs(struct mobj *mobj, size_t offs) in mobj_mm_offs() argument
256 return (mm->offset << mm->pool->shift) + offs; in mobj_mm_offs()
262 mobj_mm_offs(mobj, offs), len); in mobj_mm_get_va()
270 mobj_mm_offs(mobj, offs), granule, pa); in mobj_mm_get_pa()
372 if (!pa || offs >= mobj->size) in mobj_shm_get_pa()
375 p = m->pa + offs; in mobj_shm_get_pa()
492 if (!mobj_check_offset_and_len(mobj, offs, len)) in mobj_seccpy_shm_get_va()
494 return (void *)(m->va + offs); in mobj_seccpy_shm_get_va()
[all …]
A Dvm.c324 reg->offset = offs; in vm_map_pad()
855 size_t offs = 0; in map_kinit() local
866 mobj, offs); in map_kinit()
874 mobj, offs); in map_kinit()
938 phys_offs += mem->offs; in param_mem_to_user_va()
972 ret = CMP_TRILEAN(m0->offs, m1->offs); in cmp_param_mem()
999 mem[n].offs = ROUNDDOWN(phys_offs + param->u[n].mem.offs, in vm_map_param()
1024 (mem[n].offs == (mem[m].offs + mem[m].size) || in vm_map_param()
1027 mem[m].size = mem[n].offs + mem[n].size - mem[m].offs; in vm_map_param()
1373 uint16_t *prot, size_t *offs) in vm_get_mobj() argument
[all …]
/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_sckc.c22 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-3.20.0/core/lib/zlib/
A Dinftrees.c60 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-3.20.0/ldelf/include/
A Dldelf_syscalls.h23 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,
/optee_os-3.20.0/core/include/
A Dsigned_hdr.h119 uint32_t offs; member
190 struct shdr *shdr_alloc_and_copy(size_t offs, const void *img, size_t img_size);
210 TEE_Result shdr_load_pub_key(const struct shdr *shdr, size_t offs,

Completed in 28 milliseconds

123