Lines Matching refs:ctx_dma
3068 dma_addr_t ctx_dma; member
3117 state->ctx_dma = dma_map_single(dev, state->caam_ctx, ctx_len, flag); in ctx_map_to_qm_sg()
3118 if (dma_mapping_error(dev, state->ctx_dma)) { in ctx_map_to_qm_sg()
3120 state->ctx_dma = 0; in ctx_map_to_qm_sg()
3124 dma_to_qm_sg_one(qm_sg, state->ctx_dma, ctx_len, 0); in ctx_map_to_qm_sg()
3377 if (state->ctx_dma) { in ahash_unmap_ctx()
3378 dma_unmap_single(dev, state->ctx_dma, state->ctx_dma_len, flag); in ahash_unmap_ctx()
3379 state->ctx_dma = 0; in ahash_unmap_ctx()
3602 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_update_ctx()
3684 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_final_ctx()
3778 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_finup_ctx()
3863 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_digest()
3865 if (dma_mapping_error(ctx->dev, state->ctx_dma)) { in ahash_digest()
3867 state->ctx_dma = 0; in ahash_digest()
3874 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_digest()
3924 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_final_no_ctx()
3926 if (dma_mapping_error(ctx->dev, state->ctx_dma)) { in ahash_final_no_ctx()
3928 state->ctx_dma = 0; in ahash_final_no_ctx()
3946 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_final_no_ctx()
4037 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_no_ctx()
4039 if (dma_mapping_error(ctx->dev, state->ctx_dma)) { in ahash_update_no_ctx()
4041 state->ctx_dma = 0; in ahash_update_no_ctx()
4052 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_update_no_ctx()
4148 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, digestsize, in ahash_finup_no_ctx()
4150 if (dma_mapping_error(ctx->dev, state->ctx_dma)) { in ahash_finup_no_ctx()
4152 state->ctx_dma = 0; in ahash_finup_no_ctx()
4163 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_finup_no_ctx()
4264 state->ctx_dma = dma_map_single(ctx->dev, state->caam_ctx, in ahash_update_first()
4266 if (dma_mapping_error(ctx->dev, state->ctx_dma)) { in ahash_update_first()
4268 state->ctx_dma = 0; in ahash_update_first()
4274 dpaa2_fl_set_addr(out_fle, state->ctx_dma); in ahash_update_first()
4325 state->ctx_dma = 0; in ahash_init()