/optee_os/lib/libutils/isoc/include/ |
A D | malloc.h | 17 void *malloc(size_t size); 29 size_t size); 33 #define malloc(size) mdbg_malloc(__FILE__, __LINE__, (size)) argument 34 #define calloc(nmemb, size) \ argument 36 #define realloc(ptr, size) \ argument 99 size_t size); 103 #define nex_malloc(size) nex_mdbg_malloc(__FILE__, __LINE__, (size)) argument 138 #define nex_malloc(size) malloc(size) argument 139 #define nex_calloc(nmemb, size) calloc(nmemb, size) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | malloc.h | 17 void *malloc(size_t size); 29 size_t size); 33 #define malloc(size) mdbg_malloc(__FILE__, __LINE__, (size)) argument 34 #define calloc(nmemb, size) \ argument 36 #define realloc(ptr, size) \ argument 99 size_t size); 103 #define nex_malloc(size) nex_mdbg_malloc(__FILE__, __LINE__, (size)) argument 138 #define nex_malloc(size) malloc(size) argument 139 #define nex_calloc(nmemb, size) calloc(nmemb, size) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | malloc.h | 17 void *malloc(size_t size); 29 size_t size); 33 #define malloc(size) mdbg_malloc(__FILE__, __LINE__, (size)) argument 34 #define calloc(nmemb, size) \ argument 36 #define realloc(ptr, size) \ argument 99 size_t size); 103 #define nex_malloc(size) nex_mdbg_malloc(__FILE__, __LINE__, (size)) argument 138 #define nex_malloc(size) malloc(size) argument 139 #define nex_calloc(nmemb, size) calloc(nmemb, size) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/choice/ |
A D | der_decode_choice.c | 30 unsigned long size, x, z; in der_decode_choice() local 49 size = list[x].size; in der_decode_choice() 85 if (der_length_bit_string(size, &z) == CRYPT_OK) { in der_decode_choice() 87 list[x].size = size; in der_decode_choice() 98 list[x].size = size; in der_decode_choice() 109 list[x].size = size; in der_decode_choice() 128 list[x].size = size; in der_decode_choice() 139 list[x].size = size; in der_decode_choice() 150 list[x].size = size; in der_decode_choice() 161 list[x].size = size; in der_decode_choice() [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_export_point.c | 21 if (size > sizeof(buf)) return CRYPT_BUFFER_OVERFLOW; in ltc_ecc_export_point() 22 if ((xsize = mp_unsigned_bin_size(x)) > size) return CRYPT_BUFFER_OVERFLOW; in ltc_ecc_export_point() 26 if (*outlen < (1 + size)) { in ltc_ecc_export_point() 27 *outlen = 1 + size; in ltc_ecc_export_point() 35 XMEMCPY(out+1, buf, size); in ltc_ecc_export_point() 37 *outlen = 1 + size; in ltc_ecc_export_point() 40 if (*outlen < (1 + 2*size)) { in ltc_ecc_export_point() 41 *outlen = 1 + 2*size; in ltc_ecc_export_point() 49 XMEMCPY(out+1, buf, size); in ltc_ecc_export_point() 53 XMEMCPY(out+1+size, buf, size); in ltc_ecc_export_point() [all …]
|
A D | ecc_get_key.c | 25 unsigned long size, ksize; in ecc_get_key() local 32 size = key->dp.size; in ecc_get_key() 37 …if ((err = ltc_ecc_export_point(out, outlen, key->pubkey.x, key->pubkey.y, size, compressed)) != C… in ecc_get_key() 43 *outlen = size; in ecc_get_key() 44 …if (size > *outlen) return CRYPT_BUFFER_OV… in ecc_get_key() 45 …if ((ksize = mp_unsigned_bin_size(key->k)) > size) return CRYPT_BUFFER_OV… in ecc_get_key() 47 if ((err = mp_to_unsigned_bin(key->k, out + (size - ksize))) != CRYPT_OK) return err; in ecc_get_key() 48 zeromem(out, size - ksize); in ecc_get_key()
|
/optee_os/core/kernel/ |
A D | asan.c | 30 uintptr_t size; member 175 if (!asan_active || !size) in check_access() 198 check_access(addr, size); in check_load() 203 check_access(addr, size); in check_store() 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() 261 report_store(addr, size); in __asan_report_store_n_noabort() 274 for (n = 0; n < size; n++) in __asan_register_globals() [all …]
|
/optee_os/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_encode_sequence_multi.c | 31 ulong32 size; in ssh_encode_sequence_multi() local 43 size = 0; in ssh_encode_sequence_multi() 50 size++; in ssh_encode_sequence_multi() 54 size += 4; in ssh_encode_sequence_multi() 58 size += 8; in ssh_encode_sequence_multi() 63 size += 4; in ssh_encode_sequence_multi() 69 size += 4; in ssh_encode_sequence_multi() 85 if (*outlen < size) { in ssh_encode_sequence_multi() 86 *outlen = size; in ssh_encode_sequence_multi() 90 *outlen = size; in ssh_encode_sequence_multi() [all …]
|
A D | ssh_decode_sequence_multi.c | 38 ulong32 size; in ssh_decode_sequence_multi() local 58 size = 0xFFFFFFFFU; in ssh_decode_sequence_multi() 62 size = 1; in ssh_decode_sequence_multi() 65 size = 4; in ssh_decode_sequence_multi() 68 size = 8; in ssh_decode_sequence_multi() 86 if (inlen < size) { in ssh_decode_sequence_multi() 90 inlen -= size; in ssh_decode_sequence_multi() 125 if (size > 0) { in ssh_decode_sequence_multi() 131 in += size; in ssh_decode_sequence_multi() 135 if (size == 0) { in ssh_decode_sequence_multi() [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | attributes.c | 44 data32 = size; in add_attribute() 131 if (pkcs11_ref.size) in get_attribute_ptrs() 174 uint32_t size = 0; in get_attribute() local 181 *attr_size = size; in get_attribute() 190 *attr_size = size; in get_attribute() 225 cli_head.size); in modify_attributes_list() 263 uint32_t size = 0; in attributes_match_reference() local 269 if (rc || !value || size != pkcs11_ref.size || in attributes_match_reference() 292 uint32_t size = 0; in attributes_match_add_reference() local 304 if (rc || !value || size != pkcs11_ref.size || in attributes_match_add_reference() [all …]
|
A D | serializer.c | 24 args->size = size; in serialargs_init() 32 rc = serialargs_get_ptr(args, &src, size); in serialargs_get() 34 TEE_MemMove(out, src, size); in serialargs_get() 41 void **out, size_t size) in alloc_and_get() argument 48 if (ADD_OVERFLOW(buf0_sz, size, &sz)) in alloc_and_get() 67 TEE_MemMove(ptr + buf0_sz, src, size); in alloc_and_get() 75 void **out, size_t size) in serialargs_alloc_and_get() argument 81 size_t size) in serialargs_get_ptr() argument 89 if (!size) { in serialargs_get_ptr() 96 args->size, args->size - (args->next - args->start), size); in serialargs_get_ptr() [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/ |
A D | der_encode_setof.c | 21 unsigned long size; member 31 r = XMEMCMP(A->start, B->start, MIN(A->size, B->size)); in _qsort_helper() 33 if (r == 0 && A->size != B->size) { in _qsort_helper() 34 if (A->size > B->size) { in _qsort_helper() 35 for (x = B->size; x < A->size; x++) { in _qsort_helper() 41 for (x = A->size; x < B->size; x++) { in _qsort_helper() 120 edges[x].size = y; in der_encode_setof() 123 edges[x].size = 0; in der_encode_setof() 125 edges[x].size = (edges[x].size << 8) | ((unsigned long)ptr[z++]); in der_encode_setof() 130 edges[x].size += z; in der_encode_setof() [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/ |
A D | der_decode_custom_type.c | 57 unsigned long size, x, y, z, blksize; in der_decode_custom_type_ex() local 106 outlen = root->size; in der_decode_custom_type_ex() 151 size = list[i].size; in der_decode_custom_type_ex() 205 list[i].size = size; in der_decode_custom_type_ex() 217 list[i].size = size; in der_decode_custom_type_ex() 229 list[i].size = size; in der_decode_custom_type_ex() 250 list[i].size = size; in der_decode_custom_type_ex() 262 list[i].size = size; in der_decode_custom_type_ex() 274 list[i].size = size; in der_decode_custom_type_ex() 286 list[i].size = size; in der_decode_custom_type_ex() [all …]
|
/optee_os/core/arch/arm/mm/ |
A D | tee_mm.c | 17 return nex_malloc(size); in pmalloc() 19 return malloc(size); in pmalloc() 27 return calloc(num_el, size); in pcalloc() 49 size = ROUNDDOWN(size - rounded, 1 << shift); in tee_mm_init() 54 pool->size = size; in tee_mm_init() 100 sz += entry->size; in tee_mm_stats_allocated() 119 stats->size = pool->size; in tee_mm_get_pool_stats() 160 if (!size) in tee_mm_alloc() 169 entry->next->size)) in tee_mm_alloc() 194 if (!pool->size) in tee_mm_alloc() [all …]
|
/optee_os/scripts/ |
A D | mem_usage.py | 49 if size == 0: 56 size_kib = size / 1024 60 size, size_kib) 66 def print_pager_stat(name, size): argument 67 size_kib = size / 1024 69 printf('%d ', size) 143 size = int(sect['size'], 16) 152 init_size += size 154 paged_size += size 158 unpaged_size += size [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/ |
A D | der_decode_sequence_flexi.c | 138 l->size = 1; in der_decode_sequence_flexi() 157 l->size = 1; in der_decode_sequence_flexi() 203 l->size = len; in der_decode_sequence_flexi() 233 l->size = 0; in der_decode_sequence_flexi() 245 l->size = len; in der_decode_sequence_flexi() 275 l->size = len; in der_decode_sequence_flexi() 298 l->size = len; in der_decode_sequence_flexi() 321 l->size = len; in der_decode_sequence_flexi() 344 l->size = len; in der_decode_sequence_flexi() 367 l->size = 1; in der_decode_sequence_flexi() [all …]
|
/optee_os/core/drivers/bnxt/ |
A D | bnxt_fw.c | 180 uint32_t size; member 227 if (size > (region->c_base + region->size - bnxt_view_addr)) { in ape_host_view_addr_get() 229 bnxt_view_addr, size); in ape_host_view_addr_get() 423 size_t size = 0; in ape_section_copy() local 459 size = section->org_data_len; in ape_section_copy() 482 size = size / sizeof(uint32_t); in ape_section_copy() 512 size = size / sizeof(uint32_t); in ape_section_zero() 587 size_t size = 0; in bnxt_crash_config() local 638 uint32_t size = 0; in bnxt_load_fw() local 659 size = size / sizeof(uint32_t); in bnxt_load_fw() [all …]
|
/optee_os/core/arch/arm/dts/ |
A D | fsl-lx2160a-qds.dts | 38 #size-cells = <0>; 43 #size-cells = <0>; 49 #size-cells = <0>; 55 #size-cells = <0>; 61 #size-cells = <0>; 67 #size-cells = <0>; 73 #size-cells = <0>; 79 #size-cells = <0>; 85 #size-cells = <0>; 91 #size-cells = <0>; [all …]
|
/optee_os/lib/libutils/isoc/ |
A D | bget_malloc.c | 523 mdbg_get_ftr_size(size), size, ctx); in gen_mdbg_malloc() 567 mdbg_get_ftr_size(nmemb * size), nmemb, size, in gen_mdbg_calloc() 587 mdbg_get_ftr_size(size), size, ctx); in gen_mdbg_realloc_unlocked() 616 alignment, size, ctx); in gen_mdbg_memalign() 631 *size = hdr->pl_size; in get_payload_start_size() 678 size_t size) in mdbg_memalign() argument 695 void *malloc(size_t size) in malloc() argument 714 void *malloc(size_t size) in malloc() argument 743 size_t size) in realloc_unlocked() argument 770 *size = bget_buf_size(ptr); in get_payload_start_size() [all …]
|
/optee_os/core/drivers/imx/dcp/ |
A D | dcp_utils.c | 20 static void *dcp_alloc_memalign(size_t size) in dcp_alloc_memalign() argument 35 if (ROUNDUP_OVERFLOW(size, cacheline_size, &alloc_size)) in dcp_alloc_memalign() 42 memset(ptr, 0, size); in dcp_alloc_memalign() 47 TEE_Result dcp_calloc_align_buf(struct dcp_align_buf *buf, size_t size) in dcp_calloc_align_buf() argument 54 buf->data = dcp_alloc_memalign(size); in dcp_calloc_align_buf() 65 buf->size = size; in dcp_calloc_align_buf() 101 void dcp_reverse(uint8_t *in, uint8_t *out, size_t size) in dcp_reverse() argument 105 for (i = 0; i < size; i++) in dcp_reverse() 106 out[i] = in[size - 1 - i]; in dcp_reverse() 109 void dcp_xor(uint8_t *a, uint8_t *b, uint8_t *out, size_t size) in dcp_xor() argument [all …]
|
/optee_os/core/drivers/crypto/caam/utils/ |
A D | utils_mem.c | 39 static void *mem_alloc(size_t size, uint8_t type) in mem_alloc() argument 42 size_t alloc_size = size; in mem_alloc() 96 buf->data = mem_alloc(size, type); in mem_alloc_buf() 107 buf->length = size; in mem_alloc_buf() 112 void *caam_alloc(size_t size) in caam_alloc() argument 114 return mem_alloc(size, MEM_TYPE_NORMAL); in caam_alloc() 117 void *caam_calloc(size_t size) in caam_calloc() argument 119 return mem_alloc(size, MEM_TYPE_ZEROED); in caam_calloc() 122 void *caam_calloc_align(size_t size) in caam_calloc_align() argument 146 return mem_alloc_buf(buf, size, MEM_TYPE_NORMAL); in caam_alloc_buf() [all …]
|
/optee_os/lib/libutils/ext/ |
A D | snprintk.c | 142 p = bf + size; in __vsnprintf() 144 if (bf && size > 0) { in __vsnprintf() 147 bf[size - 1] = '\0'; in __vsnprintf() 382 size = 1; in kprintf() 460 size = p - cp; in kprintf() 461 if (size > prec) in kprintf() 462 size = prec; in kprintf() 464 size = prec; in kprintf() 552 size = 1; in kprintf() 571 realsz = dprec > size ? dprec : size; in kprintf() [all …]
|
A D | mempool.c | 56 size_t size; /* size of the memory pool, in bytes */ member 63 void (*release_mem)(void *ptr, size_t size); 74 size_t sz = pool->size - raw_malloc_get_ctx_size(); in init_mpool() 110 pool->release_mem((void *)pool->data, pool->size); in put_pool() 118 mempool_alloc_pool(void *data, size_t size, in mempool_alloc_pool() argument 119 void (*release_mem)(void *ptr, size_t size) __maybe_unused) in mempool_alloc_pool() 127 pool->size = size; in mempool_alloc_pool() 140 void *mempool_alloc(struct mempool *pool, size_t size) in mempool_alloc() argument 146 p = raw_malloc(0, 0, size, pool->mctx); in mempool_alloc() 166 void *mempool_calloc(struct mempool *pool, size_t nmemb, size_t size) in mempool_calloc() argument [all …]
|
/optee_os/lib/libutee/arch/arm/ |
A D | tcb.c | 53 unsigned long size; member 57 #define DTV_SIZE(size) (sizeof(union dtv) + (size)) argument 91 size_t size = 0; in __utee_tcb_init() local 122 _tcb->dtv = realloc(_tcb->dtv, size); in __utee_tcb_init() 129 size = 0; in __utee_tcb_init() 136 if (size + phdr->p_memsz <= _tls_size) { in __utee_tcb_init() 140 _tcb->dtv[i + 1].tls = _tcb->tls + size; in __utee_tcb_init() 142 memcpy(_tcb->tls + size, in __utee_tcb_init() 146 memset(_tcb->tls + size + phdr->p_filesz, 0, in __utee_tcb_init() 148 size += phdr->p_memsz; in __utee_tcb_init() [all …]
|
/optee_os/core/tee/ |
A D | socket.c | 39 params[1].memref.size, &mobj); in socket_open() 43 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_open() 101 params[1].memref.size, &mobj); in socket_send() 137 if (params[1].memref.size) { in socket_recv() 140 params[1].memref.size, &mobj); in socket_recv() 152 if (params[1].memref.size) in socket_recv() 154 MIN(params[1].memref.size, tpm[1].u.memref.size)); in socket_recv() 155 params[1].memref.size = tpm[1].u.memref.size; in socket_recv() 180 params[1].memref.size, &mobj); in socket_ioctl() 193 if (tpm[1].u.memref.size <= params[1].memref.size) in socket_ioctl() [all …]
|