Lines Matching refs:req_ctx

356 	struct caam_request *req_ctx = aead_request_ctx_dma(req);  in aead_edesc_alloc()  local
357 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in aead_edesc_alloc()
358 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in aead_edesc_alloc()
553 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1116 struct caam_request *req_ctx = skcipher_request_ctx_dma(req); in skcipher_edesc_alloc() local
1117 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1118 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1242 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1290 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1291 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1311 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1312 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1397 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1400 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1435 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1438 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3218 struct caam_request *req_ctx; in hash_digest_key() local
3227 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL); in hash_digest_key()
3228 if (!req_ctx) in hash_digest_key()
3231 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3232 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3282 req_ctx->flc = flc; in hash_digest_key()
3283 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3284 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3285 req_ctx->ctx = &result; in hash_digest_key()
3287 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3304 kfree(req_ctx); in hash_digest_key()
3535 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3536 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3537 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3612 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3621 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3622 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3623 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3624 req_ctx->ctx = &req->base; in ahash_update_ctx()
3625 req_ctx->edesc = edesc; in ahash_update_ctx()
3627 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3654 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3655 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3656 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3694 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3703 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3704 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3705 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3706 req_ctx->ctx = &req->base; in ahash_final_ctx()
3707 req_ctx->edesc = edesc; in ahash_final_ctx()
3709 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3725 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3726 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3727 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3788 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3797 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3798 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3799 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3800 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3801 req_ctx->edesc = edesc; in ahash_finup_ctx()
3803 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3819 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3820 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3821 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3856 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3893 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3894 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3895 req_ctx->cbk = ahash_done; in ahash_digest()
3896 req_ctx->ctx = &req->base; in ahash_digest()
3897 req_ctx->edesc = edesc; in ahash_digest()
3898 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3914 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3915 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3916 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3948 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3965 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3966 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3967 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3968 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3969 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3971 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3987 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3988 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3989 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4062 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4071 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4072 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4073 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4074 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4075 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4077 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4108 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4109 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4110 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4173 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4182 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4183 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4184 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4185 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4186 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4187 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4204 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4205 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4206 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4253 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4293 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4294 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4295 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4296 req_ctx->ctx = &req->base; in ahash_update_first()
4297 req_ctx->edesc = edesc; in ahash_update_first()
4299 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()