Lines Matching refs:req_ctx
355 struct caam_request *req_ctx = aead_request_ctx_dma(req); in aead_edesc_alloc() local
356 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in aead_edesc_alloc()
357 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in aead_edesc_alloc()
552 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1115 struct caam_request *req_ctx = skcipher_request_ctx_dma(req); in skcipher_edesc_alloc() local
1116 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1117 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1241 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1289 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1290 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1310 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1311 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1396 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1399 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1434 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1437 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3217 struct caam_request *req_ctx; in hash_digest_key() local
3226 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL); in hash_digest_key()
3227 if (!req_ctx) in hash_digest_key()
3230 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3231 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3281 req_ctx->flc = flc; in hash_digest_key()
3282 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3283 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3284 req_ctx->ctx = &result; in hash_digest_key()
3286 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3303 kfree(req_ctx); in hash_digest_key()
3534 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3535 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3536 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3611 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3620 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3621 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3622 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3623 req_ctx->ctx = &req->base; in ahash_update_ctx()
3624 req_ctx->edesc = edesc; in ahash_update_ctx()
3626 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3653 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3654 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3655 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3693 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3702 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3703 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3704 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3705 req_ctx->ctx = &req->base; in ahash_final_ctx()
3706 req_ctx->edesc = edesc; in ahash_final_ctx()
3708 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3724 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3725 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3726 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3787 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3796 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3797 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3798 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3799 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3800 req_ctx->edesc = edesc; in ahash_finup_ctx()
3802 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3818 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3819 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3820 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3855 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3892 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3893 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3894 req_ctx->cbk = ahash_done; in ahash_digest()
3895 req_ctx->ctx = &req->base; in ahash_digest()
3896 req_ctx->edesc = edesc; in ahash_digest()
3897 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3913 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3914 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3915 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3947 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3964 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3965 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3966 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3967 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3968 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3970 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3986 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3987 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3988 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4061 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4070 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4071 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4072 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4073 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4074 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4076 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4107 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4108 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4109 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4172 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4181 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4182 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4183 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4184 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4185 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4186 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4203 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4204 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4205 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4252 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4292 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4293 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4294 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4295 req_ctx->ctx = &req->base; in ahash_update_first()
4296 req_ctx->edesc = edesc; in ahash_update_first()
4298 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()