Lines Matching +full:sha +full:- +full:256
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 */
150 /* SHA Related Values */
156 /* Pass-Through Related Values */
174 #define KSB_COUNT (KSB_END - KSB_START + 1)
175 #define CCP_SB_BITS 256
179 /* ------------------------ General CCP Defines ------------------------ */
205 #define CCP_PASSTHRU_BLOCKSIZE 256
209 #define CCP_ECC_MODULUS_BYTES 48 /* 384-bits */
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
550 struct ccp_sha_op sha; member
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:
584 unsigned int eom:1; /* AES/SHA only */
600 u32 dst_lo; /* NON-SHA */
601 u32 sha_len_lo; /* SHA */
651 /* Structure for computation functions that are device-specific */
656 int (*sha)(struct ccp_op *); member