Lines Matching refs:crc2
442 u32 crc1, crc2; in test_step() local
447 crc2 = crc32_be(init, buf, len + 4); in test_step()
448 if (crc2) in test_step()
450 crc2); in test_step()
453 crc2 = crc32_be(init, buf, i); in test_step()
454 crc2 = crc32_be(crc2, buf + i, len + 4 - i); in test_step()
455 if (crc2) in test_step()
456 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
463 crc2 = bitrev32(crc1); in test_step()
464 if (crc1 != bitrev32(crc2)) in test_step()
466 crc1, crc2, bitrev32(crc2)); in test_step()
468 if (crc1 != crc2) in test_step()
470 crc2); in test_step()
471 crc2 = crc32_le(init, buf, len + 4); in test_step()
472 if (crc2) in test_step()
474 crc2); in test_step()
477 crc2 = crc32_le(init, buf, i); in test_step()
478 crc2 = crc32_le(crc2, buf + i, len + 4 - i); in test_step()
479 if (crc2) in test_step()
480 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
496 u32 crc1, crc2, crc3; in main() local
507 crc2 = test_step(INIT2, buf2, i); in main()
510 if (crc3 != (crc1 ^ crc2)) in main()
512 crc3, crc1, crc2); in main()