/linux-master/drivers/crypto/qce/ |
H A D | core.c | 40 static void qce_unregister_algs(struct qce_device *qce) argument 47 ops->unregister_algs(qce); 51 static int qce_register_algs(struct qce_device *qce) argument 58 ret = ops->register_algs(qce); 83 static int qce_handle_queue(struct qce_device *qce, argument 90 spin_lock_irqsave(&qce->lock, flags); 93 ret = crypto_enqueue_request(&qce->queue, req); 96 if (qce->req) { 97 spin_unlock_irqrestore(&qce->lock, flags); 101 backlog = crypto_get_backlog(&qce 128 struct qce_device *qce = (struct qce_device *)data; local 143 qce_async_request_enqueue(struct qce_device *qce, struct crypto_async_request *req) argument 149 qce_async_request_done(struct qce_device *qce, int ret) argument 155 qce_check_version(struct qce_device *qce) argument 194 struct qce_device *qce; local 282 struct qce_device *qce = platform_get_drvdata(pdev); local [all...] |
H A D | common.c | 21 static inline u32 qce_read(struct qce_device *qce, u32 offset) argument 23 return readl(qce->base + offset); 26 static inline void qce_write(struct qce_device *qce, u32 offset, u32 val) argument 28 writel(val, qce->base + offset); 31 static inline void qce_write_array(struct qce_device *qce, u32 offset, argument 37 qce_write(qce, offset + i * sizeof(u32), val[i]); 41 qce_clear_array(struct qce_device *qce, u32 offset, unsigned int len) argument 46 qce_write(qce, offset + i * sizeof(u32), 0); 49 static u32 qce_config_reg(struct qce_device *qce, int little) argument 51 u32 beats = (qce 81 qce_setup_config(struct qce_device *qce) argument 93 qce_crypto_go(struct qce_device *qce, bool result_dump) argument 153 struct qce_device *qce = tmpl->qce; local 298 qce_xtskey(struct qce_device *qce, const u8 *enckey, unsigned int enckeylen, unsigned int cryptlen) argument 320 struct qce_device *qce = tmpl->qce; local 426 struct qce_device *qce = tmpl->qce; local 567 qce_check_status(struct qce_device *qce, u32 *status) argument 587 qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step) argument [all...] |
H A D | core.h | 42 int (*async_req_enqueue)(struct qce_device *qce, 44 void (*async_req_done)(struct qce_device *qce, int ret); 56 int (*register_algs)(struct qce_device *qce); 57 void (*unregister_algs)(struct qce_device *qce);
|
H A D | sha.c | 43 struct qce_device *qce = tmpl->qce; local 44 struct qce_result_dump *result = qce->dma.result_buf; 49 error = qce_dma_terminate_all(&qce->dma); 51 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); 53 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE); 54 dma_unmap_sg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE); 63 error = qce_check_status(qce, &status); 65 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); 72 qce 81 struct qce_device *qce = tmpl->qce; local 188 struct qce_device *qce = tmpl->qce; local 280 struct qce_device *qce = tmpl->qce; local 307 struct qce_device *qce = tmpl->qce; local 452 qce_ahash_register_one(const struct qce_ahash_def *def, struct qce_device *qce) argument 513 qce_ahash_unregister(struct qce_device *qce) argument 524 qce_ahash_register(struct qce_device *qce) argument [all...] |
H A D | skcipher.c | 33 struct qce_device *qce = tmpl->qce; local 34 struct qce_result_dump *result_buf = qce->dma.result_buf; 44 error = qce_dma_terminate_all(&qce->dma); 46 dev_dbg(qce->dev, "skcipher dma termination error (%d)\n", 50 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); 51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); 55 error = qce_check_status(qce, &status); 57 dev_dbg(qce->dev, "skcipher operation error (%x)\n", status); 60 qce 70 struct qce_device *qce = tmpl->qce; local 436 qce_skcipher_register_one(const struct qce_skcipher_def *def, struct qce_device *qce) argument 497 qce_skcipher_unregister(struct qce_device *qce) argument 508 qce_skcipher_register(struct qce_device *qce) argument [all...] |
H A D | aead.c | 30 struct qce_device *qce = tmpl->qce; local 31 struct qce_result_dump *result_buf = qce->dma.result_buf; 44 error = qce_dma_terminate_all(&qce->dma); 46 dev_dbg(qce->dev, "aead dma termination error (%d)\n", 49 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); 51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); 66 error = qce_check_status(qce, &status); 68 dev_err(qce->dev, "aead operation error (%x)\n", status); 89 qce 97 struct qce_device *qce = tmpl->qce; local 117 struct qce_device *qce = tmpl->qce; local 305 struct qce_device *qce = tmpl->qce; local 415 struct qce_device *qce = tmpl->qce; local 759 qce_aead_register_one(const struct qce_aead_def *def, struct qce_device *qce) argument 815 qce_aead_unregister(struct qce_device *qce) argument 826 qce_aead_register(struct qce_device *qce) argument [all...] |
H A D | common.h | 94 struct qce_device *qce; member in struct:qce_alg_template 100 int qce_check_status(struct qce_device *qce, u32 *status); 101 void qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step);
|
/linux-master/drivers/crypto/ |
H A D | Makefile | 35 obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
|