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()
464 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_write_ctrl_omap4() local
465 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_write_ctrl_omap4()
838 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_init() local
844 if (!tctx->dd) { in omap_sham_init()
849 tctx->dd = dd; in omap_sham_init()
851 dd = tctx->dd; in omap_sham_init()
893 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_init()
895 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_init()
955 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_finish_hmac() local
956 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_finish_hmac()
1076 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_enqueue() local
1077 struct omap_sham_dev *dd = tctx->dd; in omap_sham_enqueue()
1138 struct omap_sham_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in omap_sham_final_shash() local
1141 return omap_sham_shash_digest(tctx->fallback, req->base.flags, in omap_sham_final_shash()
1192 struct omap_sham_ctx *tctx = crypto_ahash_ctx(tfm); in omap_sham_setkey() local
1193 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_setkey()
1200 if (!tctx->dd) { in omap_sham_setkey()
1205 tctx->dd = dd; in omap_sham_setkey()
1207 dd = tctx->dd; in omap_sham_setkey()
1211 err = crypto_shash_setkey(tctx->fallback, key, keylen); in omap_sham_setkey()
1242 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_init_alg() local
1246 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1248 if (IS_ERR(tctx->fallback)) { in omap_sham_cra_init_alg()
1251 return PTR_ERR(tctx->fallback); in omap_sham_cra_init_alg()
1258 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_init_alg()
1259 tctx->flags |= BIT(FLAGS_HMAC); in omap_sham_cra_init_alg()
1265 crypto_free_shash(tctx->fallback); in omap_sham_cra_init_alg()
1311 struct omap_sham_ctx *tctx = crypto_tfm_ctx(tfm); in omap_sham_cra_exit() local
1313 crypto_free_shash(tctx->fallback); in omap_sham_cra_exit()
1314 tctx->fallback = NULL; in omap_sham_cra_exit()
1316 if (tctx->flags & BIT(FLAGS_HMAC)) { in omap_sham_cra_exit()
1317 struct omap_sham_hmac_ctx *bctx = tctx->base; in omap_sham_cra_exit()