Lines Matching refs:qce

33 	struct qce_device *qce = tmpl->qce;  in qce_skcipher_done()  local
34 struct qce_result_dump *result_buf = qce->dma.result_buf; in qce_skcipher_done()
44 error = qce_dma_terminate_all(&qce->dma); in qce_skcipher_done()
46 dev_dbg(qce->dev, "skcipher dma termination error (%d)\n", in qce_skcipher_done()
50 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_skcipher_done()
51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
55 error = qce_check_status(qce, &status); in qce_skcipher_done()
57 dev_dbg(qce->dev, "skcipher operation error (%x)\n", status); in qce_skcipher_done()
60 qce->async_req_done(tmpl->qce, error); in qce_skcipher_done()
70 struct qce_device *qce = tmpl->qce; in qce_skcipher_async_req_handle() local
91 dev_err(qce->dev, "Invalid numbers of src SG.\n"); in qce_skcipher_async_req_handle()
95 dev_err(qce->dev, "Invalid numbers of dst SG.\n"); in qce_skcipher_async_req_handle()
108 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_skcipher_async_req_handle()
126 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
133 src_nents = dma_map_sg(qce->dev, req->src, rctx->src_nents, dir_src); in qce_skcipher_async_req_handle()
144 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, in qce_skcipher_async_req_handle()
150 qce_dma_issue_pending(&qce->dma); in qce_skcipher_async_req_handle()
159 qce_dma_terminate_all(&qce->dma); in qce_skcipher_async_req_handle()
162 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, dir_src); in qce_skcipher_async_req_handle()
164 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
307 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
437 struct qce_device *qce) in qce_skcipher_register_one() argument
483 tmpl->qce = qce; in qce_skcipher_register_one()
487 dev_err(qce->dev, "%s registration failed\n", alg->base.cra_name); in qce_skcipher_register_one()
493 dev_dbg(qce->dev, "%s is registered\n", alg->base.cra_name); in qce_skcipher_register_one()
497 static void qce_skcipher_unregister(struct qce_device *qce) in qce_skcipher_unregister() argument
508 static int qce_skcipher_register(struct qce_device *qce) in qce_skcipher_register() argument
513 ret = qce_skcipher_register_one(&skcipher_def[i], qce); in qce_skcipher_register()
520 qce_skcipher_unregister(qce); in qce_skcipher_register()