Lines Matching refs:tctx
304 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_copy_hash_omap4() local
305 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
466 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
467 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
924 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
930 if (!tctx->dd) { in omap_sham_init()
935 tctx->dd = dd; in omap_sham_init()
937 dd = tctx->dd; in omap_sham_init()
981 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
983 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
1048 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
1049 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1190 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_enqueue() local
1191 struct omap_sham_dev *dd = tctx->dd; in omap_sham_enqueue()
1231 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
1244 return omap_sham_shash_digest(tctx->fallback, req->base.flags, in omap_sham_final_shash()
1301 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_setkey() local
1302 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_setkey()
1309 if (!tctx->dd) { in omap_sham_setkey()
1314 tctx->dd = dd; in omap_sham_setkey()
1316 dd = tctx->dd; in omap_sham_setkey()
1320 err = crypto_shash_setkey(tctx->fallback, key, keylen); in omap_sham_setkey()
1351 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg() local
1355 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1357 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1360 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1367 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_init_alg()
1368 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1374 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1420 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit() local
1422 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1423 tctx->fallback = NULL; in omap_sham_cra_exit()
1425 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_cra_exit()
1426 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_exit()