Lines Matching refs:crc
116 static u32 partial_crc32_one(u8 c, u32 crc) in partial_crc32_one() argument
118 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); in partial_crc32_one()
121 static u32 partial_crc32(const u8 *s, int len, u32 crc) in partial_crc32() argument
124 crc = partial_crc32_one(*s++, crc); in partial_crc32()
125 return crc; in partial_crc32()
270 u32 crc = 0xffffffffUL; in main() local
349 crc = partial_crc32(buf, i, crc); in main()
354 crc = partial_crc32(kernel, sz, crc); in main()
360 crc = partial_crc32_one('\0', crc); in main()
366 fprintf(stderr, "CRC %x\n", crc); in main()
367 put_unaligned_le32(crc, buf); in main()