Lines Matching full:crc

3  * Crypto-API module for CRC-32 algorithms implemented with the
31 u32 crc; member
35 * DEFINE_CRC32_VX() - Define a CRC-32 function using the vector extension
37 * Creates a function to perform a particular CRC-32 computation. Depending
44 static u32 __pure ___fname(u32 crc, \
51 return ___crc32_sw(crc, data, datalen); \
57 crc = ___crc32_sw(crc, data, prealign); \
65 crc = ___crc32_vx(crc, data, aligned); \
69 crc = ___crc32_sw(crc, data + aligned, remaining); \
71 return crc; \
100 ctx->crc = mctx->key; in crc32_vx_init()
130 *(__le32 *)out = cpu_to_le32p(&ctx->crc); in crc32le_vx_final()
138 *(__be32 *)out = cpu_to_be32p(&ctx->crc); in crc32be_vx_final()
150 *(__le32 *)out = ~cpu_to_le32p(&ctx->crc); in crc32c_vx_final()
154 static int __crc32le_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32le_vx_finup() argument
157 *(__le32 *)out = cpu_to_le32(crc32_le_vx(*crc, data, len)); in __crc32le_vx_finup()
161 static int __crc32be_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32be_vx_finup() argument
164 *(__be32 *)out = cpu_to_be32(crc32_be_vx(*crc, data, len)); in __crc32be_vx_finup()
168 static int __crc32c_vx_finup(u32 *crc, const u8 *data, unsigned int len, in __crc32c_vx_finup() argument
175 *(__le32 *)out = ~cpu_to_le32(crc32c_le_vx(*crc, data, len)); in __crc32c_vx_finup()
209 ctx->crc = func(ctx->crc, data, datalen); \
219 /* CRC-32 LE */
240 /* CRC-32 BE */
261 /* CRC-32C LE */
300 MODULE_DESCRIPTION("CRC-32 algorithms using z/Architecture Vector Extension Facility");