Lines Matching +full:max +full:- +full:bits +full:- +full:per +full:- +full:word
1 /* SPDX-License-Identifier: GPL-2.0-only */
19 #include <linux/dma-direction.h>
27 #include "sp-dev.h"
63 /* ------------------------ CCP Version 5 Specifics ------------------------ */
103 #define QUEUE_SIZE_VAL ((ffs(COMMANDS_PER_QUEUE) - 2) & \
105 #define Q_PTR_MASK (2 << (QUEUE_SIZE_VAL + 5) - 1)
125 /* ------------------------ CCP Version 3 Specifics ------------------------ */
147 /* XTS-AES Related Values */
156 /* Pass-Through Related Values */
174 #define KSB_COUNT (KSB_END - KSB_START + 1)
179 /* ------------------------ General CCP Defines ------------------------ */
209 #define CCP_ECC_MODULUS_BYTES 48 /* 384-bits */
272 /* Aligned queue start address (per requirement) */
281 /* Per-queue reserved storage block(s) */
287 /* Private LSB that is assigned to this queue, or -1 if none.
328 /* Per-queue Statistics */
396 /* A counter used to generate job-ids for cmds submitted to the CCP
559 return lower_32_bits(info->address + info->offset); in ccp_addr_lo()
564 return upper_32_bits(info->address + info->offset) & 0x0000ffff; in ccp_addr_hi()
569 * 8 32-bit words:
570 * word 0: function; engine; control bits
571 * word 1: length of source data
572 * word 2: low 32 bits of source pointer
573 * word 3: upper 16 bits of source pointer; source memory type
574 * word 4: low 32 bits of destination pointer
575 * word 5: upper 16 bits of destination pointer; destination memory type
576 * word 6: low 32 bits of key pointer
577 * word 7: upper 16 bits of key pointer; key memory type
600 u32 dst_lo; /* NON-SHA */
639 int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait);
651 /* Structure for computation functions that are device-specific */