Lines Matching full:qce
32 struct qce_device *qce = tmpl->qce; in qce_skcipher_done() local
33 struct qce_result_dump *result_buf = qce->dma.result_buf; in qce_skcipher_done()
43 error = qce_dma_terminate_all(&qce->dma); in qce_skcipher_done()
45 dev_dbg(qce->dev, "skcipher dma termination error (%d)\n", in qce_skcipher_done()
49 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_skcipher_done()
50 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
54 error = qce_check_status(qce, &status); in qce_skcipher_done()
56 dev_dbg(qce->dev, "skcipher operation error (%x)\n", status); in qce_skcipher_done()
59 qce->async_req_done(tmpl->qce, error); in qce_skcipher_done()
69 struct qce_device *qce = tmpl->qce; in qce_skcipher_async_req_handle() local
90 dev_err(qce->dev, "Invalid numbers of src SG.\n"); in qce_skcipher_async_req_handle()
94 dev_err(qce->dev, "Invalid numbers of dst SG.\n"); in qce_skcipher_async_req_handle()
107 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_skcipher_async_req_handle()
125 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
132 src_nents = dma_map_sg(qce->dev, req->src, rctx->src_nents, dir_src); in qce_skcipher_async_req_handle()
143 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, in qce_skcipher_async_req_handle()
149 qce_dma_issue_pending(&qce->dma); in qce_skcipher_async_req_handle()
158 qce_dma_terminate_all(&qce->dma); in qce_skcipher_async_req_handle()
161 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, dir_src); in qce_skcipher_async_req_handle()
163 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_async_req_handle()
236 /* qce is hanging when AES-XTS request len > QCE_SECTOR_SIZE and in qce_skcipher_crypt()
256 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_skcipher_crypt()
313 .drv_name = "ecb-aes-qce",
322 .drv_name = "cbc-aes-qce",
331 .drv_name = "ctr-aes-qce",
341 .drv_name = "xts-aes-qce",
350 .drv_name = "ecb-des-qce",
359 .drv_name = "cbc-des-qce",
368 .drv_name = "ecb-3des-qce",
377 .drv_name = "cbc-3des-qce",
386 struct qce_device *qce) in qce_skcipher_register_one() argument
432 tmpl->qce = qce; in qce_skcipher_register_one()
436 dev_err(qce->dev, "%s registration failed\n", alg->base.cra_name); in qce_skcipher_register_one()
442 dev_dbg(qce->dev, "%s is registered\n", alg->base.cra_name); in qce_skcipher_register_one()
446 static void qce_skcipher_unregister(struct qce_device *qce) in qce_skcipher_unregister() argument
457 static int qce_skcipher_register(struct qce_device *qce) in qce_skcipher_register() argument
462 ret = qce_skcipher_register_one(&skcipher_def[i], qce); in qce_skcipher_register()
469 qce_skcipher_unregister(qce); in qce_skcipher_register()