/Linux-v6.6/drivers/crypto/stm32/ |
D | stm32-cryp.c | 161 struct stm32_cryp *cryp; member 212 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument 214 return cryp->flags & FLG_AES; in is_aes() 217 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument 219 return cryp->flags & FLG_DES; in is_des() 222 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument 224 return cryp->flags & FLG_TDES; in is_tdes() 227 static inline bool is_ecb(struct stm32_cryp *cryp) in is_ecb() argument 229 return cryp->flags & FLG_ECB; in is_ecb() 232 static inline bool is_cbc(struct stm32_cryp *cryp) in is_cbc() argument [all …]
|
D | Makefile | 4 obj-$(CONFIG_CRYPTO_DEV_STM32_CRYP) += stm32-cryp.o
|
D | Kconfig | 27 tristate "Support for STM32 cryp accelerators"
|
/Linux-v6.6/drivers/crypto/starfive/ |
D | jh7110-cryp.c | 39 struct starfive_cryp_dev *cryp = NULL, *tmp; in starfive_cryp_find_dev() local 42 if (!ctx->cryp) { in starfive_cryp_find_dev() 44 cryp = tmp; in starfive_cryp_find_dev() 47 ctx->cryp = cryp; in starfive_cryp_find_dev() 49 cryp = ctx->cryp; in starfive_cryp_find_dev() 54 return cryp; in starfive_cryp_find_dev() 64 static int starfive_dma_init(struct starfive_cryp_dev *cryp) in starfive_dma_init() argument 71 cryp->tx = dma_request_chan(cryp->dev, "tx"); in starfive_dma_init() 72 if (IS_ERR(cryp->tx)) in starfive_dma_init() 73 return dev_err_probe(cryp->dev, PTR_ERR(cryp->tx), in starfive_dma_init() [all …]
|
D | jh7110-aes.c | 52 static inline int starfive_aes_wait_busy(struct starfive_cryp_dev *cryp) in starfive_aes_wait_busy() argument 56 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, in starfive_aes_wait_busy() 60 static inline int starfive_aes_wait_keydone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_keydone() argument 64 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, in starfive_aes_wait_keydone() 68 static inline int starfive_aes_wait_gcmdone(struct starfive_cryp_dev *cryp) in starfive_aes_wait_gcmdone() argument 72 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, in starfive_aes_wait_gcmdone() 76 static inline int is_gcm(struct starfive_cryp_dev *cryp) in is_gcm() argument 78 return (cryp->flags & FLG_MODE_MASK) == STARFIVE_AES_MODE_GCM; in is_gcm() 81 static inline int is_encrypt(struct starfive_cryp_dev *cryp) in is_encrypt() argument 83 return cryp->flags & FLG_ENCRYPT; in is_encrypt() [all …]
|
D | jh7110-hash.c | 41 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_busy() local 44 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, in starfive_hash_wait_busy() 50 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_key_done() local 53 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, in starfive_hash_wait_key_done() 60 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_hmac_key() local 65 writel(ctx->keylen, cryp->base + STARFIVE_HASH_SHAWKLEN); in starfive_hash_hmac_key() 70 writel(rctx->csr.hash.v, cryp->base + STARFIVE_HASH_SHACSR); in starfive_hash_hmac_key() 73 writel(*key, cryp->base + STARFIVE_HASH_SHAWKR); in starfive_hash_hmac_key() 78 writeb(*cl, cryp->base + STARFIVE_HASH_SHAWKR); in starfive_hash_hmac_key() 82 return dev_err_probe(cryp->dev, -ETIMEDOUT, "starfive_hash_wait_key_done error\n"); in starfive_hash_hmac_key() [all …]
|
D | jh7110-rsa.c | 45 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_wait_done() local 47 return wait_for_completion_timeout(&cryp->pka_done, in starfive_pka_wait_done() 53 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_irq_mask_clear() local 56 stat = readl(cryp->base + STARFIVE_IE_MASK_OFFSET); in starfive_pka_irq_mask_clear() 58 writel(stat, cryp->base + STARFIVE_IE_MASK_OFFSET); in starfive_pka_irq_mask_clear() 60 reinit_completion(&cryp->pka_done); in starfive_pka_irq_mask_clear() 92 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_montgomery_form() local 102 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form() 105 writel(mod[opsize - loop], cryp->base + STARFIVE_PKA_CANR_OFFSET + loop * 4); in starfive_rsa_montgomery_form() 118 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); in starfive_rsa_montgomery_form() [all …]
|
D | Makefile | 4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
|
D | jh7110-cryp.h | 153 struct starfive_cryp_dev *cryp; member
|
/Linux-v6.6/arch/arm/boot/dts/st/ |
D | stm32mp15xc.dtsi | 9 cryp1: cryp@54001000 { 10 compatible = "st,stm32mp1-cryp";
|
D | stm32mp13xc.dtsi | 9 cryp: crypto@54002000 { label 10 compatible = "st,stm32mp1-cryp";
|
D | stm32mp13xf.dtsi | 9 cryp: crypto@54002000 { label 10 compatible = "st,stm32mp1-cryp";
|
D | ste-dbx5x0.dtsi | 1223 cryp@a03cb000 { 1224 compatible = "stericsson,ux500-cryp";
|
/Linux-v6.6/Documentation/devicetree/bindings/crypto/ |
D | mediatek-crypto.txt | 9 - clock-names: Must contain "cryp". 23 clock-names = "cryp";
|
/Linux-v6.6/arch/arm/boot/dts/mediatek/ |
D | mt7623.dtsi | 1006 clock-names = "cryp";
|