Lines Matching refs:req_ctx

350 	struct caam_request *req_ctx = aead_request_ctx(req);  in aead_edesc_alloc()  local
351 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in aead_edesc_alloc()
352 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in aead_edesc_alloc()
547 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1109 struct caam_request *req_ctx = skcipher_request_ctx(req); in skcipher_edesc_alloc() local
1110 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1111 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1235 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1283 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1284 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1304 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1305 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1390 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1393 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1428 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1431 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3208 struct caam_request *req_ctx; in hash_digest_key() local
3217 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3218 if (!req_ctx) in hash_digest_key()
3221 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3222 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3272 req_ctx->flc = flc; in hash_digest_key()
3273 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3274 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3275 req_ctx->ctx = &result; in hash_digest_key()
3277 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3294 kfree(req_ctx); in hash_digest_key()
3519 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3520 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3521 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3596 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3605 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3606 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3607 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3608 req_ctx->ctx = &req->base; in ahash_update_ctx()
3609 req_ctx->edesc = edesc; in ahash_update_ctx()
3611 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3638 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3639 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3640 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3678 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3687 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3688 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3689 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3690 req_ctx->ctx = &req->base; in ahash_final_ctx()
3691 req_ctx->edesc = edesc; in ahash_final_ctx()
3693 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3709 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3710 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3711 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3772 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3781 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3782 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3783 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3784 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3785 req_ctx->edesc = edesc; in ahash_finup_ctx()
3787 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3803 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3804 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3805 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3840 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3877 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3878 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3879 req_ctx->cbk = ahash_done; in ahash_digest()
3880 req_ctx->ctx = &req->base; in ahash_digest()
3881 req_ctx->edesc = edesc; in ahash_digest()
3882 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3898 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3899 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3900 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3932 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3949 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3950 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3951 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3952 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3953 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3955 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3971 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3972 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3973 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4046 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4055 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4056 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4057 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4058 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4059 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4061 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4092 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4093 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4094 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4157 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4166 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4167 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4168 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4169 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4170 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4171 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4188 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4189 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4190 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4237 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4277 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4278 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4279 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4280 req_ctx->ctx = &req->base; in ahash_update_first()
4281 req_ctx->edesc = edesc; in ahash_update_first()
4283 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()