/optee_os/core/arch/arm/tee/ |
A D | entry_fast.c | 21 args->a0 = OPTEE_SMC_RETURN_OK; in tee_entry_get_shm_config() 35 switch (args->a1) { in tee_entry_fastcall_l2cc_mutex() 38 reg_pair_from_64(pa, &args->a2, &args->a3); in tee_entry_fastcall_l2cc_mutex() 41 pa = reg_pair_to_64(args->a2, args->a3); in tee_entry_fastcall_l2cc_mutex() 89 args->a1 = 0; in tee_entry_exchange_capabilities() 127 args->a1 = cookie >> 32; in tee_entry_disable_shm_cache() 128 args->a2 = cookie; in tee_entry_disable_shm_cache() 142 if (!boot_core_release(args->a1, (paddr_t)(args->a3))) in tee_entry_boot_secondary() 194 __tee_entry_fast(args); in tee_entry_fast() 204 args->a2 = 0; in get_async_notif_value() [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | serializer.c | 22 args->start = in; in serialargs_init() 23 args->next = in; in serialargs_init() 24 args->size = size; in serialargs_init() 62 args->next = orig_next; in alloc_and_get() 77 return alloc_and_get(args, args->next, NULL, 0, out, size); in serialargs_alloc_and_get() 83 void *ptr = args->next; in serialargs_get_ptr() 94 if ((char *)next_end > args->start + args->size) { in serialargs_get_ptr() 96 args->size, args->size - (args->next - args->start), size); in serialargs_get_ptr() 100 args->next += size; in serialargs_get_ptr() 112 char *orig_next = args->next; in serialargs_alloc_get_one_attribute() [all …]
|
A D | serializer.h | 34 void serialargs_init(struct serialargs *args, void *in, size_t size); 44 enum pkcs11_rc serialargs_get(struct serialargs *args, void *out, size_t sz); 53 static inline enum pkcs11_rc serialargs_get_u32(struct serialargs *args, in serialargs_get_u32() argument 56 return serialargs_get(args, out, sizeof(*out)); in serialargs_get_u32() 67 enum pkcs11_rc serialargs_get_ptr(struct serialargs *args, void **out, 79 serialargs_alloc_get_one_attribute(struct serialargs *args, 90 enum pkcs11_rc serialargs_alloc_get_attributes(struct serialargs *args, 102 enum pkcs11_rc serialargs_alloc_and_get(struct serialargs *args, 112 bool serialargs_remaining_bytes(struct serialargs *args); 123 enum pkcs11_rc serialargs_get_session_from_handle(struct serialargs *args,
|
A D | processing_rsa.c | 21 struct serialargs args = { }; in pkcs2tee_proc_params_rsa_pss() local 30 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_proc_params_rsa_pss() 34 rc = serialargs_get_u32(&args, &mgf); in pkcs2tee_proc_params_rsa_pss() 42 if (serialargs_remaining_bytes(&args)) in pkcs2tee_proc_params_rsa_pss() 120 struct serialargs args = { }; in pkcs2tee_algo_rsa_pss() local 128 rc = serialargs_get_u32(&args, &hash); in pkcs2tee_algo_rsa_pss() 132 rc = serialargs_get_u32(&args, &mgf); in pkcs2tee_algo_rsa_pss() 140 if (serialargs_remaining_bytes(&args)) in pkcs2tee_algo_rsa_pss() 203 struct serialargs args = { }; in pkcs2tee_proc_params_rsa_oaep() local 218 rc = serialargs_get_u32(&args, &mgf); in pkcs2tee_proc_params_rsa_oaep() [all …]
|
/optee_os/core/arch/arm/plat-stm32mp1/nsec-service/ |
A D | stm32mp1_svc_setup.c | 17 struct thread_smc_args *args) in sip_service() argument 19 switch (OPTEE_SMC_FUNC_NUM(args->a0)) { in sip_service() 24 args->a0 = STM32_SIP_SVC_VERSION_MAJOR; in sip_service() 28 args->a0 = STM32_SIP_SVC_UID_0; in sip_service() 29 args->a1 = STM32_SIP_SVC_UID_1; in sip_service() 30 args->a2 = STM32_SIP_SVC_UID_2; in sip_service() 31 args->a3 = STM32_SIP_SVC_UID_3; in sip_service() 36 args->a0 = STM32_SIP_SVC_OK; in sip_service() 44 args->a0 = STM32_SIP_SVC_OK; in sip_service() 50 bsec_main(args); in sip_service() [all …]
|
A D | bsec_svc.c | 14 void bsec_main(struct thread_smc_args *args) in bsec_main() argument 17 uint32_t cmd = args->a1; in bsec_main() 18 uint32_t otp_id = args->a2; in bsec_main() 19 uint32_t in_value = args->a3; in bsec_main() 20 uint32_t *out_value = &args->a1; in bsec_main() 24 args->a0 = STM32_SIP_SVC_INVALID_PARAMS; in bsec_main() 62 args->a0 = STM32_SIP_SVC_OK; in bsec_main() 64 args->a0 = STM32_SIP_SVC_INVALID_PARAMS; in bsec_main() 66 args->a0 = STM32_SIP_SVC_FAILED; in bsec_main()
|
/optee_os/core/arch/arm/kernel/ |
A D | spmc_sp_handler.c | 29 args->a0 = FFA_ERROR; in ffa_set_error() 30 args->a2 = error; in ffa_set_error() 35 args->a0 = FFA_SUCCESS_32; in ffa_success() 142 args->a3 = ret_w3; in spmc_sp_handle_mem_share() 143 args->a2 = ret_w2; in spmc_sp_handle_mem_share() 580 args->a1 = tx_len; in ffa_mem_retrieve() 581 args->a2 = tx_len; in ffa_mem_retrieve() 649 ffa_success(args); in ffa_mem_relinquish() 688 uint64_t handle = reg_pair_to_64(args->a2, args->a1); in ffa_mem_reclaim() 737 ffa_success(args); in ffa_mem_reclaim() [all …]
|
A D | thread_spmc.c | 389 if (is_nil_uuid(args->a1, args->a2, args->a3, args->a4)) { in spmc_handle_partition_info_get() 405 if (is_my_uuid(args->a1, args->a2, args->a3, args->a4)) { in spmc_handle_partition_info_get() 451 thread_resume_from_rpc(args->a7, args->a4, args->a5, args->a6, in handle_yielding_call() 455 thread_alloc_and_run(args->a1, args->a3, args->a4, args->a5, in handle_yielding_call() 456 args->a6, args->a7); in handle_yielding_call() 505 handle_unregister_shm(args->a4, args->a5), 0, 0); in handle_blocking_call() 805 if (args->a5 || args->a6 || args->a7) in handle_mem_share() 813 if (args->a4) in handle_mem_share() 818 rc = handle_mem_share_tmem(args->a3, args->a1, args->a2, in handle_mem_share() 922 if (args->a3 || args->a4 || args->a5 || args->a6 || args->a7) in handle_mem_reclaim() [all …]
|
A D | secure_partition.c | 150 args->a0 = (vaddr_t)info; in sp_init_info() 359 if (sp_enter(&args, sess)) in sp_init_uuid() 372 ctx->sp_regs.x[0] = args->a0; in sp_enter() 373 ctx->sp_regs.x[1] = args->a1; in sp_enter() 374 ctx->sp_regs.x[2] = args->a2; in sp_enter() 375 ctx->sp_regs.x[3] = args->a3; in sp_enter() 376 ctx->sp_regs.x[4] = args->a4; in sp_enter() 377 ctx->sp_regs.x[5] = args->a5; in sp_enter() 378 ctx->sp_regs.x[6] = args->a6; in sp_enter() 379 ctx->sp_regs.x[7] = args->a7; in sp_enter() [all …]
|
/optee_os/core/lib/libtomcrypt/src/math/ |
A D | multi.c | 19 va_list args; in ltc_init_multi() local 21 va_start(args, a); in ltc_init_multi() 40 va_end(args); in ltc_init_multi() 48 va_list args; in ltc_init_multi_size() local 50 va_start(args, a); in ltc_init_multi_size() 68 va_end(args); in ltc_init_multi_size() 75 va_list args; in ltc_deinit_multi() local 77 va_start(args, a); in ltc_deinit_multi() 82 va_end(args); in ltc_deinit_multi() 88 va_list args; in ltc_cleanup_multi() local [all …]
|
/optee_os/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_encode_sequence_multi.c | 30 va_list args; in ssh_encode_sequence_multi() local 44 va_start(args, outlen); in ssh_encode_sequence_multi() 62 sdata = va_arg(args, char*); in ssh_encode_sequence_multi() 67 vdata = va_arg(args, void*); in ssh_encode_sequence_multi() 82 va_end(args); in ssh_encode_sequence_multi() 93 va_start(args, outlen); in ssh_encode_sequence_multi() 97 idata = va_arg(args, int); in ssh_encode_sequence_multi() 102 idata = va_arg(args, int); in ssh_encode_sequence_multi() 122 sdata = va_arg(args, char*); in ssh_encode_sequence_multi() 130 vdata = va_arg(args, void*); in ssh_encode_sequence_multi() [all …]
|
A D | ssh_decode_sequence_multi.c | 30 va_list args; in ssh_decode_sequence_multi() local 43 va_start(args, inlen); in ssh_decode_sequence_multi() 44 while ((type = (ssh_data_type)va_arg(args, int)) != LTC_SSHDATA_EOL) { in ssh_decode_sequence_multi() 96 cdata = va_arg(args, unsigned char*); in ssh_decode_sequence_multi() 100 cdata = va_arg(args, unsigned char*); in ssh_decode_sequence_multi() 108 u32data = va_arg(args, ulong32*); in ssh_decode_sequence_multi() 113 u64data = va_arg(args, ulong64*); in ssh_decode_sequence_multi() 119 sdata = va_arg(args, char*); in ssh_decode_sequence_multi() 120 bufsize = va_arg(args, unsigned long); in ssh_decode_sequence_multi() 134 vdata = va_arg(args, void*); in ssh_decode_sequence_multi() [all …]
|
/optee_os/core/arch/arm/sm/ |
A D | sm.c | 25 uint32_t smc_fid = args->a0; in smc_arch_handler() 26 uint32_t feature_fid = args->a1; in smc_arch_handler() 30 args->a0 = SMCCC_V_1_1; in smc_arch_handler() 36 args->a0 = ARM_SMCCC_RET_SUCCESS; in smc_arch_handler() 39 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in smc_arch_handler() 44 args->a0 = ARM_SMCCC_RET_NOT_SUPPORTED; in smc_arch_handler() 48 args->a0 = ARM_SMCCC_RET_NOT_REQUIRED; in smc_arch_handler() 74 switch (OPTEE_SMC_OWNER_NUM(args->a0)) { in sm_from_nsec() 77 smc_std_handler(args, &ctx->nsec); in sm_from_nsec() 82 smc_arch_handler(args); in sm_from_nsec() [all …]
|
A D | psci.c | 142 uint32_t smc_fid = args->a0; in tee_psci_handler() 143 uint32_t a1 = args->a1; in tee_psci_handler() 144 uint32_t a2 = args->a2; in tee_psci_handler() 145 uint32_t a3 = args->a3; in tee_psci_handler() 149 args->a0 = psci_version(); in tee_psci_handler() 155 args->a0 = psci_cpu_off(); in tee_psci_handler() 158 args->a0 = psci_cpu_on(a1, a2, a3); in tee_psci_handler() 164 args->a0 = psci_migrate(a1); in tee_psci_handler() 167 args->a0 = psci_migrate_info_type(); in tee_psci_handler() 183 args->a0 = psci_features(a1); in tee_psci_handler() [all …]
|
A D | std_smc.c | 44 void smc_std_handler(struct thread_smc_args *args, struct sm_nsec_ctx *nsec) in smc_std_handler() argument 46 uint32_t smc_fid = args->a0; in smc_std_handler() 49 tee_psci_handler(args, nsec); in smc_std_handler() 56 args->a0 = PSCI_NUM_CALLS; in smc_std_handler() 59 args->a0 = uuid.timeLow; in smc_std_handler() 60 args->a1 = (uuid.timeHiAndVersion << 16) | uuid.timeMid; in smc_std_handler() 61 args->a2 = (uuid.clockSeqAndNode[3] << 24) | in smc_std_handler() 65 args->a3 = (uuid.clockSeqAndNode[7] << 24) | in smc_std_handler() 71 args->a0 = STD_SVC_VERSION_MAJOR; in smc_std_handler() 72 args->a1 = STD_SVC_VERSION_MINOR; in smc_std_handler() [all …]
|
/optee_os/scripts/ |
A D | mem_usage.py | 42 def printf(format, *args): argument 47 if args.no_map: 68 if args.raw: 79 global args 88 args = get_args() 162 if args.all or args.init: 164 if args.all or args.paged: 166 if args.all or args.unpaged: 168 if args.all or args.unpaged_no_heap: 171 if (args.raw and (args.all or args.init or args.paged or [all …]
|
A D | bin_to_c.py | 38 args = get_args() 40 with open(args.bin, 'rb') as indata: 42 if args.text: 46 f = open(args.out, 'w') 47 f.write('/* Generated from ' + args.bin + ' by ' + 51 if args.text: 52 f.write('__extension__ const char ' + args.vname + '[] = {\n') 54 f.write('__extension__ const uint8_t ' + args.vname + '[] ' + 60 if args.text and i != size - 1 and bytes[i] == b'\0':
|
A D | sign_encrypt.py | 185 args = get_args(logger) 187 if args.key.startswith('arn:'): 191 with open(args.key, 'rb') as f: 204 with open(args.inf, 'rb') as f: 218 if args.enc_key: 226 shdr_uuid = args.uuid.bytes 229 if args.enc_key: 247 if args.enc_key: 255 with open(args.outf, 'wb') as f: 261 if args.enc_key: [all …]
|
A D | ts_bin_to_c.py | 81 args = get_args() 84 if args.ta is None and args.sp is None: 87 if args.ta is not None and args.sp is not None: 90 if args.ta is not None: 91 ts = args.ta 94 if args.sp is not None: 95 ts = args.sp 103 if args.compress: 107 f = open(args.out, 'w') 147 if args.compress:
|
/optee_os/core/arch/arm/plat-rzn1/ |
A D | sm_platform_handler.c | 70 struct thread_smc_args *args) in oem_service() argument 72 switch (OPTEE_SMC_FUNC_NUM(args->a0)) { in oem_service() 74 args->a0 = oem_sysreg(args->a1, args->a2, &args->a3); in oem_service() 75 args->a1 = args->a3; in oem_service() 78 console_putc(args->a1); in oem_service() 89 struct thread_smc_args *args = (void *)&ctx->nsec.r0; in sm_platform_handler() local 91 if (!OPTEE_SMC_IS_FAST_CALL(args->a0)) in sm_platform_handler() 94 switch (OPTEE_SMC_OWNER_NUM(args->a0)) { in sm_platform_handler() 96 return oem_service(ctx, args); in sm_platform_handler()
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/ |
A D | der_encode_sequence_multi.c | 34 va_list args; in der_encode_sequence_multi() local 41 va_start(args, outlen); in der_encode_sequence_multi() 45 size = va_arg(args, unsigned long); in der_encode_sequence_multi() 46 data = va_arg(args, void*); in der_encode_sequence_multi() 79 va_end(args); in der_encode_sequence_multi() 83 va_end(args); in der_encode_sequence_multi() 96 va_start(args, outlen); in der_encode_sequence_multi() 100 size = va_arg(args, unsigned long); in der_encode_sequence_multi() 101 data = va_arg(args, void*); in der_encode_sequence_multi() 132 va_end(args); in der_encode_sequence_multi() [all …]
|
/optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_fsa.c | 21 va_list args; in crypt_fsa() local 24 va_start(args, mp); in crypt_fsa() 29 while ((p = va_arg(args, void*)) != NULL) { in crypt_fsa() 31 va_end(args); in crypt_fsa() 36 while ((p = va_arg(args, void*)) != NULL) { in crypt_fsa() 38 va_end(args); in crypt_fsa() 43 while ((p = va_arg(args, void*)) != NULL) { in crypt_fsa() 45 va_end(args); in crypt_fsa() 50 va_end(args); in crypt_fsa()
|
/optee_os/core/arch/arm/include/tee/ |
A D | entry_fast.h | 13 void tee_entry_get_api_call_count(struct thread_smc_args *args); 14 void tee_entry_get_api_uuid(struct thread_smc_args *args); 15 void tee_entry_get_api_revision(struct thread_smc_args *args); 16 void tee_entry_get_os_uuid(struct thread_smc_args *args); 17 void tee_entry_get_os_revision(struct thread_smc_args *args); 30 void tee_entry_fast(struct thread_smc_args *args); 31 void __tee_entry_fast(struct thread_smc_args *args);
|
/optee_os/out/arm/export-ta_arm32/scripts/ |
A D | sign_encrypt.py | 185 args = get_args(logger) 187 if args.key.startswith('arn:'): 191 with open(args.key, 'rb') as f: 204 with open(args.inf, 'rb') as f: 218 if args.enc_key: 226 shdr_uuid = args.uuid.bytes 229 if args.enc_key: 247 if args.enc_key: 255 with open(args.outf, 'wb') as f: 261 if args.enc_key: [all …]
|
/optee_os/out/arm/export-ta_arm64/scripts/ |
A D | sign_encrypt.py | 185 args = get_args(logger) 187 if args.key.startswith('arn:'): 191 with open(args.key, 'rb') as f: 204 with open(args.inf, 'rb') as f: 218 if args.enc_key: 226 shdr_uuid = args.uuid.bytes 229 if args.enc_key: 247 if args.enc_key: 255 with open(args.outf, 'wb') as f: 261 if args.enc_key: [all …]
|