Lines Matching +full:inline +full:- +full:crypto +full:- +full:engine
1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Copyright 2008-2011 Freescale Semiconductor, Inc.
14 #include <crypto/engine.h>
16 /* Currently comes from Kconfig param as a ^2 (driver-required) */
20 * Maximum size for crypto-engine software queue based on Job Ring
21 * size (JOBR_DEPTH) and a THRESHOLD (reserved for the non-crypto-API
22 * requests that are not passed through crypto-engine)
25 #define CRYPTO_ENGINE_MAX_QLEN (JOBR_DEPTH - THRESHOLD)
39 * Storage for tracking each in-process entry moving across a ring
60 /* Private sub-storage for a single JobR */
80 * DMA-safe */
83 void *outring; /* Base of output ring, DMA-safe */
84 struct crypto_engine *engine; member
97 * Driver-private storage for a single CAAM block instance
100 /* Physical-presence section */
111 * or from register-based version detection code
117 u8 optee_en; /* Nonzero if OP-TEE f/w is active */
151 static inline int caam_algapi_init(struct device *dev) in caam_algapi_init()
156 static inline void caam_algapi_exit(void) in caam_algapi_exit()
169 static inline int caam_algapi_hash_init(struct device *dev) in caam_algapi_hash_init()
174 static inline void caam_algapi_hash_exit(void) in caam_algapi_hash_exit()
187 static inline int caam_pkc_init(struct device *dev) in caam_pkc_init()
192 static inline void caam_pkc_exit(void) in caam_pkc_exit()
205 static inline int caam_rng_init(struct device *dev) in caam_rng_init()
210 static inline void caam_rng_exit(struct device *dev) {} in caam_rng_exit()
221 static inline int caam_prng_register(struct device *dev) in caam_prng_register()
226 static inline void caam_prng_unregister(void *data) {} in caam_prng_unregister()
236 static inline int caam_qi_algapi_init(struct device *dev) in caam_qi_algapi_init()
241 static inline void caam_qi_algapi_exit(void) in caam_qi_algapi_exit()
247 static inline u64 caam_get_dma_mask(struct device *dev) in caam_get_dma_mask()
249 struct device_node *nprop = dev->of_node; in caam_get_dma_mask()
257 if (of_device_is_compatible(nprop, "fsl,sec-v5.0-job-ring") || in caam_get_dma_mask()
258 of_device_is_compatible(nprop, "fsl,sec-v5.0")) in caam_get_dma_mask()