forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/x86/crypto/blowfish-x86_64-asm_64.S
....@@ -1,23 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Blowfish Cipher Algorithm (x86_64)
34 *
45 * Copyright (C) 2011 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19
- * USA
20
- *
216 */
227
238 #include <linux/linkage.h>
....@@ -118,7 +103,7 @@
118103 bswapq RX0; \
119104 xorq RX0, (RIO);
120105
121
-ENTRY(__blowfish_enc_blk)
106
+SYM_FUNC_START(__blowfish_enc_blk)
122107 /* input:
123108 * %rdi: ctx
124109 * %rsi: dst
....@@ -150,13 +135,13 @@
150135 jnz .L__enc_xor;
151136
152137 write_block();
153
- ret;
138
+ RET;
154139 .L__enc_xor:
155140 xor_block();
156
- ret;
157
-ENDPROC(__blowfish_enc_blk)
141
+ RET;
142
+SYM_FUNC_END(__blowfish_enc_blk)
158143
159
-ENTRY(blowfish_dec_blk)
144
+SYM_FUNC_START(blowfish_dec_blk)
160145 /* input:
161146 * %rdi: ctx
162147 * %rsi: dst
....@@ -185,8 +170,8 @@
185170
186171 movq %r11, %r12;
187172
188
- ret;
189
-ENDPROC(blowfish_dec_blk)
173
+ RET;
174
+SYM_FUNC_END(blowfish_dec_blk)
190175
191176 /**********************************************************************
192177 4-way blowfish, four blocks parallel
....@@ -298,7 +283,7 @@
298283 bswapq RX3; \
299284 xorq RX3, 24(RIO);
300285
301
-ENTRY(__blowfish_enc_blk_4way)
286
+SYM_FUNC_START(__blowfish_enc_blk_4way)
302287 /* input:
303288 * %rdi: ctx
304289 * %rsi: dst
....@@ -337,17 +322,17 @@
337322
338323 popq %rbx;
339324 popq %r12;
340
- ret;
325
+ RET;
341326
342327 .L__enc_xor4:
343328 xor_block4();
344329
345330 popq %rbx;
346331 popq %r12;
347
- ret;
348
-ENDPROC(__blowfish_enc_blk_4way)
332
+ RET;
333
+SYM_FUNC_END(__blowfish_enc_blk_4way)
349334
350
-ENTRY(blowfish_dec_blk_4way)
335
+SYM_FUNC_START(blowfish_dec_blk_4way)
351336 /* input:
352337 * %rdi: ctx
353338 * %rsi: dst
....@@ -379,5 +364,5 @@
379364 popq %rbx;
380365 popq %r12;
381366
382
- ret;
383
-ENDPROC(blowfish_dec_blk_4way)
367
+ RET;
368
+SYM_FUNC_END(blowfish_dec_blk_4way)