Lines Matching +full:2 +full:- +full:8

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/asm-generic/xor.h
5 * Generic optimized RAID-5 checksumming functions.
14 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_2()
19 p1[2] ^= p2[2]; in xor_8regs_2()
25 p1 += 8; in xor_8regs_2()
26 p2 += 8; in xor_8regs_2()
27 } while (--lines > 0); in xor_8regs_2()
35 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_3()
40 p1[2] ^= p2[2] ^ p3[2]; in xor_8regs_3()
46 p1 += 8; in xor_8regs_3()
47 p2 += 8; in xor_8regs_3()
48 p3 += 8; in xor_8regs_3()
49 } while (--lines > 0); in xor_8regs_3()
58 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_4()
63 p1[2] ^= p2[2] ^ p3[2] ^ p4[2]; in xor_8regs_4()
69 p1 += 8; in xor_8regs_4()
70 p2 += 8; in xor_8regs_4()
71 p3 += 8; in xor_8regs_4()
72 p4 += 8; in xor_8regs_4()
73 } while (--lines > 0); in xor_8regs_4()
83 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_5()
88 p1[2] ^= p2[2] ^ p3[2] ^ p4[2] ^ p5[2]; in xor_8regs_5()
94 p1 += 8; in xor_8regs_5()
95 p2 += 8; in xor_8regs_5()
96 p3 += 8; in xor_8regs_5()
97 p4 += 8; in xor_8regs_5()
98 p5 += 8; in xor_8regs_5()
99 } while (--lines > 0); in xor_8regs_5()
106 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_2()
112 d2 = p1[2]; in xor_32regs_2()
120 d2 ^= p2[2]; in xor_32regs_2()
128 p1[2] = d2; in xor_32regs_2()
134 p1 += 8; in xor_32regs_2()
135 p2 += 8; in xor_32regs_2()
136 } while (--lines > 0); in xor_32regs_2()
144 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_3()
150 d2 = p1[2]; in xor_32regs_3()
158 d2 ^= p2[2]; in xor_32regs_3()
166 d2 ^= p3[2]; in xor_32regs_3()
174 p1[2] = d2; in xor_32regs_3()
180 p1 += 8; in xor_32regs_3()
181 p2 += 8; in xor_32regs_3()
182 p3 += 8; in xor_32regs_3()
183 } while (--lines > 0); in xor_32regs_3()
192 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_4()
198 d2 = p1[2]; in xor_32regs_4()
206 d2 ^= p2[2]; in xor_32regs_4()
214 d2 ^= p3[2]; in xor_32regs_4()
222 d2 ^= p4[2]; in xor_32regs_4()
230 p1[2] = d2; in xor_32regs_4()
236 p1 += 8; in xor_32regs_4()
237 p2 += 8; in xor_32regs_4()
238 p3 += 8; in xor_32regs_4()
239 p4 += 8; in xor_32regs_4()
240 } while (--lines > 0); in xor_32regs_4()
250 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_5()
256 d2 = p1[2]; in xor_32regs_5()
264 d2 ^= p2[2]; in xor_32regs_5()
272 d2 ^= p3[2]; in xor_32regs_5()
280 d2 ^= p4[2]; in xor_32regs_5()
288 d2 ^= p5[2]; in xor_32regs_5()
296 p1[2] = d2; in xor_32regs_5()
302 p1 += 8; in xor_32regs_5()
303 p2 += 8; in xor_32regs_5()
304 p3 += 8; in xor_32regs_5()
305 p4 += 8; in xor_32regs_5()
306 p5 += 8; in xor_32regs_5()
307 } while (--lines > 0); in xor_32regs_5()
314 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_2()
319 prefetchw(p1+8); in xor_8regs_p_2()
320 prefetch(p2+8); in xor_8regs_p_2()
324 p1[2] ^= p2[2]; in xor_8regs_p_2()
330 p1 += 8; in xor_8regs_p_2()
331 p2 += 8; in xor_8regs_p_2()
332 } while (--lines > 0); in xor_8regs_p_2()
342 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_3()
348 prefetchw(p1+8); in xor_8regs_p_3()
349 prefetch(p2+8); in xor_8regs_p_3()
350 prefetch(p3+8); in xor_8regs_p_3()
354 p1[2] ^= p2[2] ^ p3[2]; in xor_8regs_p_3()
360 p1 += 8; in xor_8regs_p_3()
361 p2 += 8; in xor_8regs_p_3()
362 p3 += 8; in xor_8regs_p_3()
363 } while (--lines > 0); in xor_8regs_p_3()
374 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_4()
382 prefetchw(p1+8); in xor_8regs_p_4()
383 prefetch(p2+8); in xor_8regs_p_4()
384 prefetch(p3+8); in xor_8regs_p_4()
385 prefetch(p4+8); in xor_8regs_p_4()
389 p1[2] ^= p2[2] ^ p3[2] ^ p4[2]; in xor_8regs_p_4()
395 p1 += 8; in xor_8regs_p_4()
396 p2 += 8; in xor_8regs_p_4()
397 p3 += 8; in xor_8regs_p_4()
398 p4 += 8; in xor_8regs_p_4()
399 } while (--lines > 0); in xor_8regs_p_4()
411 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_5()
420 prefetchw(p1+8); in xor_8regs_p_5()
421 prefetch(p2+8); in xor_8regs_p_5()
422 prefetch(p3+8); in xor_8regs_p_5()
423 prefetch(p4+8); in xor_8regs_p_5()
424 prefetch(p5+8); in xor_8regs_p_5()
428 p1[2] ^= p2[2] ^ p3[2] ^ p4[2] ^ p5[2]; in xor_8regs_p_5()
434 p1 += 8; in xor_8regs_p_5()
435 p2 += 8; in xor_8regs_p_5()
436 p3 += 8; in xor_8regs_p_5()
437 p4 += 8; in xor_8regs_p_5()
438 p5 += 8; in xor_8regs_p_5()
439 } while (--lines > 0); in xor_8regs_p_5()
448 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_2()
456 prefetchw(p1+8); in xor_32regs_p_2()
457 prefetch(p2+8); in xor_32regs_p_2()
461 d2 = p1[2]; in xor_32regs_p_2()
469 d2 ^= p2[2]; in xor_32regs_p_2()
477 p1[2] = d2; in xor_32regs_p_2()
483 p1 += 8; in xor_32regs_p_2()
484 p2 += 8; in xor_32regs_p_2()
485 } while (--lines > 0); in xor_32regs_p_2()
495 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_3()
504 prefetchw(p1+8); in xor_32regs_p_3()
505 prefetch(p2+8); in xor_32regs_p_3()
506 prefetch(p3+8); in xor_32regs_p_3()
510 d2 = p1[2]; in xor_32regs_p_3()
518 d2 ^= p2[2]; in xor_32regs_p_3()
526 d2 ^= p3[2]; in xor_32regs_p_3()
534 p1[2] = d2; in xor_32regs_p_3()
540 p1 += 8; in xor_32regs_p_3()
541 p2 += 8; in xor_32regs_p_3()
542 p3 += 8; in xor_32regs_p_3()
543 } while (--lines > 0); in xor_32regs_p_3()
554 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_4()
564 prefetchw(p1+8); in xor_32regs_p_4()
565 prefetch(p2+8); in xor_32regs_p_4()
566 prefetch(p3+8); in xor_32regs_p_4()
567 prefetch(p4+8); in xor_32regs_p_4()
571 d2 = p1[2]; in xor_32regs_p_4()
579 d2 ^= p2[2]; in xor_32regs_p_4()
587 d2 ^= p3[2]; in xor_32regs_p_4()
595 d2 ^= p4[2]; in xor_32regs_p_4()
603 p1[2] = d2; in xor_32regs_p_4()
609 p1 += 8; in xor_32regs_p_4()
610 p2 += 8; in xor_32regs_p_4()
611 p3 += 8; in xor_32regs_p_4()
612 p4 += 8; in xor_32regs_p_4()
613 } while (--lines > 0); in xor_32regs_p_4()
625 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_5()
636 prefetchw(p1+8); in xor_32regs_p_5()
637 prefetch(p2+8); in xor_32regs_p_5()
638 prefetch(p3+8); in xor_32regs_p_5()
639 prefetch(p4+8); in xor_32regs_p_5()
640 prefetch(p5+8); in xor_32regs_p_5()
644 d2 = p1[2]; in xor_32regs_p_5()
652 d2 ^= p2[2]; in xor_32regs_p_5()
660 d2 ^= p3[2]; in xor_32regs_p_5()
668 d2 ^= p4[2]; in xor_32regs_p_5()
676 d2 ^= p5[2]; in xor_32regs_p_5()
684 p1[2] = d2; in xor_32regs_p_5()
690 p1 += 8; in xor_32regs_p_5()
691 p2 += 8; in xor_32regs_p_5()
692 p3 += 8; in xor_32regs_p_5()
693 p4 += 8; in xor_32regs_p_5()
694 p5 += 8; in xor_32regs_p_5()
695 } while (--lines > 0); in xor_32regs_p_5()
701 .name = "8regs",
717 .name = "8regs_prefetch",