/optee_os-3.20.0/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_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_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 | 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()
|
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()
|
/optee_os-3.20.0/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-3.20.0/lib/libutils/isoc/include/ |
A D | malloc.h | 19 void *realloc(void *ptr, size_t size); 21 void free(void *ptr); 45 #define realloc(ptr, size) \ argument 46 mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 105 void nex_free(void *ptr); 120 #define nex_realloc(ptr, size) \ argument 121 nex_mdbg_realloc(__FILE__, __LINE__, (ptr), (size)) 129 void *nex_realloc(void *ptr, size_t size); 151 #define nex_free(ptr) free(ptr) argument 154 #define nex_realloc(ptr, size) realloc(ptr, size) argument [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/set/ |
A D | der_encode_setof.c | 60 unsigned char *ptr, *buf; in der_encode_setof() local 89 ptr = buf + 1; in der_encode_setof() 92 x = *ptr++; in der_encode_setof() 94 ptr += (x & 0x7F); in der_encode_setof() 98 hdrlen = ptr - buf; in der_encode_setof() 103 while (ptr < (buf + *outlen)) { in der_encode_setof() 105 edges[x].start = ptr; in der_encode_setof() 111 y = ptr[z++]; in der_encode_setof() 118 edges[x].size = (edges[x].size << 8) | ((unsigned long)ptr[z++]); in der_encode_setof() 124 ptr += edges[x].size; in der_encode_setof()
|
/optee_os-3.20.0/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-3.20.0/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-3.20.0/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-3.20.0/lib/libutils/isoc/ |
A D | bget_malloc.c | 423 void *ptr = NULL; in raw_memalign() local 458 if (ptr) in raw_free() 465 void *ptr = NULL; in raw_calloc() local 505 if (p && ptr) { in raw_realloc() 852 return ptr; in get_payload_start_size() 857 void free(void *ptr) in free() argument 859 free_helper(ptr, false); in free() 862 void free_wipe(void *ptr) in free_wipe() argument 864 free_helper(ptr, true); in free_wipe() 1065 void nex_free(void *ptr) in nex_free() argument [all …]
|
A D | fwrite.c | 10 size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) in fwrite() argument 21 return write(fd, ptr, size * nmemb); in fwrite()
|
/optee_os-3.20.0/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-3.20.0/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()
|
A D | tee_misc.c | 126 void *ptr = NULL; in alloc_cache_aligned() local 134 ptr = memalign(cacheline_size, alloc_size); in alloc_cache_aligned() 135 if (!ptr) in alloc_cache_aligned() 138 memset(ptr, 0, size); in alloc_cache_aligned() 140 return ptr; in alloc_cache_aligned()
|
/optee_os-3.20.0/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-3.20.0/core/drivers/ |
A D | smccc_trng.c | 115 uint8_t *ptr = buf; in read_samples() local 124 read_bytes(args->a3, byte_count, &ptr, &rem); in read_samples() 125 read_bytes(args->a2, byte_count, &ptr, &rem); in read_samples() 126 read_bytes(args->a1, byte_count, &ptr, &rem); in read_samples() 132 uint8_t *ptr = buf; in smccc_trng_read() local 154 read_samples(&args, ptr, burst); in smccc_trng_read() 156 ptr += burst; in smccc_trng_read()
|
/optee_os-3.20.0/core/arch/arm/include/sm/ |
A D | pm.h | 41 void sm_pm_cpu_suspend_save(struct sm_pm_ctx *ptr, uint32_t sp); 42 void sm_pm_cpu_do_suspend(uint32_t *ptr);
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_constants.c | 256 char *ptr; in crypt_list_all_constants() local 276 ptr = names_list; in crypt_list_all_constants() 278 …number_len = snprintf(ptr, total_len, "%s,%d\n", s_crypt_constants[i].name, s_crypt_constants[i].v… in crypt_list_all_constants() 282 ptr += number_len; in crypt_list_all_constants() 285 ptr -= 1; in crypt_list_all_constants() 286 *ptr = 0; in crypt_list_all_constants()
|