Lines Matching refs:ctx_len
117 int ctx_len; member
151 int ctx_len) in map_seq_out_ptr_ctx() argument
154 ctx_len, DMA_FROM_DEVICE); in map_seq_out_ptr_ctx()
160 append_seq_out_ptr(desc, state->ctx_dma, ctx_len, 0); in map_seq_out_ptr_ctx()
220 struct caam_hash_state *state, int ctx_len, in ctx_map_to_sec4_sg() argument
223 state->ctx_dma = dma_map_single(jrdev, state->caam_ctx, ctx_len, flag); in ctx_map_to_sec4_sg()
229 dma_to_sec4_sg_one(sec4_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_sec4_sg()
293 LDST_CLASS_2_CCB | ctx->ctx_len); in ahash_ctx_data_to_out()
337 LDST_CLASS_2_CCB | ctx->ctx_len); in ahash_set_sh_desc()
344 ahash_append_load_str(desc, ctx->ctx_len); in ahash_set_sh_desc()
362 ctx->ctx_len, ctx); in ahash_set_sh_desc()
633 dma_unmap_single(dev, state->ctx_dma, ctx->ctx_len, flag); in ahash_unmap_ctx()
662 ctx->ctx_len, 1); in ahash_done()
691 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_BIDIRECTIONAL); in ahash_done_bi()
697 ctx->ctx_len, 1); in ahash_done_bi()
732 ctx->ctx_len, 1); in ahash_done_ctx_src()
761 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, DMA_FROM_DEVICE); in ahash_done_ctx_dst()
767 ctx->ctx_len, 1); in ahash_done_ctx_dst()
827 ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, in ahash_update_ctx()
864 append_seq_in_ptr(desc, edesc->sec4_sg_dma, ctx->ctx_len + in ahash_update_ctx()
867 append_seq_out_ptr(desc, state->ctx_dma, ctx->ctx_len, 0); in ahash_update_ctx()
879 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_ctx()
940 ret = ctx_map_to_sec4_sg(desc, jrdev, state, ctx->ctx_len, in ahash_final_ctx()
957 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()
1285 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_no_ctx()
1302 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_no_ctx()
1483 ret = map_seq_out_ptr_ctx(desc, jrdev, state, ctx->ctx_len); in ahash_update_first()
1501 ahash_unmap_ctx(jrdev, edesc, req, ctx->ctx_len, in ahash_update_first()
1792 ctx->ctx_len = runninglen[(ctx->alg_op & OP_ALG_ALGSEL_SUBMASK) >> in caam_hash_cra_init()