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()
3209 struct caam_request *req_ctx; in hash_digest_key() local
3218 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3219 if (!req_ctx) in hash_digest_key()
3222 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3223 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3273 req_ctx->flc = flc; in hash_digest_key()
3274 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3275 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3276 req_ctx->ctx = &result; in hash_digest_key()
3278 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3295 kfree(req_ctx); in hash_digest_key()
3520 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3521 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3522 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3597 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3606 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3607 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3608 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3609 req_ctx->ctx = &req->base; in ahash_update_ctx()
3610 req_ctx->edesc = edesc; in ahash_update_ctx()
3612 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3639 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3640 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3641 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3679 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3688 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3689 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3690 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3691 req_ctx->ctx = &req->base; in ahash_final_ctx()
3692 req_ctx->edesc = edesc; in ahash_final_ctx()
3694 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3710 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3711 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3712 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3773 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3782 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3783 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3784 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3785 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3786 req_ctx->edesc = edesc; in ahash_finup_ctx()
3788 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3804 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3805 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3806 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3841 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3878 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3879 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3880 req_ctx->cbk = ahash_done; in ahash_digest()
3881 req_ctx->ctx = &req->base; in ahash_digest()
3882 req_ctx->edesc = edesc; in ahash_digest()
3883 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3899 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3900 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3901 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3933 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3950 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3951 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3952 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3953 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3954 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3956 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3972 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3973 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3974 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4047 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4056 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4057 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4058 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4059 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4060 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4062 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4093 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4094 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4095 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4158 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4167 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4168 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4169 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4170 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4171 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4172 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4189 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4190 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4191 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4238 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4278 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4279 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4280 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4281 req_ctx->ctx = &req->base; in ahash_update_first()
4282 req_ctx->edesc = edesc; in ahash_update_first()
4284 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()