/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
A D | ui64_to_f128M.c | 58 uint32_t *ptr; in ui64_to_f128M() local 68 ptr = zWPtr + indexMultiwordHi( 4, 3 ); in ui64_to_f128M() 69 ptr[indexWord( 3, 2 )] = 0; in ui64_to_f128M() 70 ptr[indexWord( 3, 1 )] = a>>32; in ui64_to_f128M() 71 ptr[indexWord( 3, 0 )] = a; in ui64_to_f128M() 72 softfloat_shortShiftLeft96M( ptr, shiftCount, ptr ); in ui64_to_f128M() 73 ptr[indexWordHi( 3 )] = in ui64_to_f128M() 75 0, 0x404E - shiftCount, ptr[indexWordHi( 3 )] ); in ui64_to_f128M()
|
A D | i64_to_f128M.c | 61 uint32_t *ptr; in i64_to_f128M() local 73 ptr = zWPtr + indexMultiwordHi( 4, 3 ); in i64_to_f128M() 74 ptr[indexWord( 3, 2 )] = 0; in i64_to_f128M() 75 ptr[indexWord( 3, 1 )] = absA>>32; in i64_to_f128M() 76 ptr[indexWord( 3, 0 )] = absA; in i64_to_f128M() 77 softfloat_shortShiftLeft96M( ptr, shiftCount, ptr ); in i64_to_f128M() 78 ptr[indexWordHi( 3 )] = in i64_to_f128M() 80 sign, 0x404E - shiftCount, ptr[indexWordHi( 3 )] ); in i64_to_f128M()
|
A D | s_shiftRightJamM.c | 54 uint32_t wordJam, wordCount, *ptr; in softfloat_shiftRightJamM() local 61 ptr = (uint32_t *) (aPtr + indexMultiwordLo( size_words, wordCount )); in softfloat_shiftRightJamM() 64 wordJam = *ptr++; in softfloat_shiftRightJamM() 68 ptr = zPtr; in softfloat_shiftRightJamM() 83 ptr = zPtr + indexWordLo( size_words ); in softfloat_shiftRightJamM() 85 *ptr = *aPtr; in softfloat_shiftRightJamM() 87 ptr += wordIncr; in softfloat_shiftRightJamM() 90 ptr = zPtr + indexMultiwordHi( size_words, wordCount ); in softfloat_shiftRightJamM() 93 *ptr++ = 0; in softfloat_shiftRightJamM()
|
A D | s_shiftRightJam256M.c | 79 uint64_t *ptr; in softfloat_shiftRightJam256M() local 86 ptr = (uint64_t *) (aPtr + indexMultiwordLo( 4, wordCount )); in softfloat_shiftRightJam256M() 89 wordJam = *ptr++; in softfloat_shiftRightJam256M() 93 ptr = zPtr; in softfloat_shiftRightJam256M() 108 ptr = zPtr + indexWordLo( 4 ); in softfloat_shiftRightJam256M() 110 *ptr = *aPtr; in softfloat_shiftRightJam256M() 112 ptr += wordIncr; in softfloat_shiftRightJam256M() 115 ptr = zPtr + indexMultiwordHi( 4, wordCount ); in softfloat_shiftRightJam256M() 118 *ptr++ = 0; in softfloat_shiftRightJam256M()
|
A D | s_mulAddF128M.c | 62 uint32_t *ptr, uiZ96, sigA[4]; in softfloat_mulAddF128M() local 102 ptr = (uint32_t *) aWPtr; in softfloat_mulAddF128M() 105 ptr = (uint32_t *) bWPtr; in softfloat_mulAddF128M() 108 ! (ptr[indexWord( 4, 2 )] | ptr[indexWord( 4, 1 )] in softfloat_mulAddF128M() 286 ptr -= wordIncr; in softfloat_mulAddF128M() 287 if ( *ptr ) { in softfloat_mulAddF128M() 302 wordSig = *ptr; in softfloat_mulAddF128M() 303 *ptr = wordSig - 1; in softfloat_mulAddF128M() 304 ptr += wordIncr; in softfloat_mulAddF128M() 309 *ptr = wordSig; in softfloat_mulAddF128M() [all …]
|
A D | f128M_mul.c | 67 const uint32_t *ptr; in f128M_mul() local 90 ptr = aWPtr; in f128M_mul() 93 ptr = bWPtr; in f128M_mul() 96 ! fracF128UI96( ptr[indexWordHi( 4 )] ) in f128M_mul() 97 && ! (ptr[indexWord( 4, 2 )] | ptr[indexWord( 4, 1 )] in f128M_mul() 98 | ptr[indexWord( 4, 0 )]) in f128M_mul()
|
A D | s_normSubnormalF128SigM.c | 44 const uint32_t *ptr; in softfloat_normSubnormalF128SigM() local 48 ptr = sigPtr + indexWordHi( 4 ); in softfloat_normSubnormalF128SigM() 51 wordSig = *ptr; in softfloat_normSubnormalF128SigM() 55 ptr -= wordIncr; in softfloat_normSubnormalF128SigM()
|
A D | s_normRoundPackMToF128M.c | 47 const uint32_t *ptr; in softfloat_normRoundPackMToF128M() local 51 ptr = extSigPtr + indexWordHi( 5 ); in softfloat_normRoundPackMToF128M() 54 wordSig = *ptr; in softfloat_normRoundPackMToF128M() 64 ptr -= wordIncr; in softfloat_normRoundPackMToF128M()
|
/optee_os/lib/libutils/isoc/include/ |
A D | malloc.h | 19 void *realloc(void *ptr, size_t size); 21 void free(void *ptr); 36 #define realloc(ptr, size) \ argument 37 mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 91 void nex_free(void *ptr); 106 #define nex_realloc(ptr, size) \ argument 107 nex_mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 115 void *nex_realloc(void *ptr, size_t size); 137 #define nex_free(ptr) free(ptr) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | malloc.h | 19 void *realloc(void *ptr, size_t size); 21 void free(void *ptr); 36 #define realloc(ptr, size) \ argument 37 mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 91 void nex_free(void *ptr); 106 #define nex_realloc(ptr, size) \ argument 107 nex_mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 115 void *nex_realloc(void *ptr, size_t size); 137 #define nex_free(ptr) free(ptr) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | malloc.h | 19 void *realloc(void *ptr, size_t size); 21 void free(void *ptr); 36 #define realloc(ptr, size) \ argument 37 mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 91 void nex_free(void *ptr); 106 #define nex_realloc(ptr, size) \ argument 107 nex_mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 115 void *nex_realloc(void *ptr, size_t size); 137 #define nex_free(ptr) free(ptr) argument 140 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/8086-SSE/ |
A D | s_propagateNaNF128M.c | 58 const uint32_t *ptr; in softfloat_propagateNaNF128M() local 60 ptr = aWPtr; in softfloat_propagateNaNF128M() 69 if ( ! softfloat_isNaNF128M( aWPtr ) ) ptr = bWPtr; in softfloat_propagateNaNF128M() 71 zWPtr[indexWordHi( 4 )] = ptr[indexWordHi( 4 )] | 0x00008000; in softfloat_propagateNaNF128M() 72 zWPtr[indexWord( 4, 2 )] = ptr[indexWord( 4, 2 )]; in softfloat_propagateNaNF128M() 73 zWPtr[indexWord( 4, 1 )] = ptr[indexWord( 4, 1 )]; in softfloat_propagateNaNF128M() 74 zWPtr[indexWord( 4, 0 )] = ptr[indexWord( 4, 0 )]; in softfloat_propagateNaNF128M()
|
/optee_os/lib/libutils/isoc/ |
A D | bget_malloc.c | 352 void *ptr = NULL; in raw_memalign() local 372 return ptr; in raw_memalign() 389 if (ptr) in raw_free() 396 void *ptr = NULL; in raw_calloc() local 415 return ptr; in raw_calloc() 771 return ptr; in get_payload_start_size() 776 void free(void *ptr) in free() argument 778 free_helper(ptr, false); in free() 783 free_helper(ptr, true); in free_wipe() 976 void nex_free(void *ptr) in nex_free() argument [all …]
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/ |
A D | der_encode_setof.c | 67 unsigned char *ptr, *buf; in der_encode_setof() local 96 ptr = buf + 1; in der_encode_setof() 99 x = *ptr++; in der_encode_setof() 101 ptr += (x & 0x7F); in der_encode_setof() 105 hdrlen = ptr - buf; in der_encode_setof() 110 while (ptr < (buf + *outlen)) { in der_encode_setof() 112 edges[x].start = ptr; in der_encode_setof() 118 y = ptr[z++]; in der_encode_setof() 125 edges[x].size = (edges[x].size << 8) | ((unsigned long)ptr[z++]); in der_encode_setof() 131 ptr += edges[x].size; in der_encode_setof()
|
/optee_os/core/drivers/crypto/caam/utils/ |
A D | utils_mem.c | 41 void *ptr = NULL; in mem_alloc() local 58 ptr = malloc(alloc_size); in mem_alloc() 61 if (!ptr) { in mem_alloc() 70 return ptr; in mem_alloc() 80 if (ptr) { in mem_free() 81 MEM_TRACE("free %p", ptr); in mem_free() 82 free(ptr); in mem_free() 127 void caam_free(void *ptr) in caam_free() argument 129 mem_free(ptr); in caam_free() 140 mem_free(*ptr); in caam_free_desc() [all …]
|
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/8086/ |
A D | s_propagateNaNF128M.c | 58 const uint32_t *ptr; in softfloat_propagateNaNF128M() local 63 ptr = aWPtr; in softfloat_propagateNaNF128M() 101 ptr = bWPtr; in softfloat_propagateNaNF128M() 103 zWPtr[indexWordHi( 4 )] = ptr[indexWordHi( 4 )] | 0x00008000; in softfloat_propagateNaNF128M() 104 zWPtr[indexWord( 4, 2 )] = ptr[indexWord( 4, 2 )]; in softfloat_propagateNaNF128M() 105 zWPtr[indexWord( 4, 1 )] = ptr[indexWord( 4, 1 )]; in softfloat_propagateNaNF128M() 106 zWPtr[indexWord( 4, 0 )] = ptr[indexWord( 4, 0 )]; in softfloat_propagateNaNF128M()
|
/optee_os/ta/pkcs11/src/ |
A D | handle.c | 34 uint32_t handle_get(struct handle_db *db, void *ptr) in handle_get() argument 40 if (!db || !ptr) in handle_get() 46 db->ptrs[n] = ptr; in handle_get() 66 db->ptrs[n] = ptr; in handle_get() 90 uint32_t handle_lookup_handle(struct handle_db *db, void *ptr) in handle_lookup_handle() argument 94 if (ptr) { in handle_lookup_handle() 96 if (db->ptrs[n] == ptr) in handle_lookup_handle()
|
A D | serializer.c | 44 uint8_t *ptr = NULL; in alloc_and_get() local 60 ptr = TEE_Malloc(sz, TEE_MALLOC_FILL_ZERO); in alloc_and_get() 61 if (!ptr) { in alloc_and_get() 66 TEE_MemMove(ptr, buf0, buf0_sz); in alloc_and_get() 67 TEE_MemMove(ptr + buf0_sz, src, size); in alloc_and_get() 69 *out = ptr; in alloc_and_get() 83 void *ptr = args->next; in serialargs_get_ptr() local 101 *out = ptr; in serialargs_get_ptr()
|
A D | persistent_token.c | 374 if (!ptr) in unregister_persistent_object() 392 ptr->count--; in unregister_persistent_object() 405 token->db_objs = ptr; in unregister_persistent_object() 406 ptr = NULL; in unregister_persistent_object() 410 TEE_Free(ptr); in unregister_persistent_object() 420 void *ptr = NULL; in register_persistent_object() local 431 if (!ptr) in register_persistent_object() 434 token->db_objs = ptr; in register_persistent_object() 586 void *ptr = NULL; in init_persistent_db() local 619 if (!ptr) in init_persistent_db() [all …]
|
/optee_os/core/lib/zlib/ |
A D | zutil.c | 244 void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr) in zcfree() argument 250 if (*(ush*)&ptr != 0) { /* object < 64K */ in zcfree() 251 farfree(ptr); in zcfree() 256 if (ptr != table[n].new_ptr) continue; in zcfree() 287 void ZLIB_INTERNAL zcfree (voidpf opaque, voidpf ptr) in zcfree() argument 290 _hfree(ptr); in zcfree() 303 extern void free OF((voidpf ptr)); 316 void ZLIB_INTERNAL zcfree (opaque, ptr) in zcfree() argument 318 voidpf ptr; 321 free(ptr);
|
/optee_os/lib/libutils/ext/ |
A D | trace.c | 207 char *ptr; member 216 if (sbuf->ptr == NULL) in append() 217 sbuf->ptr = sbuf->buf; in append() 218 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append() 220 len = vsnprintk(sbuf->ptr, left, fmt, ap); in append() 230 sbuf->ptr += MIN(left, len); in append() 243 sbuf.ptr = NULL; in dhex_dump() 261 sbuf.ptr = NULL; in dhex_dump() 264 if (sbuf.ptr) { in dhex_dump()
|
/optee_os/core/kernel/ |
A D | handle.c | 18 void handle_db_destroy(struct handle_db *db, void (*ptr_destructor)(void *ptr)) in handle_db_destroy() argument 47 int handle_get(struct handle_db *db, void *ptr) in handle_get() argument 53 if (!db || !ptr) in handle_get() 59 db->ptrs[n] = ptr; in handle_get() 78 db->ptrs[n] = ptr; in handle_get()
|
/optee_os/core/drivers/imx/dcp/ |
A D | dcp_utils.c | 22 void *ptr = NULL; in dcp_alloc_memalign() local 38 ptr = memalign(cacheline_size, alloc_size); in dcp_alloc_memalign() 39 if (!ptr) in dcp_alloc_memalign() 42 memset(ptr, 0, size); in dcp_alloc_memalign() 44 return ptr; in dcp_alloc_memalign()
|
/optee_os/core/lib/libtomcrypt/src/stream/rabbit/ |
A D | rabbit.c | 138 ulong32 *ptr; in _rabbit_gen_1_block() local 144 ptr = (ulong32*)&(st->work_ctx.x); in _rabbit_gen_1_block() 145 STORE32L((ptr[0] ^ (ptr[5]>>16) ^ (ulong32)(ptr[3]<<16)), out+ 0); in _rabbit_gen_1_block() 146 STORE32L((ptr[2] ^ (ptr[7]>>16) ^ (ulong32)(ptr[5]<<16)), out+ 4); in _rabbit_gen_1_block() 147 STORE32L((ptr[4] ^ (ptr[1]>>16) ^ (ulong32)(ptr[7]<<16)), out+ 8); in _rabbit_gen_1_block() 148 STORE32L((ptr[6] ^ (ptr[3]>>16) ^ (ulong32)(ptr[1]<<16)), out+12); in _rabbit_gen_1_block()
|
/optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_constants.c | 262 char *ptr; in crypt_list_all_constants() local 282 ptr = names_list; in crypt_list_all_constants() 284 …number_len = snprintf(ptr, total_len, "%s,%d\n", _crypt_constants[i].name, _crypt_constants[i].val… in crypt_list_all_constants() 288 ptr += number_len; in crypt_list_all_constants() 291 ptr -= 1; in crypt_list_all_constants() 292 *ptr = 0; in crypt_list_all_constants()
|