Lines Matching full:crc
3 * Hardware-accelerated CRC-32 variants for Linux on z Systems
6 * computing of bitreflected CRC-32 checksums for IEEE 802.3 Ethernet
9 * This CRC-32 implementation algorithm is bitreflected and processes
20 /* Vector register range containing CRC-32 constants */
29 * The CRC-32 constant block contains reduction constants to fold and
32 * For the CRC-32 variants, the constants are precomputed according to
48 * CRC-32 (IEEE 802.3 Ethernet, ...) polynomials:
53 * CRC-32C (Castagnoli) polynomials:
78 * crc32_le_vgfm_generic - Compute CRC-32 (LE variant) with vector registers
79 * @crc: Initial CRC value, typically ~0.
83 * @constants: CRC-32 constant pool base pointer.
86 * V0: Initial CRC value and intermediate constants and results.
87 * V1..V4: Data for CRC computation.
90 * V10..V14: CRC-32 constants.
92 static u32 crc32_le_vgfm_generic(u32 crc, unsigned char const *buf, size_t size, unsigned long *con… in crc32_le_vgfm_generic() argument
94 /* Load CRC-32 constants */ in crc32_le_vgfm_generic()
98 * Load the initial CRC value. in crc32_le_vgfm_generic()
100 * The CRC value is loaded into the rightmost word of the in crc32_le_vgfm_generic()
105 fpu_vlvgf(0, crc, 3); /* Load CRC into rightmost word */ in crc32_le_vgfm_generic()
107 /* Load a 64-byte data chunk and XOR with CRC */ in crc32_le_vgfm_generic()
114 fpu_vx(1, 0, 1); /* V1 ^= CRC */ in crc32_le_vgfm_generic()
199 * Apply a Barret reduction to compute the final 32-bit CRC value. in crc32_le_vgfm_generic()
203 * constant u. The Barret reduction result is the CRC value of R(x) mod in crc32_le_vgfm_generic()
222 * Compute the GF(2) product of the CRC polynomial with T1(x) in in crc32_le_vgfm_generic()
232 u32 crc32_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size) in crc32_le_vgfm_16() argument
234 return crc32_le_vgfm_generic(crc, buf, size, &constants_CRC_32_LE[0]); in crc32_le_vgfm_16()
237 u32 crc32c_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size) in crc32c_le_vgfm_16() argument
239 return crc32_le_vgfm_generic(crc, buf, size, &constants_CRC_32C_LE[0]); in crc32c_le_vgfm_16()