Lines Matching refs:ctx_len
103 int ctx_len;
143 int ctx_len)
145 state->ctx_dma_len = ctx_len;
147 ctx_len, DMA_FROM_DEVICE);
154 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0);
184 struct caam_hash_state *state, int ctx_len,
187 state->ctx_dma_len = ctx_len;
188 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag);
195 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0);
212 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len,
213 ctx->ctx_len, true, ctrlpriv->era);
223 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
224 ctx->ctx_len, false, ctrlpriv->era);
234 ctx->ctx_len, true, ctrlpriv->era);
245 ctx->ctx_len, false, ctrlpriv->era);
266 ctx->ctx_len, ctx->ctx_len);
276 digestsize, ctx->ctx_len);
288 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
289 ctx->ctx_len);
299 digestsize, ctx->ctx_len);
318 ctx->ctx_len, ctx->ctx_len);
328 digestsize, ctx->ctx_len);
337 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
338 ctx->ctx_len);
348 digestsize, ctx->ctx_len);
602 ctx->ctx_len, 1);
646 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, dir);
660 ctx->ctx_len, 1);
881 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
909 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len +
912 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0);
919 ctx->ctx_len, DMA_BIDIRECTIONAL);
932 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL);
963 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
982 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen,
1043 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
1053 sec4_sg_src_index, ctx->ctx_len + buflen,
1276 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len);
1285 ctx->ctx_len, DMA_TO_DEVICE);
1303 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE);
1456 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len);
1465 ctx->ctx_len, DMA_TO_DEVICE);
1486 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE);
1791 ctx->ctx_len = 48;
1796 ctx->ctx_len = 32;
1806 ctx->ctx_len = runninglen[(ctx->adata.algtype &