• Home
  • Raw
  • Download

Lines Matching refs:crc

52 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len);
60 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len) in crc32_le() argument
64 crc ^= *p++; in crc32_le()
66 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32_le()
68 return crc; in crc32_le()
72 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len) in crc32_le() argument
79 # define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8) in crc32_le()
81 # define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8) in crc32_le()
84 crc = __cpu_to_le32(crc); in crc32_le()
99 crc ^= *++b; in crc32_le()
117 return __le32_to_cpu(crc); in crc32_le()
123 crc ^= *p++; in crc32_le()
124 crc = (crc >> 4) ^ crc32table_le[crc & 15]; in crc32_le()
125 crc = (crc >> 4) ^ crc32table_le[crc & 15]; in crc32_le()
127 return crc; in crc32_le()
130 crc ^= *p++; in crc32_le()
131 crc = (crc >> 2) ^ crc32table_le[crc & 3]; in crc32_le()
132 crc = (crc >> 2) ^ crc32table_le[crc & 3]; in crc32_le()
133 crc = (crc >> 2) ^ crc32table_le[crc & 3]; in crc32_le()
134 crc = (crc >> 2) ^ crc32table_le[crc & 3]; in crc32_le()
136 return crc; in crc32_le()
148 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len);
156 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len) in crc32_be() argument
160 crc ^= *p++ << 24; in crc32_be()
162 crc = in crc32_be()
163 (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : in crc32_be()
166 return crc; in crc32_be()
170 u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len) in crc32_be() argument
177 # define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8) in crc32_be()
179 # define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8) in crc32_be()
182 crc = __cpu_to_be32(crc); in crc32_be()
197 crc ^= *++b; in crc32_be()
214 return __be32_to_cpu(crc); in crc32_be()
220 crc ^= *p++ << 24; in crc32_be()
221 crc = (crc << 4) ^ crc32table_be[crc >> 28]; in crc32_be()
222 crc = (crc << 4) ^ crc32table_be[crc >> 28]; in crc32_be()
224 return crc; in crc32_be()
227 crc ^= *p++ << 24; in crc32_be()
228 crc = (crc << 2) ^ crc32table_be[crc >> 30]; in crc32_be()
229 crc = (crc << 2) ^ crc32table_be[crc >> 30]; in crc32_be()
230 crc = (crc << 2) ^ crc32table_be[crc >> 30]; in crc32_be()
231 crc = (crc << 2) ^ crc32table_be[crc >> 30]; in crc32_be()
233 return crc; in crc32_be()