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()
1114 struct caam_request *req_ctx = skcipher_request_ctx_dma(req); in skcipher_edesc_alloc() local
1115 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1116 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1240 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1288 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1289 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1309 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1310 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1395 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1398 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1433 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1436 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3216 struct caam_request *req_ctx; in hash_digest_key() local
3225 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL); in hash_digest_key()
3226 if (!req_ctx) in hash_digest_key()
3229 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3230 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3280 req_ctx->flc = flc; in hash_digest_key()
3281 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3282 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3283 req_ctx->ctx = &result; in hash_digest_key()
3285 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3302 kfree(req_ctx); in hash_digest_key()
3533 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3534 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3535 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3610 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3619 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3620 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3621 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3622 req_ctx->ctx = &req->base; in ahash_update_ctx()
3623 req_ctx->edesc = edesc; in ahash_update_ctx()
3625 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3652 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3653 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3654 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3692 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3701 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3702 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3703 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3704 req_ctx->ctx = &req->base; in ahash_final_ctx()
3705 req_ctx->edesc = edesc; in ahash_final_ctx()
3707 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3723 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3724 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3725 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3786 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3795 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3796 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3797 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3798 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3799 req_ctx->edesc = edesc; in ahash_finup_ctx()
3801 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3817 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3818 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3819 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3854 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3891 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3892 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3893 req_ctx->cbk = ahash_done; in ahash_digest()
3894 req_ctx->ctx = &req->base; in ahash_digest()
3895 req_ctx->edesc = edesc; in ahash_digest()
3896 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3912 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3913 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3914 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3946 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3963 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3964 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3965 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3966 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3967 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3969 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3985 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3986 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3987 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4060 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4069 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4070 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4071 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4072 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4073 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4075 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4106 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4107 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4108 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4171 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4180 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4181 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4182 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4183 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4184 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4185 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4202 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4203 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4204 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4251 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4291 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4292 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4293 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4294 req_ctx->ctx = &req->base; in ahash_update_first()
4295 req_ctx->edesc = edesc; in ahash_update_first()
4297 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()