Lines Matching refs:tmpl
441 struct mv_cesa_op_ctx *tmpl, bool algo_le) in mv_cesa_ahash_init() argument
446 mv_cesa_update_op_cfg(tmpl, in mv_cesa_ahash_init()
451 mv_cesa_set_mac_op_total_len(tmpl, 0); in mv_cesa_ahash_init()
452 mv_cesa_set_mac_op_frag_len(tmpl, 0); in mv_cesa_ahash_init()
453 creq->op_tmpl = *tmpl; in mv_cesa_ahash_init()
493 struct mv_cesa_op_ctx *tmpl, unsigned int frag_len, in mv_cesa_dma_add_frag() argument
499 op = mv_cesa_dma_add_op(chain, tmpl, false, flags); in mv_cesa_dma_add_frag()
511 if (mv_cesa_mac_op_is_first_frag(tmpl)) in mv_cesa_dma_add_frag()
512 mv_cesa_update_op_cfg(tmpl, in mv_cesa_dma_add_frag()
819 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_final() local
821 mv_cesa_set_mac_op_total_len(tmpl, creq->len); in mv_cesa_ahash_final()
831 struct mv_cesa_op_ctx *tmpl = &creq->op_tmpl; in mv_cesa_ahash_finup() local
834 mv_cesa_set_mac_op_total_len(tmpl, creq->len); in mv_cesa_ahash_finup()
895 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_md5_init() local
897 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_MD5); in mv_cesa_md5_init()
899 mv_cesa_ahash_init(req, &tmpl, true); in mv_cesa_md5_init()
965 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha1_init() local
967 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA1); in mv_cesa_sha1_init()
969 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_sha1_init()
1036 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_sha256_init() local
1038 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_SHA256); in mv_cesa_sha256_init()
1040 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_sha256_init()
1249 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_md5_init() local
1251 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_MD5); in mv_cesa_ahmac_md5_init()
1252 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_md5_init()
1254 mv_cesa_ahash_init(req, &tmpl, true); in mv_cesa_ahmac_md5_init()
1320 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha1_init() local
1322 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA1); in mv_cesa_ahmac_sha1_init()
1323 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_sha1_init()
1325 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_ahmac_sha1_init()
1411 struct mv_cesa_op_ctx tmpl = { }; in mv_cesa_ahmac_sha256_init() local
1413 mv_cesa_set_op_cfg(&tmpl, CESA_SA_DESC_CFG_MACM_HMAC_SHA256); in mv_cesa_ahmac_sha256_init()
1414 memcpy(tmpl.ctx.hash.iv, ctx->iv, sizeof(ctx->iv)); in mv_cesa_ahmac_sha256_init()
1416 mv_cesa_ahash_init(req, &tmpl, false); in mv_cesa_ahmac_sha256_init()