Lines Matching refs:crc
174 # define DO_CRC(x) crc = tab[(crc ^ (x)) & 255] ^ (crc >> 8)
176 # define DO_CRC(x) crc = tab[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)
184 uint32_t __efi_runtime crc32_no_comp(uint32_t crc, const Bytef *buf, uInt len) in crc32_no_comp() argument
193 crc = cpu_to_le32(crc); in crc32_no_comp()
207 crc ^= *++b; /* use pre increment for speed */ in crc32_no_comp()
222 return le32_to_cpu(crc); in crc32_no_comp()
226 uint32_t __efi_runtime crc32(uint32_t crc, const Bytef *p, uInt len) in crc32() argument
228 return crc32_no_comp(crc ^ 0xffffffffL, p, len) ^ 0xffffffffL; in crc32()
235 uint32_t crc32_wd(uint32_t crc, const unsigned char *buf, uInt len, in crc32_wd() argument
248 crc = crc32(crc, curr, chunk); in crc32_wd()
253 crc = crc32(crc, buf, len); in crc32_wd()
256 return crc; in crc32_wd()
262 uint32_t crc; in crc32_wd_buf() local
264 crc = crc32_wd(0, input, ilen, chunk_sz); in crc32_wd_buf()
265 crc = htonl(crc); in crc32_wd_buf()
266 memcpy(output, &crc, sizeof(crc)); in crc32_wd_buf()