Lines Matching +full:1 +full:- +full:4
1 // SPDX-License-Identifier: GPL-2.0-or-later
12 * Andreas Schwab, <schwab@issan.informatik.uni-dortmund.de>
19 * length-counter instead of the length counter
20 * (%1). Thanks to Roman Hodek for pointing this out.
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()
46 "btst #1,%3\n\t" /* Check alignment */ in csum_partial()
48 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial()
49 "jgt 1f\n\t" 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()
52 "1:\t" in csum_partial()
58 "movel %1,%3\n\t" /* save len in tmp1 */ in csum_partial()
59 "lsrl #5,%1\n\t" /* len/32 */ in csum_partial()
61 "subql #1,%1\n" in csum_partial()
62 "1:\t" 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()
79 "dbra %1,1b\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()
82 "clrw %1\n\t" in csum_partial()
83 "subql #1,%1\n\t" in csum_partial()
84 "jcc 1b\n" in csum_partial()
86 "movel %3,%1\n\t" /* restore len from tmp1 */ in csum_partial()
88 "jeq 4f\n\t" in csum_partial()
90 "subqw #1,%3\n" 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()
100 "andw #3,%1\n\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()
107 "tstw %1\n\t" /* another byte? */ 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()
145 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_and_copy_from_user()
146 "jgt 1f\n\t" 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()
149 "1:\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()
158 "movel %1,%4\n\t" /* save len in tmp1 */ in csum_and_copy_from_user()
159 "lsrl #5,%1\n\t" /* len/32 */ in csum_and_copy_from_user()
161 "subql #1,%1\n" in csum_and_copy_from_user()
162 "1:\n" in csum_and_copy_from_user()
195 "dbra %1,1b\n\t" in csum_and_copy_from_user()
198 "clrw %1\n\t" in csum_and_copy_from_user()
199 "subql #1,%1\n\t" in csum_and_copy_from_user()
200 "jcc 1b\n" 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()
213 "dbra %4,3b\n\t" in csum_and_copy_from_user()
216 "4:\t" in csum_and_copy_from_user()
218 "andw #3,%1\n\t" in csum_and_copy_from_user()
221 "subqw #2,%1\n\t" in csum_and_copy_from_user()
227 "tstw %1\n\t" /* another 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()
281 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial_copy_nocheck()
282 "jgt 1f\n\t" 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()
285 "1:\t" 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()
293 "movel %1,%4\n\t" /* save len in tmp1 */ in csum_partial_copy_nocheck()
294 "lsrl #5,%1\n\t" /* len/32 */ in csum_partial_copy_nocheck()
296 "subql #1,%1\n" in csum_partial_copy_nocheck()
297 "1:\t" in csum_partial_copy_nocheck()
322 "dbra %1,1b\n\t" in csum_partial_copy_nocheck()
325 "clrw %1\n\t" in csum_partial_copy_nocheck()
326 "subql #1,%1\n\t" in csum_partial_copy_nocheck()
327 "jcc 1b\n" 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()
339 "dbra %4,3b\n\t" in csum_partial_copy_nocheck()
342 "4:\t" in csum_partial_copy_nocheck()
344 "andw #3,%1\n\t" in csum_partial_copy_nocheck()
347 "subqw #2,%1\n\t" in csum_partial_copy_nocheck()
352 "tstw %1\n\t" /* another byte? */ in csum_partial_copy_nocheck()
365 : "0" (sum), "1" (len), "2" (src), "3" (dst) in csum_partial_copy_nocheck()