Lines Matching refs:ctx_len
101 int ctx_len; member
165 int ctx_len) in map_seq_out_ptr_ctx() argument
167 state->ctx_dma_len = ctx_len; in map_seq_out_ptr_ctx()
169 ctx_len, DMA_FROM_DEVICE); in map_seq_out_ptr_ctx()
176 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0); in map_seq_out_ptr_ctx()
206 struct caam_hash_state *state, int ctx_len, in ctx_map_to_sec4_sg() argument
209 state->ctx_dma_len = ctx_len; in ctx_map_to_sec4_sg()
210 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag); in ctx_map_to_sec4_sg()
217 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_sec4_sg()
234 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc()
235 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
245 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc()
246 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
256 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
267 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
288 ctx->ctx_len, ctx->ctx_len); in axcbc_set_sh_desc()
298 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
310 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc()
311 ctx->ctx_len); in axcbc_set_sh_desc()
321 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
340 ctx->ctx_len, ctx->ctx_len); in acmac_set_sh_desc()
350 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
359 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in acmac_set_sh_desc()
360 ctx->ctx_len); in acmac_set_sh_desc()
370 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
623 ctx->ctx_len, 1); in ahash_done()
645 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_done_bi()
651 ctx->ctx_len, 1); in ahash_done_bi()
683 ctx->ctx_len, 1); in ahash_done_ctx_src()
705 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_FROM_DEVICE); in ahash_done_ctx_dst()
711 ctx->ctx_len, 1); in ahash_done_ctx_dst()
854 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_update_ctx()
886 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
889 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
915 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
948 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_final_ctx()
967 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1034 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_finup_ctx()
1044 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1300 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1331 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1500 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1531 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1843 ctx->ctx_len = 48; in caam_hash_cra_init()
1848 ctx->ctx_len = 32; in caam_hash_cra_init()
1858 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()