Lines Matching refs:cmd

476 ccp_run_aes_cmac_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd)  in ccp_run_aes_cmac_cmd()  argument
478 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmac_cmd()
539 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
560 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
580 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
591 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
598 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
611 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmac_cmd()
632 ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_aes_gcm_cmd() argument
634 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_gcm_cmd()
720 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
742 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
763 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
811 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
824 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
835 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_gcm_cmd()
916 ccp_run_aes_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_aes_cmd() argument
918 struct ccp_aes_engine *aes = &cmd->u.aes; in ccp_run_aes_cmd()
979 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmd()
1002 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmd()
1053 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmd()
1067 cmd->engine_error = cmd_q->cmd_error; in ccp_run_aes_cmd()
1093 ccp_run_xts_aes_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_xts_aes_cmd() argument
1095 struct ccp_xts_aes_engine *xts = &cmd->u.xts; in ccp_run_xts_aes_cmd()
1201 cmd->engine_error = cmd_q->cmd_error; in ccp_run_xts_aes_cmd()
1221 cmd->engine_error = cmd_q->cmd_error; in ccp_run_xts_aes_cmd()
1255 cmd->engine_error = cmd_q->cmd_error; in ccp_run_xts_aes_cmd()
1268 cmd->engine_error = cmd_q->cmd_error; in ccp_run_xts_aes_cmd()
1293 ccp_run_des3_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_des3_cmd() argument
1295 struct ccp_des3_engine *des3 = &cmd->u.des3; in ccp_run_des3_cmd()
1380 cmd->engine_error = cmd_q->cmd_error; in ccp_run_des3_cmd()
1408 cmd->engine_error = cmd_q->cmd_error; in ccp_run_des3_cmd()
1451 cmd->engine_error = cmd_q->cmd_error; in ccp_run_des3_cmd()
1463 cmd->engine_error = cmd_q->cmd_error; in ccp_run_des3_cmd()
1489 ccp_run_sha_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_sha_cmd() argument
1491 struct ccp_sha_engine *sha = &cmd->u.sha; in ccp_run_sha_cmd()
1689 cmd->engine_error = cmd_q->cmd_error; in ccp_run_sha_cmd()
1707 cmd->engine_error = cmd_q->cmd_error; in ccp_run_sha_cmd()
1717 cmd->engine_error = cmd_q->cmd_error; in ccp_run_sha_cmd()
1728 cmd->engine_error = cmd_q->cmd_error; in ccp_run_sha_cmd()
1819 cmd->engine_error = hmac_cmd.engine_error; in ccp_run_sha_cmd()
1835 ccp_run_rsa_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_rsa_cmd() argument
1837 struct ccp_rsa_engine *rsa = &cmd->u.rsa; in ccp_run_rsa_cmd()
1902 cmd->engine_error = cmd_q->cmd_error; in ccp_run_rsa_cmd()
1944 cmd->engine_error = cmd_q->cmd_error; in ccp_run_rsa_cmd()
1967 ccp_run_passthru_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_passthru_cmd() argument
1969 struct ccp_passthru_engine *pt = &cmd->u.passthru; in ccp_run_passthru_cmd()
2013 cmd->engine_error = cmd_q->cmd_error; in ccp_run_passthru_cmd()
2072 cmd->engine_error = cmd_q->cmd_error; in ccp_run_passthru_cmd()
2100 struct ccp_cmd *cmd) in ccp_run_passthru_nomap_cmd() argument
2102 struct ccp_passthru_nomap_engine *pt = &cmd->u.passthru_nomap; in ccp_run_passthru_nomap_cmd()
2137 cmd->engine_error = cmd_q->cmd_error; in ccp_run_passthru_nomap_cmd()
2158 cmd->engine_error = cmd_q->cmd_error; in ccp_run_passthru_nomap_cmd()
2163 static int ccp_run_ecc_mm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_ecc_mm_cmd() argument
2165 struct ccp_ecc_engine *ecc = &cmd->u.ecc; in ccp_run_ecc_mm_cmd()
2242 op.u.ecc.function = cmd->u.ecc.function; in ccp_run_ecc_mm_cmd()
2246 cmd->engine_error = cmd_q->cmd_error; in ccp_run_ecc_mm_cmd()
2270 static int ccp_run_ecc_pm_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_ecc_pm_cmd() argument
2272 struct ccp_ecc_engine *ecc = &cmd->u.ecc; in ccp_run_ecc_pm_cmd()
2400 op.u.ecc.function = cmd->u.ecc.function; in ccp_run_ecc_pm_cmd()
2404 cmd->engine_error = cmd_q->cmd_error; in ccp_run_ecc_pm_cmd()
2440 ccp_run_ecc_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_ecc_cmd() argument
2442 struct ccp_ecc_engine *ecc = &cmd->u.ecc; in ccp_run_ecc_cmd()
2454 return ccp_run_ecc_mm_cmd(cmd_q, cmd); in ccp_run_ecc_cmd()
2459 return ccp_run_ecc_pm_cmd(cmd_q, cmd); in ccp_run_ecc_cmd()
2466 int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd) in ccp_run_cmd() argument
2470 cmd->engine_error = 0; in ccp_run_cmd()
2475 switch (cmd->engine) { in ccp_run_cmd()
2477 switch (cmd->u.aes.mode) { in ccp_run_cmd()
2479 ret = ccp_run_aes_cmac_cmd(cmd_q, cmd); in ccp_run_cmd()
2482 ret = ccp_run_aes_gcm_cmd(cmd_q, cmd); in ccp_run_cmd()
2485 ret = ccp_run_aes_cmd(cmd_q, cmd); in ccp_run_cmd()
2490 ret = ccp_run_xts_aes_cmd(cmd_q, cmd); in ccp_run_cmd()
2493 ret = ccp_run_des3_cmd(cmd_q, cmd); in ccp_run_cmd()
2496 ret = ccp_run_sha_cmd(cmd_q, cmd); in ccp_run_cmd()
2499 ret = ccp_run_rsa_cmd(cmd_q, cmd); in ccp_run_cmd()
2502 if (cmd->flags & CCP_CMD_PASSTHRU_NO_DMA_MAP) in ccp_run_cmd()
2503 ret = ccp_run_passthru_nomap_cmd(cmd_q, cmd); in ccp_run_cmd()
2505 ret = ccp_run_passthru_cmd(cmd_q, cmd); in ccp_run_cmd()
2508 ret = ccp_run_ecc_cmd(cmd_q, cmd); in ccp_run_cmd()