Home
last modified time | relevance | path

Searched refs:cpuvaddr (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/crypto/tegra/
H A Dtegra-se-key.c51 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 Dtegra-se-aes.c207 u32 *cpuvaddr = se->cmdbuf->addr; in tegra_aes_prep_cmd() local
221 cpuvaddr[i++] = host1x_opcode_setpayload(SE_CRYPTO_CTR_REG_COUNT); in tegra_aes_prep_cmd()
222 cpuvaddr[i++] = se_host1x_opcode_incr_w(se->hw->regs->linear_ctr); in tegra_aes_prep_cmd()
224 cpuvaddr[i++] = rctx->iv[j]; in tegra_aes_prep_cmd()
227 cpuvaddr[i++] = se_host1x_opcode_nonincr(se->hw->regs->last_blk, 1); in tegra_aes_prep_cmd()
228 cpuvaddr[i++] = SE_LAST_BLOCK_VAL(data_count) | in tegra_aes_prep_cmd()
231 cpuvaddr[i++] = se_host1x_opcode_incr(se->hw->regs->config, 6); in tegra_aes_prep_cmd()
232 cpuvaddr[i++] = rctx->config; in tegra_aes_prep_cmd()
233 cpuvaddr[i++] = rctx->crypto_config; in tegra_aes_prep_cmd()
236 cpuvaddr[i++] = lower_32_bits(addr); in tegra_aes_prep_cmd()
[all …]
H A Dtegra-se-hash.c214 static int tegra_sha_prep_cmd(struct tegra_se *se, u32 *cpuvaddr, in tegra_sha_prep_cmd() argument
234 cpuvaddr[i++] = host1x_opcode_setpayload(8); in tegra_sha_prep_cmd()
235 cpuvaddr[i++] = se_host1x_opcode_incr_w(SE_SHA_MSG_LENGTH); in tegra_sha_prep_cmd()
236 cpuvaddr[i++] = lower_32_bits(msg_len); in tegra_sha_prep_cmd()
237 cpuvaddr[i++] = upper_32_bits(msg_len); in tegra_sha_prep_cmd()
238 cpuvaddr[i++] = 0; in tegra_sha_prep_cmd()
239 cpuvaddr[i++] = 0; in tegra_sha_prep_cmd()
240 cpuvaddr[i++] = lower_32_bits(msg_left); in tegra_sha_prep_cmd()
241 cpuvaddr[i++] = upper_32_bits(msg_left); in tegra_sha_prep_cmd()
242 cpuvaddr[i++] = 0; in tegra_sha_prep_cmd()
[all …]