Lines Matching refs:ctx_len
108 int ctx_len;
148 int ctx_len)
150 state->ctx_dma_len = ctx_len;
152 ctx_len, DMA_FROM_DEVICE);
159 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0);
189 struct caam_hash_state *state, int ctx_len,
192 state->ctx_dma_len = ctx_len;
193 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag);
200 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0);
217 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_UPDATE, ctx->ctx_len,
218 ctx->ctx_len, true, ctrlpriv->era);
228 cnstr_shdsc_ahash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
229 ctx->ctx_len, false, ctrlpriv->era);
239 ctx->ctx_len, true, ctrlpriv->era);
250 ctx->ctx_len, false, ctrlpriv->era);
271 ctx->ctx_len, ctx->ctx_len);
281 digestsize, ctx->ctx_len);
293 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
294 ctx->ctx_len);
304 digestsize, ctx->ctx_len);
323 ctx->ctx_len, ctx->ctx_len);
333 digestsize, ctx->ctx_len);
342 cnstr_shdsc_sk_hash(desc, &ctx->adata, OP_ALG_AS_INIT, ctx->ctx_len,
343 ctx->ctx_len);
353 digestsize, ctx->ctx_len);
611 ctx->ctx_len, 1);
655 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, dir);
669 ctx->ctx_len, 1);
888 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
916 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len +
919 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0);
926 ctx->ctx_len, DMA_BIDIRECTIONAL);
939 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL);
970 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
989 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen,
1050 ret = ctx_map_to_sec4_sg(jrdev, state, ctx->ctx_len,
1060 sec4_sg_src_index, ctx->ctx_len + buflen,
1283 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len);
1292 ctx->ctx_len, DMA_TO_DEVICE);
1310 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE);
1463 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len);
1472 ctx->ctx_len, DMA_TO_DEVICE);
1493 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_TO_DEVICE);
1798 ctx->ctx_len = 48;
1803 ctx->ctx_len = 32;
1813 ctx->ctx_len = runninglen[(ctx->adata.algtype &