/linux-master/drivers/crypto/stm32/ |
H A D | stm32-cryp.c | 5 * Ux500 support taken from snippets in the old Ux500 cryp driver 27 #define DRIVER_NAME "stm32-cryp" 161 struct stm32_cryp *cryp; member in struct:stm32_cryp_ctx 212 static inline bool is_aes(struct stm32_cryp *cryp) argument 214 return cryp->flags & FLG_AES; 217 static inline bool is_des(struct stm32_cryp *cryp) argument 219 return cryp->flags & FLG_DES; 222 static inline bool is_tdes(struct stm32_cryp *cryp) argument 224 return cryp->flags & FLG_TDES; 227 static inline bool is_ecb(struct stm32_cryp *cryp) argument 232 is_cbc(struct stm32_cryp *cryp) argument 237 is_ctr(struct stm32_cryp *cryp) argument 242 is_gcm(struct stm32_cryp *cryp) argument 247 is_ccm(struct stm32_cryp *cryp) argument 252 is_encrypt(struct stm32_cryp *cryp) argument 257 is_decrypt(struct stm32_cryp *cryp) argument 262 stm32_cryp_read(struct stm32_cryp *cryp, u32 ofst) argument 267 stm32_cryp_write(struct stm32_cryp *cryp, u32 ofst, u32 val) argument 272 stm32_cryp_wait_busy(struct stm32_cryp *cryp) argument 280 stm32_cryp_enable(struct stm32_cryp *cryp) argument 286 stm32_cryp_wait_enable(struct stm32_cryp *cryp) argument 294 stm32_cryp_wait_output(struct stm32_cryp *cryp) argument 302 stm32_cryp_key_read_enable(struct stm32_cryp *cryp) argument 308 stm32_cryp_key_read_disable(struct stm32_cryp *cryp) argument 319 struct stm32_cryp *tmp, *cryp = NULL; local 337 stm32_cryp_hw_write_iv(struct stm32_cryp *cryp, __be32 *iv) argument 351 stm32_cryp_get_iv(struct stm32_cryp *cryp) argument 493 stm32_cryp_get_hw_mode(struct stm32_cryp *cryp) argument 526 stm32_cryp_get_input_text_len(struct stm32_cryp *cryp) argument 532 stm32_cryp_gcm_init(struct stm32_cryp *cryp, u32 cfg) argument 564 stm32_crypt_gcmccm_end_header(struct stm32_cryp *cryp) argument 599 stm32_cryp_write_ccm_first_header(struct stm32_cryp *cryp) argument 634 stm32_cryp_ccm_init(struct stm32_cryp *cryp, u32 cfg) argument 699 stm32_cryp_hw_init(struct stm32_cryp *cryp) argument 801 stm32_cryp_finish_req(struct stm32_cryp *cryp, int err) argument 820 stm32_cryp_cpu_start(struct stm32_cryp *cryp) argument 851 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); local 865 struct stm32_cryp *cryp = stm32_cryp_find_dev(ctx); local 1156 struct stm32_cryp *cryp; local 1241 struct stm32_cryp *cryp = ctx->cryp; local 1255 struct stm32_cryp *cryp = ctx->cryp; local 1274 stm32_cryp_read_auth_tag(struct stm32_cryp *cryp) argument 1356 stm32_cryp_check_ctr_counter(struct stm32_cryp *cryp) argument 1382 stm32_cryp_irq_read_data(struct stm32_cryp *cryp) argument 1393 stm32_cryp_irq_write_block(struct stm32_cryp *cryp) argument 1403 stm32_cryp_irq_write_gcm_padded_data(struct stm32_cryp *cryp) argument 1477 stm32_cryp_irq_set_npblb(struct stm32_cryp *cryp) argument 1491 stm32_cryp_irq_write_ccm_padded_data(struct stm32_cryp *cryp) argument 1577 stm32_cryp_irq_write_data(struct stm32_cryp *cryp) argument 1618 stm32_cryp_irq_write_gcmccm_header(struct stm32_cryp *cryp) argument 1636 struct stm32_cryp *cryp = arg; local 1676 struct stm32_cryp *cryp = arg; local 1970 struct stm32_cryp *cryp; local 2089 struct stm32_cryp *cryp = platform_get_drvdata(pdev); local 2114 struct stm32_cryp *cryp = dev_get_drvdata(dev); local 2123 struct stm32_cryp *cryp = dev_get_drvdata(dev); local [all...] |
H A D | Makefile | 4 obj-$(CONFIG_CRYPTO_DEV_STM32_CRYP) += stm32-cryp.o
|
/linux-master/drivers/crypto/starfive/ |
H A D | jh7110-cryp.c | 11 #include "jh7110-cryp.h" 39 struct starfive_cryp_dev *cryp = NULL, *tmp; local 42 if (!ctx->cryp) { 44 cryp = tmp; 47 ctx->cryp = cryp; 49 cryp = ctx->cryp; 54 return cryp; 64 static int starfive_dma_init(struct starfive_cryp_dev *cryp) argument 86 starfive_dma_cleanup(struct starfive_cryp_dev *cryp) argument 94 struct starfive_cryp_dev *cryp; local 190 struct starfive_cryp_dev *cryp = platform_get_drvdata(pdev); local [all...] |
H A D | jh7110-aes.c | 13 #include "jh7110-cryp.h" 52 static inline int starfive_aes_wait_busy(struct starfive_cryp_dev *cryp) argument 56 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, 60 static inline int starfive_aes_wait_keydone(struct starfive_cryp_dev *cryp) argument 64 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, 68 static inline int starfive_aes_wait_gcmdone(struct starfive_cryp_dev *cryp) argument 72 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_AES_CSR, status, 76 static inline int is_gcm(struct starfive_cryp_dev *cryp) argument 78 return (cryp->flags & FLG_MODE_MASK) == STARFIVE_AES_MODE_GCM; 81 static inline bool is_encrypt(struct starfive_cryp_dev *cryp) argument 88 struct starfive_cryp_dev *cryp = ctx->cryp; local 108 struct starfive_cryp_dev *cryp = ctx->cryp; local 116 struct starfive_cryp_dev *cryp = ctx->cryp; local 133 struct starfive_cryp_dev *cryp = ctx->cryp; local 151 starfive_aes_get_iv(struct starfive_cryp_dev *cryp, u32 *iv) argument 161 struct starfive_cryp_dev *cryp = ctx->cryp; local 171 struct starfive_cryp_dev *cryp = ctx->cryp; local 199 struct starfive_cryp_dev *cryp = ctx->cryp; local 227 struct starfive_cryp_dev *cryp = ctx->cryp; local 294 struct starfive_cryp_dev *cryp = ctx->cryp; local 325 struct starfive_cryp_dev *cryp = ctx->cryp; local 344 struct starfive_cryp_dev *cryp = ctx->cryp; local 372 struct starfive_cryp_dev *cryp = ctx->cryp; local 409 struct starfive_cryp_dev *cryp = param; local 414 starfive_aes_dma_init(struct starfive_cryp_dev *cryp) argument 437 starfive_aes_dma_xfer(struct starfive_cryp_dev *cryp, struct scatterlist *src, struct scatterlist *dst, int len) argument 499 starfive_aes_map_sg(struct starfive_cryp_dev *cryp, struct scatterlist *src, struct scatterlist *dst) argument 575 struct starfive_cryp_dev *cryp = ctx->cryp; local 643 struct starfive_cryp_dev *cryp = ctx->cryp; local 748 starfive_aes_check_unaligned(struct starfive_cryp_dev *cryp, struct scatterlist *src, struct scatterlist *dst) argument 792 struct starfive_cryp_dev *cryp = ctx->cryp; local 829 struct starfive_cryp_dev *cryp = ctx->cryp; local [all...] |
H A D | Makefile | 4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
|
H A D | jh7110-hash.c | 12 #include "jh7110-cryp.h" 39 static inline int starfive_hash_wait_busy(struct starfive_cryp_dev *cryp) argument 43 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, 47 static inline int starfive_hash_wait_hmac_done(struct starfive_cryp_dev *cryp) argument 51 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, 57 struct starfive_cryp_dev *cryp = ctx->cryp; local 60 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, 67 struct starfive_cryp_dev *cryp = ctx->cryp; local 94 starfive_hash_start(struct starfive_cryp_dev *cryp) argument 106 struct starfive_cryp_dev *cryp = param; local 111 starfive_hash_dma_init(struct starfive_cryp_dev *cryp) argument 124 starfive_hash_dma_xfer(struct starfive_cryp_dev *cryp, struct scatterlist *sg) argument 185 starfive_hash_done_task(struct starfive_cryp_dev *cryp) argument 201 struct starfive_cryp_dev *cryp = ctx->cryp; local 328 struct starfive_cryp_dev *cryp = ctx->cryp; local [all...] |
H A D | jh7110-rsa.c | 16 #include "jh7110-cryp.h" 39 struct starfive_cryp_dev *cryp = ctx->cryp; local 42 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_PKA_CASR_OFFSET, status, 75 struct starfive_cryp_dev *cryp = ctx->cryp; local 85 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); 88 writel(mod[opsize - loop], cryp->base + STARFIVE_PKA_CANR_OFFSET + loop * 4); 100 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); 106 writel(in[opsize - loop], cryp 172 struct starfive_cryp_dev *cryp = ctx->cryp; local 251 struct starfive_cryp_dev *cryp = ctx->cryp; local 286 struct starfive_cryp_dev *cryp = ctx->cryp; local 318 struct starfive_cryp_dev *cryp = ctx->cryp; local [all...] |
H A D | jh7110-cryp.h | 161 struct starfive_cryp_dev *cryp; member in struct:starfive_cryp_ctx
|