Searched refs:cpuvaddr (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-key.c | 51 static unsigned int tegra_key_prep_ins_cmd(struct tegra_se *se, u32 *cpuvaddr, in tegra_key_prep_ins_cmd() argument 56 cpuvaddr[i++] = host1x_opcode_setpayload(1); in tegra_key_prep_ins_cmd() 57 cpuvaddr[i++] = se_host1x_opcode_incr_w(se->hw->regs->op); in tegra_key_prep_ins_cmd() 58 cpuvaddr[i++] = SE_AES_OP_WRSTALL | SE_AES_OP_DUMMY; in tegra_key_prep_ins_cmd() 60 cpuvaddr[i++] = host1x_opcode_setpayload(1); in tegra_key_prep_ins_cmd() 61 cpuvaddr[i++] = se_host1x_opcode_incr_w(se->hw->regs->manifest); in tegra_key_prep_ins_cmd() 62 cpuvaddr[i++] = se->manifest(se->owner, alg, keylen); in tegra_key_prep_ins_cmd() 63 cpuvaddr[i++] = host1x_opcode_setpayload(1); in tegra_key_prep_ins_cmd() 64 cpuvaddr[i++] = se_host1x_opcode_incr_w(se->hw->regs->key_dst); in tegra_key_prep_ins_cmd() 66 cpuvaddr[i++] = SE_AES_KEY_DST_INDEX(slot); in tegra_key_prep_ins_cmd() [all …]
|
| H A D | tegra-se-aes.c | 213 u32 *cpuvaddr = se->cmdbuf->addr; in tegra_aes_prep_cmd() local 227 cpuvaddr[i++] = host1x_opcode_setpayload(SE_CRYPTO_CTR_REG_COUNT); in tegra_aes_prep_cmd() 228 cpuvaddr[i++] = se_host1x_opcode_incr_w(se->hw->regs->linear_ctr); in tegra_aes_prep_cmd() 230 cpuvaddr[i++] = rctx->iv[j]; in tegra_aes_prep_cmd() 233 cpuvaddr[i++] = se_host1x_opcode_nonincr(se->hw->regs->last_blk, 1); in tegra_aes_prep_cmd() 234 cpuvaddr[i++] = SE_LAST_BLOCK_VAL(data_count) | in tegra_aes_prep_cmd() 237 cpuvaddr[i++] = se_host1x_opcode_incr(se->hw->regs->config, 6); in tegra_aes_prep_cmd() 238 cpuvaddr[i++] = rctx->config; in tegra_aes_prep_cmd() 239 cpuvaddr[i++] = rctx->crypto_config; in tegra_aes_prep_cmd() 242 cpuvaddr[i++] = lower_32_bits(addr); in tegra_aes_prep_cmd() [all …]
|
| H A D | tegra-se-hash.c | 217 static int tegra_se_insert_hash_result(struct tegra_sha_ctx *ctx, u32 *cpuvaddr, in tegra_se_insert_hash_result() argument 224 cpuvaddr[i++] = 0; in tegra_se_insert_hash_result() 225 cpuvaddr[i++] = host1x_opcode_setpayload(HASH_RESULT_REG_COUNT); in tegra_se_insert_hash_result() 226 cpuvaddr[i++] = se_host1x_opcode_incr_w(SE_SHA_HASH_RESULT); in tegra_se_insert_hash_result() 261 cpuvaddr[i++] = be32_to_cpu(res_be[idx]); in tegra_se_insert_hash_result() 263 cpuvaddr[i++] = res[idx]; in tegra_se_insert_hash_result() 269 static int tegra_sha_prep_cmd(struct tegra_sha_ctx *ctx, u32 *cpuvaddr, in tegra_sha_prep_cmd() argument 290 cpuvaddr[i++] = host1x_opcode_setpayload(8); in tegra_sha_prep_cmd() 291 cpuvaddr[i++] = se_host1x_opcode_incr_w(SE_SHA_MSG_LENGTH); in tegra_sha_prep_cmd() 292 cpuvaddr[i++] = lower_32_bits(msg_len); in tegra_sha_prep_cmd() [all …]
|