Lines Matching refs:cpuvaddr
214 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()
243 cpuvaddr[i++] = 0; in tegra_sha_prep_cmd()
244 cpuvaddr[i++] = host1x_opcode_setpayload(6); in tegra_sha_prep_cmd()
245 cpuvaddr[i++] = se_host1x_opcode_incr_w(SE_SHA_CFG); in tegra_sha_prep_cmd()
246 cpuvaddr[i++] = rctx->config; in tegra_sha_prep_cmd()
249 cpuvaddr[i++] = SE_SHA_TASK_HASH_INIT; in tegra_sha_prep_cmd()
252 cpuvaddr[i++] = 0; in tegra_sha_prep_cmd()
255 cpuvaddr[i++] = rctx->datbuf.addr; in tegra_sha_prep_cmd()
256 cpuvaddr[i++] = (u32)(SE_ADDR_HI_MSB(upper_32_bits(rctx->datbuf.addr)) | in tegra_sha_prep_cmd()
258 cpuvaddr[i++] = rctx->digest.addr; in tegra_sha_prep_cmd()
259 cpuvaddr[i++] = (u32)(SE_ADDR_HI_MSB(upper_32_bits(rctx->digest.addr)) | in tegra_sha_prep_cmd()
262 cpuvaddr[i++] = host1x_opcode_setpayload(1); in tegra_sha_prep_cmd()
263 cpuvaddr[i++] = se_host1x_opcode_nonincr_w(SE_SHA_CRYPTO_CFG); in tegra_sha_prep_cmd()
264 cpuvaddr[i++] = SE_AES_KEY_INDEX(rctx->key_id); in tegra_sha_prep_cmd()
267 cpuvaddr[i++] = host1x_opcode_setpayload(1); in tegra_sha_prep_cmd()
268 cpuvaddr[i++] = se_host1x_opcode_nonincr_w(SE_SHA_OPERATION); in tegra_sha_prep_cmd()
269 cpuvaddr[i++] = SE_SHA_OP_WRSTALL | in tegra_sha_prep_cmd()
272 cpuvaddr[i++] = se_host1x_opcode_nonincr(host1x_uclass_incr_syncpt_r(), 1); in tegra_sha_prep_cmd()
273 cpuvaddr[i++] = host1x_uclass_incr_syncpt_cond_f(1) | in tegra_sha_prep_cmd()
304 u32 *cpuvaddr = ctx->se->cmdbuf->addr; in tegra_sha_do_update() local
358 size = tegra_sha_prep_cmd(ctx->se, cpuvaddr, rctx); in tegra_sha_do_update()
379 u32 *cpuvaddr = se->cmdbuf->addr; in tegra_sha_do_final() local
389 size = tegra_sha_prep_cmd(se, cpuvaddr, rctx); in tegra_sha_do_final()