Home
last modified time | relevance | path

Searched refs:CAAM_CMD_SZ (Results 1 – 14 of 14) sorted by relevance

/linux-6.6.21/drivers/crypto/caam/
Dcaamalg_desc.h12 #define DESC_AEAD_BASE (4 * CAAM_CMD_SZ)
13 #define DESC_AEAD_ENC_LEN (DESC_AEAD_BASE + 11 * CAAM_CMD_SZ)
14 #define DESC_AEAD_DEC_LEN (DESC_AEAD_BASE + 15 * CAAM_CMD_SZ)
15 #define DESC_AEAD_GIVENC_LEN (DESC_AEAD_ENC_LEN + 8 * CAAM_CMD_SZ)
16 #define DESC_QI_AEAD_ENC_LEN (DESC_AEAD_ENC_LEN + 3 * CAAM_CMD_SZ)
17 #define DESC_QI_AEAD_DEC_LEN (DESC_AEAD_DEC_LEN + 3 * CAAM_CMD_SZ)
18 #define DESC_QI_AEAD_GIVENC_LEN (DESC_AEAD_GIVENC_LEN + 3 * CAAM_CMD_SZ)
21 #define DESC_AEAD_CTR_RFC3686_LEN (4 * CAAM_CMD_SZ)
23 #define DESC_AEAD_NULL_BASE (3 * CAAM_CMD_SZ)
24 #define DESC_AEAD_NULL_ENC_LEN (DESC_AEAD_NULL_BASE + 11 * CAAM_CMD_SZ)
[all …]
Dcaamalg_desc.c81 append_math_sub(desc, REG3, SEQINLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_encap()
84 append_math_add(desc, VARSEQINLEN, ZERO, REG3, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_encap()
85 append_math_add(desc, VARSEQOUTLEN, ZERO, REG3, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_encap()
164 append_math_sub(desc, REG2, SEQOUTLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_decap()
167 append_math_add(desc, VARSEQINLEN, ZERO, REG2, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_decap()
168 append_math_add(desc, VARSEQOUTLEN, ZERO, REG2, CAAM_CMD_SZ); in cnstr_shdsc_aead_null_decap()
322 append_math_add(desc, VARSEQINLEN, ZERO, REG3, CAAM_CMD_SZ); in cnstr_shdsc_aead_encap()
323 append_math_add(desc, VARSEQOUTLEN, ZERO, REG3, CAAM_CMD_SZ); in cnstr_shdsc_aead_encap()
325 append_math_add(desc, VARSEQINLEN, ZERO, DPOVRD, CAAM_CMD_SZ); in cnstr_shdsc_aead_encap()
326 append_math_add(desc, VARSEQOUTLEN, ZERO, DPOVRD, CAAM_CMD_SZ); in cnstr_shdsc_aead_encap()
[all …]
Dcaamhash_desc.h12 #define DESC_AHASH_BASE (3 * CAAM_CMD_SZ)
13 #define DESC_AHASH_UPDATE_LEN (6 * CAAM_CMD_SZ)
14 #define DESC_AHASH_UPDATE_FIRST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ)
15 #define DESC_AHASH_FINAL_LEN (DESC_AHASH_BASE + 5 * CAAM_CMD_SZ)
16 #define DESC_AHASH_DIGEST_LEN (DESC_AHASH_BASE + 4 * CAAM_CMD_SZ)
Ddesc_constr.h16 #define CAAM_CMD_SZ sizeof(u32) macro
20 #define CAAM_DESC_BYTES_MAX (CAAM_CMD_SZ * MAX_CAAM_DESCSIZE)
21 #define __DESC_JOB_IO_LEN(n) (CAAM_CMD_SZ * 5 + (n) * 3)
51 #define MAX_SDLEN ((CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN_MIN) / CAAM_CMD_SZ)
91 return desc_len(desc) * CAAM_CMD_SZ; in desc_bytes()
118 u32 pdb_len = (pdb_bytes + CAAM_CMD_SZ - 1) / CAAM_CMD_SZ; in init_sh_desc_pdb()
132 u32 pdb_len = (pdb_bytes + CAAM_CMD_SZ - 1) / CAAM_CMD_SZ; in init_job_desc_pdb()
150 CAAM_PTR_SZ / CAAM_CMD_SZ); in append_ptr()
171 (len + CAAM_CMD_SZ - 1) / CAAM_CMD_SZ); in append_data()
440 APPEND_MATH(op, desc, dest, src_0, src_1, CAAM_CMD_SZ); \
[all …]
Dblob_gen.c23 (CAAM_CMD_SZ + \
25 CAAM_CMD_SZ + CAAM_BLOB_KEYMOD_LENGTH + \
27 CAAM_CMD_SZ + CAAM_PTR_SZ_MAX + \
29 CAAM_CMD_SZ + CAAM_PTR_SZ_MAX + \
31 CAAM_CMD_SZ)
Dcaamprng.c23 #define CAAM_PRNG_MAX_DESC_LEN (CAAM_CMD_SZ + \
24 CAAM_CMD_SZ + \
25 CAAM_CMD_SZ + CAAM_PTR_SZ_MAX)
Dcaamhash_desc.c68 append_math_add(desc, VARSEQINLEN, SEQINLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_ahash()
123 append_math_add(desc, VARSEQINLEN, SEQINLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_sk_hash()
Dcaamrng.c32 #define CAAM_RNG_DESC_LEN (CAAM_CMD_SZ + \
33 CAAM_CMD_SZ + \
34 CAAM_CMD_SZ + CAAM_PTR_SZ_MAX)
Dkey_gen.c67 desc = kmalloc(CAAM_CMD_SZ * 6 + CAAM_PTR_SZ * 2, GFP_KERNEL); in gen_split_key()
Dctrl.c209 desc = kmalloc(CAAM_CMD_SZ * 3, GFP_KERNEL); in deinstantiate_rng()
286 desc = kmalloc(CAAM_CMD_SZ * 7, GFP_KERNEL); in instantiate_rng()
296 memset(desc, 0x00, CAAM_CMD_SZ * 7); in instantiate_rng()
Dcaampkc.c26 #define DESC_RSA_PUB_LEN (2 * CAAM_CMD_SZ + SIZEOF_RSA_PUB_PDB)
27 #define DESC_RSA_PRIV_F1_LEN (2 * CAAM_CMD_SZ + \
29 #define DESC_RSA_PRIV_F2_LEN (2 * CAAM_CMD_SZ + \
31 #define DESC_RSA_PRIV_F3_LEN (2 * CAAM_CMD_SZ + \
Dcaamalg.c81 #define AEAD_DESC_JOB_IO_LEN (DESC_JOB_IO_LEN + CAAM_CMD_SZ * 2)
83 CAAM_CMD_SZ * 4)
85 CAAM_CMD_SZ * 5)
87 #define CHACHAPOLY_DESC_JOB_IO_LEN (AEAD_DESC_JOB_IO_LEN + CAAM_CMD_SZ * 6)
90 #define DESC_MAX_USED_LEN (DESC_MAX_USED_BYTES / CAAM_CMD_SZ)
1846 edesc = skcipher_edesc_alloc(req, DESC_JOB_IO_LEN * CAAM_CMD_SZ); in skcipher_crypt()
Dcaamhash.c86 #define DESC_HASH_MAX_USED_LEN (DESC_HASH_MAX_USED_BYTES / CAAM_CMD_SZ)
373 desc = kmalloc(CAAM_CMD_SZ * 8 + CAAM_PTR_SZ * 2, GFP_KERNEL); in hash_digest_key()
Dcaamalg_qi.c39 #define DESC_MAX_USED_LEN (DESC_MAX_USED_BYTES / CAAM_CMD_SZ)