Lines Matching refs:ctx_len
108 int ctx_len; member
148 int ctx_len) in map_seq_out_ptr_ctx() argument
150 state->ctx_dma_len = ctx_len; in map_seq_out_ptr_ctx()
152 ctx_len, DMA_FROM_DEVICE); in map_seq_out_ptr_ctx()
159 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0); in map_seq_out_ptr_ctx()
189 struct caam_hash_state *state, int ctx_len, in ctx_map_to_sec4_sg() argument
192 state->ctx_dma_len = ctx_len; in ctx_map_to_sec4_sg()
193 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag); in ctx_map_to_sec4_sg()
200 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_sec4_sg()
217 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc()
218 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
228 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc()
229 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
239 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
250 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
271 ctx->ctx_len, ctx->ctx_len); in axcbc_set_sh_desc()
281 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
293 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc()
294 ctx->ctx_len); in axcbc_set_sh_desc()
304 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
323 ctx->ctx_len, ctx->ctx_len); in acmac_set_sh_desc()
333 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
342 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in acmac_set_sh_desc()
343 ctx->ctx_len); in acmac_set_sh_desc()
353 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
611 ctx->ctx_len, 1); in ahash_done_cpy()
655 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, dir); in ahash_done_switch()
669 ctx->ctx_len, 1); in ahash_done_switch()
889 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_update_ctx()
917 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
920 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
927 ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
940 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
971 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_final_ctx()
990 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1051 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_finup_ctx()
1061 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1284 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1293 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1311 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1464 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1473 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1494 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1800 ctx->ctx_len = 48; in caam_hash_cra_init()
1805 ctx->ctx_len = 32; in caam_hash_cra_init()
1815 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()