Home
last modified time | relevance | path

Searched refs:qce (Results 1 – 7 of 7) sorted by relevance

/drivers/crypto/qce/
Dcore.c36 static void qce_unregister_algs(struct qce_device *qce) in qce_unregister_algs() argument
43 ops->unregister_algs(qce); in qce_unregister_algs()
47 static int qce_register_algs(struct qce_device *qce) in qce_register_algs() argument
54 ret = ops->register_algs(qce); in qce_register_algs()
79 static int qce_handle_queue(struct qce_device *qce, in qce_handle_queue() argument
86 spin_lock_irqsave(&qce->lock, flags); in qce_handle_queue()
89 ret = crypto_enqueue_request(&qce->queue, req); in qce_handle_queue()
92 if (qce->req) { in qce_handle_queue()
93 spin_unlock_irqrestore(&qce->lock, flags); in qce_handle_queue()
97 backlog = crypto_get_backlog(&qce->queue); in qce_handle_queue()
[all …]
Dcommon.c28 static inline u32 qce_read(struct qce_device *qce, u32 offset) in qce_read() argument
30 return readl(qce->base + offset); in qce_read()
33 static inline void qce_write(struct qce_device *qce, u32 offset, u32 val) in qce_write() argument
35 writel(val, qce->base + offset); in qce_write()
38 static inline void qce_write_array(struct qce_device *qce, u32 offset, in qce_write_array() argument
44 qce_write(qce, offset + i * sizeof(u32), val[i]); in qce_write_array()
48 qce_clear_array(struct qce_device *qce, u32 offset, unsigned int len) in qce_clear_array() argument
53 qce_write(qce, offset + i * sizeof(u32), 0); in qce_clear_array()
148 static u32 qce_config_reg(struct qce_device *qce, int little) in qce_config_reg() argument
150 u32 beats = (qce->burst_size >> 3) - 1; in qce_config_reg()
[all …]
Dsha.c44 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
[all …]
Dablkcipher.c31 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_done() local
41 error = qce_dma_terminate_all(&qce->dma); in qce_ablkcipher_done()
43 dev_dbg(qce->dev, "ablkcipher dma termination error (%d)\n", in qce_ablkcipher_done()
47 qce_unmapsg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src, in qce_ablkcipher_done()
49 qce_unmapsg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst, in qce_ablkcipher_done()
54 error = qce_check_status(qce, &status); in qce_ablkcipher_done()
56 dev_dbg(qce->dev, "ablkcipher operation error (%x)\n", status); in qce_ablkcipher_done()
58 qce->async_req_done(tmpl->qce, error); in qce_ablkcipher_done()
68 struct qce_device *qce = tmpl->qce; in qce_ablkcipher_async_req_handle() local
102 sg_init_one(&rctx->result_sg, qce->dma.result_buf, QCE_RESULT_BUF_SZ); in qce_ablkcipher_async_req_handle()
[all …]
Dcore.h49 int (*async_req_enqueue)(struct qce_device *qce,
51 void (*async_req_done)(struct qce_device *qce, int ret);
63 int (*register_algs)(struct qce_device *qce);
64 void (*unregister_algs)(struct qce_device *qce);
Dcommon.h93 struct qce_device *qce; member
97 int qce_check_status(struct qce_device *qce, u32 *status);
98 void qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step);
/drivers/crypto/
DMakefile27 obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/