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_obj(*req_ctx); 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()
3536 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3537 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3538 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3613 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3622 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3623 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3624 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3625 req_ctx->ctx = &req->base; in ahash_update_ctx()
3626 req_ctx->edesc = edesc; in ahash_update_ctx()
3628 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3655 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3656 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3657 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3695 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3704 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3705 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3706 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3707 req_ctx->ctx = &req->base; in ahash_final_ctx()
3708 req_ctx->edesc = edesc; in ahash_final_ctx()
3710 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3726 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3727 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3728 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3789 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3798 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3799 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3800 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3801 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3802 req_ctx->edesc = edesc; in ahash_finup_ctx()
3804 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3820 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3821 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3822 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3857 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3894 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3895 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3896 req_ctx->cbk = ahash_done; in ahash_digest()
3897 req_ctx->ctx = &req->base; in ahash_digest()
3898 req_ctx->edesc = edesc; in ahash_digest()
3899 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3915 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3916 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3917 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3949 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3966 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3967 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3968 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3969 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3970 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3972 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3988 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3989 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3990 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4063 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4072 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4073 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4074 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4075 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4076 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4078 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4109 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4110 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4111 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4174 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4183 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4184 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4185 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4186 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4187 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4188 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4205 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4206 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4207 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4254 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4294 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4295 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4296 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4297 req_ctx->ctx = &req->base; in ahash_update_first()
4298 req_ctx->edesc = edesc; in ahash_update_first()
4300 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()