Lines Matching refs:ctx_len
103 int ctx_len; member
143 int ctx_len) in map_seq_out_ptr_ctx() argument
145 state->ctx_dma_len = ctx_len; in map_seq_out_ptr_ctx()
147 ctx_len, DMA_FROM_DEVICE); in map_seq_out_ptr_ctx()
154 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0); in map_seq_out_ptr_ctx()
184 struct caam_hash_state *state, int ctx_len, in ctx_map_to_sec4_sg() argument
187 state->ctx_dma_len = ctx_len; in ctx_map_to_sec4_sg()
188 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag); in ctx_map_to_sec4_sg()
195 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_sec4_sg()
212 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len, in ahash_set_sh_desc()
213 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
223 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in ahash_set_sh_desc()
224 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
234 ctx->ctx_len, true, ctrlpriv->era); in ahash_set_sh_desc()
245 ctx->ctx_len, false, ctrlpriv->era); in ahash_set_sh_desc()
266 ctx->ctx_len, ctx->ctx_len); in axcbc_set_sh_desc()
276 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
288 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in axcbc_set_sh_desc()
289 ctx->ctx_len); in axcbc_set_sh_desc()
299 digestsize, ctx->ctx_len); in axcbc_set_sh_desc()
318 ctx->ctx_len, ctx->ctx_len); in acmac_set_sh_desc()
328 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
337 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len, in acmac_set_sh_desc()
338 ctx->ctx_len); in acmac_set_sh_desc()
348 digestsize, ctx->ctx_len); in acmac_set_sh_desc()
602 ctx->ctx_len, 1); in ahash_done_cpy()
646 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, dir); in ahash_done_switch()
660 ctx->ctx_len, 1); in ahash_done_switch()
884 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_update_ctx()
912 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
915 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
922 ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
935 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
966 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_final_ctx()
985 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1046 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_finup_ctx()
1056 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1279 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1288 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1306 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1459 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1468 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1489 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1794 ctx->ctx_len = 48; in caam_hash_cra_init()
1799 ctx->ctx_len = 32; in caam_hash_cra_init()
1809 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()