Lines Matching refs:atoken
107 struct safexcel_token *atoken, in safexcel_skcipher_token() argument
117 token = atoken; in safexcel_skcipher_token()
162 struct safexcel_token *atoken, in safexcel_aead_token() argument
179 u8 *cbcmaciv = (u8 *)&atoken[1]; in safexcel_aead_token()
180 __le32 *aadlen = (__le32 *)&atoken[5]; in safexcel_aead_token()
212 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
213 atoken->packet_length = AES_BLOCK_SIZE + in safexcel_aead_token()
215 atoken->stat = 0; in safexcel_aead_token()
216 atoken->instructions = EIP197_TOKEN_INS_ORIGIN_TOKEN | in safexcel_aead_token()
222 atoken += 6; in safexcel_aead_token()
225 atoken += 5; in safexcel_aead_token()
230 aadref = atoken; in safexcel_aead_token()
231 atoken->opcode = EIP197_TOKEN_OPCODE_DIRECTION; in safexcel_aead_token()
232 atoken->packet_length = assocadj; in safexcel_aead_token()
233 atoken->stat = 0; in safexcel_aead_token()
234 atoken->instructions = EIP197_TOKEN_INS_TYPE_HASH; in safexcel_aead_token()
235 atoken++; in safexcel_aead_token()
238 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
240 atoken->packet_length = assocadj && aadalign ? in safexcel_aead_token()
244 atoken->stat = 0; in safexcel_aead_token()
245 atoken->instructions = EIP197_TOKEN_INS_TYPE_HASH; in safexcel_aead_token()
247 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH; in safexcel_aead_token()
248 atoken->instructions = EIP197_TOKEN_INS_LAST | in safexcel_aead_token()
255 aadref = atoken; in safexcel_aead_token()
256 atoken->opcode = EIP197_TOKEN_OPCODE_DIRECTION; in safexcel_aead_token()
257 atoken->packet_length = assocadj; in safexcel_aead_token()
258 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH; in safexcel_aead_token()
259 atoken->instructions = EIP197_TOKEN_INS_LAST | in safexcel_aead_token()
262 atoken++; in safexcel_aead_token()
266 atoken->opcode = EIP197_TOKEN_OPCODE_DIRECTION; in safexcel_aead_token()
267 atoken->packet_length = EIP197_AEAD_IPSEC_IV_SIZE; in safexcel_aead_token()
268 atoken->stat = 0; in safexcel_aead_token()
269 atoken->instructions = 0; in safexcel_aead_token()
270 atoken++; in safexcel_aead_token()
275 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
276 atoken->packet_length = 16; /* According to Op Manual */ in safexcel_aead_token()
277 atoken->stat = 0; in safexcel_aead_token()
278 atoken->instructions = 0; in safexcel_aead_token()
279 atoken++; in safexcel_aead_token()
285 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT_REMRES; in safexcel_aead_token()
286 atoken->packet_length = 0; in safexcel_aead_token()
287 atoken->stat = 0; in safexcel_aead_token()
288 atoken->instructions = AES_BLOCK_SIZE; in safexcel_aead_token()
289 atoken++; in safexcel_aead_token()
291 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
292 atoken->packet_length = AES_BLOCK_SIZE; in safexcel_aead_token()
293 atoken->stat = 0; in safexcel_aead_token()
294 atoken->instructions = EIP197_TOKEN_INS_TYPE_OUTPUT | in safexcel_aead_token()
296 atoken++; in safexcel_aead_token()
305 atoken->opcode = EIP197_TOKEN_OPCODE_DIRECTION; in safexcel_aead_token()
306 atoken->packet_length = cryptlen; in safexcel_aead_token()
313 atoken->instructions = EIP197_TOKEN_INS_LAST | in safexcel_aead_token()
317 atoken->instructions = EIP197_TOKEN_INS_LAST | in safexcel_aead_token()
325 atoken->stat = 0; in safexcel_aead_token()
327 atoken++; in safexcel_aead_token()
329 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
330 atoken->packet_length = 16 - cryptlen; in safexcel_aead_token()
331 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH; in safexcel_aead_token()
332 atoken->instructions = EIP197_TOKEN_INS_TYPE_HASH; in safexcel_aead_token()
334 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH; in safexcel_aead_token()
336 atoken++; in safexcel_aead_token()
342 atoken->opcode = EIP197_TOKEN_OPCODE_INSERT; in safexcel_aead_token()
343 atoken->packet_length = digestsize; in safexcel_aead_token()
344 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH | in safexcel_aead_token()
346 atoken->instructions = EIP197_TOKEN_INS_TYPE_OUTPUT | in safexcel_aead_token()
350 atoken->opcode = EIP197_TOKEN_OPCODE_RETRIEVE; in safexcel_aead_token()
351 atoken->packet_length = digestsize; in safexcel_aead_token()
352 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH | in safexcel_aead_token()
354 atoken->instructions = EIP197_TOKEN_INS_INSERT_HASH_DIGEST; in safexcel_aead_token()
355 atoken++; in safexcel_aead_token()
359 atoken->opcode = EIP197_TOKEN_OPCODE_VERIFY; in safexcel_aead_token()
360 atoken->packet_length = digestsize | in safexcel_aead_token()
362 atoken->stat = EIP197_TOKEN_STAT_LAST_HASH | in safexcel_aead_token()
364 atoken->instructions = EIP197_TOKEN_INS_TYPE_OUTPUT; in safexcel_aead_token()
691 struct safexcel_token *atoken; in safexcel_send_req() local
784 &atoken); in safexcel_send_req()
805 ctx->base.ctxr_dma, &atoken); in safexcel_send_req()
824 safexcel_aead_token(ctx, iv, first_cdesc, atoken, in safexcel_send_req()
828 safexcel_skcipher_token(ctx, iv, first_cdesc, atoken, in safexcel_send_req()