Lines Matching full:crc
3 * Normal 64-bit CRC calculation.
9 * Dr. Ross N. Williams has a great document to introduce the idea of CRC
13 * http://www.ross.net/crc/download/crc_v3.txt
15 * crc64table[256] is the lookup table of a table-driven 64-bit CRC
44 crc64_be_generic(u64 crc, const u8 *p, size_t len) in crc64_be_generic() argument
47 crc = (crc << 8) ^ crc64table[(crc >> 56) ^ *p++]; in crc64_be_generic()
48 return crc; in crc64_be_generic()
52 crc64_nvme_generic(u64 crc, const u8 *p, size_t len) in crc64_nvme_generic() argument
55 crc = (crc >> 8) ^ crc64nvmetable[(crc & 0xff) ^ *p++]; in crc64_nvme_generic()
56 return crc; in crc64_nvme_generic()
66 u64 crc64_be(u64 crc, const void *p, size_t len) in crc64_be() argument
68 return crc64_be_arch(crc, p, len); in crc64_be()
72 u64 crc64_nvme(u64 crc, const void *p, size_t len) in crc64_nvme() argument
74 return ~crc64_nvme_arch(~crc, p, len); in crc64_nvme()