Lines Matching refs:crc2
490 __u32 crc1, crc2; in test_step() local
495 crc2 = crc32_be(init, buf, len + 4); in test_step()
496 if (crc2) in test_step()
498 crc2); in test_step()
501 crc2 = crc32_be(init, buf, i); in test_step()
502 crc2 = crc32_be(crc2, buf + i, len + 4 - i); in test_step()
503 if (crc2) in test_step()
504 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
511 crc2 = bitrev32(crc1); in test_step()
512 if (crc1 != bitrev32(crc2)) in test_step()
514 crc1, crc2, bitrev32(crc2)); in test_step()
516 if (crc1 != crc2) in test_step()
518 crc2); in test_step()
519 crc2 = crc32_le(init, buf, len + 4); in test_step()
520 if (crc2) in test_step()
522 crc2); in test_step()
525 crc2 = crc32_le(init, buf, i); in test_step()
526 crc2 = crc32_le(crc2, buf + i, len + 4 - i); in test_step()
527 if (crc2) in test_step()
528 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
544 __u32 crc1, crc2, crc3; in main() local
556 crc2 = test_step(INIT2, buf2, i); in main()
559 if (crc3 != (crc1 ^ crc2)) { in main()
561 crc3, crc1, crc2); in main()