Lines Matching refs:req_ctx
46 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in rsa_io_unmap() local
49 dma_unmap_sg(dev, req_ctx->fixup_src, edesc->src_nents, DMA_TO_DEVICE); in rsa_io_unmap()
120 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in rsa_pub_done() local
129 edesc = req_ctx->edesc; in rsa_pub_done()
154 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in rsa_priv_f_done() local
162 edesc = req_ctx->edesc; in rsa_priv_f_done()
247 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in rsa_edesc_alloc() local
269 req_ctx->fixup_src = scatterwalk_ffwd(req_ctx->src, req->src, in rsa_edesc_alloc()
271 req_ctx->fixup_src_len = req->src_len - lzeros; in rsa_edesc_alloc()
278 req_ctx->fixup_src = req->src; in rsa_edesc_alloc()
279 req_ctx->fixup_src_len = req->src_len; in rsa_edesc_alloc()
282 src_nents = sg_nents_for_len(req_ctx->fixup_src, in rsa_edesc_alloc()
283 req_ctx->fixup_src_len); in rsa_edesc_alloc()
286 mapped_src_nents = dma_map_sg(dev, req_ctx->fixup_src, src_nents, in rsa_edesc_alloc()
324 sg_to_sec4_sg_last(req_ctx->fixup_src, req_ctx->fixup_src_len, in rsa_edesc_alloc()
335 req_ctx->edesc = edesc; in rsa_edesc_alloc()
363 dma_unmap_sg(dev, req_ctx->fixup_src, src_nents, DMA_TO_DEVICE); in rsa_edesc_alloc()
373 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in akcipher_do_one_req() local
376 u32 *desc = req_ctx->edesc->hw_desc; in akcipher_do_one_req()
379 req_ctx->edesc->bklog = true; in akcipher_do_one_req()
381 ret = caam_jr_enqueue(jrdev, desc, req_ctx->akcipher_op_done, req); in akcipher_do_one_req()
384 rsa_pub_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
385 rsa_io_unmap(jrdev, req_ctx->edesc, req); in akcipher_do_one_req()
386 kfree(req_ctx->edesc); in akcipher_do_one_req()
398 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in set_rsa_pub_pdb() local
423 pdb->f_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_pub_pdb()
435 pdb->f_len = req_ctx->fixup_src_len; in set_rsa_pub_pdb()
469 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in set_rsa_priv_f1_pdb() local
471 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f1_pdb()
534 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in set_rsa_priv_f2_pdb() local
536 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f2_pdb()
623 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in set_rsa_priv_f3_pdb() local
625 pdb->g_dma = sg_dma_address(req_ctx->fixup_src); in set_rsa_priv_f3_pdb()
666 struct caam_rsa_req_ctx *req_ctx = akcipher_request_ctx(req); in akcipher_enqueue_req() local
667 struct rsa_edesc *edesc = req_ctx->edesc; in akcipher_enqueue_req()
671 req_ctx->akcipher_op_done = cbk; in akcipher_enqueue_req()