Searched refs:cryp (Results 1 - 8 of 8) sorted by relevance
/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 96 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)priv; local 117 struct starfive_cryp_dev *cryp; local 230 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 int 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 118 struct starfive_cryp_dev *cryp = ctx->cryp; local 126 struct starfive_cryp_dev *cryp = ctx->cryp; local 143 struct starfive_cryp_dev *cryp = ctx->cryp; local 161 starfive_aes_get_iv(struct starfive_cryp_dev *cryp, u32 *iv) argument 171 struct starfive_cryp_dev *cryp = ctx->cryp; local 181 struct starfive_cryp_dev *cryp = ctx->cryp; local 209 struct starfive_cryp_dev *cryp = ctx->cryp; local 237 struct starfive_cryp_dev *cryp = ctx->cryp; local 303 starfive_aes_read_authtag(struct starfive_cryp_dev *cryp) argument 332 starfive_aes_finish_req(struct starfive_cryp_dev *cryp) argument 358 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)param; local 391 struct starfive_cryp_dev *cryp = ctx->cryp; local 419 struct starfive_cryp_dev *cryp = ctx->cryp; local 459 struct starfive_cryp_dev *cryp; local 516 struct starfive_cryp_dev *cryp = ctx->cryp; local 564 struct starfive_cryp_dev *cryp = ctx->cryp; local 619 struct starfive_cryp_dev *cryp = ctx->cryp; local 653 struct starfive_cryp_dev *cryp = ctx->cryp; local 669 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" 41 struct starfive_cryp_dev *cryp = ctx->cryp; local 44 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, 50 struct starfive_cryp_dev *cryp = ctx->cryp; local 53 return readl_relaxed_poll_timeout(cryp->base + STARFIVE_HASH_SHACSR, status, 60 struct starfive_cryp_dev *cryp = ctx->cryp; local 65 writel(ctx->keylen, cryp 91 struct starfive_cryp_dev *cryp = ctx->cryp; local 116 struct starfive_cryp_dev *cryp = ctx->cryp; local 171 struct starfive_cryp_dev *cryp = ctx->cryp; local 220 struct starfive_cryp_dev *cryp = (struct starfive_cryp_dev *)param; local 264 struct starfive_cryp_dev *cryp = ctx->cryp; local 361 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, 72 struct starfive_cryp_dev *cryp = ctx->cryp; local 82 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); 85 writel(mod[opsize - loop], cryp->base + STARFIVE_PKA_CANR_OFFSET + loop * 4); 97 writel(rctx->csr.pka.v, cryp->base + STARFIVE_PKA_CACR_OFFSET); 103 writel(in[opsize - loop], cryp 169 struct starfive_cryp_dev *cryp = ctx->cryp; local 248 struct starfive_cryp_dev *cryp = ctx->cryp; local 284 struct starfive_cryp_dev *cryp = ctx->cryp; local 316 struct starfive_cryp_dev *cryp = ctx->cryp; local [all...] |
H A D | jh7110-cryp.h | 160 struct starfive_cryp_dev *cryp; member in struct:starfive_cryp_ctx
|
/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
|
Completed in 299 milliseconds