Lines Matching refs:crc
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);
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); \