Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 79) sorted by relevance

1234

/optee_os-3.20.0/core/drivers/crypto/versal/
A Dipi.c33 cmd.data[1] = a; in versal_sha3_request()
34 cmd.data[2] = b; in versal_sha3_request()
35 cmd.data[3] = arg->data[0]; in versal_sha3_request()
41 cmd.data[4] = a; in versal_sha3_request()
42 cmd.data[5] = b; in versal_sha3_request()
60 cmd.data[1] = a; in versal_aes_update_aad_request()
61 cmd.data[2] = b; in versal_aes_update_aad_request()
92 cmd.data[i++] = a; in versal_crypto_request()
93 cmd.data[i++] = b; in versal_crypto_request()
103 cmd.data[i++] = a; in versal_crypto_request()
[all …]
A Decc.c213 cmd = cmd_buf.buf; in verify()
215 cmd->pub_key_addr = virt_to_phys(x.buf); in verify()
216 cmd->hash_addr = virt_to_phys(p.buf); in verify()
217 cmd->hash_len = p.len; in verify()
218 cmd->curve = key->curve; in verify()
234 free(cmd); in verify()
301 cmd = cmd_buf.buf; in sign()
304 cmd->hash_addr = virt_to_phys(p.buf); in sign()
305 cmd->hash_len = p.len; in sign()
306 cmd->curve = key->curve; in sign()
[all …]
A Drsa.c32 struct versal_rsa_input_param *cmd = NULL; in do_encrypt() local
88 cmd = cmd_buf.buf; in do_encrypt()
89 cmd->key_len = rsa_data->key.n_size; in do_encrypt()
90 cmd->data_addr = virt_to_phys(msg.buf); in do_encrypt()
91 cmd->key_addr = virt_to_phys(key.buf); in do_encrypt()
114 free(cmd); in do_encrypt()
123 struct versal_rsa_input_param *cmd = NULL; in do_decrypt() local
180 cmd = cmd_buf.buf; in do_decrypt()
181 cmd->key_len = rsa_data->key.n_size; in do_decrypt()
183 cmd->key_addr = virt_to_phys(key.buf); in do_decrypt()
[all …]
/optee_os-3.20.0/core/drivers/
A Dversal_huk.c203 &cmd.data[4], &cmd.data[3]); in aes_gcm_encrypt()
210 memset(&cmd, 0, sizeof(cmd)); in aes_gcm_encrypt()
226 reg_pair_from_64(virt_to_phys(init), &cmd.data[2], &cmd.data[1]); in aes_gcm_encrypt()
235 memset(&cmd, 0, sizeof(cmd)); in aes_gcm_encrypt()
241 reg_pair_from_64(virt_to_phys(p.buf), &cmd.data[2], &cmd.data[1]); in aes_gcm_encrypt()
252 memset(&cmd, 0, sizeof(cmd)); in aes_gcm_encrypt()
264 reg_pair_from_64(virt_to_phys(input), &cmd.data[2], &cmd.data[1]); in aes_gcm_encrypt()
265 reg_pair_from_64(virt_to_phys(q.buf), &cmd.data[4], &cmd.data[3]); in aes_gcm_encrypt()
277 memset(&cmd, 0, sizeof(cmd)); in aes_gcm_encrypt()
283 reg_pair_from_64(virt_to_phys(p.buf), &cmd.data[2], &cmd.data[1]); in aes_gcm_encrypt()
[all …]
A Dversal_mbox.c205 if (!cmd->ibuf[i].mem.buf) in versal_mbox_write_req()
211 cmd->ibuf[i].mem.buf); in versal_mbox_write_req()
217 i, cmd->ibuf[i].mem.alloc_len); in versal_mbox_write_req()
222 cmd->ibuf[i].mem.alloc_len); in versal_mbox_write_req()
225 memcpy(ipi.req, cmd->data, sizeof(cmd->data)); in versal_mbox_write_req()
251 if (!cmd->ibuf[i].mem.buf) in versal_mbox_read_rsp()
257 i, cmd->ibuf[i].mem.buf); in versal_mbox_read_rsp()
263 i, cmd->ibuf[i].mem.alloc_len); in versal_mbox_read_rsp()
268 cmd->ibuf[i].mem.buf, in versal_mbox_read_rsp()
269 cmd->ibuf[i].mem.alloc_len); in versal_mbox_read_rsp()
[all …]
A Dversal_pm.c137 struct versal_ipi_cmd cmd = { }; in versal_write_fpga() local
139 cmd.data[0] = PM_LOAD_PDI; in versal_write_fpga()
140 cmd.data[1] = PDI_SRC_DDR; in versal_write_fpga()
141 reg_pair_from_64(pa, &cmd.data[2], &cmd.data[3]); in versal_write_fpga()
143 if (versal_mbox_notify(&cmd, NULL, NULL)) in versal_write_fpga()
181 struct versal_ipi_cmd cmd = { }; in versal_check_pm_abi() local
201 cmd.data[0] = PM_API_ID(PM_GET_API_VERSION); in versal_check_pm_abi()
202 if (versal_mbox_notify(&cmd, &rsp, NULL)) in versal_check_pm_abi()
/optee_os-3.20.0/core/include/drivers/
A Dtpm2_cmd.h34 static inline uint16_t tpm2_cmd_len(struct tpm2_cmd *cmd) in tpm2_cmd_len() argument
36 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.size); in tpm2_cmd_len()
39 static inline uint16_t tpm2_cmd_code(struct tpm2_cmd *cmd) in tpm2_cmd_code() argument
41 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.code); in tpm2_cmd_code()
44 static inline uint16_t tpm2_ret_code(struct tpm2_cmd *cmd) in tpm2_ret_code() argument
46 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.code); in tpm2_ret_code()
/optee_os-3.20.0/mk/
A Dcompile.mk69 comp-cmd-file-$2:= $$(dir $2).$$(notdir $2).cmd
86 echo-check-$2 := $(cmd-echo-silent)
87 echo-check-cmd-$2 = $(cmd-echo) $$(subst \",\\\",$$(check-cmd-$2))
265 dtb-cmd-file-$2 := $$(dir $2).$$(notdir $2).cmd
269 $$(dtb-dep-$2) $$(dtb-cmd-file-$2)
279 -include $$(dtb-cmd-file-$2)
290 $$(filter-out $$(dtb-cmd-$2), $$(dtb-old-cmd-$2)) \
291 $$(filter-out $$(dtb-old-cmd-$2), $$(dtb-cmd-$2))), \
297 $$(dtb-cmd-$2); \
299 $$(dtb-cmd-file-$2) ;\
[all …]
A Dclang.mk10 ccache-cmd := $(if $(findstring ccache,$(CROSS_COMPILE_$(sm))),$(firstword $(CROSS_COMPILE_$(sm))) …
12 CC$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)clang --target=$(clang-target)
16 CPP$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)clang --target=$(clang-target) -E
17 LD$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)ld.lld
19 AR$(sm) := $(ccache-cmd)$(OPTEE_CLANG_COMPILER_PATH)llvm-ar
A Dlib.mk57 @$(cmd-echo-silent) ' AR $$@'
66 @$(cmd-echo-silent) ' LD $$@'
74 @$(cmd-echo-silent) ' OBJCOPY $$@'
78 @$(cmd-echo-silent) ' SIGN $$@'
82 @$(cmd-echo-silent) ' LN $$@'
A Dcheckconf.mk16 $(cmd-echo-silent) ' CHK $@'; \
31 $(cmd-echo-silent) ' CHK $@'; \
44 $(cmd-echo-silent) ' CHK $@'; \
63 $(cmd-echo-silent) ' UPD $2'; \
/optee_os-3.20.0/core/drivers/tpm2/
A Dtpm2_cmd.c21 assert(len >= sizeof(*cmd)); in tpm2_cmd_init_hdr()
23 put_unaligned_be16(&cmd->hdr.tag, tag); in tpm2_cmd_init_hdr()
32 uint32_t cmd_len = tpm2_cmd_len(cmd); in tpm2_cmd_add()
334 cmd.handle = TPM_RS_PW; in tpm2_add_password_auth_cmd()
336 cmd.nonce.size = 0; in tpm2_add_password_auth_cmd()
338 cmd.session_attributes = 0; in tpm2_add_password_auth_cmd()
339 cmd.hmac.size = pass_sz; in tpm2_add_password_auth_cmd()
341 auth_sz = sizeof(cmd.handle) + sizeof(cmd.nonce.size) + in tpm2_add_password_auth_cmd()
342 sizeof(cmd.session_attributes) + sizeof(cmd.hmac.size) + in tpm2_add_password_auth_cmd()
343 cmd.hmac.size; in tpm2_add_password_auth_cmd()
[all …]
/optee_os-3.20.0/core/drivers/crypto/se050/adaptors/utils/
A Dscp_config.c296 cmd[0] = PUT_KEYS_KEY_TYPE_CODING_AES; in prepare_key_data()
297 cmd[1] = AES_KEY_LEN_nBYTE + 1; in prepare_key_data()
298 cmd[2] = AES_KEY_LEN_nBYTE; in prepare_key_data()
311 struct s050_scp_rotate_cmd *cmd, in se050_scp03_prepare_rotate_cmd() argument
328 cmd->cmd[cmd_len] = key_version; in se050_scp03_prepare_rotate_cmd()
331 cmd->kcv[kcv_len] = key_version; in se050_scp03_prepare_rotate_cmd()
339 status = prepare_key_data(key[i], &cmd->cmd[cmd_len], ctx, oid); in se050_scp03_prepare_rotate_cmd()
343 memcpy(&cmd->kcv[kcv_len], in se050_scp03_prepare_rotate_cmd()
344 &cmd->cmd[cmd_len + 3 + AES_KEY_LEN_nBYTE + 1], in se050_scp03_prepare_rotate_cmd()
351 cmd->cmd_len = cmd_len; in se050_scp03_prepare_rotate_cmd()
[all …]
/optee_os-3.20.0/
A DMakefile58 cmd-echo := true
59 cmd-echo-silent := echo
62 cmd-echo := echo
63 cmd-echo-silent := true
68 cmd-echo-silent := true
72 cmd-echo-silent := true
104 @$(cmd-echo-silent) ' CLEAN $(out-dir)'
107 @if [ "$(out-dir)" != "$(O)" ]; then $(cmd-echo-silent) ' CLEAN $(O)'; fi
/optee_os-3.20.0/core/arch/arm/kernel/
A Dlink.mk68 @$(cmd-echo-silent) ' LD $@'
73 @$(cmd-echo-silent) ' GEN $@'
82 @$(cmd-echo-silent) ' LD $@'
89 @$(cmd-echo-silent) ' GEN $@'
95 @$(cmd-echo-silent) ' GEN $@'
102 @$(cmd-echo-silent) ' GEN $@'
113 @$(cmd-echo-silent) ' LD $@'
120 @$(cmd-echo-silent) ' GEN $@'
126 @$(cmd-echo-silent) ' GEN $@'
138 @$(cmd-echo-silent) ' CPP $@'
[all …]
/optee_os-3.20.0/core/arch/riscv/kernel/
A Dlink.mk41 @$(cmd-echo-silent) ' LD $@'
49 @$(cmd-echo-silent) ' CPP $@'
55 @$(cmd-echo-silent) ' UPD $(1)'
90 -include $(link-out-dir)/.tee.elf.cmd
105 @$(cmd-echo-silent) ' LD $@'
111 @$(cmd-echo-silent) ' OBJDUMP $@'
117 @$(cmd-echo-silent) ' GEN $@'
123 @$(cmd-echo-silent) ' GEN $@'
131 @$(cmd-echo-silent) ' GEN $@'
137 @$(cmd-echo-silent) ' GEN $@'
[all …]
/optee_os-3.20.0/ta/arch/arm/
A Dlink_shlib.mk35 @$(cmd-echo-silent) ' LD $@'
39 @$(cmd-echo-silent) ' OBJDUMP $@'
43 @$(cmd-echo-silent) ' OBJCOPY $@'
47 @$(cmd-echo-silent) ' LN $@'
52 @$(cmd-echo-silent) ' SIGN $@'
A Dlink.mk41 @$(cmd-echo-silent) ' GEN $@'
77 link-script-pp-makefiles$(sm) = $(filter-out %.d %.cmd,$(MAKEFILE_LIST))
81 @$(cmd-echo-silent) ' CPP $$@'
91 @$(cmd-echo-silent) ' LD $$@'
96 @$(cmd-echo-silent) ' OBJDUMP $$@'
101 @$(cmd-echo-silent) ' OBJCOPY $$@'
104 cmd-echo$(user-ta-uuid) := SIGN #
107 cmd-echo$(user-ta-uuid) := SIGNENC
113 @$(cmd-echo-silent) ' $$(cmd-echo$(user-ta-uuid)) $$@'
/optee_os-3.20.0/ta/mk/
A Dta_dev_kit.mk40 cmd-echo := true
41 cmd-echo-silent := echo
44 cmd-echo := echo
45 cmd-echo-silent := true
50 cmd-echo-silent := true
54 cmd-echo-silent := true
113 @$(cmd-echo-silent) ' CLEAN $(out-dir)'
116 @$(cmd-echo-silent) ' CLEAN $(O)'
/optee_os-3.20.0/core/pta/
A Dhwrng.c60 uint32_t cmd, uint32_t ptypes, in invoke_command() argument
63 FMSG(PTA_NAME" command %#"PRIx32" ptypes %#"PRIx32, cmd, ptypes); in invoke_command()
65 switch (cmd) { in invoke_command()
/optee_os-3.20.0/core/arch/arm/plat-stm32mp1/nsec-service/
A Dbsec_svc.c17 uint32_t cmd = args->a1; in bsec_main() local
28 switch (cmd) { in bsec_main()
56 DMSG("Invalid command %#"PRIx32, cmd); in bsec_main()
/optee_os-3.20.0/scripts/
A Dsymbolize.py140 def my_Popen(self, cmd): argument
174 def arch_prefix(self, cmd, elf): argument
178 return self._arch + cmd
191 cmd = self.arch_prefix('addr2line', elf)
192 if not cmd:
267 cmd = self.arch_prefix('nm', elf)
268 if not reladdr or not elf or not cmd:
308 cmd = self.arch_prefix('objdump', elf)
309 if not reladdr or not elf or not cmd:
357 cmd = self.arch_prefix('objdump', elf)
[all …]
/optee_os-3.20.0/core/drivers/crypto/aspeed/
A Dhace_ast2600.c44 uint32_t cmd; member
113 io_write32(hace_virt + HACE_HASH_CMD, hctx->cmd); in ast2600_hace_process()
312 dst_hctx->cmd = src_hctx->cmd; in ast2600_hace_copy_state()
353 hctx->cmd = HACE_HASH_CMD_ACCUM | HACE_HASH_CMD_SHA_BE; in ast2600_hace_alloc()
360 hctx->cmd |= HACE_HASH_CMD_ALG_SHA1; in ast2600_hace_alloc()
366 hctx->cmd |= HACE_HASH_CMD_ALG_SHA256; in ast2600_hace_alloc()
372 hctx->cmd |= HACE_HASH_CMD_ALG_SHA384; in ast2600_hace_alloc()
378 hctx->cmd |= HACE_HASH_CMD_ALG_SHA512; in ast2600_hace_alloc()
/optee_os-3.20.0/ldelf/
A Dlink.mk40 link-script-pp-makefiles$(sm) = $(filter-out %.d %.cmd,$(MAKEFILE_LIST))
45 @$(cmd-echo-silent) ' CPP $$@'
51 @$(cmd-echo-silent) ' LD $$@'
55 @$(cmd-echo-silent) ' OBJDUMP $$@'
/optee_os-3.20.0/core/drivers/crypto/se050/adaptors/include/
A Dse050_utils.h22 uint8_t cmd[128]; member
58 struct s050_scp_rotate_cmd *cmd,

Completed in 36 milliseconds

1234