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()
881 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_update_ctx()
909 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
912 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
919 ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
932 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_update_ctx()
963 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_final_ctx()
982 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1043 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len, in ahash_finup_ctx()
1053 sec4_sg_src_index, ctx->ctx_len + buflen, in ahash_finup_ctx()
1276 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1285 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1303 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_no_ctx()
1456 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1465 ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1486 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE); in ahash_update_first()
1791 ctx->ctx_len = 48; in caam_hash_cra_init()
1796 ctx->ctx_len = 32; in caam_hash_cra_init()
1806 ctx->ctx_len = runninglen[(ctx->adata.algtype & in caam_hash_cra_init()