Home
last modified time | relevance | path

Searched refs:qce (Results 1 - 17 of 17) sorted by relevance

/kernel/linux/linux-5.10/drivers/crypto/qce/
H A Dcore.c34 static void qce_unregister_algs(struct qce_device *qce) in qce_unregister_algs() argument
41 ops->unregister_algs(qce); in qce_unregister_algs()
45 static int qce_register_algs(struct qce_device *qce) in qce_register_algs() argument
52 ret = ops->register_algs(qce); in qce_register_algs()
77 static int qce_handle_queue(struct qce_device *qce, in qce_handle_queue() argument
84 spin_lock_irqsave(&qce->lock, flags); in qce_handle_queue()
87 ret = crypto_enqueue_request(&qce->queue, req); in qce_handle_queue()
90 if (qce->req) { in qce_handle_queue()
91 spin_unlock_irqrestore(&qce->lock, flags); in qce_handle_queue()
95 backlog = crypto_get_backlog(&qce in qce_handle_queue()
122 struct qce_device *qce = (struct qce_device *)data; qce_tasklet_req_done() local
137 qce_async_request_enqueue(struct qce_device *qce, struct crypto_async_request *req) qce_async_request_enqueue() argument
143 qce_async_request_done(struct qce_device *qce, int ret) qce_async_request_done() argument
149 qce_check_version(struct qce_device *qce) qce_check_version() argument
174 struct qce_device *qce; qce_crypto_probe() local
251 struct qce_device *qce = platform_get_drvdata(pdev); qce_crypto_remove() local
[all...]
H A Dcommon.c18 static inline u32 qce_read(struct qce_device *qce, u32 offset) in qce_read() argument
20 return readl(qce->base + offset); in qce_read()
23 static inline void qce_write(struct qce_device *qce, u32 offset, u32 val) in qce_write() argument
25 writel(val, qce->base + offset); in qce_write()
28 static inline void qce_write_array(struct qce_device *qce, u32 offset, in qce_write_array() argument
34 qce_write(qce, offset + i * sizeof(u32), val[i]); in qce_write_array()
38 qce_clear_array(struct qce_device *qce, u32 offset, unsigned int len) in qce_clear_array() argument
43 qce_write(qce, offset + i * sizeof(u32), 0); in qce_clear_array()
46 static u32 qce_config_reg(struct qce_device *qce, int little) in qce_config_reg() argument
48 u32 beats = (qce in qce_config_reg()
78 qce_setup_config(struct qce_device *qce) qce_setup_config() argument
90 qce_crypto_go(struct qce_device *qce) qce_crypto_go() argument
149 struct qce_device *qce = tmpl->qce; qce_setup_regs_ahash() local
292 qce_xtskey(struct qce_device *qce, const u8 *enckey, unsigned int enckeylen, unsigned int cryptlen) qce_xtskey() argument
315 struct qce_device *qce = tmpl->qce; qce_setup_regs_skcipher() local
410 qce_check_status(struct qce_device *qce, u32 *status) qce_check_status() argument
428 qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step) qce_get_version() argument
[all...]
H A Dsha.c37 struct qce_device *qce = tmpl->qce; in qce_ahash_done() local
38 struct qce_result_dump *result = qce->dma.result_buf; in qce_ahash_done()
43 error = qce_dma_terminate_all(&qce->dma); in qce_ahash_done()
45 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); in qce_ahash_done()
47 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE); in qce_ahash_done()
48 dma_unmap_sg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE); in qce_ahash_done()
57 error = qce_check_status(qce, &status); in qce_ahash_done()
59 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); in qce_ahash_done()
66 qce in qce_ahash_done()
75 struct qce_device *qce = tmpl->qce; qce_ahash_async_req_handle() local
240 struct qce_device *qce = tmpl->qce; qce_ahash_update() local
313 struct qce_device *qce = tmpl->qce; qce_ahash_final() local
340 struct qce_device *qce = tmpl->qce; qce_ahash_digest() local
485 qce_ahash_register_one(const struct qce_ahash_def *def, struct qce_device *qce) qce_ahash_register_one() argument
546 qce_ahash_unregister(struct qce_device *qce) qce_ahash_unregister() argument
557 qce_ahash_register(struct qce_device *qce) qce_ahash_register() argument
[all...]
H A Dskcipher.c32 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 in qce_skcipher_done()
69 struct qce_device *qce = tmpl->qce; qce_skcipher_async_req_handle() local
385 qce_skcipher_register_one(const struct qce_skcipher_def *def, struct qce_device *qce) qce_skcipher_register_one() argument
446 qce_skcipher_unregister(struct qce_device *qce) qce_skcipher_unregister() argument
457 qce_skcipher_register(struct qce_device *qce) qce_skcipher_register() argument
[all...]
H A Dcore.h41 int (*async_req_enqueue)(struct qce_device *qce,
43 void (*async_req_done)(struct qce_device *qce, int ret);
55 int (*register_algs)(struct qce_device *qce);
56 void (*unregister_algs)(struct qce_device *qce);
H A Dcommon.h89 struct qce_device *qce; member
95 int qce_check_status(struct qce_device *qce, u32 *status);
96 void qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step);
/kernel/linux/linux-6.6/drivers/crypto/qce/
H A Dcore.c40 static void qce_unregister_algs(struct qce_device *qce) in qce_unregister_algs() argument
47 ops->unregister_algs(qce); in qce_unregister_algs()
51 static int qce_register_algs(struct qce_device *qce) in qce_register_algs() argument
58 ret = ops->register_algs(qce); in qce_register_algs()
83 static int qce_handle_queue(struct qce_device *qce, in qce_handle_queue() argument
90 spin_lock_irqsave(&qce->lock, flags); in qce_handle_queue()
93 ret = crypto_enqueue_request(&qce->queue, req); in qce_handle_queue()
96 if (qce->req) { in qce_handle_queue()
97 spin_unlock_irqrestore(&qce->lock, flags); in qce_handle_queue()
101 backlog = crypto_get_backlog(&qce in qce_handle_queue()
128 struct qce_device *qce = (struct qce_device *)data; qce_tasklet_req_done() local
143 qce_async_request_enqueue(struct qce_device *qce, struct crypto_async_request *req) qce_async_request_enqueue() argument
149 qce_async_request_done(struct qce_device *qce, int ret) qce_async_request_done() argument
155 qce_check_version(struct qce_device *qce) qce_check_version() argument
194 struct qce_device *qce; qce_crypto_probe() local
282 struct qce_device *qce = platform_get_drvdata(pdev); qce_crypto_remove() local
[all...]
H A Dcommon.c21 static inline u32 qce_read(struct qce_device *qce, u32 offset) in qce_read() argument
23 return readl(qce->base + offset); in qce_read()
26 static inline void qce_write(struct qce_device *qce, u32 offset, u32 val) in qce_write() argument
28 writel(val, qce->base + offset); in qce_write()
31 static inline void qce_write_array(struct qce_device *qce, u32 offset, in qce_write_array() argument
37 qce_write(qce, offset + i * sizeof(u32), val[i]); in qce_write_array()
41 qce_clear_array(struct qce_device *qce, u32 offset, unsigned int len) in qce_clear_array() argument
46 qce_write(qce, offset + i * sizeof(u32), 0); in qce_clear_array()
49 static u32 qce_config_reg(struct qce_device *qce, int little) in qce_config_reg() argument
51 u32 beats = (qce in qce_config_reg()
81 qce_setup_config(struct qce_device *qce) qce_setup_config() argument
93 qce_crypto_go(struct qce_device *qce, bool result_dump) qce_crypto_go() argument
153 struct qce_device *qce = tmpl->qce; qce_setup_regs_ahash() local
298 qce_xtskey(struct qce_device *qce, const u8 *enckey, unsigned int enckeylen, unsigned int cryptlen) qce_xtskey() argument
320 struct qce_device *qce = tmpl->qce; qce_setup_regs_skcipher() local
426 struct qce_device *qce = tmpl->qce; qce_setup_regs_aead() local
567 qce_check_status(struct qce_device *qce, u32 *status) qce_check_status() argument
587 qce_get_version(struct qce_device *qce, u32 *major, u32 *minor, u32 *step) qce_get_version() argument
[all...]
H A Dsha.c43 struct qce_device *qce = tmpl->qce; in qce_ahash_done() local
44 struct qce_result_dump *result = qce->dma.result_buf; in qce_ahash_done()
49 error = qce_dma_terminate_all(&qce->dma); in qce_ahash_done()
51 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); in qce_ahash_done()
53 dma_unmap_sg(qce->dev, req->src, rctx->src_nents, DMA_TO_DEVICE); in qce_ahash_done()
54 dma_unmap_sg(qce->dev, &rctx->result_sg, 1, DMA_FROM_DEVICE); in qce_ahash_done()
63 error = qce_check_status(qce, &status); in qce_ahash_done()
65 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); in qce_ahash_done()
72 qce in qce_ahash_done()
81 struct qce_device *qce = tmpl->qce; qce_ahash_async_req_handle() local
188 struct qce_device *qce = tmpl->qce; qce_ahash_update() local
280 struct qce_device *qce = tmpl->qce; qce_ahash_final() local
307 struct qce_device *qce = tmpl->qce; qce_ahash_digest() local
452 qce_ahash_register_one(const struct qce_ahash_def *def, struct qce_device *qce) qce_ahash_register_one() argument
513 qce_ahash_unregister(struct qce_device *qce) qce_ahash_unregister() argument
524 qce_ahash_register(struct qce_device *qce) qce_ahash_register() argument
[all...]
H A Dskcipher.c33 struct qce_device *qce = tmpl->qce; in qce_skcipher_done() local
34 struct qce_result_dump *result_buf = qce->dma.result_buf; in qce_skcipher_done()
44 error = qce_dma_terminate_all(&qce->dma); in qce_skcipher_done()
46 dev_dbg(qce->dev, "skcipher dma termination error (%d)\n", in qce_skcipher_done()
50 dma_unmap_sg(qce->dev, rctx->src_sg, rctx->src_nents, dir_src); in qce_skcipher_done()
51 dma_unmap_sg(qce->dev, rctx->dst_sg, rctx->dst_nents, dir_dst); in qce_skcipher_done()
55 error = qce_check_status(qce, &status); in qce_skcipher_done()
57 dev_dbg(qce->dev, "skcipher operation error (%x)\n", status); in qce_skcipher_done()
60 qce in qce_skcipher_done()
70 struct qce_device *qce = tmpl->qce; qce_skcipher_async_req_handle() local
436 qce_skcipher_register_one(const struct qce_skcipher_def *def, struct qce_device *qce) qce_skcipher_register_one() argument
497 qce_skcipher_unregister(struct qce_device *qce) qce_skcipher_unregister() argument
508 qce_skcipher_register(struct qce_device *qce) qce_skcipher_register() argument
[all...]
H A Daead.c30 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 in qce_aead_done()
97 struct qce_device *qce = tmpl->qce; qce_aead_prepare_result_buf() local
117 struct qce_device *qce = tmpl->qce; qce_aead_prepare_dst_buf() local
305 struct qce_device *qce = tmpl->qce; qce_aead_prepare_buf() local
415 struct qce_device *qce = tmpl->qce; qce_aead_async_req_handle() local
759 qce_aead_register_one(const struct qce_aead_def *def, struct qce_device *qce) qce_aead_register_one() argument
815 qce_aead_unregister(struct qce_device *qce) qce_aead_unregister() argument
826 qce_aead_register(struct qce_device *qce) qce_aead_register() argument
[all...]
H A Dcore.h42 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 Dcommon.h94 struct qce_device *qce; member
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);
/kernel/linux/linux-5.10/fs/ntfs/
H A Dquota.c26 QUOTA_CONTROL_ENTRY *qce; in ntfs_mark_quotas_out_of_date() local
58 qce = (QUOTA_CONTROL_ENTRY*)ictx->data; in ntfs_mark_quotas_out_of_date()
59 if (le32_to_cpu(qce->version) != QUOTA_VERSION) { in ntfs_mark_quotas_out_of_date()
61 "supported.", le32_to_cpu(qce->version)); in ntfs_mark_quotas_out_of_date()
64 ntfs_debug("Quota defaults flags = 0x%x.", le32_to_cpu(qce->flags)); in ntfs_mark_quotas_out_of_date()
66 if (qce->flags & QUOTA_FLAG_OUT_OF_DATE) in ntfs_mark_quotas_out_of_date()
72 if (!(qce->flags & (QUOTA_FLAG_TRACKING_ENABLED | in ntfs_mark_quotas_out_of_date()
81 qce->flags |= QUOTA_FLAG_OUT_OF_DATE; in ntfs_mark_quotas_out_of_date()
/kernel/linux/linux-6.6/fs/ntfs/
H A Dquota.c26 QUOTA_CONTROL_ENTRY *qce; in ntfs_mark_quotas_out_of_date() local
58 qce = (QUOTA_CONTROL_ENTRY*)ictx->data; in ntfs_mark_quotas_out_of_date()
59 if (le32_to_cpu(qce->version) != QUOTA_VERSION) { in ntfs_mark_quotas_out_of_date()
61 "supported.", le32_to_cpu(qce->version)); in ntfs_mark_quotas_out_of_date()
64 ntfs_debug("Quota defaults flags = 0x%x.", le32_to_cpu(qce->flags)); in ntfs_mark_quotas_out_of_date()
66 if (qce->flags & QUOTA_FLAG_OUT_OF_DATE) in ntfs_mark_quotas_out_of_date()
72 if (!(qce->flags & (QUOTA_FLAG_TRACKING_ENABLED | in ntfs_mark_quotas_out_of_date()
81 qce->flags |= QUOTA_FLAG_OUT_OF_DATE; in ntfs_mark_quotas_out_of_date()
/kernel/linux/linux-5.10/drivers/crypto/
H A DMakefile37 obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/
/kernel/linux/linux-6.6/drivers/crypto/
H A DMakefile35 obj-$(CONFIG_CRYPTO_DEV_QCE) += qce/

Completed in 7 milliseconds