forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/x86/crypto/serpent-sse2-i586-asm_32.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Serpent Cipher 4-way parallel algorithm (i586/SSE2)
34 *
....@@ -6,22 +7,6 @@
67 * Based on crypto/serpent.c by
78 * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no>
89 * 2003 Herbert Valerio Riedel <hvr@gnu.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23
- * USA
24
- *
2510 */
2611
2712 #include <linux/linkage.h>
....@@ -512,7 +497,7 @@
512497 pxor t0, x3; \
513498 movdqu x3, (3*4*4)(out);
514499
515
-ENTRY(__serpent_enc_blk_4way)
500
+SYM_FUNC_START(__serpent_enc_blk_4way)
516501 /* input:
517502 * arg_ctx(%esp): ctx, CTX
518503 * arg_dst(%esp): dst
....@@ -568,15 +553,15 @@
568553
569554 write_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
570555
571
- ret;
556
+ RET;
572557
573558 .L__enc_xor4:
574559 xor_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
575560
576
- ret;
577
-ENDPROC(__serpent_enc_blk_4way)
561
+ RET;
562
+SYM_FUNC_END(__serpent_enc_blk_4way)
578563
579
-ENTRY(serpent_dec_blk_4way)
564
+SYM_FUNC_START(serpent_dec_blk_4way)
580565 /* input:
581566 * arg_ctx(%esp): ctx, CTX
582567 * arg_dst(%esp): dst
....@@ -627,5 +612,5 @@
627612 movl arg_dst(%esp), %eax;
628613 write_blocks(%eax, RC, RD, RB, RE, RT0, RT1, RA);
629614
630
- ret;
631
-ENDPROC(serpent_dec_blk_4way)
615
+ RET;
616
+SYM_FUNC_END(serpent_dec_blk_4way)