Lines Matching refs:req_ctx
353 struct caam_request *req_ctx = aead_request_ctx(req); in aead_edesc_alloc() local
354 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in aead_edesc_alloc()
355 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in aead_edesc_alloc()
550 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1112 struct caam_request *req_ctx = skcipher_request_ctx(req); in skcipher_edesc_alloc() local
1113 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1114 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1238 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1286 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1287 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1307 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1308 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1393 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1396 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1431 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1434 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3212 struct caam_request *req_ctx; in hash_digest_key() local
3221 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3222 if (!req_ctx) in hash_digest_key()
3225 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3226 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3276 req_ctx->flc = flc; in hash_digest_key()
3277 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3278 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3279 req_ctx->ctx = &result; in hash_digest_key()
3281 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3298 kfree(req_ctx); in hash_digest_key()
3523 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3524 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3525 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3600 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3609 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3610 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3611 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3612 req_ctx->ctx = &req->base; in ahash_update_ctx()
3613 req_ctx->edesc = edesc; in ahash_update_ctx()
3615 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3642 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3643 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3644 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3682 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3691 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3692 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3693 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3694 req_ctx->ctx = &req->base; in ahash_final_ctx()
3695 req_ctx->edesc = edesc; in ahash_final_ctx()
3697 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3713 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3714 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3715 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3776 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3785 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3786 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3787 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3788 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3789 req_ctx->edesc = edesc; in ahash_finup_ctx()
3791 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3807 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3808 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3809 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3844 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3881 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3882 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3883 req_ctx->cbk = ahash_done; in ahash_digest()
3884 req_ctx->ctx = &req->base; in ahash_digest()
3885 req_ctx->edesc = edesc; in ahash_digest()
3886 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3902 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3903 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3904 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3936 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3953 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3954 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3955 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3956 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3957 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3959 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3975 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3976 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3977 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4050 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4059 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4060 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4061 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4062 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4063 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4065 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4096 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4097 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4098 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4161 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4170 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4171 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4172 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4173 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4174 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4175 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4192 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4193 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4194 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4241 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4281 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4282 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4283 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4284 req_ctx->ctx = &req->base; in ahash_update_first()
4285 req_ctx->edesc = edesc; in ahash_update_first()
4287 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()