Lines Matching refs:req_ctx
351 struct caam_request *req_ctx = aead_request_ctx(req); in aead_edesc_alloc() local
352 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in aead_edesc_alloc()
353 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in aead_edesc_alloc()
548 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in aead_edesc_alloc()
1119 struct caam_request *req_ctx = skcipher_request_ctx(req); in skcipher_edesc_alloc() local
1120 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in skcipher_edesc_alloc()
1121 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in skcipher_edesc_alloc()
1245 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in skcipher_edesc_alloc()
1293 struct caam_request *req_ctx = to_caam_req(areq); in aead_encrypt_done() local
1294 struct aead_edesc *edesc = req_ctx->edesc; in aead_encrypt_done()
1314 struct caam_request *req_ctx = to_caam_req(areq); in aead_decrypt_done() local
1315 struct aead_edesc *edesc = req_ctx->edesc; in aead_decrypt_done()
1400 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_encrypt_done() local
1403 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_encrypt_done()
1438 struct caam_request *req_ctx = to_caam_req(areq); in skcipher_decrypt_done() local
1441 struct skcipher_edesc *edesc = req_ctx->edesc; in skcipher_decrypt_done()
3166 struct caam_request *req_ctx; in hash_digest_key() local
3175 req_ctx = kzalloc(sizeof(*req_ctx), GFP_KERNEL | GFP_DMA); in hash_digest_key()
3176 if (!req_ctx) in hash_digest_key()
3179 in_fle = &req_ctx->fd_flt[1]; in hash_digest_key()
3180 out_fle = &req_ctx->fd_flt[0]; in hash_digest_key()
3230 req_ctx->flc = flc; in hash_digest_key()
3231 req_ctx->flc_dma = flc_dma; in hash_digest_key()
3232 req_ctx->cbk = split_key_sh_done; in hash_digest_key()
3233 req_ctx->ctx = &result; in hash_digest_key()
3235 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in hash_digest_key()
3252 kfree(req_ctx); in hash_digest_key()
3462 struct caam_request *req_ctx = &state->caam_req; in ahash_update_ctx() local
3463 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_ctx()
3464 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_ctx()
3545 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_ctx()
3554 req_ctx->flc = &ctx->flc[UPDATE]; in ahash_update_ctx()
3555 req_ctx->flc_dma = ctx->flc_dma[UPDATE]; in ahash_update_ctx()
3556 req_ctx->cbk = ahash_done_bi; in ahash_update_ctx()
3557 req_ctx->ctx = &req->base; in ahash_update_ctx()
3558 req_ctx->edesc = edesc; in ahash_update_ctx()
3560 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_ctx()
3590 struct caam_request *req_ctx = &state->caam_req; in ahash_final_ctx() local
3591 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_ctx()
3592 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_ctx()
3630 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_ctx()
3639 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_final_ctx()
3640 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_final_ctx()
3641 req_ctx->cbk = ahash_done_ctx_src; in ahash_final_ctx()
3642 req_ctx->ctx = &req->base; in ahash_final_ctx()
3643 req_ctx->edesc = edesc; in ahash_final_ctx()
3645 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_ctx()
3661 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_ctx() local
3662 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_ctx()
3663 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_ctx()
3724 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_ctx()
3733 req_ctx->flc = &ctx->flc[FINALIZE]; in ahash_finup_ctx()
3734 req_ctx->flc_dma = ctx->flc_dma[FINALIZE]; in ahash_finup_ctx()
3735 req_ctx->cbk = ahash_done_ctx_src; in ahash_finup_ctx()
3736 req_ctx->ctx = &req->base; in ahash_finup_ctx()
3737 req_ctx->edesc = edesc; in ahash_finup_ctx()
3739 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_ctx()
3755 struct caam_request *req_ctx = &state->caam_req; in ahash_digest() local
3756 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_digest()
3757 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_digest()
3792 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_digest()
3829 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_digest()
3830 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_digest()
3831 req_ctx->cbk = ahash_done; in ahash_digest()
3832 req_ctx->ctx = &req->base; in ahash_digest()
3833 req_ctx->edesc = edesc; in ahash_digest()
3834 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_digest()
3850 struct caam_request *req_ctx = &state->caam_req; in ahash_final_no_ctx() local
3851 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_final_no_ctx()
3852 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_final_no_ctx()
3884 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_final_no_ctx()
3901 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_final_no_ctx()
3902 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_final_no_ctx()
3903 req_ctx->cbk = ahash_done; in ahash_final_no_ctx()
3904 req_ctx->ctx = &req->base; in ahash_final_no_ctx()
3905 req_ctx->edesc = edesc; in ahash_final_no_ctx()
3907 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_final_no_ctx()
3923 struct caam_request *req_ctx = &state->caam_req; in ahash_update_no_ctx() local
3924 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_no_ctx()
3925 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_no_ctx()
4004 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_no_ctx()
4013 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_no_ctx()
4014 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_no_ctx()
4015 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_no_ctx()
4016 req_ctx->ctx = &req->base; in ahash_update_no_ctx()
4017 req_ctx->edesc = edesc; in ahash_update_no_ctx()
4019 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_no_ctx()
4053 struct caam_request *req_ctx = &state->caam_req; in ahash_finup_no_ctx() local
4054 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_finup_no_ctx()
4055 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_finup_no_ctx()
4118 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_finup_no_ctx()
4127 req_ctx->flc = &ctx->flc[DIGEST]; in ahash_finup_no_ctx()
4128 req_ctx->flc_dma = ctx->flc_dma[DIGEST]; in ahash_finup_no_ctx()
4129 req_ctx->cbk = ahash_done; in ahash_finup_no_ctx()
4130 req_ctx->ctx = &req->base; in ahash_finup_no_ctx()
4131 req_ctx->edesc = edesc; in ahash_finup_no_ctx()
4132 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_finup_no_ctx()
4149 struct caam_request *req_ctx = &state->caam_req; in ahash_update_first() local
4150 struct dpaa2_fl_entry *in_fle = &req_ctx->fd_flt[1]; in ahash_update_first()
4151 struct dpaa2_fl_entry *out_fle = &req_ctx->fd_flt[0]; in ahash_update_first()
4197 memset(&req_ctx->fd_flt, 0, sizeof(req_ctx->fd_flt)); in ahash_update_first()
4241 req_ctx->flc = &ctx->flc[UPDATE_FIRST]; in ahash_update_first()
4242 req_ctx->flc_dma = ctx->flc_dma[UPDATE_FIRST]; in ahash_update_first()
4243 req_ctx->cbk = ahash_done_ctx_dst; in ahash_update_first()
4244 req_ctx->ctx = &req->base; in ahash_update_first()
4245 req_ctx->edesc = edesc; in ahash_update_first()
4247 ret = dpaa2_caam_enqueue(ctx->dev, req_ctx); in ahash_update_first()