Lines Matching +full:sha +full:- +full:1
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)
179 /* ------------------------ General CCP Defines ------------------------ */
190 #define CCP_AES_KEY_SB_COUNT 1
191 #define CCP_AES_CTX_SB_COUNT 1
193 #define CCP_XTS_AES_KEY_SB_COUNT 1
195 #define CCP_XTS_AES_CTX_SB_COUNT 1
197 #define CCP_DES3_KEY_SB_COUNT 1
198 #define CCP_DES3_CTX_SB_COUNT 1
200 #define CCP_SHA_SB_COUNT 1
207 #define CCP_PASSTHRU_SB_COUNT 1
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:
571 * word 1: length of source data
580 unsigned int soc:1;
581 unsigned int ioc:1;
582 unsigned int rsvd1:1;
583 unsigned int init:1;
584 unsigned int eom:1; /* AES/SHA only */
587 unsigned int prot:1;
596 unsigned int fixed:1;
600 u32 dst_lo; /* NON-SHA */
601 u32 sha_len_lo; /* SHA */
609 unsigned int fixed:1;
651 /* Structure for computation functions that are device-specific */
656 int (*sha)(struct ccp_op *); member