Lines Matching +full:1 +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.
13 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_2()
17 p1[1] ^= p2[1]; in xor_8regs_2()
24 p1 += 8; in xor_8regs_2()
25 p2 += 8; in xor_8regs_2()
26 } while (--lines > 0); in xor_8regs_2()
33 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_3()
37 p1[1] ^= p2[1] ^ p3[1]; in xor_8regs_3()
44 p1 += 8; in xor_8regs_3()
45 p2 += 8; in xor_8regs_3()
46 p3 += 8; in xor_8regs_3()
47 } while (--lines > 0); in xor_8regs_3()
54 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_4()
58 p1[1] ^= p2[1] ^ p3[1] ^ p4[1]; in xor_8regs_4()
65 p1 += 8; in xor_8regs_4()
66 p2 += 8; in xor_8regs_4()
67 p3 += 8; in xor_8regs_4()
68 p4 += 8; in xor_8regs_4()
69 } while (--lines > 0); in xor_8regs_4()
76 long lines = bytes / (sizeof (long)) / 8; in xor_8regs_5()
80 p1[1] ^= p2[1] ^ p3[1] ^ p4[1] ^ p5[1]; in xor_8regs_5()
87 p1 += 8; in xor_8regs_5()
88 p2 += 8; in xor_8regs_5()
89 p3 += 8; in xor_8regs_5()
90 p4 += 8; in xor_8regs_5()
91 p5 += 8; in xor_8regs_5()
92 } while (--lines > 0); in xor_8regs_5()
98 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_2()
103 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_2()
111 d1 ^= p2[1]; in xor_32regs_2()
119 p1[1] = d1; in xor_32regs_2()
126 p1 += 8; in xor_32regs_2()
127 p2 += 8; in xor_32regs_2()
128 } while (--lines > 0); in xor_32regs_2()
135 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_3()
140 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_3()
148 d1 ^= p2[1]; in xor_32regs_3()
156 d1 ^= p3[1]; in xor_32regs_3()
164 p1[1] = d1; in xor_32regs_3()
171 p1 += 8; in xor_32regs_3()
172 p2 += 8; in xor_32regs_3()
173 p3 += 8; in xor_32regs_3()
174 } while (--lines > 0); in xor_32regs_3()
181 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_4()
186 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_4()
194 d1 ^= p2[1]; in xor_32regs_4()
202 d1 ^= p3[1]; in xor_32regs_4()
210 d1 ^= p4[1]; in xor_32regs_4()
218 p1[1] = d1; in xor_32regs_4()
225 p1 += 8; in xor_32regs_4()
226 p2 += 8; in xor_32regs_4()
227 p3 += 8; in xor_32regs_4()
228 p4 += 8; in xor_32regs_4()
229 } while (--lines > 0); in xor_32regs_4()
236 long lines = bytes / (sizeof (long)) / 8; in xor_32regs_5()
241 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_5()
249 d1 ^= p2[1]; in xor_32regs_5()
257 d1 ^= p3[1]; in xor_32regs_5()
265 d1 ^= p4[1]; in xor_32regs_5()
273 d1 ^= p5[1]; in xor_32regs_5()
281 p1[1] = d1; in xor_32regs_5()
288 p1 += 8; in xor_32regs_5()
289 p2 += 8; in xor_32regs_5()
290 p3 += 8; in xor_32regs_5()
291 p4 += 8; in xor_32regs_5()
292 p5 += 8; in xor_32regs_5()
293 } while (--lines > 0); in xor_32regs_5()
299 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_2()
304 prefetchw(p1+8); in xor_8regs_p_2()
305 prefetch(p2+8); in xor_8regs_p_2()
308 p1[1] ^= p2[1]; in xor_8regs_p_2()
315 p1 += 8; in xor_8regs_p_2()
316 p2 += 8; in xor_8regs_p_2()
317 } while (--lines > 0); in xor_8regs_p_2()
326 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_3()
332 prefetchw(p1+8); in xor_8regs_p_3()
333 prefetch(p2+8); in xor_8regs_p_3()
334 prefetch(p3+8); in xor_8regs_p_3()
337 p1[1] ^= p2[1] ^ p3[1]; in xor_8regs_p_3()
344 p1 += 8; in xor_8regs_p_3()
345 p2 += 8; in xor_8regs_p_3()
346 p3 += 8; in xor_8regs_p_3()
347 } while (--lines > 0); in xor_8regs_p_3()
356 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_4()
364 prefetchw(p1+8); in xor_8regs_p_4()
365 prefetch(p2+8); in xor_8regs_p_4()
366 prefetch(p3+8); in xor_8regs_p_4()
367 prefetch(p4+8); in xor_8regs_p_4()
370 p1[1] ^= p2[1] ^ p3[1] ^ p4[1]; in xor_8regs_p_4()
377 p1 += 8; in xor_8regs_p_4()
378 p2 += 8; in xor_8regs_p_4()
379 p3 += 8; in xor_8regs_p_4()
380 p4 += 8; in xor_8regs_p_4()
381 } while (--lines > 0); in xor_8regs_p_4()
390 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_8regs_p_5()
399 prefetchw(p1+8); in xor_8regs_p_5()
400 prefetch(p2+8); in xor_8regs_p_5()
401 prefetch(p3+8); in xor_8regs_p_5()
402 prefetch(p4+8); in xor_8regs_p_5()
403 prefetch(p5+8); in xor_8regs_p_5()
406 p1[1] ^= p2[1] ^ p3[1] ^ p4[1] ^ p5[1]; in xor_8regs_p_5()
413 p1 += 8; in xor_8regs_p_5()
414 p2 += 8; in xor_8regs_p_5()
415 p3 += 8; in xor_8regs_p_5()
416 p4 += 8; in xor_8regs_p_5()
417 p5 += 8; in xor_8regs_p_5()
418 } while (--lines > 0); in xor_8regs_p_5()
426 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_2()
434 prefetchw(p1+8); in xor_32regs_p_2()
435 prefetch(p2+8); in xor_32regs_p_2()
438 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_p_2()
446 d1 ^= p2[1]; in xor_32regs_p_2()
454 p1[1] = d1; in xor_32regs_p_2()
461 p1 += 8; in xor_32regs_p_2()
462 p2 += 8; in xor_32regs_p_2()
463 } while (--lines > 0); in xor_32regs_p_2()
472 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_3()
481 prefetchw(p1+8); in xor_32regs_p_3()
482 prefetch(p2+8); in xor_32regs_p_3()
483 prefetch(p3+8); in xor_32regs_p_3()
486 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_p_3()
494 d1 ^= p2[1]; in xor_32regs_p_3()
502 d1 ^= p3[1]; in xor_32regs_p_3()
510 p1[1] = d1; in xor_32regs_p_3()
517 p1 += 8; in xor_32regs_p_3()
518 p2 += 8; in xor_32regs_p_3()
519 p3 += 8; in xor_32regs_p_3()
520 } while (--lines > 0); in xor_32regs_p_3()
529 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_4()
539 prefetchw(p1+8); in xor_32regs_p_4()
540 prefetch(p2+8); in xor_32regs_p_4()
541 prefetch(p3+8); in xor_32regs_p_4()
542 prefetch(p4+8); in xor_32regs_p_4()
545 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_p_4()
553 d1 ^= p2[1]; in xor_32regs_p_4()
561 d1 ^= p3[1]; in xor_32regs_p_4()
569 d1 ^= p4[1]; in xor_32regs_p_4()
577 p1[1] = d1; in xor_32regs_p_4()
584 p1 += 8; in xor_32regs_p_4()
585 p2 += 8; in xor_32regs_p_4()
586 p3 += 8; in xor_32regs_p_4()
587 p4 += 8; in xor_32regs_p_4()
588 } while (--lines > 0); in xor_32regs_p_4()
597 long lines = bytes / (sizeof (long)) / 8 - 1; in xor_32regs_p_5()
608 prefetchw(p1+8); in xor_32regs_p_5()
609 prefetch(p2+8); in xor_32regs_p_5()
610 prefetch(p3+8); in xor_32regs_p_5()
611 prefetch(p4+8); in xor_32regs_p_5()
612 prefetch(p5+8); in xor_32regs_p_5()
615 d1 = p1[1]; /* ... in bursts, if possible. */ in xor_32regs_p_5()
623 d1 ^= p2[1]; in xor_32regs_p_5()
631 d1 ^= p3[1]; in xor_32regs_p_5()
639 d1 ^= p4[1]; in xor_32regs_p_5()
647 d1 ^= p5[1]; in xor_32regs_p_5()
655 p1[1] = d1; in xor_32regs_p_5()
662 p1 += 8; in xor_32regs_p_5()
663 p2 += 8; in xor_32regs_p_5()
664 p3 += 8; in xor_32regs_p_5()
665 p4 += 8; in xor_32regs_p_5()
666 p5 += 8; in xor_32regs_p_5()
667 } while (--lines > 0); in xor_32regs_p_5()
673 .name = "8regs",
689 .name = "8regs_prefetch",