| /optee_os/core/arch/arm/include/kernel/ |
| H A D | thread_arch.h | 38 uint64_t apia_hi; 39 uint64_t apia_lo; 48 uint64_t x[4]; 130 uint64_t a0; /* SMC function ID */ 131 uint64_t a1; /* Parameter */ 132 uint64_t a2; /* Parameter */ 133 uint64_t a3; /* Thread ID when returning from RPC */ 134 uint64_t a4; /* Not used */ 135 uint64_t a5; /* Not used */ 136 uint64_t a6; /* Not used */ [all …]
|
| H A D | stmm_sp.h | 110 uint64_t mpidr; 117 uint64_t sp_mem_base; 118 uint64_t sp_mem_limit; 119 uint64_t sp_image_base; 120 uint64_t sp_stack_base; 121 uint64_t sp_heap_base; 122 uint64_t sp_ns_comm_buf_base; 123 uint64_t sp_shared_buf_base; 124 uint64_t sp_image_size; 125 uint64_t sp_pcpu_stack_size; [all …]
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/ |
| H A D | primitives.h | 54 uint64_t softfloat_shortShiftRightJam64( uint64_t a, uint_fast8_t count ) in softfloat_shortShiftRightJam64() 57 uint64_t softfloat_shortShiftRightJam64( uint64_t a, uint_fast8_t count ); 94 INLINE uint64_t softfloat_shiftRightJam64( uint64_t a, uint_fast32_t count ) in softfloat_shiftRightJam64() 97 (count < 63) ? a>>count | ((uint64_t) (a<<(-count & 63)) != 0) in softfloat_shiftRightJam64() 101 uint64_t softfloat_shiftRightJam64( uint64_t a, uint_fast32_t count ); 142 uint_fast8_t softfloat_countLeadingZeros64( uint64_t a ); 201 bool softfloat_eq128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) in softfloat_eq128() 204 bool softfloat_eq128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ); 216 bool softfloat_le128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) in softfloat_le128() 219 bool softfloat_le128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ); [all …]
|
| /optee_os/core/arch/arm/include/crypto/ |
| H A D | ghash-ce-core.h | 12 uint64_t h[2]; 13 uint64_t h2[2]; 14 uint64_t h3[2]; 15 uint64_t h4[2]; 18 void pmull_ghash_update_p64(int blocks, uint64_t dg[2], const uint8_t *src, 21 void pmull_ghash_update_p8(int blocks, uint64_t dg[2], const uint8_t *src, 25 void pmull_gcm_load_round_keys(const uint64_t rk[30], int rounds); 27 void pmull_gcm_encrypt(int blocks, uint64_t dg[2], uint8_t dst[], 30 uint64_t ctr[], const uint64_t rk[], int rounds, 34 void pmull_gcm_decrypt(int blocks, uint64_t dg[2], uint8_t dst[], [all …]
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_main.h | 109 uint64_t long_a_data_len; 110 uint64_t a_ivin_addr; 111 uint64_t a_key_addr; 112 uint64_t mac_addr; 113 uint64_t c_ivin_addr; 114 uint64_t c_key_addr; 115 uint64_t data_src_addr; 116 uint64_t data_dst_addr; 186 uint64_t c_ivin_addr; 187 uint64_t long_a_data_len; [all …]
|
| /optee_os/core/arch/arm/plat-rcar/ |
| H A D | romapi.c | 58 extern uint32_t __plat_romapi_wrapper(paddr_t func, uint64_t arg1, 59 uint64_t arg2, uint64_t arg3); 61 static uint32_t __plat_romapi_direct(paddr_t func, uint64_t arg1, in __plat_romapi_direct() 62 uint64_t arg2, uint64_t arg3) in __plat_romapi_direct() 64 uint32_t (*fptr)(uint64_t arg1, uint64_t arg2, uint64_t arg3) = NULL; in __plat_romapi_direct() 73 static uint32_t plat_call_romapi(paddr_t func, uint64_t arg1, in plat_call_romapi() 74 uint64_t arg2, uint64_t arg3) in plat_call_romapi() 76 uint32_t (*fptr)(paddr_t func, uint64_t arg1, uint64_t arg2, in plat_call_romapi() 77 uint64_t arg3) = NULL; in plat_call_romapi()
|
| /optee_os/core/drivers/crypto/versal/include/ |
| H A D | ipi.h | 13 uint64_t key_addr; 14 uint64_t data_addr; 19 uint64_t sign_addr; 20 uint64_t hash_addr; 25 uint64_t hash_addr; 26 uint64_t priv_key_addr; 27 uint64_t epriv_key_addr; 33 uint64_t hash_addr; 34 uint64_t pub_key_addr; 35 uint64_t signature_addr; [all …]
|
| /optee_os/core/arch/arm/include/ |
| H A D | arm64.h | 356 static inline __noprof void write_at_s1e1r(uint64_t va) in write_at_s1e1r() 361 static __always_inline __noprof uint64_t read_pc(void) in read_pc() 363 uint64_t val; in read_pc() 369 static __always_inline __noprof uint64_t read_fp(void) in read_fp() 371 uint64_t val; in read_fp() 377 static inline __noprof uint64_t read_pmu_ccnt(void) in read_pmu_ccnt() 379 uint64_t val; in read_pmu_ccnt() 385 static inline __noprof void tlbi_vaae1is(uint64_t va) in tlbi_vaae1is() 390 static inline __noprof void tlbi_vale1is(uint64_t va) in tlbi_vale1is() 395 static inline void write_64bit_pair(uint64_t dst, uint64_t hi, uint64_t lo) in write_64bit_pair() [all …]
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
| H A D | s_mul64To128M.c | 44 void softfloat_mul64To128M( uint64_t a, uint64_t b, uint32_t *zPtr ) in softfloat_mul64To128M() 47 uint64_t z0, mid1, z64, mid; in softfloat_mul64To128M() 53 z0 = (uint64_t) a0 * b0; in softfloat_mul64To128M() 54 mid1 = (uint64_t) a32 * b0; in softfloat_mul64To128M() 55 mid = mid1 + (uint64_t) a0 * b32; in softfloat_mul64To128M() 56 z64 = (uint64_t) a32 * b32; in softfloat_mul64To128M() 57 z64 += (uint64_t) (mid < mid1)<<32 | mid>>32; in softfloat_mul64To128M()
|
| H A D | f128M_sqrt.c | 65 uint64_t rem64; in f128M_sqrt() 67 uint64_t sig64Z, x64; in f128M_sqrt() 105 rem64 = (uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]; in f128M_sqrt() 116 sig32Z = ((uint64_t) sig32A * recipSqrt32)>>32; in f128M_sqrt() 119 rem64 -= (uint64_t) sig32Z * sig32Z; in f128M_sqrt() 124 q = ((uint32_t) (rem64>>2) * (uint64_t) recipSqrt32)>>32; in f128M_sqrt() 126 sig64Z = ((uint64_t) sig32Z<<32) + ((uint64_t) q<<3); in f128M_sqrt() 127 x64 = ((uint64_t) sig32Z<<32) + sig64Z; in f128M_sqrt() 133 rem64 = (uint64_t) y[indexWord( 4, 3 )]<<32 | y[indexWord( 4, 2 )]; in f128M_sqrt() 136 q = ((uint32_t) (rem64>>2) * (uint64_t) recipSqrt32)>>32; in f128M_sqrt() [all …]
|
| H A D | extF80M_sqrt.c | 62 uint64_t rem64; in extF80M_sqrt() 65 uint64_t sig64Z, x64; in extF80M_sqrt() 108 sig32Z = ((uint64_t) sig32A * recipSqrt32)>>32; in extF80M_sqrt() 111 ((uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]) in extF80M_sqrt() 112 - (uint64_t) sig32Z * sig32Z; in extF80M_sqrt() 117 q = ((uint32_t) (rem64>>2) * (uint64_t) recipSqrt32)>>32; in extF80M_sqrt() 118 sig64Z = ((uint64_t) sig32Z<<32) + ((uint64_t) q<<3); in extF80M_sqrt() 119 x64 = ((uint64_t) sig32Z<<32) + sig64Z; in extF80M_sqrt() 130 rem64 = (uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]; in extF80M_sqrt() 133 q = (((uint32_t) (rem64>>2) * (uint64_t) recipSqrt32)>>32) + 2; in extF80M_sqrt() [all …]
|
| H A D | s_mul128MTo256M.c | 49 uint64_t dwordProd; in softfloat_mul128MTo256M() 57 dwordProd = (uint64_t) aPtr[indexWord( 4, 0 )] * wordB; in softfloat_mul128MTo256M() 59 dwordProd = (uint64_t) aPtr[indexWord( 4, 1 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M() 61 dwordProd = (uint64_t) aPtr[indexWord( 4, 2 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M() 63 dwordProd = (uint64_t) aPtr[indexWord( 4, 3 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M() 70 dwordProd = (uint64_t) aPtr[indexWord( 4, 0 )] * wordB; in softfloat_mul128MTo256M() 75 (uint64_t) aPtr[indexWord( 4, 1 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M() 82 (uint64_t) aPtr[indexWord( 4, 2 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M() 89 (uint64_t) aPtr[indexWord( 4, 3 )] * wordB + (dwordProd>>32); in softfloat_mul128MTo256M()
|
| H A D | s_shiftRightJam256M.c | 48 const uint64_t *aPtr, in softfloat_shortShiftRightJamM() 50 uint64_t *zPtr in softfloat_shortShiftRightJamM() 55 uint64_t partWordZ, wordA; in softfloat_shortShiftRightJamM() 75 const uint64_t *aPtr, uint_fast32_t count, uint64_t *zPtr ) in softfloat_shiftRightJam256M() 77 uint64_t wordJam; in softfloat_shiftRightJam256M() 79 uint64_t *ptr; in softfloat_shiftRightJam256M() 86 ptr = (uint64_t *) (aPtr + indexMultiwordLo( 4, wordCount )); in softfloat_shiftRightJam256M()
|
| H A D | s_eq128.c | 44 bool softfloat_eq128( uint64_t a64, uint64_t a0, uint64_t b64, uint64_t b0 ) in softfloat_eq128()
|
| /optee_os/ldelf/ |
| H A D | ta_elf.h | 123 void ta_elf_load_main(const TEE_UUID *uuid, uint32_t *is_32bit, uint64_t *sp, 125 void ta_elf_finalize_load_main(uint64_t *entry, uint64_t *load_addr); 136 void ta_elf_stack_trace_a64(uint64_t fp, uint64_t sp, uint64_t pc); 137 void ta_elf_stack_trace_riscv(uint64_t fp, uint64_t pc); 140 static inline void ta_elf_stack_trace_a64(uint64_t fp __unused, in ta_elf_stack_trace_a64() 141 uint64_t sp __unused, in ta_elf_stack_trace_a64() 142 uint64_t pc __unused) { } in ta_elf_stack_trace_a64() 143 static inline void ta_elf_stack_trace_riscv(uint64_t fp __unused, in ta_elf_stack_trace_riscv() 144 uint64_t pc __unused) { } in ta_elf_stack_trace_riscv()
|
| /optee_os/lib/libutee/include/ |
| H A D | arm64_user_sysreg.h | 18 uint64_t val64 = 0; \ 27 uint64_t val64 = val; \ 34 DEFINE_REG_READ_FUNC_(cntpct, uint64_t, cntpct_el0) 35 DEFINE_REG_READ_FUNC_(cntvct, uint64_t, cntvct_el0) 36 DEFINE_REG_READ_FUNC_(tpidr_el0, uint64_t, tpidr_el0) 37 DEFINE_REG_WRITE_FUNC_(tpidr_el0, uint64_t, tpidr_el0) 39 DEFINE_REG_READ_FUNC_(dczid_el0, uint64_t, dczid_el0)
|
| /optee_os/ldelf/include/ |
| H A D | ldelf.h | 35 uint64_t entry_func; 36 uint64_t load_addr; 37 uint64_t stack_ptr; 38 uint64_t dump_entry; 39 uint64_t ftrace_entry; 40 uint64_t dl_entry; 60 uint64_t fp; 61 uint64_t sp; 62 uint64_t pc;
|
| /optee_os/core/include/ |
| H A D | optee_msg.h | 120 uint64_t buf_ptr; 121 uint64_t size; 122 uint64_t shm_ref; 132 uint64_t offs; 133 uint64_t size; 134 uint64_t shm_ref; 150 uint64_t size; 151 uint64_t global_id; 160 uint64_t a; 161 uint64_t b; [all …]
|
| H A D | io.h | 40 static inline void io_write64(vaddr_t addr, uint64_t val) in io_write64() 42 *(volatile uint64_t *)addr = val; in io_write64() 60 static inline uint64_t io_read64(vaddr_t addr) in io_read64() 62 return *(volatile uint64_t *)addr; in io_read64() 80 static inline uint64_t get_be64(const void *p) in get_be64() 82 return TEE_U64_FROM_BIG_ENDIAN(*(const uint64_t *)p); in get_be64() 85 static inline void put_be64(void *p, uint64_t val) in put_be64() 87 *(uint64_t *)p = TEE_U64_TO_BIG_ENDIAN(val); in put_be64() 120 static inline void put_le64(const void *p, uint64_t val) in put_le64() 122 *(uint64_t *)p = val; in put_le64() [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | delay.h | 40 static inline uint64_t delay_us2cnt(uint32_t us) in delay_us2cnt() 42 return ((uint64_t)us * (uint64_t)delay_cnt_freq()) / ULL(1000000); in delay_us2cnt() 46 static inline uint64_t timeout_init_us(uint32_t us) in timeout_init_us() 53 static inline bool timeout_elapsed(uint64_t expire) in timeout_elapsed() 63 int timeout_elapsed_us(uint64_t expire);
|
| /optee_os/core/include/crypto/ |
| H A D | internal_aes-gcm.h | 20 uint64_t HL[16]; 21 uint64_t HH[16]; 23 uint64_t hash_subkey[2]; 30 uint64_t data[30]; 35 uint64_t ctr[2]; 87 void internal_aes_gcm_gfmul(const uint64_t X[2], const uint64_t Y[2], 88 uint64_t product[2]); 92 uint64_t *d = dst; in internal_aes_gcm_xor_block() 93 const uint64_t *s = src; in internal_aes_gcm_xor_block() 95 assert(IS_ALIGNED_WITH_TYPE(dst, uint64_t)); in internal_aes_gcm_xor_block() [all …]
|
| /optee_os/core/lib/qcbor/src/ |
| H A D | ieee754.c | 160 static inline uint64_t 163 uint64_t u64; in CopyDoubleToUint64() 164 memcpy(&u64, &d, sizeof(uint64_t)); in CopyDoubleToUint64() 169 CopyUint64ToDouble(uint64_t u64) in CopyUint64ToDouble() 172 memcpy(&d, &u64, sizeof(uint64_t)); in CopyUint64ToDouble() 198 IEEE754_AssembleDouble(uint64_t uDoubleSign, in IEEE754_AssembleDouble() 199 uint64_t uDoubleSignificand, in IEEE754_AssembleDouble() 202 uint64_t uDoubleBiasedExponent; in IEEE754_AssembleDouble() 204 uDoubleBiasedExponent = (uint64_t)(nDoubleUnBiasedExponent + DOUBLE_EXPONENT_BIAS); in IEEE754_AssembleDouble() 215 uint64_t uDoubleSignificand; in IEEE754_HalfToDouble() [all …]
|
| /optee_os/core/include/mm/ |
| H A D | mobj.h | 41 uint64_t (*get_cookie)(struct mobj *mobj); 183 static inline uint64_t mobj_get_cookie(struct mobj *mobj) in mobj_get_cookie() 238 struct mobj *mobj_ffa_get_by_cookie(uint64_t cookie, 241 TEE_Result mobj_ffa_unregister_by_cookie(uint64_t cookie); 245 struct mobj_ffa *mobj_ffa_sel1_spmc_new(uint64_t cookie, 249 TEE_Result mobj_ffa_sel1_spmc_reclaim(uint64_t cookie); 251 struct mobj_ffa *mobj_ffa_spmc_new(uint64_t cookie, unsigned int num_pages, 256 uint64_t mobj_ffa_get_cookie(struct mobj_ffa *mobj); 262 TEE_Result mobj_ffa_assign_protmem(uint64_t cookie, 270 paddr_t page_offset, uint64_t cookie); [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | poly1305.c | 30 static uint64_t mul64(uint32_t a, uint32_t b) in mul64() 40 const uint64_t me = (uint64_t) ((uint32_t) ah * bl) + (uint32_t) al * bh; in mul64() 43 return lo + (me << 16) + ((uint64_t) hi << 32); in mul64() 46 static inline uint64_t mul64(uint32_t a, uint32_t b) in mul64() 48 return (uint64_t) a * b; in mul64() 69 uint64_t d0, d1, d2, d3; in poly1305_process() 100 d0 += (uint64_t) acc0; in poly1305_process() 101 d1 += (uint64_t) acc1 + (d0 >> 32U); in poly1305_process() 102 d2 += (uint64_t) acc2 + (d1 >> 32U); in poly1305_process() 103 d3 += (uint64_t) acc3 + (d2 >> 32U); in poly1305_process() [all …]
|
| /optee_os/core/arch/arm/crypto/ |
| H A D | aes-gcm-ce.c | 21 uint64_t *d = dst; in get_be_block() 29 const uint64_t *s = src; in put_be_block() 35 static void ghash_reflect(uint64_t h[2], const uint64_t k[2]) in ghash_reflect() 37 uint64_t b = get_be64(k); in ghash_reflect() 38 uint64_t a = get_be64(k + 1); in ghash_reflect() 49 uint64_t k[2] = { 0 }; in internal_aes_gcm_set_key() 50 uint64_t h[2] = { 0 }; in internal_aes_gcm_set_key() 67 static void pmull_ghash_update(int num_blocks, uint64_t dg[2], in pmull_ghash_update() 84 uint64_t dg[2]; in internal_aes_gcm_ghash_update() 98 const struct internal_aes_gcm_key *ek, uint64_t dg[2], in encrypt_pl() [all …]
|