Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/crypto/stm32/
H A Dstm32-cryp.c116 struct stm32_cryp *cryp; member
167 static inline bool is_aes(struct stm32_cryp *cryp) in is_aes() argument
169 return cryp->flags & FLG_AES; in is_aes()
172 static inline bool is_des(struct stm32_cryp *cryp) in is_des() argument
174 return cryp->flags & FLG_DES; in is_des()
177 static inline bool is_tdes(struct stm32_cryp *cryp) in is_tdes() argument
179 return cryp->flags & FLG_TDES; in is_tdes()
182 static inline bool is_ecb(struct stm32_cryp *cryp) in is_ecb() argument
184 return cryp->flags & FLG_ECB; in is_ecb()
187 static inline bool is_cbc(struct stm32_cryp *cryp) in is_cbc() argument
[all …]
H A DMakefile4 obj-$(CONFIG_CRYPTO_DEV_STM32_CRYP) += stm32-cryp.o
H A DKconfig25 tristate "Support for STM32 cryp accelerators"
/OK3568_Linux_fs/kernel/drivers/crypto/mediatek/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dmtk-platform.h122 typedef int (*mtk_aes_fn)(struct mtk_cryp *cryp, struct mtk_aes_rec *aes);
146 struct mtk_cryp *cryp; member
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);
/OK3568_Linux_fs/external/security/librkcrypto/src/
H A Drkcrypto_core.c484 struct crypt_fd_op cryp; in rk_cipher_crypt() local
498 memset(&cryp, 0, sizeof(cryp)); in rk_cipher_crypt()
501 cryp.ses = handle; in rk_cipher_crypt()
502 cryp.len = len; in rk_cipher_crypt()
503 cryp.src_fd = in_fd; in rk_cipher_crypt()
504 cryp.dst_fd = out_fd; in rk_cipher_crypt()
505 cryp.iv = (void *)cipher_cfg->iv; in rk_cipher_crypt()
506 cryp.op = rkop_to_cop(cipher_cfg->operation); in rk_cipher_crypt()
507 cryp.flags = COP_FLAG_WRITE_IV; in rk_cipher_crypt()
509 res = xioctl(cryptodev_fd, RIOCCRYPT_FD, &cryp); in rk_cipher_crypt()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dstm32mp15xc.dtsi9 cryp1: cryp@54001000 {
10 compatible = "st,stm32mp1-cryp";
H A Dste-dbx5x0.dtsi1127 cryp@a03cb000 {
1128 compatible = "stericsson,ux500-cryp";
H A Dmt7623.dtsi960 clock-names = "cryp";
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/crypto/
H A Dmediatek-crypto.txt9 - clock-names: Must contain "cryp".
23 clock-names = "cryp";
/OK3568_Linux_fs/kernel/drivers/crypto/ux500/
H A DMakefile8 obj-$(CONFIG_CRYPTO_DEV_UX500_CRYP) += cryp/
/OK3568_Linux_fs/kernel/drivers/crypto/ux500/cryp/
H A DMakefile10 ux500_cryp-objs := cryp.o cryp_irq.o cryp_core.o
/OK3568_Linux_fs/external/xserver/m4/
H A Dac_define_dir.m42 # http://autoconf-archive.cryp.to/ac_define_dir.html
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/nss/
H A Dnss_3.74.bb34 file://0001-freebl-add-a-configure-option-to-disable-ARM-HW-cryp.patch \