Home
last modified time | relevance | path

Searched refs:cryp (Results 1 – 17 of 17) sorted by relevance

/linux-6.15/drivers/crypto/stm32/
H A Dstm32-cryp.c371 ctx->cryp = cryp; in stm32_cryp_find_dev()
373 cryp = ctx->cryp; in stm32_cryp_find_dev()
539 if (is_aes(cryp) && is_ecb(cryp)) in stm32_cryp_get_hw_mode()
542 if (is_aes(cryp) && is_cbc(cryp)) in stm32_cryp_get_hw_mode()
545 if (is_aes(cryp) && is_ctr(cryp)) in stm32_cryp_get_hw_mode()
548 if (is_aes(cryp) && is_gcm(cryp)) in stm32_cryp_get_hw_mode()
551 if (is_aes(cryp) && is_ccm(cryp)) in stm32_cryp_get_hw_mode()
851 if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp)))) in stm32_cryp_finish_req()
1681 cryp = ctx->cryp; in stm32_cryp_prepare_req()
1957 stm32_cryp_write(cryp, cryp->caps->iv1r, cryp->gcm_ctr - 2); in stm32_cryp_irq_write_gcm_padded_data()
[all …]
H A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_STM32_CRYP) += stm32-cryp.o
H A DKconfig27 tristate "Support for STM32 cryp accelerators"
/linux-6.15/drivers/crypto/starfive/
H A Djh7110-cryp.c44 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()
71 cryp->tx = dma_request_chan(cryp->dev, "tx"); in starfive_dma_init()
73 return dev_err_probe(cryp->dev, PTR_ERR(cryp->tx), in starfive_dma_init()
76 cryp->rx = dma_request_chan(cryp->dev, "rx"); in starfive_dma_init()
79 return dev_err_probe(cryp->dev, PTR_ERR(cryp->rx), in starfive_dma_init()
98 cryp = devm_kzalloc(&pdev->dev, sizeof(*cryp), GFP_KERNEL); in starfive_cryp_probe()
99 if (!cryp) in starfive_cryp_probe()
[all …]
H A Djh7110-aes.c88 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_aead_hw_start() local
108 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_alen() local
116 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_set_mlen() local
133 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_iv() local
161 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_nonce() local
171 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_write_key() local
199 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_aes_ccm_init() local
314 cryp->total_in, cryp->authsize, 1); in starfive_aes_read_authtag()
316 if (crypto_memneq(cryp->tag_in, cryp->tag_out, cryp->authsize)) in starfive_aes_read_authtag()
663 cryp->total_out = cryp->total_in; in starfive_aes_aead_do_one_req()
[all …]
H A Djh7110-hash.c57 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_wait_key_done() local
67 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_hmac_key() local
115 cryp->cfg_in.src_maxburst = cryp->dma_maxburst; in starfive_hash_dma_init()
116 cryp->cfg_in.dst_maxburst = cryp->dma_maxburst; in starfive_hash_dma_init()
117 cryp->cfg_in.dst_addr = cryp->phys_base + STARFIVE_ALG_FIFO_OFFSET; in starfive_hash_dma_init()
119 dmaengine_slave_config(cryp->tx, &cryp->cfg_in); in starfive_hash_dma_init()
192 crypto_finalize_hash_request(cryp->engine, cryp->req.hreq, err); in starfive_hash_done_task()
201 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_one_request() local
248 cryp->err = starfive_hash_wait_hmac_done(cryp); in starfive_hash_one_request()
328 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_hash_digest() local
[all …]
H A Djh7110-rsa.c38 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_pka_wait_done() local
74 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_montgomery_form() local
107 writel(0x1000000, cryp->base + STARFIVE_PKA_CAER_OFFSET); in starfive_rsa_montgomery_form()
171 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_cpu_start() local
250 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_enc_core() local
290 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_enc() local
306 return dev_err_probe(cryp->dev, -EOVERFLOW, in starfive_rsa_enc()
321 struct starfive_cryp_dev *cryp = ctx->cryp; in starfive_rsa_dec() local
337 return dev_err_probe(cryp->dev, -EOVERFLOW, in starfive_rsa_dec()
542 ctx->cryp = starfive_cryp_find_dev(ctx); in starfive_rsa_init_tfm()
[all …]
H A DMakefile4 jh7110-crypto-objs := jh7110-cryp.o jh7110-hash.o jh7110-rsa.o jh7110-aes.o
H A Djh7110-cryp.h162 struct starfive_cryp_dev *cryp; member
/linux-6.15/Documentation/devicetree/bindings/crypto/
H A Dst,stm32-cryp.yaml4 $id: http://devicetree.org/schemas/crypto/st,stm32-cryp.yaml#
19 - st,stn8820-cryp
20 - stericsson,ux500-cryp
21 - st,stm32f756-cryp
22 - st,stm32mp1-cryp
66 cryp@54001000 {
67 compatible = "st,stm32mp1-cryp";
H A Dmediatek-crypto.txt9 - clock-names: Must contain "cryp".
23 clock-names = "cryp";
/linux-6.15/arch/arm/boot/dts/st/
H A Dstm32mp15xc.dtsi8 cryp1: cryp@54001000 {
9 compatible = "st,stm32mp1-cryp";
H A Dstm32mp13xc.dtsi8 cryp: crypto@54002000 { label
9 compatible = "st,stm32mp1-cryp";
H A Dstm32mp13xf.dtsi8 cryp: crypto@54002000 { label
9 compatible = "st,stm32mp1-cryp";
H A Dstm32mp135f-dk.dts168 &cryp {
H A Dste-dbx5x0.dtsi1223 cryp@a03cb000 {
1224 compatible = "stericsson,ux500-cryp";
/linux-6.15/arch/arm/boot/dts/mediatek/
H A Dmt7623.dtsi1006 clock-names = "cryp";