Lines Matching refs:tmpl
417 struct mv_cesa_op_ctx *tmpl, bool algo_le)
422 mv_cesa_update_op_cfg(tmpl,
427 mv_cesa_set_mac_op_total_len(tmpl, 0);
428 mv_cesa_set_mac_op_frag_len(tmpl, 0);
429 creq->op_tmpl = *tmpl;
469 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len,
475 op = mv_cesa_dma_add_op(chain, tmpl, false, flags);
487 if (mv_cesa_mac_op_is_first_frag(tmpl))
488 mv_cesa_update_op_cfg(tmpl,
795 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl;
797 mv_cesa_set_mac_op_total_len(tmpl, creq->len);
807 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl;
810 mv_cesa_set_mac_op_total_len(tmpl, creq->len);
871 struct mv_cesa_op_ctx tmpl = { };
873 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_MD5);
875 mv_cesa_ahash_init(req, &tmpl, true);
941 struct mv_cesa_op_ctx tmpl = { };
943 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA1);
945 mv_cesa_ahash_init(req, &tmpl, false);
1012 struct mv_cesa_op_ctx tmpl = { };
1014 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA256);
1016 mv_cesa_ahash_init(req, &tmpl, false);
1250 struct mv_cesa_op_ctx tmpl = { };
1252 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_MD5);
1253 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv));
1255 mv_cesa_ahash_init(req, &tmpl, true);
1321 struct mv_cesa_op_ctx tmpl = { };
1323 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA1);
1324 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv));
1326 mv_cesa_ahash_init(req, &tmpl, false);
1412 struct mv_cesa_op_ctx tmpl = { };
1414 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA256);
1415 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv));
1417 mv_cesa_ahash_init(req, &tmpl, false);