• Home
  • Raw
  • Download

Lines Matching refs:qce

44 	struct qce_device *qce = tmpl->qce;  in qce_ahash_done()  local
45 struct qce_result_dump *result = qce->dma.result_buf; in qce_ahash_done()
50 error = qce_dma_terminate_all(&qce->dma); in qce_ahash_done()
52 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); in qce_ahash_done()
54 qce_unmapsg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE, in qce_ahash_done()
56 qce_unmapsg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE, 0); in qce_ahash_done()
65 error = qce_check_status(qce, &status); in qce_ahash_done()
67 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); in qce_ahash_done()
74 qce->async_req_done(tmpl->qce, error); in qce_ahash_done()
83 struct qce_device *qce = tmpl->qce; in qce_ahash_async_req_handle() local
97 ret = qce_mapsg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE, in qce_ahash_async_req_handle()
102 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_ahash_async_req_handle()
104 ret = qce_mapsg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE, 0); in qce_ahash_async_req_handle()
108 ret = qce_dma_prep_sgs(&qce->dma, req->src, rctx->src_nents, in qce_ahash_async_req_handle()
113 qce_dma_issue_pending(&qce->dma); in qce_ahash_async_req_handle()
122 qce_dma_terminate_all(&qce->dma); in qce_ahash_async_req_handle()
124 qce_unmapsg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE, 0); in qce_ahash_async_req_handle()
126 qce_unmapsg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE, in qce_ahash_async_req_handle()
238 struct qce_device *qce = tmpl->qce; in qce_ahash_update() local
306 return qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ahash_update()
313 struct qce_device *qce = tmpl->qce; in qce_ahash_final() local
329 return qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ahash_final()
336 struct qce_device *qce = tmpl->qce; in qce_ahash_digest() local
348 return qce->async_req_enqueue(tmpl->qce, &req->base); in qce_ahash_digest()
500 struct qce_device *qce) in qce_ahash_register_one() argument
542 tmpl->qce = qce; in qce_ahash_register_one()
547 dev_err(qce->dev, "%s registration failed\n", base->cra_name); in qce_ahash_register_one()
552 dev_dbg(qce->dev, "%s is registered\n", base->cra_name); in qce_ahash_register_one()
556 static void qce_ahash_unregister(struct qce_device *qce) in qce_ahash_unregister() argument
567 static int qce_ahash_register(struct qce_device *qce) in qce_ahash_register() argument
572 ret = qce_ahash_register_one(&ahash_def[i], qce); in qce_ahash_register()
579 qce_ahash_unregister(qce); in qce_ahash_register()