Lines Matching refs:cdesc

78 				struct safexcel_command_desc *cdesc)
81 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD;
83 cdesc->control_data.token[0] = ctx->nonce;
85 memcpy(&cdesc->control_data.token[1], iv, 8);
87 cdesc->control_data.token[3] =
92 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD;
94 memcpy(&cdesc->control_data.token[0], &iv[4], 12);
96 cdesc->control_data.token[3] = *(u32 *)iv;
100 cdesc->control_data.options |= ctx->ivmask;
101 memcpy(cdesc->control_data.token, iv, ctx->blocksz);
106 struct safexcel_command_desc *cdesc,
113 ivlen = safexcel_skcipher_iv(ctx, iv, cdesc);
115 /* No space in cdesc, instruction moves to atoken */
116 cdesc->additional_cdata_size = 1;
119 /* Everything fits in cdesc */
120 token = (struct safexcel_token *)(cdesc->control_data.token + 2);
135 struct safexcel_command_desc *cdesc)
140 cdesc->control_data.token[0] = ctx->nonce;
142 memcpy(&cdesc->control_data.token[1], iv, 8);
144 cdesc->control_data.token[3] =
150 memcpy(&cdesc->control_data.token[0], iv, 12);
152 cdesc->control_data.token[3] =
157 memcpy(cdesc->control_data.token, iv, ctx->blocksz);
161 struct safexcel_command_desc *cdesc,
171 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD;
178 u8 *final_iv = (u8 *)cdesc->control_data.token;
184 cdesc->control_data.token[0] = ctx->nonce;
191 memcpy(&cdesc->control_data.token[1], iv, 8);
194 cdesc->control_data.token[3] = 0;
252 safexcel_aead_iv(ctx, iv, cdesc);
368 cdesc->additional_cdata_size = atoksize;
508 struct safexcel_command_desc *cdesc)
513 cdesc->control_data.control1 = ctx->mode;
519 cdesc->control_data.control0 =
526 cdesc->control_data.control0 =
537 cdesc->control_data.control0 =
547 cdesc->control_data.control0 |=
550 cdesc->control_data.control0 |=
553 cdesc->control_data.control0 |=
556 cdesc->control_data.control0 |=
560 cdesc->control_data.control0 =
565 cdesc->control_data.control0 =
572 cdesc->control_data.control0 |=
575 cdesc->control_data.control0 |=
580 cdesc->control_data.control0 |=
584 cdesc->control_data.control0 |=
588 cdesc->control_data.control0 |=
597 cdesc->control_data.control0 |=
600 cdesc->control_data.control0 |=
684 struct safexcel_command_desc *cdesc;
802 cdesc = safexcel_add_cdesc(priv, ring, !n_cdesc,
806 if (IS_ERR(cdesc)) {
808 ret = PTR_ERR(cdesc);
813 first_cdesc = cdesc;