Lines Matching refs:tmpl

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