Lines Matching full:qce
30 struct qce_device *qce = tmpl->qce; in qce_aead_done() local
31 struct qce_result_dump *result_buf = qce->dma.result_buf; in qce_aead_done()
44 error = qce_dma_terminate_all(&qce->dma); in qce_aead_done()
46 dev_dbg(qce->dev, "aead dma termination error (%d)\n", in qce_aead_done()
49 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_aead_done()
51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_done()
66 error = qce_check_status(qce, &status); in qce_aead_done()
68 dev_err(qce->dev, "aead operation error (%x)\n", status); in qce_aead_done()
89 qce->async_req_done(qce, error); in qce_aead_done()
97 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_result_buf() local
99 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_aead_prepare_result_buf()
117 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_dst_buf() local
127 dev_err(qce->dev, "Invalid numbers of dst SG.\n"); in qce_aead_prepare_dst_buf()
305 struct qce_device *qce = tmpl->qce; in qce_aead_prepare_buf() local
318 dev_err(qce->dev, "Invalid numbers of src SG.\n"); in qce_aead_prepare_buf()
415 struct qce_device *qce = tmpl->qce; in qce_aead_async_req_handle() local
452 dst_nents = dma_map_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle()
459 src_nents = dma_map_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_aead_async_req_handle()
471 ret = qce_dma_prep_sgs(&qce->dma, rctx->src_sg, src_nents, rctx->dst_sg, dst_nents, in qce_aead_async_req_handle()
476 qce_dma_issue_pending(&qce->dma); in qce_aead_async_req_handle()
485 qce_dma_terminate_all(&qce->dma); in qce_aead_async_req_handle()
488 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, dir_src); in qce_aead_async_req_handle()
490 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_aead_async_req_handle()
552 return tmpl->qce->async_req_enqueue(tmpl->qce, &req->base); in qce_aead_crypt()
704 .drv_name = "authenc-hmac-sha1-cbc-des-qce",
712 .drv_name = "authenc-hmac-sha1-cbc-3des-qce",
720 .drv_name = "authenc-hmac-sha256-cbc-des-qce",
728 .drv_name = "authenc-hmac-sha256-cbc-3des-qce",
736 .drv_name = "authenc-hmac-sha256-cbc-aes-qce",
744 .drv_name = "ccm-aes-qce",
752 .drv_name = "rfc4309-ccm-aes-qce",
759 static int qce_aead_register_one(const struct qce_aead_def *def, struct qce_device *qce) in qce_aead_register_one() argument
801 tmpl->qce = qce; in qce_aead_register_one()
805 dev_err(qce->dev, "%s registration failed\n", alg->base.cra_name); in qce_aead_register_one()
811 dev_dbg(qce->dev, "%s is registered\n", alg->base.cra_name); in qce_aead_register_one()
815 static void qce_aead_unregister(struct qce_device *qce) in qce_aead_unregister() argument
826 static int qce_aead_register(struct qce_device *qce) in qce_aead_register() argument
831 ret = qce_aead_register_one(&aead_def[i], qce); in qce_aead_register()
838 qce_aead_unregister(qce); in qce_aead_register()