Lines Matching refs:tctx
153 static struct mtk_cryp *mtk_sha_find_dev(struct mtk_sha_ctx *tctx)
159 if (!tctx->cryp) {
164 tctx->cryp = cryp;
166 cryp = tctx->cryp;
173 tctx->id = cryp->rec;
358 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
359 struct mtk_sha_hmac_ctx *bctx = tctx->base;
375 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm);
408 ctx->buffer = tctx->buf;
410 if (tctx->flags & SHA_FLAGS_HMAC) {
411 struct mtk_sha_hmac_ctx *bctx = tctx->base;
706 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
710 return mtk_sha_handle_queue(tctx->cryp, tctx->id, req);
802 struct mtk_sha_ctx *tctx = crypto_ahash_ctx(tfm);
803 struct mtk_sha_hmac_ctx *bctx = tctx->base;
848 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm);
851 cryp = mtk_sha_find_dev(tctx);
859 struct mtk_sha_hmac_ctx *bctx = tctx->base;
861 tctx->flags |= SHA_FLAGS_HMAC;
906 struct mtk_sha_ctx *tctx = crypto_tfm_ctx(tfm);
908 if (tctx->flags & SHA_FLAGS_HMAC) {
909 struct mtk_sha_hmac_ctx *bctx = tctx->base;