Lines Matching full:crc

3  * Crypto-API module for CRC-32 algorithms implemented with the
31 u32 crc; member
35 u32 crc32_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
36 u32 crc32_be_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
37 u32 crc32c_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
40 * DEFINE_CRC32_VX() - Define a CRC-32 function using the vector extension
42 * Creates a function to perform a particular CRC-32 computation. Depending
49 static u32 __pure ___fname(u32 crc, \
56 return ___crc32_sw(crc, data, datalen); \
62 crc = ___crc32_sw(crc, data, prealign); \
70 crc = ___crc32_vx(crc, data, aligned); \
74 crc = ___crc32_sw(crc, data + aligned, remaining); \
76 return crc; \
105 ctx->crc = mctx->key; in crc32_vx_init()
135 *(__le32 *)out = cpu_to_le32p(&ctx->crc); in crc32le_vx_final()
143 *(__be32 *)out = cpu_to_be32p(&ctx->crc); in crc32be_vx_final()
155 *(__le32 *)out = ~cpu_to_le32p(&ctx->crc); in crc32c_vx_final()
159 static int __crc32le_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32le_vx_finup() argument
162 *(__le32 *)out = cpu_to_le32(crc32_le_vx(*crc, data, len)); in __crc32le_vx_finup()
166 static int __crc32be_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32be_vx_finup() argument
169 *(__be32 *)out = cpu_to_be32(crc32_be_vx(*crc, data, len)); in __crc32be_vx_finup()
173 static int __crc32c_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32c_vx_finup() argument
180 *(__le32 *)out = ~cpu_to_le32(crc32c_le_vx(*crc, data, len)); in __crc32c_vx_finup()
214 ctx->crc = func(ctx->crc, data, datalen); \
224 /* CRC-32 LE */
245 /* CRC-32 BE */
266 /* CRC-32C LE */