Lines Matching refs:cdesc

69 				  struct safexcel_command_desc *cdesc)  in safexcel_cipher_token()  argument
74 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token()
77 cdesc->control_data.token[0] = ctx->nonce; in safexcel_cipher_token()
79 memcpy(&cdesc->control_data.token[1], iv, 8); in safexcel_cipher_token()
81 cdesc->control_data.token[3] = cpu_to_be32(1); in safexcel_cipher_token()
85 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token()
88 memcpy(&cdesc->control_data.token[0], iv, 12); in safexcel_cipher_token()
90 cdesc->control_data.token[3] = cpu_to_be32(1); in safexcel_cipher_token()
94 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token()
97 memcpy(&cdesc->control_data.token[0], iv, 15 - iv[0]); in safexcel_cipher_token()
99 memset((u8 *)&cdesc->control_data.token[0] + 15 - iv[0], in safexcel_cipher_token()
109 cdesc->control_data.options |= EIP197_OPTION_2_TOKEN_IV_CMD; in safexcel_cipher_token()
113 cdesc->control_data.options |= EIP197_OPTION_2_TOKEN_IV_CMD; in safexcel_cipher_token()
117 cdesc->control_data.options |= EIP197_OPTION_4_TOKEN_IV_CMD; in safexcel_cipher_token()
120 memcpy(cdesc->control_data.token, iv, block_sz); in safexcel_cipher_token()
125 struct safexcel_command_desc *cdesc, in safexcel_skcipher_token() argument
130 safexcel_cipher_token(ctx, iv, cdesc); in safexcel_skcipher_token()
133 token = (struct safexcel_token *)(cdesc->control_data.token + 4); in safexcel_skcipher_token()
145 struct safexcel_command_desc *cdesc, in safexcel_aead_token() argument
151 safexcel_cipher_token(ctx, iv, cdesc); in safexcel_aead_token()
155 token = (struct safexcel_token *)(cdesc->control_data.token + in safexcel_aead_token()
168 token = (struct safexcel_token *)(cdesc->control_data.token + in safexcel_aead_token()
410 struct safexcel_command_desc *cdesc) in safexcel_context_control() argument
415 cdesc->control_data.control1 = ctx->mode; in safexcel_context_control()
421 cdesc->control_data.control0 = in safexcel_context_control()
428 cdesc->control_data.control0 = in safexcel_context_control()
435 cdesc->control_data.control0 |= in safexcel_context_control()
441 cdesc->control_data.control0 |= in safexcel_context_control()
447 cdesc->control_data.control0 = in safexcel_context_control()
452 cdesc->control_data.control0 = in safexcel_context_control()
459 cdesc->control_data.control0 |= in safexcel_context_control()
462 cdesc->control_data.control0 |= in safexcel_context_control()
467 cdesc->control_data.control0 |= in safexcel_context_control()
471 cdesc->control_data.control0 |= in safexcel_context_control()
475 cdesc->control_data.control0 |= in safexcel_context_control()
559 struct safexcel_command_desc *cdesc; in safexcel_send_req() local
652 cdesc = safexcel_add_cdesc(priv, ring, !n_cdesc, in safexcel_send_req()
656 if (IS_ERR(cdesc)) { in safexcel_send_req()
658 ret = PTR_ERR(cdesc); in safexcel_send_req()
664 first_cdesc = cdesc; in safexcel_send_req()