Lines Matching +full:0 +full:- +full:job +full:- +full:ring

1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Copyright 2008-2011 Freescale Semiconductor, Inc.
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)
33 #define JOBR_INTC 0
34 #define JOBR_INTC_TIME_THLD 0
35 #define JOBR_INTC_COUNT_THLD 0
39 * Storage for tracking each in-process entry moving across a ring
40 * Each entry on an output ring needs one of these
44 void *cbkarg; /* Argument per ring entry */
60 /* Private sub-storage for a single JobR */
62 struct list_head list_node; /* Job Ring device list */
74 /* Job ring info */
75 struct caam_jrentry_info *entinfo; /* Alloc'ed 1 per ring entry */
76 spinlock_t inplock ____cacheline_aligned; /* Input ring index lock */
77 u32 inpring_avail; /* Number of free entries in input ring */
78 int head; /* entinfo (s/w ring) head index */
79 void *inpring; /* Base of input ring, alloc
80 * DMA-safe */
82 int tail; /* entinfo (s/w ring) tail index */
83 void *outring; /* Base of output ring, DMA-safe */
97 * Driver-private storage for a single CAAM block instance
100 /* Physical-presence section */
111 * or from register-based version detection code
113 u8 total_jobrs; /* Total Job Rings in device */
117 u8 optee_en; /* Nonzero if OP-TEE f/w is active */
153 return 0; in caam_algapi_init()
171 return 0; in caam_algapi_hash_init()
189 return 0; in caam_pkc_init()
207 return 0; in caam_rng_init()
223 return 0; in caam_prng_register()
238 return 0; in caam_qi_algapi_init()
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()