Home
last modified time | relevance | path

Searched full:cryp (Results 1 – 25 of 50) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/crypto/stm32/
Dstm32-cryp.c24 #define DRIVER_NAME "stm32-cryp"
108 #define _walked_in (cryp->in_walk.offset - cryp->in_sg->offset)
109 #define _walked_out (cryp->out_walk.offset - cryp->out_sg->offset)
119 struct stm32_cryp *cryp; member
180 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument
182 return cryp->flags & FLG_AES; in is_aes()
185 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument
187 return cryp->flags & FLG_DES; in is_des()
190 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument
192 return cryp->flags & FLG_TDES; in is_tdes()
[all …]
DKconfig25 tristate "Support for STM32 cryp accelerators"
31 This enables support for the CRYP (AES/DES/TDES) hw accelerator which
/kernel/linux/linux-4.19/drivers/crypto/stm32/
Dstm32-cryp.c23 #define DRIVER_NAME "stm32-cryp"
107 #define _walked_in (cryp->in_walk.offset - cryp->in_sg->offset)
108 #define _walked_out (cryp->out_walk.offset - cryp->out_sg->offset)
118 struct stm32_cryp *cryp; member
180 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument
182 return cryp->flags & FLG_AES; in is_aes()
185 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument
187 return cryp->flags & FLG_DES; in is_des()
190 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument
192 return cryp->flags & FLG_TDES; in is_tdes()
[all …]
DKconfig23 tristate "Support for STM32 cryp accelerators"
28 This enables support for the CRYP (AES/DES/TDES) hw accelerator which
/kernel/linux/linux-5.10/drivers/crypto/mediatek/
Dmtk-platform.c120 static void mtk_desc_ring_link(struct mtk_cryp *cryp, u32 mask) in mtk_desc_ring_link() argument
123 writel(MTK_DFSE_THR_CTRL_EN | mask, cryp->base + DFE_THR_CTRL); in mtk_desc_ring_link()
124 writel(MTK_DFSE_THR_CTRL_EN | mask, cryp->base + DSE_THR_CTRL); in mtk_desc_ring_link()
127 static void mtk_dfe_dse_buf_setup(struct mtk_cryp *cryp, in mtk_dfe_dse_buf_setup() argument
140 cryp->base + DFE_CFG); in mtk_dfe_dse_buf_setup()
144 cryp->base + DSE_CFG); in mtk_dfe_dse_buf_setup()
148 cryp->base + PE_IN_DBUF_THRESH); in mtk_dfe_dse_buf_setup()
152 cryp->base + PE_IN_TBUF_THRESH); in mtk_dfe_dse_buf_setup()
156 cryp->base + PE_OUT_DBUF_THRESH); in mtk_dfe_dse_buf_setup()
158 writel(0, cryp->base + PE_OUT_TBUF_THRESH); in mtk_dfe_dse_buf_setup()
[all …]
Dmtk-sha.c105 struct mtk_cryp *cryp; member
124 static int mtk_sha_handle_queue(struct mtk_cryp *cryp, u8 id,
127 static inline u32 mtk_sha_read(struct mtk_cryp *cryp, u32 offset) in mtk_sha_read() argument
129 return readl_relaxed(cryp->base + offset); in mtk_sha_read()
132 static inline void mtk_sha_write(struct mtk_cryp *cryp, in mtk_sha_write() argument
135 writel_relaxed(value, cryp->base + offset); in mtk_sha_write()
155 struct mtk_cryp *cryp = NULL; in mtk_sha_find_dev() local
159 if (!tctx->cryp) { in mtk_sha_find_dev()
161 cryp = tmp; in mtk_sha_find_dev()
164 tctx->cryp = cryp; in mtk_sha_find_dev()
[all …]
Dmtk-aes.c107 struct mtk_cryp *cryp; member
153 static inline u32 mtk_aes_read(struct mtk_cryp *cryp, u32 offset) in mtk_aes_read() argument
155 return readl_relaxed(cryp->base + offset); in mtk_aes_read()
158 static inline void mtk_aes_write(struct mtk_cryp *cryp, in mtk_aes_write() argument
161 writel_relaxed(value, cryp->base + offset); in mtk_aes_write()
166 struct mtk_cryp *cryp = NULL; in mtk_aes_find_dev() local
170 if (!ctx->cryp) { in mtk_aes_find_dev()
172 cryp = tmp; in mtk_aes_find_dev()
175 ctx->cryp = cryp; in mtk_aes_find_dev()
177 cryp = ctx->cryp; in mtk_aes_find_dev()
[all …]
Dmtk-platform.h122 typedef int (*mtk_aes_fn)(struct mtk_cryp *cryp, struct mtk_aes_rec *aes);
126 * @cryp: pointer to Cryptographic device
146 struct mtk_cryp *cryp; member
171 * @cryp: pointer to Cryptographic device
183 struct mtk_cryp *cryp; member
226 int mtk_cipher_alg_register(struct mtk_cryp *cryp);
227 void mtk_cipher_alg_release(struct mtk_cryp *cryp);
228 int mtk_hash_alg_register(struct mtk_cryp *cryp);
229 void mtk_hash_alg_release(struct mtk_cryp *cryp);
/kernel/linux/linux-4.19/drivers/crypto/mediatek/
Dmtk-platform.c124 static void mtk_desc_ring_link(struct mtk_cryp *cryp, u32 mask) in mtk_desc_ring_link() argument
127 writel(MTK_DFSE_THR_CTRL_EN | mask, cryp->base + DFE_THR_CTRL); in mtk_desc_ring_link()
128 writel(MTK_DFSE_THR_CTRL_EN | mask, cryp->base + DSE_THR_CTRL); in mtk_desc_ring_link()
131 static void mtk_dfe_dse_buf_setup(struct mtk_cryp *cryp, in mtk_dfe_dse_buf_setup() argument
144 cryp->base + DFE_CFG); in mtk_dfe_dse_buf_setup()
148 cryp->base + DSE_CFG); in mtk_dfe_dse_buf_setup()
152 cryp->base + PE_IN_DBUF_THRESH); in mtk_dfe_dse_buf_setup()
156 cryp->base + PE_IN_TBUF_THRESH); in mtk_dfe_dse_buf_setup()
160 cryp->base + PE_OUT_DBUF_THRESH); in mtk_dfe_dse_buf_setup()
162 writel(0, cryp->base + PE_OUT_TBUF_THRESH); in mtk_dfe_dse_buf_setup()
[all …]
Dmtk-aes.c105 struct mtk_cryp *cryp; member
152 static inline u32 mtk_aes_read(struct mtk_cryp *cryp, u32 offset) in mtk_aes_read() argument
154 return readl_relaxed(cryp->base + offset); in mtk_aes_read()
157 static inline void mtk_aes_write(struct mtk_cryp *cryp, in mtk_aes_write() argument
160 writel_relaxed(value, cryp->base + offset); in mtk_aes_write()
165 struct mtk_cryp *cryp = NULL; in mtk_aes_find_dev() local
169 if (!ctx->cryp) { in mtk_aes_find_dev()
171 cryp = tmp; in mtk_aes_find_dev()
174 ctx->cryp = cryp; in mtk_aes_find_dev()
176 cryp = ctx->cryp; in mtk_aes_find_dev()
[all …]
Dmtk-sha.c108 struct mtk_cryp *cryp; member
127 static int mtk_sha_handle_queue(struct mtk_cryp *cryp, u8 id,
130 static inline u32 mtk_sha_read(struct mtk_cryp *cryp, u32 offset) in mtk_sha_read() argument
132 return readl_relaxed(cryp->base + offset); in mtk_sha_read()
135 static inline void mtk_sha_write(struct mtk_cryp *cryp, in mtk_sha_write() argument
138 writel_relaxed(value, cryp->base + offset); in mtk_sha_write()
158 struct mtk_cryp *cryp = NULL; in mtk_sha_find_dev() local
162 if (!tctx->cryp) { in mtk_sha_find_dev()
164 cryp = tmp; in mtk_sha_find_dev()
167 tctx->cryp = cryp; in mtk_sha_find_dev()
[all …]
Dmtk-platform.h126 typedef int (*mtk_aes_fn)(struct mtk_cryp *cryp, struct mtk_aes_rec *aes);
130 * @cryp: pointer to Cryptographic device
150 struct mtk_cryp *cryp; member
175 * @cryp: pointer to Cryptographic device
187 struct mtk_cryp *cryp; member
230 int mtk_cipher_alg_register(struct mtk_cryp *cryp);
231 void mtk_cipher_alg_release(struct mtk_cryp *cryp);
232 int mtk_hash_alg_register(struct mtk_cryp *cryp);
233 void mtk_hash_alg_release(struct mtk_cryp *cryp);
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/crypto/
Dst,stm32-cryp.txt1 * STMicroelectronics STM32 CRYP
4 - compatible: Should be "st,stm32f756-cryp".
6 - clocks: The input clock of the CRYP instance
7 - interrupts: The CRYP interrupt
10 - resets: The input reset of the CRYP instance
14 compatible = "st,stm32f756-cryp";
17 clocks = <&rcc 0 STM32F7_AHB2_CLOCK(CRYP)>;
18 resets = <&rcc STM32F7_AHB2_RESET(CRYP)>;
Dmediatek-crypto.txt9 - clock-names: Must contain "cryp".
23 clock-names = "cryp";
/kernel/linux/linux-4.19/drivers/crypto/ux500/cryp/
Dcryp.h21 /* CRYP enable/disable */
27 /* CRYP Start Computation enable/disable */
33 /* CRYP Init Signal enable/disable */
39 /* Cryp State enable/disable */
68 /* Cryp Encryption or Decryption */
85 * @algodir: Cryp Encryption or Decryption
87 * CRYP configuration structure to be passed to set configuration
97 * @privilege_access: Privileged cryp state enable/disable
98 * @secure_access: Secure cryp state enable/disable
107 /* Cryp status */
[all …]
Dcryp_p.h17 #include "cryp.h"
38 * CRYP specific Macros
52 * CRYP register default values
66 * CRYP Control register specific mask
111 * CRYP PCRs------PC_NAND control register
119 /* CRYP Register structure */
Dcryp_irqp.h18 * CRYP Registers - Offset mapping
73 * @periphId0 - FE0 CRYP Peripheral Identication Register
77 * @pcellId0 - FF0 CRYP PCell Identication Register
114 u32 periphId0; /* FE0 CRYP Peripheral Identication Register */
119 u32 pcellId0; /* FF0 CRYP PCell Identication Register */
Dcryp.c16 #include "cryp.h"
43 /* Check Peripheral and Pcell Id Register for CRYP */ in cryp_check()
105 * cryp_set_configuration - This routine set the cr CRYP IP
159 * cryp_configure_protection - set the protection bits in the CRYP logic.
182 * cryp_is_logic_busy - returns the busy status of the CRYP logic
192 * cryp_configure_for_dma - configures the CRYP IP for DMA operation
204 * cryp_configure_key_values - configures the key values for CRYP operations
/kernel/linux/linux-5.10/drivers/crypto/ux500/cryp/
Dcryp.h21 /* CRYP enable/disable */
27 /* CRYP Start Computation enable/disable */
33 /* CRYP Init Signal enable/disable */
39 /* Cryp State enable/disable */
68 /* Cryp Encryption or Decryption */
85 * @algodir: Cryp Encryption or Decryption
87 * CRYP configuration structure to be passed to set configuration
97 * @privilege_access: Privileged cryp state enable/disable
98 * @secure_access: Secure cryp state enable/disable
107 /* Cryp status */
[all …]
Dcryp_p.h17 #include "cryp.h"
38 * CRYP specific Macros
52 * CRYP register default values
66 * CRYP Control register specific mask
111 * CRYP PCRs------PC_NAND control register
119 /* CRYP Register structure */
Dcryp_irqp.h18 * CRYP Registers - Offset mapping
73 * @periphId0 - FE0 CRYP Peripheral Identication Register
77 * @pcellId0 - FF0 CRYP PCell Identication Register
114 u32 periphId0; /* FE0 CRYP Peripheral Identication Register */
119 u32 pcellId0; /* FF0 CRYP PCell Identication Register */
Dcryp.c16 #include "cryp.h"
43 /* Check Peripheral and Pcell Id Register for CRYP */ in cryp_check()
105 * cryp_set_configuration - This routine set the cr CRYP IP
159 * cryp_configure_protection - set the protection bits in the CRYP logic.
182 * cryp_is_logic_busy - returns the busy status of the CRYP logic
192 * cryp_configure_for_dma - configures the CRYP IP for DMA operation
204 * cryp_configure_key_values - configures the key values for CRYP operations
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/
Dst,stm32-cryp.yaml4 $id: http://devicetree.org/schemas/crypto/st,stm32-cryp.yaml#
7 title: STMicroelectronics STM32 CRYP bindings
15 - st,stm32f756-cryp
16 - st,stm32mp1-cryp
43 cryp@54001000 {
44 compatible = "st,stm32mp1-cryp";
Dmediatek-crypto.txt9 - clock-names: Must contain "cryp".
23 clock-names = "cryp";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dstm32mp15xc.dtsi9 cryp1: cryp@54001000 {
10 compatible = "st,stm32mp1-cryp";

12