Lines Matching refs:se

25 	struct tegra_se *se;  member
272 struct tegra_se *se = ctx->se; in tegra_sha_prep_cmd() local
343 host1x_uclass_incr_syncpt_indx_f(se->syncpt_id); in tegra_sha_prep_cmd()
345 dev_dbg(se->dev, "msg len %llu msg left %llu sz %zd cfg %#x", in tegra_sha_prep_cmd()
356 struct tegra_se *se = ctx->se; in tegra_sha_do_init() local
370 rctx->digest.buf = dma_alloc_coherent(se->dev, rctx->digest.size, in tegra_sha_do_init()
375 rctx->residue.buf = dma_alloc_coherent(se->dev, rctx->blk_size, in tegra_sha_do_init()
381 rctx->intr_res.buf = dma_alloc_coherent(se->dev, rctx->intr_res.size, in tegra_sha_do_init()
389 dma_free_coherent(se->dev, rctx->residue.size, rctx->residue.buf, in tegra_sha_do_init()
392 dma_free_coherent(se->dev, rctx->digest.size, rctx->digest.buf, in tegra_sha_do_init()
402 struct tegra_se *se = ctx->se; in tegra_sha_do_update() local
404 u32 *cpuvaddr = se->cmdbuf->addr; in tegra_sha_do_update()
434 rctx->datbuf.buf = dma_alloc_coherent(se->dev, rctx->datbuf.size, in tegra_sha_do_update()
457 ret = tegra_se_host1x_submit(se, se->cmdbuf, size); in tegra_sha_do_update()
459 dma_free_coherent(se->dev, rctx->datbuf.size, in tegra_sha_do_update()
470 struct tegra_se *se = ctx->se; in tegra_sha_do_final() local
471 u32 *cpuvaddr = se->cmdbuf->addr; in tegra_sha_do_final()
475 rctx->datbuf.buf = dma_alloc_coherent(se->dev, rctx->residue.size, in tegra_sha_do_final()
492 ret = tegra_se_host1x_submit(se, se->cmdbuf, size); in tegra_sha_do_final()
501 dma_free_coherent(se->dev, rctx->datbuf.size, in tegra_sha_do_final()
504 dma_free_coherent(se->dev, crypto_ahash_blocksize(tfm), in tegra_sha_do_final()
506 dma_free_coherent(se->dev, rctx->digest.size, rctx->digest.buf, in tegra_sha_do_final()
509 dma_free_coherent(se->dev, rctx->intr_res.size, rctx->intr_res.buf, in tegra_sha_do_final()
521 struct tegra_se *se = ctx->se; in tegra_sha_do_one_req() local
549 crypto_finalize_hash_request(se->engine, req, ret); in tegra_sha_do_one_req()
563 dev_warn(ctx->se->dev, in tegra_sha_init_fallback()
594 ctx->se = se_alg->se_dev; in tegra_sha_cra_init()
600 dev_err(ctx->se->dev, "invalid algorithm\n"); in tegra_sha_cra_init()
619 tegra_key_invalidate(ctx->se, ctx->key_id, ctx->alg); in tegra_sha_cra_exit()
626 dev_dbg(ctx->se->dev, "invalid key length (%d)\n", keylen); in tegra_hmac_fallback_setkey()
643 ret = tegra_key_submit(ctx->se, key, keylen, ctx->alg, &ctx->key_id); in tegra_hmac_setkey()
660 return crypto_transfer_hash_request_to_engine(ctx->se->engine, req); in tegra_sha_init()
674 return crypto_transfer_hash_request_to_engine(ctx->se->engine, req); in tegra_sha_update()
688 return crypto_transfer_hash_request_to_engine(ctx->se->engine, req); in tegra_sha_final()
702 return crypto_transfer_hash_request_to_engine(ctx->se->engine, req); in tegra_sha_finup()
716 return crypto_transfer_hash_request_to_engine(ctx->se->engine, req); in tegra_sha_digest()
1117 int tegra_init_hash(struct tegra_se *se) in tegra_init_hash() argument
1122 se->manifest = tegra_hash_kac_manifest; in tegra_init_hash()
1125 tegra_hash_algs[i].se_dev = se; in tegra_init_hash()
1130 dev_err(se->dev, "failed to register %s\n", in tegra_init_hash()
1145 void tegra_deinit_hash(struct tegra_se *se) in tegra_deinit_hash() argument