Lines Matching refs:tfm

166 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);  in kmb_ocs_hcu_find_dev()  local
167 struct ocs_hcu_ctx *tctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_find_dev()
378 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in prepare_ipad() local
379 struct ocs_hcu_ctx *ctx = crypto_ahash_ctx(tfm); in prepare_ipad()
416 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_do_one_request() local
418 struct ocs_hcu_ctx *tctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_do_one_request()
565 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_init() local
566 struct ocs_hcu_ctx *ctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_init()
575 rctx->dig_sz = crypto_ahash_digestsize(tfm); in kmb_ocs_hcu_init()
654 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in kmb_ocs_hcu_fin_common() local
655 struct ocs_hcu_ctx *ctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_fin_common()
747 static int kmb_ocs_hcu_setkey(struct crypto_ahash *tfm, const u8 *key, in kmb_ocs_hcu_setkey() argument
750 unsigned int digestsize = crypto_ahash_digestsize(tfm); in kmb_ocs_hcu_setkey()
751 struct ocs_hcu_ctx *ctx = crypto_ahash_ctx(tfm); in kmb_ocs_hcu_setkey()
752 size_t blk_sz = crypto_ahash_blocksize(tfm); in kmb_ocs_hcu_setkey()
823 static void __cra_init(struct crypto_tfm *tfm, struct ocs_hcu_ctx *ctx) in __cra_init() argument
825 crypto_ahash_set_reqsize_dma(__crypto_ahash_cast(tfm), in __cra_init()
829 static int kmb_ocs_hcu_sha_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_sha_cra_init() argument
831 struct ocs_hcu_ctx *ctx = crypto_tfm_ctx(tfm); in kmb_ocs_hcu_sha_cra_init()
833 __cra_init(tfm, ctx); in kmb_ocs_hcu_sha_cra_init()
838 static int kmb_ocs_hcu_sm3_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_sm3_cra_init() argument
840 struct ocs_hcu_ctx *ctx = crypto_tfm_ctx(tfm); in kmb_ocs_hcu_sm3_cra_init()
842 __cra_init(tfm, ctx); in kmb_ocs_hcu_sm3_cra_init()
849 static int kmb_ocs_hcu_hmac_sm3_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_hmac_sm3_cra_init() argument
851 struct ocs_hcu_ctx *ctx = crypto_tfm_ctx(tfm); in kmb_ocs_hcu_hmac_sm3_cra_init()
853 __cra_init(tfm, ctx); in kmb_ocs_hcu_hmac_sm3_cra_init()
861 static int kmb_ocs_hcu_hmac_cra_init(struct crypto_tfm *tfm) in kmb_ocs_hcu_hmac_cra_init() argument
863 struct ocs_hcu_ctx *ctx = crypto_tfm_ctx(tfm); in kmb_ocs_hcu_hmac_cra_init()
865 __cra_init(tfm, ctx); in kmb_ocs_hcu_hmac_cra_init()
873 static void kmb_ocs_hcu_hmac_cra_exit(struct crypto_tfm *tfm) in kmb_ocs_hcu_hmac_cra_exit() argument
875 struct ocs_hcu_ctx *ctx = crypto_tfm_ctx(tfm); in kmb_ocs_hcu_hmac_cra_exit()