forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/crypto/cast5-avx-x86_64-asm_64.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Cast5 Cipher 16-way parallel algorithm (AVX/x86_64)
34 *
....@@ -5,22 +6,6 @@
56 * <Johannes.Goetzfried@informatik.stud.uni-erlangen.de>
67 *
78 * Copyright © 2012 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22
- * USA
23
- *
249 */
2510
2611 #include <linux/linkage.h>
....@@ -224,7 +209,7 @@
224209 .text
225210
226211 .align 16
227
-__cast5_enc_blk16:
212
+SYM_FUNC_START_LOCAL(__cast5_enc_blk16)
228213 /* input:
229214 * %rdi: ctx
230215 * RL1: blocks 1 and 2
....@@ -294,11 +279,11 @@
294279 outunpack_blocks(RR3, RL3, RTMP, RX, RKM);
295280 outunpack_blocks(RR4, RL4, RTMP, RX, RKM);
296281
297
- ret;
298
-ENDPROC(__cast5_enc_blk16)
282
+ RET;
283
+SYM_FUNC_END(__cast5_enc_blk16)
299284
300285 .align 16
301
-__cast5_dec_blk16:
286
+SYM_FUNC_START_LOCAL(__cast5_dec_blk16)
302287 /* input:
303288 * %rdi: ctx
304289 * RL1: encrypted blocks 1 and 2
....@@ -367,14 +352,14 @@
367352 outunpack_blocks(RR3, RL3, RTMP, RX, RKM);
368353 outunpack_blocks(RR4, RL4, RTMP, RX, RKM);
369354
370
- ret;
355
+ RET;
371356
372357 .L__skip_dec:
373358 vpsrldq $4, RKR, RKR;
374359 jmp .L__dec_tail;
375
-ENDPROC(__cast5_dec_blk16)
360
+SYM_FUNC_END(__cast5_dec_blk16)
376361
377
-ENTRY(cast5_ecb_enc_16way)
362
+SYM_FUNC_START(cast5_ecb_enc_16way)
378363 /* input:
379364 * %rdi: ctx
380365 * %rsi: dst
....@@ -408,10 +393,10 @@
408393
409394 popq %r15;
410395 FRAME_END
411
- ret;
412
-ENDPROC(cast5_ecb_enc_16way)
396
+ RET;
397
+SYM_FUNC_END(cast5_ecb_enc_16way)
413398
414
-ENTRY(cast5_ecb_dec_16way)
399
+SYM_FUNC_START(cast5_ecb_dec_16way)
415400 /* input:
416401 * %rdi: ctx
417402 * %rsi: dst
....@@ -446,10 +431,10 @@
446431
447432 popq %r15;
448433 FRAME_END
449
- ret;
450
-ENDPROC(cast5_ecb_dec_16way)
434
+ RET;
435
+SYM_FUNC_END(cast5_ecb_dec_16way)
451436
452
-ENTRY(cast5_cbc_dec_16way)
437
+SYM_FUNC_START(cast5_cbc_dec_16way)
453438 /* input:
454439 * %rdi: ctx
455440 * %rsi: dst
....@@ -498,10 +483,10 @@
498483 popq %r15;
499484 popq %r12;
500485 FRAME_END
501
- ret;
502
-ENDPROC(cast5_cbc_dec_16way)
486
+ RET;
487
+SYM_FUNC_END(cast5_cbc_dec_16way)
503488
504
-ENTRY(cast5_ctr_16way)
489
+SYM_FUNC_START(cast5_ctr_16way)
505490 /* input:
506491 * %rdi: ctx
507492 * %rsi: dst
....@@ -574,5 +559,5 @@
574559 popq %r15;
575560 popq %r12;
576561 FRAME_END
577
- ret;
578
-ENDPROC(cast5_ctr_16way)
562
+ RET;
563
+SYM_FUNC_END(cast5_ctr_16way)