Lines Matching refs:crc2
434 u32 crc1, crc2; in test_step() local
439 crc2 = crc32_be(init, buf, len + 4); in test_step()
440 if (crc2) in test_step()
442 crc2); in test_step()
445 crc2 = crc32_be(init, buf, i); in test_step()
446 crc2 = crc32_be(crc2, buf + i, len + 4 - i); in test_step()
447 if (crc2) in test_step()
448 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
455 crc2 = bitrev32(crc1); in test_step()
456 if (crc1 != bitrev32(crc2)) in test_step()
458 crc1, crc2, bitrev32(crc2)); in test_step()
460 if (crc1 != crc2) in test_step()
462 crc2); in test_step()
463 crc2 = crc32_le(init, buf, len + 4); in test_step()
464 if (crc2) in test_step()
466 crc2); in test_step()
469 crc2 = crc32_le(init, buf, i); in test_step()
470 crc2 = crc32_le(crc2, buf + i, len + 4 - i); in test_step()
471 if (crc2) in test_step()
472 printf("\nCRC split fail: 0x%08x\n", crc2); in test_step()
488 u32 crc1, crc2, crc3; in main() local
499 crc2 = test_step(INIT2, buf2, i); in main()
502 if (crc3 != (crc1 ^ crc2)) in main()
504 crc3, crc1, crc2); in main()