Lines Matching refs:ctx_len
117 int ctx_len; member
142 int ctx_len) in map_seq_out_ptr_ctx() argument
145 ctx_len, DMA_FROM_DEVICE); in map_seq_out_ptr_ctx()
151 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0); in map_seq_out_ptr_ctx()
212 struct caam_hash_state *state, int ctx_len, in ctx_map_to_sec4_sg() argument
215 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag); in ctx_map_to_sec4_sg()
221 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_sec4_sg()
285 LDST_CLASS_2_CCB | ctx->ctx_len); in ahash_ctx_data_to_out()
329 LDST_CLASS_2_CCB | ctx->ctx_len); in ahash_set_sh_desc()
336 ahash_append_load_str(desc, ctx->ctx_len); in ahash_set_sh_desc()
354 ctx->ctx_len, ctx); in ahash_set_sh_desc()
628 dma_unmap_single(dev, state->ctx_dma, ctx->ctx_len, flag); in ahash_unmap_ctx()
657 ctx->ctx_len, 1); in ahash_done()
686 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_done_bi()
692 ctx->ctx_len, 1); in ahash_done_bi()
727 ctx->ctx_len, 1); in ahash_done_ctx_src()
756 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_FROM_DEVICE); in ahash_done_ctx_dst()
762 ctx->ctx_len, 1); in ahash_done_ctx_dst()
824 ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, in ahash_update_ctx()
862 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
865 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
877 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_ctx()
938 ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, in ahash_final_ctx()
955 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen, in ahash_final_ctx()
1026 ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, in ahash_finup_ctx()
1045 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_finup_ctx()
1290 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1307 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_no_ctx()
1495 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1513 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_first()
1781 ctx->ctx_len = runninglen[(ctx->alg_op & OP_ALG_ALGSEL_SUBMASK) >> in caam_hash_cra_init()