Lines Matching refs:tctx

302 		struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm);  in omap_sham_copy_hash_omap4()  local
303 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_copy_hash_omap4()
458 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
459 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
832 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
838 if (!tctx->dd) { in omap_sham_init()
843 tctx->dd = dd; in omap_sham_init()
845 dd = tctx->dd; in omap_sham_init()
887 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
889 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
949 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
950 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1070 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_enqueue() local
1071 struct omap_sham_dev *dd = tctx->dd; in omap_sham_enqueue()
1132 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
1135 return omap_sham_shash_digest(tctx->fallback, req->base.flags, in omap_sham_final_shash()
1186 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_setkey() local
1187 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_setkey()
1194 if (!tctx->dd) { in omap_sham_setkey()
1199 tctx->dd = dd; in omap_sham_setkey()
1201 dd = tctx->dd; in omap_sham_setkey()
1205 err = crypto_shash_setkey(tctx->fallback, key, keylen); in omap_sham_setkey()
1236 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg() local
1240 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1242 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1245 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1252 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_init_alg()
1253 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1259 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1305 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit() local
1307 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1308 tctx->fallback = NULL; in omap_sham_cra_exit()
1310 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_cra_exit()
1311 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_exit()