Lines Matching refs:cdesc
78 struct safexcel_command_desc *cdesc) in safexcel_skcipher_iv() argument
81 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_skcipher_iv()
83 cdesc->control_data.token[0] = ctx->nonce; in safexcel_skcipher_iv()
85 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_skcipher_iv()
87 cdesc->control_data.token[3] = in safexcel_skcipher_iv()
92 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_skcipher_iv()
94 memcpy(&cdesc->control_data.token[0], &iv[4], 12); in safexcel_skcipher_iv()
96 cdesc->control_data.token[3] = *(u32 *)iv; in safexcel_skcipher_iv()
100 cdesc->control_data.options |= ctx->ivmask; in safexcel_skcipher_iv()
101 memcpy(cdesc->control_data.token, iv, ctx->blocksz); in safexcel_skcipher_iv()
106 struct safexcel_command_desc *cdesc, in safexcel_skcipher_token() argument
113 ivlen = safexcel_skcipher_iv(ctx, iv, cdesc); in safexcel_skcipher_token()
116 cdesc->additional_cdata_size = 1; in safexcel_skcipher_token()
120 token = (struct safexcel_token *)(cdesc->control_data.token + 2); in safexcel_skcipher_token()
135 struct safexcel_command_desc *cdesc) in safexcel_aead_iv() argument
140 cdesc->control_data.token[0] = ctx->nonce; in safexcel_aead_iv()
142 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_aead_iv()
144 cdesc->control_data.token[3] = in safexcel_aead_iv()
150 memcpy(&cdesc->control_data.token[0], iv, 12); in safexcel_aead_iv()
152 cdesc->control_data.token[3] = in safexcel_aead_iv()
157 memcpy(cdesc->control_data.token, iv, ctx->blocksz); in safexcel_aead_iv()
161 struct safexcel_command_desc *cdesc, in safexcel_aead_token() argument
171 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_aead_token()
178 u8 *final_iv = (u8 *)cdesc->control_data.token; in safexcel_aead_token()
184 cdesc->control_data.token[0] = ctx->nonce; in safexcel_aead_token()
191 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_aead_token()
194 cdesc->control_data.token[3] = 0; in safexcel_aead_token()
252 safexcel_aead_iv(ctx, iv, cdesc); in safexcel_aead_token()
368 cdesc->additional_cdata_size = atoksize; in safexcel_aead_token()
508 struct safexcel_command_desc *cdesc) in safexcel_context_control() argument
513 cdesc->control_data.control1 = ctx->mode; in safexcel_context_control()
519 cdesc->control_data.control0 = in safexcel_context_control()
526 cdesc->control_data.control0 = in safexcel_context_control()
537 cdesc->control_data.control0 = in safexcel_context_control()
547 cdesc->control_data.control0 |= in safexcel_context_control()
550 cdesc->control_data.control0 |= in safexcel_context_control()
553 cdesc->control_data.control0 |= in safexcel_context_control()
556 cdesc->control_data.control0 |= in safexcel_context_control()
560 cdesc->control_data.control0 = in safexcel_context_control()
565 cdesc->control_data.control0 = in safexcel_context_control()
572 cdesc->control_data.control0 |= in safexcel_context_control()
575 cdesc->control_data.control0 |= in safexcel_context_control()
580 cdesc->control_data.control0 |= in safexcel_context_control()
584 cdesc->control_data.control0 |= in safexcel_context_control()
588 cdesc->control_data.control0 |= in safexcel_context_control()
597 cdesc->control_data.control0 |= in safexcel_context_control()
600 cdesc->control_data.control0 |= in safexcel_context_control()
678 struct safexcel_command_desc *cdesc; in safexcel_send_req() local
787 cdesc = safexcel_add_cdesc(priv, ring, !n_cdesc, in safexcel_send_req()
791 if (IS_ERR(cdesc)) { in safexcel_send_req()
793 ret = PTR_ERR(cdesc); in safexcel_send_req()
798 first_cdesc = cdesc; in safexcel_send_req()