Lines Matching +full:2 +full:- +full:4

1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Andreas Schwab, <[email protected]-dortmund.de>
19 * length-counter instead of the length counter
22 * data-registers to hold input values and one tries to
43 * is aligned on either a 2-byte or 4-byte boundary. in csum_partial()
45 __asm__("movel %2,%3\n\t" in csum_partial()
47 "jeq 2f\n\t" in csum_partial()
48 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial()
50 "addql #2,%1\n\t" /* len was == 2, treat only rest */ in csum_partial()
51 "jra 4f\n" in csum_partial()
53 "addw %2@+,%0\n\t" /* add first word to sum */ in csum_partial()
56 "2:\t" in csum_partial()
60 "jeq 2f\n\t" /* not enough... */ in csum_partial()
63 "movel %2@+,%4\n\t" in csum_partial()
64 "addxl %4,%0\n\t" in csum_partial()
65 "movel %2@+,%4\n\t" in csum_partial()
66 "addxl %4,%0\n\t" in csum_partial()
67 "movel %2@+,%4\n\t" in csum_partial()
68 "addxl %4,%0\n\t" in csum_partial()
69 "movel %2@+,%4\n\t" in csum_partial()
70 "addxl %4,%0\n\t" in csum_partial()
71 "movel %2@+,%4\n\t" in csum_partial()
72 "addxl %4,%0\n\t" in csum_partial()
73 "movel %2@+,%4\n\t" in csum_partial()
74 "addxl %4,%0\n\t" in csum_partial()
75 "movel %2@+,%4\n\t" in csum_partial()
76 "addxl %4,%0\n\t" in csum_partial()
77 "movel %2@+,%4\n\t" in csum_partial()
78 "addxl %4,%0\n\t" in csum_partial()
80 "clrl %4\n\t" in csum_partial()
81 "addxl %4,%0\n\t" /* add X bit */ in csum_partial()
85 "2:\t" in csum_partial()
88 "jeq 4f\n\t" in csum_partial()
89 "lsrw #2,%3\n\t" in csum_partial()
93 "movel %2@+,%4\n\t" in csum_partial()
94 "addxl %4,%0\n\t" in csum_partial()
96 "clrl %4\n\t" in csum_partial()
97 "addxl %4,%0\n" /* add X bit */ in csum_partial()
98 "4:\t" in csum_partial()
102 "clrl %4\n\t" /* clear tmp2 for rest bytes */ in csum_partial()
103 "subqw #2,%1\n\t" in csum_partial()
105 "movew %2@+,%4\n\t" /* have rest >= 2: get word */ in csum_partial()
106 "swap %4\n\t" /* into bits 16..31 */ in csum_partial()
110 "moveb %2@,%4\n\t" /* have odd rest: get byte */ in csum_partial()
111 "lslw #8,%4\n\t" /* into bits 8..15; 16..31 untouched */ in csum_partial()
113 "addl %4,%0\n\t" /* now add rest long to sum */ in csum_partial()
114 "clrl %4\n\t" in csum_partial()
115 "addxl %4,%0\n" /* add X bit */ in csum_partial()
119 : "0" (sum), "1" (len), "2" (buff) in csum_partial()
142 __asm__("movel %2,%4\n\t" in csum_and_copy_from_user()
143 "btst #1,%4\n\t" /* Check alignment */ in csum_and_copy_from_user()
144 "jeq 2f\n\t" in csum_and_copy_from_user()
145 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_and_copy_from_user()
147 "addql #2,%1\n\t" /* len was == 2, treat only rest */ in csum_and_copy_from_user()
148 "jra 4f\n" in csum_and_copy_from_user()
151 "movesw %2@+,%4\n\t" /* add first word to sum */ in csum_and_copy_from_user()
152 "addw %4,%0\n\t" in csum_and_copy_from_user()
153 "movew %4,%3@+\n\t" in csum_and_copy_from_user()
154 "clrl %4\n\t" in csum_and_copy_from_user()
155 "addxl %4,%0\n" /* add X bit */ in csum_and_copy_from_user()
156 "2:\t" in csum_and_copy_from_user()
158 "movel %1,%4\n\t" /* save len in tmp1 */ in csum_and_copy_from_user()
160 "jeq 2f\n\t" /* not enough... */ in csum_and_copy_from_user()
164 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
168 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
172 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
176 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
180 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
184 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
188 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
192 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
201 "2:\t" in csum_and_copy_from_user()
202 "movel %4,%1\n\t" /* restore len from tmp1 */ in csum_and_copy_from_user()
203 "andw #0x1c,%4\n\t" /* number of rest longs */ in csum_and_copy_from_user()
204 "jeq 4f\n\t" in csum_and_copy_from_user()
205 "lsrw #2,%4\n\t" in csum_and_copy_from_user()
206 "subqw #1,%4\n" in csum_and_copy_from_user()
210 "movesl %2@+,%5\n\t" in csum_and_copy_from_user()
213 "dbra %4,3b\n\t" in csum_and_copy_from_user()
216 "4:\t" in csum_and_copy_from_user()
221 "subqw #2,%1\n\t" in csum_and_copy_from_user()
224 "movesw %2@+,%5\n\t" /* have rest >= 2: get word */ in csum_and_copy_from_user()
231 "movesb %2@,%5\n\t" /* have odd rest: get byte */ in csum_and_copy_from_user()
262 : "0" (sum), "1" (len), "2" (src), "3" (dst) in csum_and_copy_from_user()
278 __asm__("movel %2,%4\n\t" in csum_partial_copy_nocheck()
279 "btst #1,%4\n\t" /* Check alignment */ in csum_partial_copy_nocheck()
280 "jeq 2f\n\t" in csum_partial_copy_nocheck()
281 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial_copy_nocheck()
283 "addql #2,%1\n\t" /* len was == 2, treat only rest */ in csum_partial_copy_nocheck()
284 "jra 4f\n" in csum_partial_copy_nocheck()
286 "movew %2@+,%4\n\t" /* add first word to sum */ in csum_partial_copy_nocheck()
287 "addw %4,%0\n\t" in csum_partial_copy_nocheck()
288 "movew %4,%3@+\n\t" in csum_partial_copy_nocheck()
289 "clrl %4\n\t" in csum_partial_copy_nocheck()
290 "addxl %4,%0\n" /* add X bit */ in csum_partial_copy_nocheck()
291 "2:\t" in csum_partial_copy_nocheck()
293 "movel %1,%4\n\t" /* save len in tmp1 */ in csum_partial_copy_nocheck()
295 "jeq 2f\n\t" /* not enough... */ in csum_partial_copy_nocheck()
298 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
301 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
304 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
307 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
310 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
313 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
316 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
319 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
328 "2:\t" in csum_partial_copy_nocheck()
329 "movel %4,%1\n\t" /* restore len from tmp1 */ in csum_partial_copy_nocheck()
330 "andw #0x1c,%4\n\t" /* number of rest longs */ in csum_partial_copy_nocheck()
331 "jeq 4f\n\t" in csum_partial_copy_nocheck()
332 "lsrw #2,%4\n\t" in csum_partial_copy_nocheck()
333 "subqw #1,%4\n" in csum_partial_copy_nocheck()
336 "movel %2@+,%5\n\t" in csum_partial_copy_nocheck()
339 "dbra %4,3b\n\t" in csum_partial_copy_nocheck()
342 "4:\t" in csum_partial_copy_nocheck()
347 "subqw #2,%1\n\t" in csum_partial_copy_nocheck()
349 "movew %2@+,%5\n\t" /* have rest >= 2: get word */ in csum_partial_copy_nocheck()
355 "moveb %2@,%5\n\t" /* have odd rest: get byte */ in csum_partial_copy_nocheck()
365 : "0" (sum), "1" (len), "2" (src), "3" (dst) in csum_partial_copy_nocheck()