Lines Matching refs:tmpl

409 			      struct mv_cesa_op_ctx *tmpl, bool algo_le)  in mv_cesa_ahash_init()  argument
414 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init()
419 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init()
420 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init()
421 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init()
460 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
466 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag()
478 if (mv_cesa_mac_op_is_first_frag(tmpl)) in mv_cesa_dma_add_frag()
479 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag()
785 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_final() local
787 mv_cesa_set_mac_op_total_len(tmpl, creq->len); in mv_cesa_ahash_final()
797 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_finup() local
800 mv_cesa_set_mac_op_total_len(tmpl, creq->len); in mv_cesa_ahash_finup()
861 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_md5_init() local
863 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_MD5); in mv_cesa_md5_init()
865 mv_cesa_ahash_init(req, &tmpl, true); in mv_cesa_md5_init()
930 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha1_init() local
932 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA1); in mv_cesa_sha1_init()
934 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_sha1_init()
1000 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha256_init() local
1002 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA256); in mv_cesa_sha256_init()
1004 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_sha256_init()
1237 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_md5_init() local
1239 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_MD5); in mv_cesa_ahmac_md5_init()
1240 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_md5_init()
1242 mv_cesa_ahash_init(req, &tmpl, true); in mv_cesa_ahmac_md5_init()
1307 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha1_init() local
1309 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA1); in mv_cesa_ahmac_sha1_init()
1310 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_sha1_init()
1312 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_ahmac_sha1_init()
1397 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha256_init() local
1399 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA256); in mv_cesa_ahmac_sha256_init()
1400 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_sha256_init()
1402 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_ahmac_sha256_init()