Lines Matching refs:cdesc
79 struct safexcel_command_desc *cdesc) in safexcel_skcipher_iv() argument
82 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_skcipher_iv()
84 cdesc->control_data.token[0] = ctx->nonce; in safexcel_skcipher_iv()
86 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_skcipher_iv()
88 cdesc->control_data.token[3] = in safexcel_skcipher_iv()
93 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_skcipher_iv()
95 memcpy(&cdesc->control_data.token[0], &iv[4], 12); in safexcel_skcipher_iv()
97 cdesc->control_data.token[3] = *(u32 *)iv; in safexcel_skcipher_iv()
101 cdesc->control_data.options |= ctx->ivmask; in safexcel_skcipher_iv()
102 memcpy(cdesc->control_data.token, iv, ctx->blocksz); in safexcel_skcipher_iv()
107 struct safexcel_command_desc *cdesc, in safexcel_skcipher_token() argument
114 ivlen = safexcel_skcipher_iv(ctx, iv, cdesc); in safexcel_skcipher_token()
117 cdesc->additional_cdata_size = 1; in safexcel_skcipher_token()
121 token = (struct safexcel_token *)(cdesc->control_data.token + 2); in safexcel_skcipher_token()
136 struct safexcel_command_desc *cdesc) in safexcel_aead_iv() argument
141 cdesc->control_data.token[0] = ctx->nonce; in safexcel_aead_iv()
143 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_aead_iv()
145 cdesc->control_data.token[3] = in safexcel_aead_iv()
151 memcpy(&cdesc->control_data.token[0], iv, 12); in safexcel_aead_iv()
153 cdesc->control_data.token[3] = in safexcel_aead_iv()
158 memcpy(cdesc->control_data.token, iv, ctx->blocksz); in safexcel_aead_iv()
162 struct safexcel_command_desc *cdesc, in safexcel_aead_token() argument
172 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_aead_token()
179 u8 *final_iv = (u8 *)cdesc->control_data.token; in safexcel_aead_token()
185 cdesc->control_data.token[0] = ctx->nonce; in safexcel_aead_token()
192 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_aead_token()
195 cdesc->control_data.token[3] = 0; in safexcel_aead_token()
253 safexcel_aead_iv(ctx, iv, cdesc); in safexcel_aead_token()
369 cdesc->additional_cdata_size = atoksize; in safexcel_aead_token()
509 struct safexcel_command_desc *cdesc) in safexcel_context_control() argument
514 cdesc->control_data.control1 = ctx->mode; in safexcel_context_control()
520 cdesc->control_data.control0 = in safexcel_context_control()
527 cdesc->control_data.control0 = in safexcel_context_control()
538 cdesc->control_data.control0 = in safexcel_context_control()
548 cdesc->control_data.control0 |= in safexcel_context_control()
551 cdesc->control_data.control0 |= in safexcel_context_control()
554 cdesc->control_data.control0 |= in safexcel_context_control()
557 cdesc->control_data.control0 |= in safexcel_context_control()
561 cdesc->control_data.control0 = in safexcel_context_control()
566 cdesc->control_data.control0 = in safexcel_context_control()
573 cdesc->control_data.control0 |= in safexcel_context_control()
576 cdesc->control_data.control0 |= in safexcel_context_control()
581 cdesc->control_data.control0 |= in safexcel_context_control()
585 cdesc->control_data.control0 |= in safexcel_context_control()
589 cdesc->control_data.control0 |= in safexcel_context_control()
598 cdesc->control_data.control0 |= in safexcel_context_control()
601 cdesc->control_data.control0 |= in safexcel_context_control()
679 struct safexcel_command_desc *cdesc; in safexcel_send_req() local
788 cdesc = safexcel_add_cdesc(priv, ring, !n_cdesc, in safexcel_send_req()
792 if (IS_ERR(cdesc)) { in safexcel_send_req()
794 ret = PTR_ERR(cdesc); in safexcel_send_req()
799 first_cdesc = cdesc; in safexcel_send_req()