Lines Matching refs:desc
28 void cnstr_shdsc_ahash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_ahash() argument
33 init_sh_desc(desc, HDR_SHARE_SERIAL); in cnstr_shdsc_ahash()
40 skip_key_load = append_jump(desc, JUMP_JSL | JUMP_TEST_ALL | in cnstr_shdsc_ahash()
44 append_key_as_imm(desc, adata->key_virt, in cnstr_shdsc_ahash()
49 append_proto_dkp(desc, adata); in cnstr_shdsc_ahash()
51 set_jump_tgt_here(desc, skip_key_load); in cnstr_shdsc_ahash()
58 append_seq_load(desc, ctx_len, LDST_CLASS_2_CCB | in cnstr_shdsc_ahash()
62 append_operation(desc, op | state | OP_ALG_ENCRYPT); in cnstr_shdsc_ahash()
68 append_math_add(desc, VARSEQINLEN, SEQINLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_ahash()
70 append_seq_fifo_load(desc, 0, FIFOLD_CLASS_CLASS2 | FIFOLD_TYPE_LAST2 | in cnstr_shdsc_ahash()
73 append_seq_store(desc, digestsize, LDST_CLASS_2_CCB | in cnstr_shdsc_ahash()
87 void cnstr_shdsc_sk_hash(u32 * const desc, struct alginfo *adata, u32 state, in cnstr_shdsc_sk_hash() argument
92 init_sh_desc(desc, HDR_SHARE_SERIAL | HDR_SAVECTX); in cnstr_shdsc_sk_hash()
95 skip_key_load = append_jump(desc, JUMP_TEST_ALL | JUMP_COND_SHRD); in cnstr_shdsc_sk_hash()
98 append_key_as_imm(desc, adata->key_virt, adata->keylen, in cnstr_shdsc_sk_hash()
103 append_key(desc, adata->key_dma, adata->keylen, in cnstr_shdsc_sk_hash()
106 append_key_as_imm(desc, adata->key_virt, adata->keylen, in cnstr_shdsc_sk_hash()
110 append_seq_load(desc, ctx_len, LDST_CLASS_1_CCB | in cnstr_shdsc_sk_hash()
114 set_jump_tgt_here(desc, skip_key_load); in cnstr_shdsc_sk_hash()
117 append_operation(desc, adata->algtype | state | OP_ALG_ENCRYPT); in cnstr_shdsc_sk_hash()
123 append_math_add(desc, VARSEQINLEN, SEQINLEN, REG0, CAAM_CMD_SZ); in cnstr_shdsc_sk_hash()
126 append_seq_fifo_load(desc, 0, FIFOLD_CLASS_CLASS1 | FIFOLD_TYPE_LAST1 | in cnstr_shdsc_sk_hash()
134 append_seq_store(desc, digestsize, LDST_CLASS_1_CCB | in cnstr_shdsc_sk_hash()
138 append_fifo_store(desc, adata->key_dma, adata->keylen, in cnstr_shdsc_sk_hash()