crc               125 arch/alpha/boot/misc.c 	ulg c = crc;
crc               135 arch/alpha/boot/misc.c 	crc = c;
crc               309 arch/arc/include/asm/arcregs.h 		unsigned int swap:1, norm:1, minmax:1, barrel:1, crc:1, swape:1, pad1:2,
crc                68 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc                70 arch/arm/crypto/crc32-ce-glue.c 	*crc = *mctx;
crc                77 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc                79 arch/arm/crypto/crc32-ce-glue.c 	*crc = crc32_armv8_le(*crc, data, length);
crc                86 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc                88 arch/arm/crypto/crc32-ce-glue.c 	*crc = crc32c_armv8_le(*crc, data, length);
crc                94 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc                96 arch/arm/crypto/crc32-ce-glue.c 	put_unaligned_le32(*crc, out);
crc               102 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc               104 arch/arm/crypto/crc32-ce-glue.c 	put_unaligned_le32(~*crc, out);
crc               111 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc               118 arch/arm/crypto/crc32-ce-glue.c 			*crc = fallback_crc32(*crc, data, l);
crc               128 arch/arm/crypto/crc32-ce-glue.c 			*crc = crc32_pmull_le(data, l, *crc);
crc               137 arch/arm/crypto/crc32-ce-glue.c 		*crc = fallback_crc32(*crc, data, length);
crc               145 arch/arm/crypto/crc32-ce-glue.c 	u32 *crc = shash_desc_ctx(desc);
crc               152 arch/arm/crypto/crc32-ce-glue.c 			*crc = fallback_crc32c(*crc, data, l);
crc               162 arch/arm/crypto/crc32-ce-glue.c 			*crc = crc32c_pmull_le(data, l, *crc);
crc               171 arch/arm/crypto/crc32-ce-glue.c 		*crc = fallback_crc32c(*crc, data, length);
crc                26 arch/arm/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                28 arch/arm/crypto/crct10dif-ce-glue.c 	*crc = 0;
crc                35 arch/arm/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                39 arch/arm/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_pmull(*crc, data, length);
crc                42 arch/arm/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_generic(*crc, data, length);
crc                50 arch/arm/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                52 arch/arm/crypto/crct10dif-ce-glue.c 	*(u16 *)out = *crc;
crc                28 arch/arm64/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                30 arch/arm64/crypto/crct10dif-ce-glue.c 	*crc = 0;
crc                37 arch/arm64/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                41 arch/arm64/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_pmull_p8(*crc, data, length);
crc                44 arch/arm64/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_generic(*crc, data, length);
crc                53 arch/arm64/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                57 arch/arm64/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_pmull_p64(*crc, data, length);
crc                60 arch/arm64/crypto/crct10dif-ce-glue.c 		*crc = crc_t10dif_generic(*crc, data, length);
crc                68 arch/arm64/crypto/crct10dif-ce-glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                70 arch/arm64/crypto/crct10dif-ce-glue.c 	*(u16 *)out = *crc;
crc                29 arch/mips/bcm63xx/nvram.c 	u32 crc, expected_crc;
crc                36 arch/mips/bcm63xx/nvram.c 	if (bcm963xx_nvram_checksum(&nvram, &expected_crc, &crc))
crc                38 arch/mips/bcm63xx/nvram.c 			expected_crc, crc);
crc               148 arch/mips/cavium-octeon/executive/cvmx-pko.c 		config.s.crc = 1;
crc                53 arch/mips/crypto/crc32-mips.c #define _CRC32(crc, value, size, type)		\
crc                60 arch/mips/crypto/crc32-mips.c 		: "+r" (crc)			\
crc                64 arch/mips/crypto/crc32-mips.c #define CRC32(crc, value, size) \
crc                65 arch/mips/crypto/crc32-mips.c 	_CRC32(crc, value, size, crc32)
crc                67 arch/mips/crypto/crc32-mips.c #define CRC32C(crc, value, size) \
crc                68 arch/mips/crypto/crc32-mips.c 	_CRC32(crc, value, size, crc32c)
crc                72 arch/mips/crypto/crc32-mips.c 	u32 crc = crc_;
crc                78 arch/mips/crypto/crc32-mips.c 		CRC32(crc, value, d);
crc                89 arch/mips/crypto/crc32-mips.c 		CRC32(crc, value, w);
crc                97 arch/mips/crypto/crc32-mips.c 		CRC32(crc, value, h);
crc               104 arch/mips/crypto/crc32-mips.c 		CRC32(crc, value, b);
crc               107 arch/mips/crypto/crc32-mips.c 	return crc;
crc               112 arch/mips/crypto/crc32-mips.c 	u32 crc = crc_;
crc               118 arch/mips/crypto/crc32-mips.c 		CRC32C(crc, value, d);
crc               129 arch/mips/crypto/crc32-mips.c 		CRC32C(crc, value, w);
crc               137 arch/mips/crypto/crc32-mips.c 		CRC32C(crc, value, h);
crc               144 arch/mips/crypto/crc32-mips.c 		CRC32C(crc, value, b);
crc               146 arch/mips/crypto/crc32-mips.c 	return crc;
crc               157 arch/mips/crypto/crc32-mips.c 	u32 crc;
crc               165 arch/mips/crypto/crc32-mips.c 	ctx->crc = mctx->key;
crc               193 arch/mips/crypto/crc32-mips.c 	ctx->crc = crc32_mips_le_hw(ctx->crc, data, length);
crc               202 arch/mips/crypto/crc32-mips.c 	ctx->crc = crc32c_mips_le_hw(ctx->crc, data, length);
crc               210 arch/mips/crypto/crc32-mips.c 	put_unaligned_le32(ctx->crc, out);
crc               218 arch/mips/crypto/crc32-mips.c 	put_unaligned_le32(~ctx->crc, out);
crc               222 arch/mips/crypto/crc32-mips.c static int __chksum_finup(u32 crc, const u8 *data, unsigned int len, u8 *out)
crc               224 arch/mips/crypto/crc32-mips.c 	put_unaligned_le32(crc32_mips_le_hw(crc, data, len), out);
crc               228 arch/mips/crypto/crc32-mips.c static int __chksumc_finup(u32 crc, const u8 *data, unsigned int len, u8 *out)
crc               230 arch/mips/crypto/crc32-mips.c 	put_unaligned_le32(~crc32c_mips_le_hw(crc, data, len), out);
crc               239 arch/mips/crypto/crc32-mips.c 	return __chksum_finup(ctx->crc, data, len, out);
crc               247 arch/mips/crypto/crc32-mips.c 	return __chksumc_finup(ctx->crc, data, len, out);
crc               959 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc               983 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc              1270 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc              1282 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc              1367 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc              1405 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t crc:1;
crc                84 arch/mips/lasat/lasat_board.c 	unsigned long crc;
crc                98 arch/mips/lasat/lasat_board.c 	crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info),
crc               101 arch/mips/lasat/lasat_board.c 	if (crc != lasat_board_info.li_eeprom_info.crc32) {
crc               254 arch/mips/lasat/lasat_board.c 	unsigned long crc;
crc               259 arch/mips/lasat/lasat_board.c 	crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info),
crc               261 arch/mips/lasat/lasat_board.c 	lasat_board_info.li_eeprom_info.crc32 = crc;
crc               135 arch/nios2/boot/compressed/misc.c 	ulg c = crc;	/* temporary variable */
crc               145 arch/nios2/boot/compressed/misc.c 	crc = c;
crc                21 arch/powerpc/crypto/crc32c-vpmsum_glue.c u32 __crc32c_vpmsum(u32 crc, unsigned char const *p, size_t len);
crc                23 arch/powerpc/crypto/crc32c-vpmsum_glue.c static u32 crc32c_vpmsum(u32 crc, unsigned char const *p, size_t len)
crc                29 arch/powerpc/crypto/crc32c-vpmsum_glue.c 		return __crc32c_le(crc, p, len);
crc                33 arch/powerpc/crypto/crc32c-vpmsum_glue.c 		crc = __crc32c_le(crc, p, prealign);
crc                42 arch/powerpc/crypto/crc32c-vpmsum_glue.c 		crc = __crc32c_vpmsum(crc, p, len & ~VMX_ALIGN_MASK);
crc                51 arch/powerpc/crypto/crc32c-vpmsum_glue.c 		crc = __crc32c_le(crc, p, tail);
crc                54 arch/powerpc/crypto/crc32c-vpmsum_glue.c 	return crc;
crc                25 arch/powerpc/crypto/crct10dif-vpmsum_glue.c u32 __crct10dif_vpmsum(u32 crc, unsigned char const *p, size_t len);
crc                31 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	u32 crc = crci;
crc                34 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		return crc_t10dif_generic(crc, p, len);
crc                38 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		crc = crc_t10dif_generic(crc, p, prealign);
crc                44 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		crc <<= 16;
crc                48 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		crc = __crct10dif_vpmsum(crc, p, len & ~VMX_ALIGN_MASK);
crc                52 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		crc >>= 16;
crc                58 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 		crc = crc_t10dif_generic(crc, p, tail);
crc                61 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	return crc & 0xffff;
crc                66 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                68 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	*crc = 0;
crc                75 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	u16 *crc = shash_desc_ctx(desc);
crc                77 arch/powerpc/crypto/crct10dif-vpmsum_glue.c 	*crc = crct10dif_vpmsum(*crc, data, length);
crc                31 arch/s390/crypto/crc32-vx.c 	u32 crc;
crc                35 arch/s390/crypto/crc32-vx.c u32 crc32_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
crc                36 arch/s390/crypto/crc32-vx.c u32 crc32_be_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
crc                37 arch/s390/crypto/crc32-vx.c u32 crc32c_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
crc                49 arch/s390/crypto/crc32-vx.c 	static u32 __pure ___fname(u32 crc,				    \
crc                56 arch/s390/crypto/crc32-vx.c 			return ___crc32_sw(crc, data, datalen);		    \
crc                62 arch/s390/crypto/crc32-vx.c 			crc = ___crc32_sw(crc, data, prealign);		    \
crc                70 arch/s390/crypto/crc32-vx.c 		crc = ___crc32_vx(crc, data, aligned);			    \
crc                74 arch/s390/crypto/crc32-vx.c 			crc = ___crc32_sw(crc, data + aligned, remaining);  \
crc                76 arch/s390/crypto/crc32-vx.c 		return crc;						    \
crc               105 arch/s390/crypto/crc32-vx.c 	ctx->crc = mctx->key;
crc               139 arch/s390/crypto/crc32-vx.c 	*(__le32 *)out = cpu_to_le32p(&ctx->crc);
crc               147 arch/s390/crypto/crc32-vx.c 	*(__be32 *)out = cpu_to_be32p(&ctx->crc);
crc               159 arch/s390/crypto/crc32-vx.c 	*(__le32 *)out = ~cpu_to_le32p(&ctx->crc);
crc               163 arch/s390/crypto/crc32-vx.c static int __crc32le_vx_finup(u32 *crc, const u8 *data, unsigned int len,
crc               166 arch/s390/crypto/crc32-vx.c 	*(__le32 *)out = cpu_to_le32(crc32_le_vx(*crc, data, len));
crc               170 arch/s390/crypto/crc32-vx.c static int __crc32be_vx_finup(u32 *crc, const u8 *data, unsigned int len,
crc               173 arch/s390/crypto/crc32-vx.c 	*(__be32 *)out = cpu_to_be32(crc32_be_vx(*crc, data, len));
crc               177 arch/s390/crypto/crc32-vx.c static int __crc32c_vx_finup(u32 *crc, const u8 *data, unsigned int len,
crc               184 arch/s390/crypto/crc32-vx.c 	*(__le32 *)out = ~cpu_to_le32(crc32c_le_vx(*crc, data, len));
crc               218 arch/s390/crypto/crc32-vx.c 		ctx->crc = func(ctx->crc, data, datalen);		      \
crc               118 arch/x86/boot/tools/build.c static u32 partial_crc32_one(u8 c, u32 crc)
crc               120 arch/x86/boot/tools/build.c 	return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8);
crc               123 arch/x86/boot/tools/build.c static u32 partial_crc32(const u8 *s, int len, u32 crc)
crc               126 arch/x86/boot/tools/build.c 		crc = partial_crc32_one(*s++, crc);
crc               127 arch/x86/boot/tools/build.c 	return crc;
crc               341 arch/x86/boot/tools/build.c 	u32 crc = 0xffffffffUL;
crc               413 arch/x86/boot/tools/build.c 	crc = partial_crc32(buf, i, crc);
crc               418 arch/x86/boot/tools/build.c 	crc = partial_crc32(kernel, sz, crc);
crc               424 arch/x86/boot/tools/build.c 		crc = partial_crc32_one('\0', crc);
crc               430 arch/x86/boot/tools/build.c 	printf("CRC %x\n", crc);
crc               431 arch/x86/boot/tools/build.c 	put_unaligned_le32(crc, buf);
crc                52 arch/x86/crypto/crc32-pclmul_glue.c 	crc32_pclmul_le(u32 crc, unsigned char const *p, size_t len)
crc                59 arch/x86/crypto/crc32-pclmul_glue.c 		return crc32_le(crc, p, len);
crc                65 arch/x86/crypto/crc32-pclmul_glue.c 		crc = crc32_le(crc, p, prealign);
crc                74 arch/x86/crypto/crc32-pclmul_glue.c 	crc = crc32_pclmul_le_16(p, iquotient, crc);
crc                78 arch/x86/crypto/crc32-pclmul_glue.c 		crc = crc32_le(crc, p + iquotient, iremainder);
crc                80 arch/x86/crypto/crc32-pclmul_glue.c 	return crc;
crc                48 arch/x86/crypto/crc32c-intel_glue.c static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length)
crc                53 arch/x86/crypto/crc32c-intel_glue.c 			:"=S"(crc)
crc                54 arch/x86/crypto/crc32c-intel_glue.c 			:"0"(crc), "c"(*data)
crc                59 arch/x86/crypto/crc32c-intel_glue.c 	return crc;
crc                62 arch/x86/crypto/crc32c-intel_glue.c static u32 __pure crc32c_intel_le_hw(u32 crc, unsigned char const *p, size_t len)
crc                71 arch/x86/crypto/crc32c-intel_glue.c 			:"=S"(crc)
crc                72 arch/x86/crypto/crc32c-intel_glue.c 			:"0"(crc), "c"(*ptmp)
crc                78 arch/x86/crypto/crc32c-intel_glue.c 		crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp,
crc                81 arch/x86/crypto/crc32c-intel_glue.c 	return crc;
crc                40 arch/x86/crypto/crct10dif-pclmul_glue.c 	__u16 crc;
crc                47 arch/x86/crypto/crct10dif-pclmul_glue.c 	ctx->crc = 0;
crc                59 arch/x86/crypto/crct10dif-pclmul_glue.c 		ctx->crc = crc_t10dif_pcl(ctx->crc, data, length);
crc                62 arch/x86/crypto/crct10dif-pclmul_glue.c 		ctx->crc = crc_t10dif_generic(ctx->crc, data, length);
crc                70 arch/x86/crypto/crct10dif-pclmul_glue.c 	*(__u16 *)out = ctx->crc;
crc                74 arch/x86/crypto/crct10dif-pclmul_glue.c static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out)
crc                78 arch/x86/crypto/crct10dif-pclmul_glue.c 		*(__u16 *)out = crc_t10dif_pcl(crc, data, len);
crc                81 arch/x86/crypto/crct10dif-pclmul_glue.c 		*(__u16 *)out = crc_t10dif_generic(crc, data, len);
crc                90 arch/x86/crypto/crct10dif-pclmul_glue.c 	return __chksum_finup(ctx->crc, data, len, out);
crc               340 block/partitions/efi.c 	u32 crc, origcrc;
crc               377 block/partitions/efi.c 	crc = efi_crc32((const unsigned char *) (*gpt), le32_to_cpu((*gpt)->header_size));
crc               379 block/partitions/efi.c 	if (crc != origcrc) {
crc               381 block/partitions/efi.c 			 crc, origcrc);
crc               436 block/partitions/efi.c 	crc = efi_crc32((const unsigned char *) (*ptes), pt_size);
crc               438 block/partitions/efi.c 	if (crc != le32_to_cpu((*gpt)->partition_entry_array_crc32)) {
crc                49 crypto/crc32c_generic.c 	u32 crc;
crc                62 crypto/crc32c_generic.c 	ctx->crc = mctx->key;
crc                90 crypto/crc32c_generic.c 	ctx->crc = __crc32c_le(ctx->crc, data, length);
crc                98 crypto/crc32c_generic.c 	put_unaligned_le32(~ctx->crc, out);
crc               113 crypto/crc32c_generic.c 	return __chksum_finup(&ctx->crc, data, len, out);
crc                70 crypto/crct10dif_common.c __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len)
crc                75 crypto/crct10dif_common.c 		crc = (crc << 8) ^ t10_dif_crc_table[((crc >> 8) ^ buffer[i]) & 0xff];
crc                77 crypto/crct10dif_common.c 	return crc;
crc                34 crypto/crct10dif_generic.c 	__u16 crc;
crc                46 crypto/crct10dif_generic.c 	ctx->crc = 0;
crc                56 crypto/crct10dif_generic.c 	ctx->crc = crc_t10dif_generic(ctx->crc, data, length);
crc                64 crypto/crct10dif_generic.c 	*(__u16 *)out = ctx->crc;
crc                68 crypto/crct10dif_generic.c static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out)
crc                70 crypto/crct10dif_generic.c 	*(__u16 *)out = crc_t10dif_generic(crc, data, len);
crc                79 crypto/crct10dif_generic.c 	return __chksum_finup(ctx->crc, data, len, out);
crc               260 drivers/acpi/acpi_dbg.c 	struct circ_buf *crc = &acpi_aml_io.out_crc;
crc               264 drivers/acpi/acpi_dbg.c 	ret = acpi_aml_lock_write(crc, ACPI_AML_OUT_KERN);
crc               269 drivers/acpi/acpi_dbg.c 	p = &crc->buf[crc->head];
crc               270 drivers/acpi/acpi_dbg.c 	n = min(len, circ_space_to_end(crc));
crc               274 drivers/acpi/acpi_dbg.c 	crc->head = (crc->head + n) & (ACPI_AML_BUF_SIZE - 1);
crc               282 drivers/acpi/acpi_dbg.c 	struct circ_buf *crc = &acpi_aml_io.in_crc;
crc               285 drivers/acpi/acpi_dbg.c 	ret = acpi_aml_lock_read(crc, ACPI_AML_IN_KERN);
crc               290 drivers/acpi/acpi_dbg.c 	p = &crc->buf[crc->tail];
crc               294 drivers/acpi/acpi_dbg.c 	crc->tail = (crc->tail + 1) & (ACPI_AML_BUF_SIZE - 1);
crc               582 drivers/acpi/acpi_dbg.c 	struct circ_buf *crc = &acpi_aml_io.out_crc;
crc               586 drivers/acpi/acpi_dbg.c 	ret = acpi_aml_lock_read(crc, ACPI_AML_OUT_USER);
crc               591 drivers/acpi/acpi_dbg.c 	p = &crc->buf[crc->tail];
crc               592 drivers/acpi/acpi_dbg.c 	n = min(len, circ_count_to_end(crc));
crc               599 drivers/acpi/acpi_dbg.c 	crc->tail = (crc->tail + n) & (ACPI_AML_BUF_SIZE - 1);
crc               652 drivers/acpi/acpi_dbg.c 	struct circ_buf *crc = &acpi_aml_io.in_crc;
crc               656 drivers/acpi/acpi_dbg.c 	ret = acpi_aml_lock_write(crc, ACPI_AML_IN_USER);
crc               661 drivers/acpi/acpi_dbg.c 	p = &crc->buf[crc->head];
crc               662 drivers/acpi/acpi_dbg.c 	n = min(len, circ_space_to_end(crc));
crc               669 drivers/acpi/acpi_dbg.c 	crc->head = (crc->head + n) & (ACPI_AML_BUF_SIZE - 1);
crc                87 drivers/bcma/sprom.c static inline u8 bcma_crc8(u8 crc, u8 data)
crc               124 drivers/bcma/sprom.c 	return t[crc ^ data];
crc               130 drivers/bcma/sprom.c 	u8 crc = 0xFF;
crc               133 drivers/bcma/sprom.c 		crc = bcma_crc8(crc, sprom[word] & 0x00FF);
crc               134 drivers/bcma/sprom.c 		crc = bcma_crc8(crc, (sprom[word] & 0xFF00) >> 8);
crc               136 drivers/bcma/sprom.c 	crc = bcma_crc8(crc, sprom[words - 1] & 0x00FF);
crc               137 drivers/bcma/sprom.c 	crc ^= 0xFF;
crc               139 drivers/bcma/sprom.c 	return crc;
crc               144 drivers/bcma/sprom.c 	u8 crc;
crc               148 drivers/bcma/sprom.c 	crc = bcma_sprom_crc(sprom, words);
crc               151 drivers/bcma/sprom.c 	if (crc != expected_crc)
crc               987 drivers/block/amiflop.c 	unsigned short crc;     /* on 68000 we got an alignment problem, 
crc              1155 drivers/block/amiflop.c 	unsigned short crc,data_crc[2];
crc              1176 drivers/block/amiflop.c 		crc = dos_hdr_crc(&hdr);
crc              1180 drivers/block/amiflop.c 		       hdr.sec, hdr.len_desc, hdr.crc);
crc              1183 drivers/block/amiflop.c 		if (crc != hdr.crc) {
crc              1185 drivers/block/amiflop.c 			       hdr.crc, crc);
crc              1230 drivers/block/amiflop.c 		crc = dos_data_crc(unit[drive].trackbuf + (hdr.sec - 1) * 512);
crc              1232 drivers/block/amiflop.c 		if (crc != data_crc[0]) {
crc              1235 drivers/block/amiflop.c 			       hdr.sec, hdr.len_desc, scnt,data_crc[0], crc);
crc              1276 drivers/block/amiflop.c 	static ushort crc[2]={0,0x4e4e};
crc              1291 drivers/block/amiflop.c 	hdr.crc=dos_hdr_crc(&hdr);
crc              1311 drivers/block/amiflop.c 	crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512);
crc              1312 drivers/block/amiflop.c 	dos_encode_block((ushort *) raw,(unsigned char *)crc,4);
crc               322 drivers/block/drbd/drbd_actlog.c 	unsigned crc = 0;
crc               378 drivers/block/drbd/drbd_actlog.c 	crc = crc32c(0, buffer, 4096);
crc               379 drivers/block/drbd/drbd_actlog.c 	buffer->crc32c = cpu_to_be32(crc);
crc                46 drivers/block/rsxx/config.c 	hdr->crc     = be32_to_cpu((__force __be32) hdr->crc);
crc                52 drivers/block/rsxx/config.c 	hdr->crc     = (__force u32) cpu_to_be32(hdr->crc);
crc               101 drivers/block/rsxx/config.c 	cfg.hdr.crc = config_data_crc32(&cfg);
crc               120 drivers/block/rsxx/config.c 	u32 crc;
crc               143 drivers/block/rsxx/config.c 		crc = config_data_crc32(&card->config);
crc               144 drivers/block/rsxx/config.c 		if (crc != card->config.hdr.crc) {
crc               149 drivers/block/rsxx/config.c 				card->config.hdr.crc, crc);
crc               179 drivers/block/rsxx/config.c 		card->config.hdr.crc);
crc                26 drivers/block/rsxx/rsxx_cfg.h 	__u32	crc;
crc                98 drivers/bluetooth/hci_bcsp.c static void bcsp_crc_update(u16 *crc, u8 d)
crc               100 drivers/bluetooth/hci_bcsp.c 	u16 reg = *crc;
crc               105 drivers/bluetooth/hci_bcsp.c 	*crc = reg;
crc               561 drivers/crypto/hifn_795x.c 	volatile __le16		crc;
crc                62 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc;
crc               101 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc;
crc               104 drivers/crypto/stm32/stm32-crc32.c 	list_for_each_entry(crc, &crc_list.dev_list, list) {
crc               105 drivers/crypto/stm32/stm32-crc32.c 		ctx->crc = crc;
crc               110 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_get_sync(ctx->crc->dev);
crc               113 drivers/crypto/stm32/stm32-crc32.c 	writel_relaxed(bitrev32(mctx->key), ctx->crc->regs + CRC_INIT);
crc               114 drivers/crypto/stm32/stm32-crc32.c 	writel_relaxed(bitrev32(mctx->poly), ctx->crc->regs + CRC_POL);
crc               115 drivers/crypto/stm32/stm32-crc32.c 	writel_relaxed(CRC_CR_RESET | CRC_CR_REVERSE, ctx->crc->regs + CRC_CR);
crc               118 drivers/crypto/stm32/stm32-crc32.c 	ctx->partial = readl_relaxed(ctx->crc->regs + CRC_DR);
crc               119 drivers/crypto/stm32/stm32-crc32.c 	ctx->crc->nb_pending_bytes = 0;
crc               121 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_mark_last_busy(ctx->crc->dev);
crc               122 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_put_autosuspend(ctx->crc->dev);
crc               131 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc = ctx->crc;
crc               135 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_get_sync(crc->dev);
crc               137 drivers/crypto/stm32/stm32-crc32.c 	if (unlikely(crc->nb_pending_bytes)) {
crc               138 drivers/crypto/stm32/stm32-crc32.c 		while (crc->nb_pending_bytes != sizeof(u32) && length) {
crc               140 drivers/crypto/stm32/stm32-crc32.c 			crc->pending_data[crc->nb_pending_bytes++] = *(d8++);
crc               144 drivers/crypto/stm32/stm32-crc32.c 		if (crc->nb_pending_bytes == sizeof(u32)) {
crc               146 drivers/crypto/stm32/stm32-crc32.c 			writel_relaxed(*(u32 *)crc->pending_data,
crc               147 drivers/crypto/stm32/stm32-crc32.c 				       crc->regs + CRC_DR);
crc               148 drivers/crypto/stm32/stm32-crc32.c 			crc->nb_pending_bytes = 0;
crc               155 drivers/crypto/stm32/stm32-crc32.c 		writel_relaxed(*(d32++), crc->regs + CRC_DR);
crc               158 drivers/crypto/stm32/stm32-crc32.c 	ctx->partial = readl_relaxed(crc->regs + CRC_DR);
crc               160 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_mark_last_busy(crc->dev);
crc               161 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_put_autosuspend(crc->dev);
crc               168 drivers/crypto/stm32/stm32-crc32.c 	if ((crc->nb_pending_bytes + length) >= sizeof(u32)) {
crc               170 drivers/crypto/stm32/stm32-crc32.c 		dev_err(crc->dev, "Pending data overflow\n");
crc               177 drivers/crypto/stm32/stm32-crc32.c 		crc->pending_data[crc->nb_pending_bytes++] = *(d8++);
crc               257 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc;
crc               260 drivers/crypto/stm32/stm32-crc32.c 	crc = devm_kzalloc(dev, sizeof(*crc), GFP_KERNEL);
crc               261 drivers/crypto/stm32/stm32-crc32.c 	if (!crc)
crc               264 drivers/crypto/stm32/stm32-crc32.c 	crc->dev = dev;
crc               266 drivers/crypto/stm32/stm32-crc32.c 	crc->regs = devm_platform_ioremap_resource(pdev, 0);
crc               267 drivers/crypto/stm32/stm32-crc32.c 	if (IS_ERR(crc->regs)) {
crc               269 drivers/crypto/stm32/stm32-crc32.c 		return PTR_ERR(crc->regs);
crc               272 drivers/crypto/stm32/stm32-crc32.c 	crc->clk = devm_clk_get(dev, NULL);
crc               273 drivers/crypto/stm32/stm32-crc32.c 	if (IS_ERR(crc->clk)) {
crc               275 drivers/crypto/stm32/stm32-crc32.c 		return PTR_ERR(crc->clk);
crc               278 drivers/crypto/stm32/stm32-crc32.c 	ret = clk_prepare_enable(crc->clk);
crc               280 drivers/crypto/stm32/stm32-crc32.c 		dev_err(crc->dev, "Failed to enable clock\n");
crc               291 drivers/crypto/stm32/stm32-crc32.c 	platform_set_drvdata(pdev, crc);
crc               294 drivers/crypto/stm32/stm32-crc32.c 	list_add(&crc->list, &crc_list.dev_list);
crc               300 drivers/crypto/stm32/stm32-crc32.c 		clk_disable_unprepare(crc->clk);
crc               313 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc = platform_get_drvdata(pdev);
crc               314 drivers/crypto/stm32/stm32-crc32.c 	int ret = pm_runtime_get_sync(crc->dev);
crc               320 drivers/crypto/stm32/stm32-crc32.c 	list_del(&crc->list);
crc               325 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_disable(crc->dev);
crc               326 drivers/crypto/stm32/stm32-crc32.c 	pm_runtime_put_noidle(crc->dev);
crc               328 drivers/crypto/stm32/stm32-crc32.c 	clk_disable_unprepare(crc->clk);
crc               336 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc = dev_get_drvdata(dev);
crc               338 drivers/crypto/stm32/stm32-crc32.c 	clk_disable_unprepare(crc->clk);
crc               345 drivers/crypto/stm32/stm32-crc32.c 	struct stm32_crc *crc = dev_get_drvdata(dev);
crc               348 drivers/crypto/stm32/stm32-crc32.c 	ret = clk_prepare_enable(crc->clk);
crc               350 drivers/crypto/stm32/stm32-crc32.c 		dev_err(crc->dev, "Failed to prepare_enable clock\n");
crc                46 drivers/firewire/core-card.c 	u16 crc;
crc                49 drivers/firewire/core-card.c 	crc = crc_itu_t(0, (u8 *)&block[1], length * 4);
crc                50 drivers/firewire/core-card.c 	*block |= cpu_to_be32(crc);
crc               474 drivers/fsi/fsi-core.c 		uint8_t slots, version, type, crc;
crc               488 drivers/fsi/fsi-core.c 		crc = crc4(0, conf, 32);
crc               489 drivers/fsi/fsi-core.c 		if (crc) {
crc               983 drivers/fsi/fsi-core.c 	uint8_t crc;
crc              1001 drivers/fsi/fsi-core.c 	crc = crc4(0, cfam_id, 32);
crc              1002 drivers/fsi/fsi-core.c 	if (crc) {
crc               139 drivers/fsi/fsi-master-ast-cf.c 	uint8_t crc;
crc               145 drivers/fsi/fsi-master-ast-cf.c 	crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1);
crc               148 drivers/fsi/fsi-master-ast-cf.c 	crc = crc4(crc, msg->msg, msg->bits - top);
crc               150 drivers/fsi/fsi-master-ast-cf.c 	msg_push_bits(msg, crc, 4);
crc               383 drivers/fsi/fsi-master-ast-cf.c 	uint32_t crc;
crc               389 drivers/fsi/fsi-master-ast-cf.c 	crc = crc4(0, 1, 1);
crc               390 drivers/fsi/fsi-master-ast-cf.c 	crc = crc4(crc, rtag, 4);
crc               393 drivers/fsi/fsi-master-ast-cf.c 		crc = crc4(crc, rdata, size);
crc               397 drivers/fsi/fsi-master-ast-cf.c 	crc = crc4(crc, rcrc, 4);
crc               399 drivers/fsi/fsi-master-ast-cf.c 	trace_fsi_master_acf_copro_response(master, rtag, rcrc, rdata, crc == 0);
crc               401 drivers/fsi/fsi-master-ast-cf.c 	if (crc) {
crc               171 drivers/fsi/fsi-master-gpio.c 	uint8_t crc;
crc               177 drivers/fsi/fsi-master-gpio.c 	crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1);
crc               180 drivers/fsi/fsi-master-gpio.c 	crc = crc4(crc, msg->msg, msg->bits - top);
crc               182 drivers/fsi/fsi-master-gpio.c 	msg_push_bits(msg, crc, 4);
crc               339 drivers/fsi/fsi-master-gpio.c 	uint32_t crc;
crc               378 drivers/fsi/fsi-master-gpio.c 	crc = crc4(0, 1, 1);
crc               379 drivers/fsi/fsi-master-gpio.c 	crc = crc4(crc, msg.msg, msg.bits);
crc               380 drivers/fsi/fsi-master-gpio.c 	if (crc) {
crc               150 drivers/gpu/drm/drm_crtc.c 	spin_lock_init(&crtc->crc.lock);
crc               151 drivers/gpu/drm/drm_crtc.c 	init_waitqueue_head(&crtc->crc.wq);
crc               152 drivers/gpu/drm/drm_crtc.c 	crtc->crc.source = kstrdup("auto", GFP_KERNEL);
crc               153 drivers/gpu/drm/drm_crtc.c 	if (!crtc->crc.source)
crc               162 drivers/gpu/drm/drm_crtc.c 	kfree(crtc->crc.source);
crc               100 drivers/gpu/drm/drm_debugfs_crc.c 				if (strcmp(sources[i], crtc->crc.source))
crc               109 drivers/gpu/drm/drm_debugfs_crc.c 	seq_printf(m, "%s*\n", crtc->crc.source);
crc               125 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               150 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               152 drivers/gpu/drm/drm_debugfs_crc.c 	if (crc->opened) {
crc               153 drivers/gpu/drm/drm_debugfs_crc.c 		spin_unlock_irq(&crc->lock);
crc               158 drivers/gpu/drm/drm_debugfs_crc.c 	kfree(crc->source);
crc               159 drivers/gpu/drm/drm_debugfs_crc.c 	crc->source = source;
crc               161 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               176 drivers/gpu/drm/drm_debugfs_crc.c static int crtc_crc_data_count(struct drm_crtc_crc *crc)
crc               178 drivers/gpu/drm/drm_debugfs_crc.c 	assert_spin_locked(&crc->lock);
crc               179 drivers/gpu/drm/drm_debugfs_crc.c 	return CIRC_CNT(crc->head, crc->tail, DRM_CRC_ENTRIES_NR);
crc               182 drivers/gpu/drm/drm_debugfs_crc.c static void crtc_crc_cleanup(struct drm_crtc_crc *crc)
crc               184 drivers/gpu/drm/drm_debugfs_crc.c 	kfree(crc->entries);
crc               185 drivers/gpu/drm/drm_debugfs_crc.c 	crc->overflow = false;
crc               186 drivers/gpu/drm/drm_debugfs_crc.c 	crc->entries = NULL;
crc               187 drivers/gpu/drm/drm_debugfs_crc.c 	crc->head = 0;
crc               188 drivers/gpu/drm/drm_debugfs_crc.c 	crc->tail = 0;
crc               189 drivers/gpu/drm/drm_debugfs_crc.c 	crc->values_cnt = 0;
crc               190 drivers/gpu/drm/drm_debugfs_crc.c 	crc->opened = false;
crc               196 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               214 drivers/gpu/drm/drm_debugfs_crc.c 	ret = crtc->funcs->verify_crc_source(crtc, crc->source, &values_cnt);
crc               228 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               229 drivers/gpu/drm/drm_debugfs_crc.c 	if (!crc->opened) {
crc               230 drivers/gpu/drm/drm_debugfs_crc.c 		crc->opened = true;
crc               231 drivers/gpu/drm/drm_debugfs_crc.c 		crc->entries = entries;
crc               232 drivers/gpu/drm/drm_debugfs_crc.c 		crc->values_cnt = values_cnt;
crc               236 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               243 drivers/gpu/drm/drm_debugfs_crc.c 	ret = crtc->funcs->set_crc_source(crtc, crc->source);
crc               250 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               251 drivers/gpu/drm/drm_debugfs_crc.c 	crtc_crc_cleanup(crc);
crc               252 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               259 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               263 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               264 drivers/gpu/drm/drm_debugfs_crc.c 	crtc_crc_cleanup(crc);
crc               265 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               281 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               286 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               288 drivers/gpu/drm/drm_debugfs_crc.c 	if (!crc->source) {
crc               289 drivers/gpu/drm/drm_debugfs_crc.c 		spin_unlock_irq(&crc->lock);
crc               294 drivers/gpu/drm/drm_debugfs_crc.c 	while (crtc_crc_data_count(crc) == 0) {
crc               296 drivers/gpu/drm/drm_debugfs_crc.c 			spin_unlock_irq(&crc->lock);
crc               300 drivers/gpu/drm/drm_debugfs_crc.c 		ret = wait_event_interruptible_lock_irq(crc->wq,
crc               301 drivers/gpu/drm/drm_debugfs_crc.c 							crtc_crc_data_count(crc),
crc               302 drivers/gpu/drm/drm_debugfs_crc.c 							crc->lock);
crc               304 drivers/gpu/drm/drm_debugfs_crc.c 			spin_unlock_irq(&crc->lock);
crc               310 drivers/gpu/drm/drm_debugfs_crc.c 	entry = &crc->entries[crc->tail];
crc               312 drivers/gpu/drm/drm_debugfs_crc.c 	if (count < LINE_LEN(crc->values_cnt)) {
crc               313 drivers/gpu/drm/drm_debugfs_crc.c 		spin_unlock_irq(&crc->lock);
crc               318 drivers/gpu/drm/drm_debugfs_crc.c 	crc->tail = (crc->tail + 1) & (DRM_CRC_ENTRIES_NR - 1);
crc               320 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               327 drivers/gpu/drm/drm_debugfs_crc.c 	for (i = 0; i < crc->values_cnt; i++)
crc               329 drivers/gpu/drm/drm_debugfs_crc.c 	sprintf(buf + 10 + crc->values_cnt * 11, "\n");
crc               331 drivers/gpu/drm/drm_debugfs_crc.c 	if (copy_to_user(user_buf, buf, LINE_LEN(crc->values_cnt)))
crc               334 drivers/gpu/drm/drm_debugfs_crc.c 	return LINE_LEN(crc->values_cnt);
crc               340 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               343 drivers/gpu/drm/drm_debugfs_crc.c 	poll_wait(file, &crc->wq, wait);
crc               345 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irq(&crc->lock);
crc               346 drivers/gpu/drm/drm_debugfs_crc.c 	if (crc->source && crtc_crc_data_count(crc))
crc               350 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irq(&crc->lock);
crc               391 drivers/gpu/drm/drm_debugfs_crc.c 	struct drm_crtc_crc *crc = &crtc->crc;
crc               396 drivers/gpu/drm/drm_debugfs_crc.c 	spin_lock_irqsave(&crc->lock, flags);
crc               399 drivers/gpu/drm/drm_debugfs_crc.c 	if (!crc->entries) {
crc               400 drivers/gpu/drm/drm_debugfs_crc.c 		spin_unlock_irqrestore(&crc->lock, flags);
crc               404 drivers/gpu/drm/drm_debugfs_crc.c 	head = crc->head;
crc               405 drivers/gpu/drm/drm_debugfs_crc.c 	tail = crc->tail;
crc               408 drivers/gpu/drm/drm_debugfs_crc.c 		bool was_overflow = crc->overflow;
crc               410 drivers/gpu/drm/drm_debugfs_crc.c 		crc->overflow = true;
crc               411 drivers/gpu/drm/drm_debugfs_crc.c 		spin_unlock_irqrestore(&crc->lock, flags);
crc               419 drivers/gpu/drm/drm_debugfs_crc.c 	entry = &crc->entries[head];
crc               422 drivers/gpu/drm/drm_debugfs_crc.c 	memcpy(&entry->crcs, crcs, sizeof(*crcs) * crc->values_cnt);
crc               425 drivers/gpu/drm/drm_debugfs_crc.c 	crc->head = head;
crc               427 drivers/gpu/drm/drm_debugfs_crc.c 	spin_unlock_irqrestore(&crc->lock, flags);
crc               429 drivers/gpu/drm/drm_debugfs_crc.c 	wake_up_interruptible(&crc->wq);
crc              1012 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_aux_get_crc(struct drm_dp_aux *aux, u8 *crc)
crc              1037 drivers/gpu/drm/drm_dp_helper.c 	ret = drm_dp_dpcd_read(aux, DP_TEST_CRC_R_CR, crc, 6);
crc              1057 drivers/gpu/drm/drm_dp_helper.c 	while (crtc->crc.opened) {
crc              1059 drivers/gpu/drm/drm_dp_helper.c 		if (!crtc->crc.opened)
crc               644 drivers/gpu/drm/i915/display/intel_pipe_crc.c 	if (!crtc->crc.opened)
crc                74 drivers/gpu/drm/qxl/qxl_display.c 	uint32_t crc;
crc                78 drivers/gpu/drm/qxl/qxl_display.c 	crc = crc32(0, (const uint8_t *)&qdev->rom->client_monitors_config,
crc                80 drivers/gpu/drm/qxl/qxl_display.c 	if (crc != qdev->rom->client_monitors_config_crc)
crc               910 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	state->crc.source = VSP1_DU_CRC_NONE;
crc               911 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 	state->crc.index = 0;
crc              1032 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 		rcrtc_state->crc.source = source;
crc              1033 drivers/gpu/drm/rcar-du/rcar_du_crtc.c 		rcrtc_state->crc.index = index;
crc                88 drivers/gpu/drm/rcar-du/rcar_du_crtc.h 	struct vsp1_du_crc_config crc;
crc                32 drivers/gpu/drm/rcar-du/rcar_du_vsp.c static void rcar_du_vsp_complete(void *private, unsigned int status, u32 crc)
crc                44 drivers/gpu/drm/rcar-du/rcar_du_vsp.c 	drm_crtc_add_crc_entry(&crtc->crtc, false, 0, &crc);
crc               112 drivers/gpu/drm/rcar-du/rcar_du_vsp.c 	cfg.crc = state->crc;
crc               865 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	u16 crc;
crc               870 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	bounce = kzalloc(msg->tx_len + sizeof(crc), GFP_KERNEL);
crc               877 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	crc = sun6i_dsi_crc_compute(bounce, msg->tx_len);
crc               878 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc));
crc               879 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c 	len += sizeof(crc);
crc                28 drivers/gpu/drm/vkms/vkms_composer.c 	u32 crc = 0;
crc                37 drivers/gpu/drm/vkms/vkms_composer.c 			crc = crc32_le(crc, vaddr_out + src_offset,
crc                42 drivers/gpu/drm/vkms/vkms_composer.c 	return crc;
crc               118 drivers/gpu/drm/vkms/vkms_composer.c 	u32 crc = 0;
crc               127 drivers/gpu/drm/vkms/vkms_composer.c 		return crc;
crc               135 drivers/gpu/drm/vkms/vkms_composer.c 	crc = compute_crc(vaddr_out, primary_composer);
crc               139 drivers/gpu/drm/vkms/vkms_composer.c 	return crc;
crc              1239 drivers/hid/hid-sony.c 		u32 crc;
crc              1242 drivers/hid/hid-sony.c 		crc = crc32_le(0xFFFFFFFF, &bthdr, 1);
crc              1243 drivers/hid/hid-sony.c 		crc = ~crc32_le(crc, rd, DS4_INPUT_REPORT_0x11_SIZE-4);
crc              1245 drivers/hid/hid-sony.c 		if (crc != report_crc) {
crc              1247 drivers/hid/hid-sony.c 				report_crc, crc);
crc              1612 drivers/hid/hid-sony.c 		u32 crc;
crc              1629 drivers/hid/hid-sony.c 			crc = crc32_le(0xFFFFFFFF, &bthdr, 1);
crc              1630 drivers/hid/hid-sony.c 			crc = ~crc32_le(crc, buf, DS4_FEATURE_REPORT_0x05_SIZE-4);
crc              1632 drivers/hid/hid-sony.c 			if (crc != report_crc) {
crc              1634 drivers/hid/hid-sony.c 					report_crc, crc);
crc              2184 drivers/hid/hid-sony.c 		u32 crc;
crc              2186 drivers/hid/hid-sony.c 		crc = crc32_le(0xFFFFFFFF, &bthdr, 1);
crc              2187 drivers/hid/hid-sony.c 		crc = ~crc32_le(crc, buf, DS4_OUTPUT_REPORT_0x11_SIZE-4);
crc              2188 drivers/hid/hid-sony.c 		put_unaligned_le32(crc, &buf[74]);
crc               187 drivers/hwmon/sht15.c 	u8 crc = bitrev8(data->val_status & 0x0F);
crc               190 drivers/hwmon/sht15.c 		crc = sht15_crc8_table[*value ^ crc];
crc               194 drivers/hwmon/sht15.c 	return crc;
crc                41 drivers/i2c/i2c-core-smbus.c static u8 i2c_smbus_pec(u8 crc, u8 *p, size_t count)
crc                46 drivers/i2c/i2c-core-smbus.c 		crc = crc8((crc ^ p[i]) << 8);
crc                47 drivers/i2c/i2c-core-smbus.c 	return crc;
crc               208 drivers/iio/chemical/sgp30.c 	u8 crc;
crc               212 drivers/iio/chemical/sgp30.c 		crc = crc8(sgp_crc8_table, &data_buf[i], SGP_WORD_LEN,
crc               214 drivers/iio/chemical/sgp30.c 		if (crc != data_buf[i + SGP_WORD_LEN]) {
crc               145 drivers/iio/chemical/sps30.c 		u8 crc = crc8(sps30_crc8_table, &buf[i], 2, CRC8_INIT_VALUE);
crc               147 drivers/iio/chemical/sps30.c 		if (crc != buf[i + 2]) {
crc               162 drivers/iio/chemical/vz89x.c 	u8 crc = 0;
crc               166 drivers/iio/chemical/vz89x.c 		sum = crc + data->buffer[i];
crc               167 drivers/iio/chemical/vz89x.c 		crc = sum;
crc               168 drivers/iio/chemical/vz89x.c 		crc += sum / 256;
crc               171 drivers/iio/chemical/vz89x.c 	return !((0xff - crc) == data->buffer[data->chip->read_size - 1]);
crc               152 drivers/iio/common/ms_sensors/ms_sensors_i2c.c 	u8 crc = value & 0xFF;
crc               163 drivers/iio/common/ms_sensors/ms_sensors_i2c.c 	return result == crc;
crc               503 drivers/iio/common/ms_sensors/ms_sensors_i2c.c 	u16 n_rem = 0x0000, crc_read = prom[0], crc = (*prom & 0xF000) >> 12;
crc               524 drivers/iio/common/ms_sensors/ms_sensors_i2c.c 	return n_rem == crc;
crc                76 drivers/iio/humidity/am2315.c 	u16 crc = 0xffff;
crc                79 drivers/iio/humidity/am2315.c 		crc ^= *data++;
crc                81 drivers/iio/humidity/am2315.c 			if (crc & 0x01) {
crc                82 drivers/iio/humidity/am2315.c 				crc >>= 1;
crc                83 drivers/iio/humidity/am2315.c 				crc ^= 0xA001;
crc                85 drivers/iio/humidity/am2315.c 				crc >>= 1;
crc                90 drivers/iio/humidity/am2315.c 	return crc;
crc               112 drivers/iio/humidity/am2315.c 	u16 crc;
crc               136 drivers/iio/humidity/am2315.c 	crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2);
crc               137 drivers/iio/humidity/am2315.c 	if ((crc & 0xff) != rx_buf[6] || (crc >> 8) != rx_buf[7]) {
crc                59 drivers/iio/pressure/ms5611_core.c 	uint16_t crc = 0, crc_orig = prom[7] & 0x000F;
crc                65 drivers/iio/pressure/ms5611_core.c 			crc ^= prom[i >> 1] & 0x00FF;
crc                67 drivers/iio/pressure/ms5611_core.c 			crc ^= prom[i >> 1] >> 8;
crc                70 drivers/iio/pressure/ms5611_core.c 			if (crc & 0x8000)
crc                71 drivers/iio/pressure/ms5611_core.c 				crc = (crc << 1) ^ 0x3000;
crc                73 drivers/iio/pressure/ms5611_core.c 				crc <<= 1;
crc                77 drivers/iio/pressure/ms5611_core.c 	crc = (crc >> 12) & 0x000F;
crc                79 drivers/iio/pressure/ms5611_core.c 	return crc_orig != 0x0000 && crc == crc_orig;
crc              1774 drivers/infiniband/hw/hfi1/firmware.c 	u32 header1 = 0, header2 = 0, magic_num = 0, crc = 0, file_length = 0;
crc              1917 drivers/infiniband/hw/hfi1/firmware.c 		crc = crc32_le(~(u32)0, (unsigned char const *)ptr,
crc              1919 drivers/infiniband/hw/hfi1/firmware.c 		crc ^= ~(u32)0;
crc              1923 drivers/infiniband/hw/hfi1/firmware.c 		if (crc != *ptr) {
crc              1375 drivers/infiniband/hw/i40iw/i40iw_utils.c 	u32 crc = 0;
crc              1382 drivers/infiniband/hw/i40iw/i40iw_utils.c 		crypto_shash_final(desc, (u8 *)&crc);
crc              1383 drivers/infiniband/hw/i40iw/i40iw_utils.c 	if (crc != value) {
crc                71 drivers/infiniband/sw/rxe/rxe.h 			    u32 crc, void *next, size_t len)
crc                79 drivers/infiniband/sw/rxe/rxe.h 	*(u32 *)shash_desc_ctx(shash) = crc;
crc                83 drivers/infiniband/sw/rxe/rxe.h 		return crc32_le(crc, next, len);
crc                45 drivers/infiniband/sw/rxe/rxe_icrc.c 	int crc;
crc                60 drivers/infiniband/sw/rxe/rxe_icrc.c 	crc = 0xdebb20e3;
crc                90 drivers/infiniband/sw/rxe/rxe_icrc.c 	crc = rxe_crc32(pkt->rxe, crc, pshdr, length);
crc                93 drivers/infiniband/sw/rxe/rxe_icrc.c 	crc = rxe_crc32(pkt->rxe, crc, pkt->hdr + RXE_BTH_BYTES,
crc                95 drivers/infiniband/sw/rxe/rxe_icrc.c 	return crc;
crc               147 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_prepare(struct rxe_pkt_info *pkt, struct sk_buff *skb, u32 *crc);
crc               355 drivers/infiniband/sw/rxe/rxe_mr.c 	u32			crc = crcp ? (*crcp) : 0;
crc               406 drivers/infiniband/sw/rxe/rxe_mr.c 			crc = rxe_crc32(to_rdev(mem->pd->ibpd.device),
crc               407 drivers/infiniband/sw/rxe/rxe_mr.c 					crc, dest, bytes);
crc               424 drivers/infiniband/sw/rxe/rxe_mr.c 		*crcp = crc;
crc               394 drivers/infiniband/sw/rxe/rxe_net.c int rxe_prepare(struct rxe_pkt_info *pkt, struct sk_buff *skb, u32 *crc)
crc               403 drivers/infiniband/sw/rxe/rxe_net.c 	*crc = rxe_icrc_hdr(pkt, skb);
crc               478 drivers/infiniband/sw/rxe/rxe_req.c 	u32 crc = 0;
crc               482 drivers/infiniband/sw/rxe/rxe_req.c 	err = rxe_prepare(pkt, skb, &crc);
crc               490 drivers/infiniband/sw/rxe/rxe_req.c 			crc = rxe_crc32(rxe, crc, tmp, paylen);
crc               499 drivers/infiniband/sw/rxe/rxe_req.c 					&crc);
crc               507 drivers/infiniband/sw/rxe/rxe_req.c 			crc = rxe_crc32(rxe, crc, pad, bth_pad(pkt));
crc               512 drivers/infiniband/sw/rxe/rxe_req.c 	*p = ~crc;
crc               596 drivers/infiniband/sw/rxe/rxe_resp.c 	u32 crc = 0;
crc               637 drivers/infiniband/sw/rxe/rxe_resp.c 	err = rxe_prepare(ack, skb, &crc);
crc               645 drivers/infiniband/sw/rxe/rxe_resp.c 		*crcp = crc;
crc               648 drivers/infiniband/sw/rxe/rxe_resp.c 		*p = ~crc;
crc                84 drivers/infiniband/sw/siw/iwarp.h 	__be32 crc;
crc               357 drivers/infiniband/sw/siw/siw.h 	__be32 crc;
crc               362 drivers/infiniband/sw/siw/siw.h 	__be32 crc;
crc               367 drivers/infiniband/sw/siw/siw.h 	__be32 crc;
crc               372 drivers/infiniband/sw/siw/siw.h 	__be32 crc;
crc               710 drivers/infiniband/sw/siw/siw.h 	__wsum crc = *(u32 *)shash_desc_ctx(srx->mpa_crc_hd);
crc               712 drivers/infiniband/sw/siw/siw.h 	crc = __skb_checksum(srx->skb, srx->skb_offset, len, crc,
crc               714 drivers/infiniband/sw/siw/siw.h 	*(u32 *)shash_desc_ctx(srx->mpa_crc_hd) = crc;
crc               395 drivers/infiniband/sw/siw/siw_qp.c 	u32 crc = 0;
crc               560 drivers/infiniband/sw/siw/siw_qp.c 		iov[2].iov_base = &crc;
crc               561 drivers/infiniband/sw/siw/siw_qp.c 		iov[2].iov_len = sizeof(crc);
crc               565 drivers/infiniband/sw/siw/siw_qp.c 		iov[1].iov_base = &crc;
crc               566 drivers/infiniband/sw/siw/siw_qp.c 		iov[1].iov_len = sizeof(crc);
crc               595 drivers/infiniband/sw/siw/siw_qp.c 		crypto_shash_final(qp->tx_ctx.mpa_crc_hd, (u8 *)&crc);
crc               955 drivers/infiniband/sw/siw/siw_qp_rx.c 	u8 *tbuf = (u8 *)&srx->trailer.crc - srx->pad;
crc               981 drivers/infiniband/sw/siw/siw_qp_rx.c 	crc_in = (__force __wsum)srx->trailer.crc;
crc               122 drivers/infiniband/sw/siw/siw_qp_tx.c 	char *crc = NULL;
crc               145 drivers/infiniband/sw/siw/siw_qp_tx.c 		crc = (char *)&c_tx->pkt.rreq_pkt.crc;
crc               166 drivers/infiniband/sw/siw/siw_qp_tx.c 		crc = (char *)&c_tx->pkt.send_pkt.crc;
crc               167 drivers/infiniband/sw/siw/siw_qp_tx.c 		data = siw_try_1seg(c_tx, crc);
crc               189 drivers/infiniband/sw/siw/siw_qp_tx.c 		crc = (char *)&c_tx->pkt.send_pkt.crc;
crc               190 drivers/infiniband/sw/siw/siw_qp_tx.c 		data = siw_try_1seg(c_tx, crc);
crc               201 drivers/infiniband/sw/siw/siw_qp_tx.c 		crc = (char *)&c_tx->pkt.write_pkt.crc;
crc               202 drivers/infiniband/sw/siw/siw_qp_tx.c 		data = siw_try_1seg(c_tx, crc);
crc               216 drivers/infiniband/sw/siw/siw_qp_tx.c 		crc = (char *)&c_tx->pkt.write_pkt.crc;
crc               217 drivers/infiniband/sw/siw/siw_qp_tx.c 		data = siw_try_1seg(c_tx, crc);
crc               239 drivers/infiniband/sw/siw/siw_qp_tx.c 			crc += data;
crc               249 drivers/infiniband/sw/siw/siw_qp_tx.c 		*(u32 *)crc = 0;
crc               259 drivers/infiniband/sw/siw/siw_qp_tx.c 			crypto_shash_final(c_tx->mpa_crc_hd, (u8 *)crc);
crc               571 drivers/infiniband/sw/siw/siw_qp_tx.c 				(u8 *)&c_tx->trailer.crc - c_tx->pad,
crc               575 drivers/infiniband/sw/siw/siw_qp_tx.c 		c_tx->trailer.crc = 0;
crc               577 drivers/infiniband/sw/siw/siw_qp_tx.c 		crypto_shash_final(c_tx->mpa_crc_hd, (u8 *)&c_tx->trailer.crc);
crc               235 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	u32 l, crc = 0;
crc               252 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 		crc = crc32_le(crc, ha->addr, ETH_ALEN);
crc               255 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	crc = ~crc32_le(crc, (void *)&l, sizeof(l));
crc               257 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 	if (crc != *ref_crc) {
crc               258 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c 		*ref_crc = crc;
crc               110 drivers/input/joystick/grip.c 	unsigned int i, j, buf, crc;
crc               140 drivers/input/joystick/grip.c 					crc = buf ^ (buf >> 7) ^ (buf >> 14);
crc               141 drivers/input/joystick/grip.c 					if (!((crc ^ (0x25cb9e70 >> ((crc >> 2) & 0x1c))) & 0xf)) {
crc               749 drivers/input/keyboard/applespi.c 	u16 crc;
crc               844 drivers/input/keyboard/applespi.c 	crc = crc16(0, (u8 *)message, le16_to_cpu(packet->length) - 2);
crc               845 drivers/input/keyboard/applespi.c 	put_unaligned_le16(crc, &message->data[msg_len - 2]);
crc               847 drivers/input/keyboard/applespi.c 	crc = crc16(0, (u8 *)packet, sizeof(*packet) - 2);
crc               848 drivers/input/keyboard/applespi.c 	packet->crc16 = cpu_to_le16(crc);
crc              1361 drivers/input/keyboard/applespi.c 	u16 crc;
crc              1363 drivers/input/keyboard/applespi.c 	crc = crc16(0, buffer, buflen);
crc              1364 drivers/input/keyboard/applespi.c 	if (crc) {
crc               263 drivers/input/mouse/cyapa_gen5.c 	__le16 crc;
crc              1099 drivers/input/mouse/cyapa_gen5.c 	put_unaligned_le16(cmd_crc, &bl_packet_end->crc);
crc              1327 drivers/input/mouse/cyapa_gen5.c 	u16 crc;
crc              1363 drivers/input/mouse/cyapa_gen5.c 	crc = crc_itu_t(0xffff, (u8 *)bl_packet_start,
crc              1365 drivers/input/mouse/cyapa_gen5.c 	put_unaligned_le16(crc, &bl_packet_end->crc);
crc               713 drivers/input/touchscreen/atmel_mxt_ts.c 	u32 crc = msg[2] | (msg[3] << 8) | (msg[4] << 16);
crc               715 drivers/input/touchscreen/atmel_mxt_ts.c 	if (crc != data->config_crc) {
crc               716 drivers/input/touchscreen/atmel_mxt_ts.c 		data->config_crc = crc;
crc               717 drivers/input/touchscreen/atmel_mxt_ts.c 		dev_dbg(dev, "T6 Config Checksum: 0x%06X\n", crc);
crc              1247 drivers/input/touchscreen/atmel_mxt_ts.c static void mxt_calc_crc24(u32 *crc, u8 firstbyte, u8 secondbyte)
crc              1254 drivers/input/touchscreen/atmel_mxt_ts.c 	result = ((*crc << 1) ^ data_word);
crc              1259 drivers/input/touchscreen/atmel_mxt_ts.c 	*crc = result;
crc              1264 drivers/input/touchscreen/atmel_mxt_ts.c 	u32 crc = 0;
crc              1272 drivers/input/touchscreen/atmel_mxt_ts.c 		mxt_calc_crc24(&crc, *ptr, *(ptr + 1));
crc              1278 drivers/input/touchscreen/atmel_mxt_ts.c 		mxt_calc_crc24(&crc, *ptr, 0);
crc              1281 drivers/input/touchscreen/atmel_mxt_ts.c 	crc &= 0x00FFFFFF;
crc              1283 drivers/input/touchscreen/atmel_mxt_ts.c 	return crc;
crc               206 drivers/input/touchscreen/chipone_icn8505.c 	u32 crc;
crc               265 drivers/input/touchscreen/chipone_icn8505.c 	crc = crc32_be(0, fw->data, fw->size);
crc               266 drivers/input/touchscreen/chipone_icn8505.c 	if (get_unaligned_le32(buf) != crc) {
crc               157 drivers/input/touchscreen/edt-ft5x06.c 	u8 crc = 0;
crc               160 drivers/input/touchscreen/edt-ft5x06.c 		crc ^= buf[i];
crc               162 drivers/input/touchscreen/edt-ft5x06.c 	if (crc != buf[buflen-1]) {
crc               165 drivers/input/touchscreen/edt-ft5x06.c 				    crc, buf[buflen-1]);
crc               697 drivers/input/touchscreen/melfas_mip4.c 	__le32 crc;
crc               111 drivers/input/touchscreen/sis_i2c.c 	u16 crc, pkg_crc;
crc               140 drivers/input/touchscreen/sis_i2c.c 			crc = crc_itu_t(0, buf + 2, len - 2 - 2);
crc               143 drivers/input/touchscreen/sis_i2c.c 			if (crc != pkg_crc) {
crc               146 drivers/input/touchscreen/sis_i2c.c 					__func__, crc, pkg_crc);
crc               268 drivers/ipack/ipack.c static u16 ipack_crc_byte(u16 crc, u8 c)
crc               272 drivers/ipack/ipack.c 	crc ^= c << 8;
crc               274 drivers/ipack/ipack.c 		crc = (crc << 1) ^ ((crc & 0x8000) ? 0x1021 : 0);
crc               275 drivers/ipack/ipack.c 	return crc;
crc               285 drivers/ipack/ipack.c 	u16 crc;
crc               288 drivers/ipack/ipack.c 	crc = 0xffff;
crc               291 drivers/ipack/ipack.c 		crc = ipack_crc_byte(crc, c);
crc               293 drivers/ipack/ipack.c 	crc = ~crc;
crc               294 drivers/ipack/ipack.c 	return crc & 0xff;
crc               300 drivers/ipack/ipack.c 	u16 crc;
crc               303 drivers/ipack/ipack.c 	crc = 0xffff;
crc               306 drivers/ipack/ipack.c 		crc = ipack_crc_byte(crc, c);
crc               308 drivers/ipack/ipack.c 	crc = ~crc;
crc               309 drivers/ipack/ipack.c 	return crc;
crc               315 drivers/ipack/ipack.c 	u8 crc;
crc               321 drivers/ipack/ipack.c 	crc = ipack_calc_crc1(dev);
crc               322 drivers/ipack/ipack.c 	dev->id_crc_correct = (crc == id[11]);
crc               325 drivers/ipack/ipack.c 				id[11], crc);
crc               332 drivers/ipack/ipack.c 	u16 flags, crc;
crc               340 drivers/ipack/ipack.c 	crc = ipack_calc_crc2(dev);
crc               341 drivers/ipack/ipack.c 	dev->id_crc_correct = (crc == be16_to_cpu(id[12]));
crc               344 drivers/ipack/ipack.c 				id[11], crc);
crc                80 drivers/isdn/hardware/mISDN/isdnhdlc.c 	else if (hdlc->crc != 0xf0b8)	/* crc error */
crc               214 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = 0xffff;
crc               257 drivers/isdn/hardware/mISDN/isdnhdlc.c 					hdlc->crc = 0xffff;
crc               284 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = crc_ccitt_byte(hdlc->crc,
crc               368 drivers/isdn/hardware/mISDN/isdnhdlc.c 						hdlc->crc ^= 0xffff;
crc               371 drivers/isdn/hardware/mISDN/isdnhdlc.c 							hdlc->crc & 0xff;
crc               406 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = 0xffff;
crc               434 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = 0xffff;
crc               443 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = 0xffff;
crc               455 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = 0xffff;
crc               467 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->crc = crc_ccitt_byte(hdlc->crc,
crc               498 drivers/isdn/hardware/mISDN/isdnhdlc.c 				hdlc->shift_reg = (hdlc->crc >> 8);
crc                27 drivers/isdn/hardware/mISDN/isdnhdlc.h 	u16 crc;
crc                65 drivers/leds/leds-cr0014114.c 	u8	crc;
crc                67 drivers/leds/leds-cr0014114.c 	for (i = 1, crc = 1; i < len - 1; i++)
crc                68 drivers/leds/leds-cr0014114.c 		crc += buf[i];
crc                69 drivers/leds/leds-cr0014114.c 	crc |= BIT(7);
crc                72 drivers/leds/leds-cr0014114.c 	if (crc == CR_SET_BRIGHTNESS ||
crc                73 drivers/leds/leds-cr0014114.c 	    crc == CR_INIT_REENUMERATE ||
crc                74 drivers/leds/leds-cr0014114.c 	    crc == CR_NEXT_REENUMERATE)
crc                75 drivers/leds/leds-cr0014114.c 		crc = 0xfe;
crc                77 drivers/leds/leds-cr0014114.c 	buf[len - 1] = crc;
crc              1011 drivers/lightnvm/pblk-core.c 	smeta_buf->header.crc = cpu_to_le32(
crc              1013 drivers/lightnvm/pblk-core.c 	smeta_buf->crc = cpu_to_le32(pblk_calc_smeta_crc(pblk, smeta_buf));
crc              1021 drivers/lightnvm/pblk-core.c 	emeta_buf->header.crc = cpu_to_le32(
crc              1028 drivers/lightnvm/pblk-core.c 	emeta_buf->crc = cpu_to_le32(0);
crc              1812 drivers/lightnvm/pblk-core.c 		emeta_buf->header.crc = cpu_to_le32(
crc              1817 drivers/lightnvm/pblk-core.c 	emeta_buf->crc = cpu_to_le32(pblk_calc_emeta_crc(pblk, emeta_buf));
crc                96 drivers/lightnvm/pblk-init.c 	u32 crc = ~(u32)0;
crc                99 drivers/lightnvm/pblk-init.c 	crc = crc32_le(crc, pblk->trans_map, map_size);
crc               100 drivers/lightnvm/pblk-init.c 	return crc;
crc                26 drivers/lightnvm/pblk-recovery.c 	u32 crc;
crc                28 drivers/lightnvm/pblk-recovery.c 	crc = pblk_calc_emeta_crc(pblk, emeta_buf);
crc                29 drivers/lightnvm/pblk-recovery.c 	if (le32_to_cpu(emeta_buf->crc) != crc)
crc               678 drivers/lightnvm/pblk-recovery.c 		u32 crc;
crc               694 drivers/lightnvm/pblk-recovery.c 		crc = pblk_calc_smeta_crc(pblk, smeta_buf);
crc               695 drivers/lightnvm/pblk-recovery.c 		if (le32_to_cpu(smeta_buf->crc) != crc)
crc               342 drivers/lightnvm/pblk.h 	__le32 crc;
crc               354 drivers/lightnvm/pblk.h 	__le32 crc;		/* Full structure including struct crc */
crc               384 drivers/lightnvm/pblk.h 	__le32 crc;		/* Full structure including struct crc */
crc              1150 drivers/lightnvm/pblk.h 	u32 crc = ~(u32)0;
crc              1152 drivers/lightnvm/pblk.h 	crc = crc32_le(crc, (unsigned char *)header + sizeof(crc),
crc              1153 drivers/lightnvm/pblk.h 				sizeof(struct line_header) - sizeof(crc));
crc              1155 drivers/lightnvm/pblk.h 	return crc;
crc              1162 drivers/lightnvm/pblk.h 	u32 crc = ~(u32)0;
crc              1164 drivers/lightnvm/pblk.h 	crc = crc32_le(crc, (unsigned char *)smeta +
crc              1165 drivers/lightnvm/pblk.h 				sizeof(struct line_header) + sizeof(crc),
crc              1167 drivers/lightnvm/pblk.h 				sizeof(struct line_header) - sizeof(crc));
crc              1169 drivers/lightnvm/pblk.h 	return crc;
crc              1176 drivers/lightnvm/pblk.h 	u32 crc = ~(u32)0;
crc              1178 drivers/lightnvm/pblk.h 	crc = crc32_le(crc, (unsigned char *)emeta +
crc              1179 drivers/lightnvm/pblk.h 				sizeof(struct line_header) + sizeof(crc),
crc              1181 drivers/lightnvm/pblk.h 				sizeof(struct line_header) - sizeof(crc));
crc              1183 drivers/lightnvm/pblk.h 	return crc;
crc               197 drivers/md/bcache/btree.c 	uint64_t crc = b->key.ptr[0];
crc               200 drivers/md/bcache/btree.c 	crc = bch_crc64_update(crc, data, end - data);
crc               201 drivers/md/bcache/btree.c 	return crc ^ 0xffffffffffffffffULL;
crc               547 drivers/md/bcache/util.h 	uint64_t crc = 0xffffffffffffffffULL;
crc               549 drivers/md/bcache/util.h 	crc = crc64_be(crc, p, len);
crc               550 drivers/md/bcache/util.h 	return crc ^ 0xffffffffffffffffULL;
crc               553 drivers/md/bcache/util.h static inline uint64_t bch_crc64_update(uint64_t crc,
crc               557 drivers/md/bcache/util.h 	crc = crc64_be(crc, p, len);
crc               558 drivers/md/bcache/util.h 	return crc;
crc                70 drivers/md/dm-zoned-metadata.c 	__le32		crc;			/*  48 */
crc               659 drivers/md/dm-zoned-metadata.c 	sb->crc = 0;
crc               660 drivers/md/dm-zoned-metadata.c 	sb->crc = cpu_to_le32(crc32_le(sb_gen, (unsigned char *)sb, DMZ_BLOCK_SIZE));
crc               836 drivers/md/dm-zoned-metadata.c 	u32 crc, stored_crc;
crc               840 drivers/md/dm-zoned-metadata.c 	stored_crc = le32_to_cpu(sb->crc);
crc               841 drivers/md/dm-zoned-metadata.c 	sb->crc = 0;
crc               842 drivers/md/dm-zoned-metadata.c 	crc = crc32_le(gen, (unsigned char *)sb, DMZ_BLOCK_SIZE);
crc               843 drivers/md/dm-zoned-metadata.c 	if (crc != stored_crc) {
crc               845 drivers/md/dm-zoned-metadata.c 			    crc, stored_crc);
crc               713 drivers/md/raid5-cache.c 	u32 crc;
crc               721 drivers/md/raid5-cache.c 	crc = crc32c_le(log->uuid_checksum, block, PAGE_SIZE);
crc               722 drivers/md/raid5-cache.c 	block->checksum = cpu_to_le32(crc);
crc              1738 drivers/md/raid5-cache.c 	u32 crc, stored_crc;
crc              1755 drivers/md/raid5-cache.c 	crc = crc32c_le(log->uuid_checksum, mb, PAGE_SIZE);
crc              1756 drivers/md/raid5-cache.c 	if (stored_crc != crc)
crc               992 drivers/md/raid5-ppl.c 		u32 crc, crc_stored;
crc               998 drivers/md/raid5-ppl.c 		crc = ~0;
crc              1012 drivers/md/raid5-ppl.c 			crc = crc32c_le(crc, page_address(page), s);
crc              1018 drivers/md/raid5-ppl.c 		crc = ~crc;
crc              1020 drivers/md/raid5-ppl.c 		if (crc != crc_stored) {
crc              1027 drivers/md/raid5-ppl.c 				 __func__, crc_stored, crc);
crc              1086 drivers/md/raid5-ppl.c 	u32 crc, crc_stored;
crc              1120 drivers/md/raid5-ppl.c 		crc = ~crc32c_le(~0, pplhdr, PAGE_SIZE);
crc              1122 drivers/md/raid5-ppl.c 		if (crc_stored != crc) {
crc              1124 drivers/md/raid5-ppl.c 				 __func__, crc_stored, crc,
crc               125 drivers/media/dvb-frontends/nxt200x.c static u16 nxt200x_crc(u16 crc, u8 c)
crc               132 drivers/media/dvb-frontends/nxt200x.c 		if((crc^input) & 0x8000)
crc               133 drivers/media/dvb-frontends/nxt200x.c 			crc=(crc<<1)^CRC_CCIT_MASK;
crc               135 drivers/media/dvb-frontends/nxt200x.c 			crc<<=1;
crc               138 drivers/media/dvb-frontends/nxt200x.c 	return crc;
crc               412 drivers/media/dvb-frontends/nxt200x.c 	u16 rambase, position, crc = 0;
crc               433 drivers/media/dvb-frontends/nxt200x.c 			crc = 0;
crc               447 drivers/media/dvb-frontends/nxt200x.c 		crc = nxt200x_crc(crc, fw->data[position]);
crc               454 drivers/media/dvb-frontends/nxt200x.c 			buf[0] = crc << 8;
crc               455 drivers/media/dvb-frontends/nxt200x.c 			buf[1] = crc & 0xFF;
crc               479 drivers/media/dvb-frontends/nxt200x.c 	u16 rambase, position, crc=0;
crc               493 drivers/media/dvb-frontends/nxt200x.c 		crc = nxt200x_crc(crc, fw->data[position]);
crc               507 drivers/media/dvb-frontends/nxt200x.c 	buf[0] = crc >> 8;
crc               508 drivers/media/dvb-frontends/nxt200x.c 	buf[1] = crc & 0xFF;
crc               330 drivers/media/i2c/s5k4ecgx.c 	u32 addr, crc, crc_file, addr_inc = 0;
crc               349 drivers/media/i2c/s5k4ecgx.c 	crc = crc32_le(~0, fw->data, regs_num * FW_RECORD_SIZE);
crc               350 drivers/media/i2c/s5k4ecgx.c 	if (crc != crc_file) {
crc               351 drivers/media/i2c/s5k4ecgx.c 		v4l2_err(sd, "FW: invalid crc (%#x:%#x)\n", crc, crc_file);
crc               430 drivers/media/i2c/saa6752hs.c 	u32 crc;
crc               465 drivers/media/i2c/saa6752hs.c 	crc = crc32_be(~0, &localPAT[7], sizeof(PAT) - 7 - 4);
crc               466 drivers/media/i2c/saa6752hs.c 	localPAT[sizeof(PAT) - 4] = (crc >> 24) & 0xFF;
crc               467 drivers/media/i2c/saa6752hs.c 	localPAT[sizeof(PAT) - 3] = (crc >> 16) & 0xFF;
crc               468 drivers/media/i2c/saa6752hs.c 	localPAT[sizeof(PAT) - 2] = (crc >> 8) & 0xFF;
crc               469 drivers/media/i2c/saa6752hs.c 	localPAT[sizeof(PAT) - 1] = crc & 0xFF;
crc               487 drivers/media/i2c/saa6752hs.c 	crc = crc32_be(~0, &localPMT[7], size - 7 - 4);
crc               488 drivers/media/i2c/saa6752hs.c 	localPMT[size - 4] = (crc >> 24) & 0xFF;
crc               489 drivers/media/i2c/saa6752hs.c 	localPMT[size - 3] = (crc >> 16) & 0xFF;
crc               490 drivers/media/i2c/saa6752hs.c 	localPMT[size - 2] = (crc >> 8) & 0xFF;
crc               491 drivers/media/i2c/saa6752hs.c 	localPMT[size - 1] = crc & 0xFF;
crc               100 drivers/media/pci/saa7164/saa7164-buffer.c 	buf->crc = 0;
crc               118 drivers/media/pci/saa7164/saa7164-buffer.c 	buf->crc = crc32(0, buf->cpu, buf->actual_size);
crc               287 drivers/media/pci/saa7164/saa7164-buffer.c 	buf->crc = 0;
crc               273 drivers/media/pci/saa7164/saa7164-core.c 				buf->crc = crc32(0, buf->cpu, buf->actual_size);
crc               316 drivers/media/pci/saa7164/saa7164-core.c 						ubuf->crc = crc32(0, ubuf->data, ubuf->actual_size);
crc               342 drivers/media/pci/saa7164/saa7164-core.c 				buf->crc = crc32(0, buf->cpu, buf->actual_size);
crc               763 drivers/media/pci/saa7164/saa7164-encoder.c 	u32 crc;
crc               771 drivers/media/pci/saa7164/saa7164-encoder.c 			crc = crc32(0, ubuf->data, ubuf->actual_size);
crc               772 drivers/media/pci/saa7164/saa7164-encoder.c 			if (crc != ubuf->crc) {
crc               776 drivers/media/pci/saa7164/saa7164-encoder.c 					ubuf, ubuf->crc, crc);
crc               468 drivers/media/pci/saa7164/saa7164-vbi.c 	u32 crc;
crc               476 drivers/media/pci/saa7164/saa7164-vbi.c 			crc = crc32(0, ubuf->data, ubuf->actual_size);
crc               477 drivers/media/pci/saa7164/saa7164-vbi.c 			if (crc != ubuf->crc) {
crc               480 drivers/media/pci/saa7164/saa7164-vbi.c 					ubuf, ubuf->crc, crc);
crc               208 drivers/media/pci/saa7164/saa7164.h 	u32 crc;
crc               309 drivers/media/pci/saa7164/saa7164.h 	u32 crc;	/* Checksum for the entire buffer data */
crc              1441 drivers/media/pci/ttpci/av7110.c 	u32 crc = 0, len = 0;
crc              1454 drivers/media/pci/ttpci/av7110.c 	crc = get_unaligned_be32(ptr);
crc              1462 drivers/media/pci/ttpci/av7110.c 	if (crc != crc32_le(0, ptr, len)) {
crc              1471 drivers/media/pci/ttpci/av7110.c 	crc = get_unaligned_be32(ptr);
crc              1481 drivers/media/pci/ttpci/av7110.c 	if( crc != crc32_le(0, ptr, len)) {
crc              2102 drivers/media/platform/omap3isp/isp.c 	buscfg->bus.csi2.crc = 1;
crc              2128 drivers/media/platform/omap3isp/isp.c 	buscfg->bus.ccp2.crc = 1;
crc               308 drivers/media/platform/omap3isp/ispccp2.c 			config->crc);
crc               315 drivers/media/platform/omap3isp/ispccp2.c 			config->crc);
crc               375 drivers/media/platform/omap3isp/ispccp2.c 	ccp2->if_cfg.crc = buscfg->bus.ccp2.crc;
crc                44 drivers/media/platform/omap3isp/ispccp2.h 	int crc;
crc               578 drivers/media/platform/omap3isp/ispcsi2.c 	csi2->ctrl.ecc_enable = buscfg->bus.csi2.crc;
crc               101 drivers/media/platform/omap3isp/omap3isp.h 	unsigned int crc:1;
crc               116 drivers/media/platform/omap3isp/omap3isp.h 	unsigned crc:1;
crc                43 drivers/media/platform/vsp1/vsp1_drm.c 		u32 crc;
crc                45 drivers/media/platform/vsp1/vsp1_drm.c 		crc = uif ? vsp1_uif_get_crc(to_uif(&uif->subdev)) : 0;
crc                46 drivers/media/platform/vsp1/vsp1_drm.c 		drm_pipe->du_complete(drm_pipe->du_private, status, crc);
crc               434 drivers/media/platform/vsp1/vsp1_drm.c 		uif = drm_pipe->crc.source == VSP1_DU_CRC_PLANE &&
crc               435 drivers/media/platform/vsp1/vsp1_drm.c 		      drm_pipe->crc.index == i ? drm_pipe->uif : NULL;
crc               448 drivers/media/platform/vsp1/vsp1_drm.c 	uif = drm_pipe->crc.source == VSP1_DU_CRC_OUTPUT ? drm_pipe->uif : NULL;
crc               879 drivers/media/platform/vsp1/vsp1_drm.c 	drm_pipe->crc = cfg->crc;
crc                42 drivers/media/platform/vsp1/vsp1_drm.h 	struct vsp1_du_crc_config crc;
crc                45 drivers/media/platform/vsp1/vsp1_drm.h 	void (*du_complete)(void *data, unsigned int status, u32 crc);
crc               300 drivers/media/usb/ttusb-dec/ttusb_dec.c static u16 crc16(u16 crc, const u8 *buf, size_t len)
crc               305 drivers/media/usb/ttusb-dec/ttusb_dec.c 		crc ^= *buf++;
crc               306 drivers/media/usb/ttusb-dec/ttusb_dec.c 		crc ^= (u8)crc >> 4;
crc               307 drivers/media/usb/ttusb-dec/ttusb_dec.c 		tmp = (u8)crc;
crc               308 drivers/media/usb/ttusb-dec/ttusb_dec.c 		crc ^= (tmp ^ (tmp << 1)) << 4;
crc               310 drivers/media/usb/ttusb-dec/ttusb_dec.c 	return crc;
crc               241 drivers/mfd/rave-sp.c static void csum_8b2c(const u8 *buf, size_t size, u8 *crc)
crc               243 drivers/mfd/rave-sp.c 	*crc = *buf++;
crc               247 drivers/mfd/rave-sp.c 		*crc += *buf++;
crc               249 drivers/mfd/rave-sp.c 	*crc = 1 + ~(*crc);
crc               252 drivers/mfd/rave-sp.c static void csum_ccitt(const u8 *buf, size_t size, u8 *crc)
crc               260 drivers/mfd/rave-sp.c 	put_unaligned_be16(calculated, crc);
crc               286 drivers/mfd/rave-sp.c 	unsigned char crc[RAVE_SP_CHECKSUM_SIZE];
crc               290 drivers/mfd/rave-sp.c 	if (WARN_ON(checksum_length > sizeof(crc)))
crc               296 drivers/mfd/rave-sp.c 	sp->variant->checksum->subroutine(data, data_size, crc);
crc               300 drivers/mfd/rave-sp.c 	dest = stuff(dest, crc, checksum_length);
crc               155 drivers/misc/fastrpc.c 	u32 *crc;
crc               507 drivers/misc/genwqe/card_dev.c 	u32 crc;
crc               554 drivers/misc/genwqe/card_dev.c 		crc = genwqe_crc32(xbuf, tocopy, 0xffffffff);
crc               558 drivers/misc/genwqe/card_dev.c 			__func__, (unsigned long)dma_addr, crc, tocopy,
crc               578 drivers/misc/genwqe/card_dev.c 			*(__be32 *)&req->__asiv[28] = cpu_to_be32(crc);
crc               590 drivers/misc/genwqe/card_dev.c 			*(__be32 *)&req->asiv[28] = cpu_to_be32(crc);
crc               165 drivers/misc/genwqe/card_utils.c 	u32 crc;
crc               168 drivers/misc/genwqe/card_utils.c 		crc = i << 24;
crc               170 drivers/misc/genwqe/card_utils.c 			if (crc & 0x80000000)
crc               171 drivers/misc/genwqe/card_utils.c 				crc = (crc << 1) ^ CRC32_POLYNOMIAL;
crc               173 drivers/misc/genwqe/card_utils.c 				crc = (crc << 1);
crc               175 drivers/misc/genwqe/card_utils.c 		crc32_tab[i] = crc;
crc               197 drivers/misc/genwqe/card_utils.c 	u32 crc;
crc               199 drivers/misc/genwqe/card_utils.c 	crc = init;
crc               201 drivers/misc/genwqe/card_utils.c 		i = ((crc >> 24) ^ *buff++) & 0xFF;
crc               202 drivers/misc/genwqe/card_utils.c 		crc = (crc << 8) ^ crc32_tab[i];
crc               204 drivers/misc/genwqe/card_utils.c 	return crc;
crc               335 drivers/mmc/host/au1xmmc.c 	u32 crc;
crc               355 drivers/mmc/host/au1xmmc.c 	crc = (status & (SD_STATUS_WC | SD_STATUS_RC));
crc               357 drivers/mmc/host/au1xmmc.c 		crc |= ((status & 0x07) == 0x02) ? 0 : 1;
crc               359 drivers/mmc/host/au1xmmc.c 	if (crc)
crc               121 drivers/mmc/host/mmc_spi.c 	struct spi_transfer	token, t, crc, early_status;
crc               597 drivers/mmc/host/mmc_spi.c 	t = &host->crc;
crc               841 drivers/mmc/host/mmc_spi.c 		u16 crc = crc_itu_t(0, t->rx_buf, t->len);
crc               844 drivers/mmc/host/mmc_spi.c 		if (scratch->crc_val != crc) {
crc               847 drivers/mmc/host/mmc_spi.c 				scratch->crc_val, crc, t->len);
crc               143 drivers/mtd/nand/raw/internals.h u16 onfi_crc16(u16 crc, u8 const *p, size_t len);
crc                58 drivers/mtd/nand/raw/nand_jedec.c 				le16_to_cpu(p->crc))
crc                19 drivers/mtd/nand/raw/nand_onfi.c u16 onfi_crc16(u16 crc, u8 const *p, size_t len)
crc                23 drivers/mtd/nand/raw/nand_onfi.c 		crc ^= *p++ << 8;
crc                25 drivers/mtd/nand/raw/nand_onfi.c 			crc = (crc << 1) ^ ((crc & 0x8000) ? 0x8005 : 0);
crc                28 drivers/mtd/nand/raw/nand_onfi.c 	return crc;
crc                62 drivers/mtd/nand/raw/nand_onfi.c 		!= le16_to_cpu(ep->crc))) {
crc               176 drivers/mtd/nand/raw/nand_onfi.c 				le16_to_cpu(p->crc)) {
crc               191 drivers/mtd/nand/raw/nand_onfi.c 				le16_to_cpu(p->crc)) {
crc               229 drivers/mtd/parsers/afs.c 	u32 crc;
crc               262 drivers/mtd/parsers/afs.c 	crc = word_sum_v2(&imginfo[1], 34);
crc               263 drivers/mtd/parsers/afs.c 	if (!crc) {
crc               268 drivers/mtd/parsers/afs.c 		crc = word_sum_v2(&imginfo[2], 34);
crc               269 drivers/mtd/parsers/afs.c 		if (!crc) {
crc               274 drivers/mtd/parsers/afs.c 	if (crc) {
crc               275 drivers/mtd/parsers/afs.c 		pr_err("AFS: bad checksum on v2 image info: %08x\n", crc);
crc               442 drivers/mtd/ubi/attach.c 	uint32_t data_crc, crc;
crc               518 drivers/mtd/ubi/attach.c 	crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, len);
crc               519 drivers/mtd/ubi/attach.c 	if (crc != data_crc) {
crc               521 drivers/mtd/ubi/attach.c 			pnum, crc, data_crc);
crc               151 drivers/mtd/ubi/debug.c 	pr_err("\tcrc             %#08x\n", be32_to_cpu(r->crc));
crc               602 drivers/mtd/ubi/eba.c 	uint32_t uninitialized_var(crc);
crc               690 drivers/mtd/ubi/eba.c 		crc = be32_to_cpu(vid_hdr->data_crc);
crc               713 drivers/mtd/ubi/eba.c 		if (crc1 != crc) {
crc               715 drivers/mtd/ubi/eba.c 				 crc1, crc);
crc               814 drivers/mtd/ubi/eba.c 	uint32_t crc;
crc               852 drivers/mtd/ubi/eba.c 	crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size);
crc               856 drivers/mtd/ubi/eba.c 	vid_hdr->data_crc = cpu_to_be32(crc);
crc              1117 drivers/mtd/ubi/eba.c 	uint32_t crc;
crc              1144 drivers/mtd/ubi/eba.c 	crc = crc32(UBI_CRC32_INIT, buf, data_size);
crc              1148 drivers/mtd/ubi/eba.c 	vid_hdr->data_crc = cpu_to_be32(crc);
crc              1195 drivers/mtd/ubi/eba.c 	uint32_t crc;
crc              1228 drivers/mtd/ubi/eba.c 	crc = crc32(UBI_CRC32_INIT, buf, len);
crc              1232 drivers/mtd/ubi/eba.c 	vid_hdr->data_crc = cpu_to_be32(crc);
crc              1308 drivers/mtd/ubi/eba.c 	uint32_t crc;
crc              1404 drivers/mtd/ubi/eba.c 	crc = crc32(UBI_CRC32_INIT, ubi->peb_buf, data_size);
crc              1416 drivers/mtd/ubi/eba.c 		vid_hdr->data_crc = cpu_to_be32(crc);
crc               861 drivers/mtd/ubi/fastmap.c 	__be32 crc, tmp_crc;
crc              1030 drivers/mtd/ubi/fastmap.c 	crc = crc32(UBI_CRC32_INIT, ubi->fm_buf, fm_size);
crc              1031 drivers/mtd/ubi/fastmap.c 	if (crc != tmp_crc) {
crc              1034 drivers/mtd/ubi/fastmap.c 			tmp_crc, crc);
crc               691 drivers/mtd/ubi/io.c 	uint32_t crc, magic, hdr_crc;
crc               749 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
crc               752 drivers/mtd/ubi/io.c 	if (hdr_crc != crc) {
crc               755 drivers/mtd/ubi/io.c 				 pnum, crc, hdr_crc);
crc               759 drivers/mtd/ubi/io.c 			pnum, crc, hdr_crc);
crc               800 drivers/mtd/ubi/io.c 	uint32_t crc;
crc               810 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
crc               811 drivers/mtd/ubi/io.c 	ec_hdr->hdr_crc = cpu_to_be32(crc);
crc               968 drivers/mtd/ubi/io.c 	uint32_t crc, magic, hdr_crc;
crc              1007 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC);
crc              1010 drivers/mtd/ubi/io.c 	if (hdr_crc != crc) {
crc              1013 drivers/mtd/ubi/io.c 				 pnum, crc, hdr_crc);
crc              1017 drivers/mtd/ubi/io.c 			pnum, crc, hdr_crc);
crc              1053 drivers/mtd/ubi/io.c 	uint32_t crc;
crc              1065 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC);
crc              1066 drivers/mtd/ubi/io.c 	vid_hdr->hdr_crc = cpu_to_be32(crc);
crc              1154 drivers/mtd/ubi/io.c 	uint32_t crc, hdr_crc;
crc              1168 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, ec_hdr, UBI_EC_HDR_SIZE_CRC);
crc              1170 drivers/mtd/ubi/io.c 	if (hdr_crc != crc) {
crc              1172 drivers/mtd/ubi/io.c 			crc, hdr_crc);
crc              1239 drivers/mtd/ubi/io.c 	uint32_t crc, hdr_crc;
crc              1258 drivers/mtd/ubi/io.c 	crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC);
crc              1260 drivers/mtd/ubi/io.c 	if (hdr_crc != crc) {
crc              1262 drivers/mtd/ubi/io.c 			pnum, crc, hdr_crc);
crc               365 drivers/mtd/ubi/ubi-media.h 	__be32  crc;
crc                94 drivers/mtd/ubi/vtbl.c 	uint32_t crc;
crc               101 drivers/mtd/ubi/vtbl.c 		crc = crc32(UBI_CRC32_INIT, vtbl_rec, UBI_VTBL_RECORD_SIZE_CRC);
crc               102 drivers/mtd/ubi/vtbl.c 		vtbl_rec->crc = cpu_to_be32(crc);
crc               127 drivers/mtd/ubi/vtbl.c 		uint32_t crc;
crc               141 drivers/mtd/ubi/vtbl.c 		crc = crc32(UBI_CRC32_INIT, vtbl_rec,
crc               143 drivers/mtd/ubi/vtbl.c 		vtbl_rec->crc = cpu_to_be32(crc);
crc               162 drivers/mtd/ubi/vtbl.c 	uint32_t crc;
crc               176 drivers/mtd/ubi/vtbl.c 		crc = crc32(UBI_CRC32_INIT, &vtbl[i], UBI_VTBL_RECORD_SIZE_CRC);
crc               177 drivers/mtd/ubi/vtbl.c 		if (be32_to_cpu(vtbl[i].crc) != crc) {
crc               179 drivers/mtd/ubi/vtbl.c 				 i, crc, be32_to_cpu(vtbl[i].crc));
crc               788 drivers/mtd/ubi/vtbl.c 	empty_vtbl_record.crc = cpu_to_be32(0xf116c36b);
crc               309 drivers/net/can/kvaser_pciefd.c 	__le32 crc;
crc               387 drivers/net/can/kvaser_pciefd.c 	int res, crc;
crc               416 drivers/net/can/kvaser_pciefd.c 	crc = ~crc32_be(0xffffffff, crc_buff, sizeof(img->params));
crc               417 drivers/net/can/kvaser_pciefd.c 	if (le32_to_cpu(img->crc) != crc) {
crc               787 drivers/net/dsa/sja1105/sja1105_dynamic_config.c static u8 sja1105_crc8_add(u8 crc, u8 byte, u8 poly)
crc               792 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 		if ((crc ^ byte) & (1 << 7)) {
crc               793 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 			crc <<= 1;
crc               794 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 			crc ^= poly;
crc               796 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 			crc <<= 1;
crc               800 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	return crc;
crc               818 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	u8 crc = 0; /* seed */
crc               825 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 		crc = sja1105_crc8_add(crc, byte, poly);
crc               827 drivers/net/dsa/sja1105/sja1105_dynamic_config.c 	return crc;
crc               384 drivers/net/dsa/sja1105/sja1105_spi.c 	final_header.crc = sja1105_crc32(config_buf, crc_len);
crc                83 drivers/net/dsa/sja1105/sja1105_static_config.c 	u32 crc;
crc                86 drivers/net/dsa/sja1105/sja1105_static_config.c 	crc = ~0;
crc                89 drivers/net/dsa/sja1105/sja1105_static_config.c 		crc = crc32_le(crc, (u8 *)&word, 4);
crc                91 drivers/net/dsa/sja1105/sja1105_static_config.c 	return ~crc;
crc               473 drivers/net/dsa/sja1105/sja1105_static_config.c 	sja1105_packing(buf, &entry->crc,      95, 64, size, op);
crc               488 drivers/net/dsa/sja1105/sja1105_static_config.c 	hdr->crc = sja1105_crc32(buf, SJA1105_SIZE_TABLE_HEADER - 4);
crc               489 drivers/net/dsa/sja1105/sja1105_static_config.c 	sja1105_pack(buf + SJA1105_SIZE_TABLE_HEADER - 4, &hdr->crc, 31, 0, 4);
crc               665 drivers/net/dsa/sja1105/sja1105_static_config.c 	header.crc = 0xDEADBEEF;
crc               267 drivers/net/dsa/sja1105/sja1105_static_config.h 	u64 crc;
crc              1542 drivers/net/ethernet/8390/axnet_cs.c 	u32 crc;
crc              1545 drivers/net/ethernet/8390/axnet_cs.c 		crc = ether_crc(ETH_ALEN, ha->addr);
crc              1550 drivers/net/ethernet/8390/axnet_cs.c 		bits[crc>>29] |= (1<<((crc>>26)&7));
crc               880 drivers/net/ethernet/8390/lib8390.c 		u32 crc = ether_crc(ETH_ALEN, ha->addr);
crc               885 drivers/net/ethernet/8390/lib8390.c 		bits[crc>>29] |= (1<<((crc>>26)&7));
crc               210 drivers/net/ethernet/alacritech/slicoss.c 	u8 crc;
crc               215 drivers/net/ethernet/alacritech/slicoss.c 	crc = ether_crc(ETH_ALEN, addr) >> 23;
crc               217 drivers/net/ethernet/alacritech/slicoss.c 	crc &= 0x3F;
crc               218 drivers/net/ethernet/alacritech/slicoss.c 	mask |= (u64)1 << crc;
crc               604 drivers/net/ethernet/amd/7990.c 	u32 crc;
crc               618 drivers/net/ethernet/amd/7990.c 		crc = ether_crc_le(6, ha->addr);
crc               619 drivers/net/ethernet/amd/7990.c 		crc = crc >> 26;
crc               620 drivers/net/ethernet/amd/7990.c 		mcast_table[crc >> 4] |= 1 << (crc & 0xf);
crc               590 drivers/net/ethernet/amd/a2065.c 	u32 crc;
crc               604 drivers/net/ethernet/amd/a2065.c 		crc = ether_crc_le(6, ha->addr);
crc               605 drivers/net/ethernet/amd/a2065.c 		crc = crc >> 26;
crc               606 drivers/net/ethernet/amd/a2065.c 		mcast_table[crc >> 4] |= 1 << (crc & 0xf);
crc               199 drivers/net/ethernet/amd/am79c961a.c 	u32 crc;
crc               201 drivers/net/ethernet/amd/am79c961a.c 	crc = ether_crc_le(ETH_ALEN, addr);
crc               203 drivers/net/ethernet/amd/am79c961a.c 	idx = crc >> 30;
crc               204 drivers/net/ethernet/amd/am79c961a.c 	bit = (crc >> 26) & 15;
crc               948 drivers/net/ethernet/amd/declance.c 	u32 crc;
crc               966 drivers/net/ethernet/amd/declance.c 		crc = ether_crc_le(ETH_ALEN, ha->addr);
crc               967 drivers/net/ethernet/amd/declance.c 		crc = crc >> 26;
crc               968 drivers/net/ethernet/amd/declance.c 		*lib_ptr(ib, filter[crc >> 4], lp->type) |= 1 << (crc & 0xf);
crc              2691 drivers/net/ethernet/amd/pcnet32.c 	u32 crc;
crc              2709 drivers/net/ethernet/amd/pcnet32.c 		crc = ether_crc_le(6, ha->addr);
crc              2710 drivers/net/ethernet/amd/pcnet32.c 		crc = crc >> 26;
crc              2711 drivers/net/ethernet/amd/pcnet32.c 		mcast_table[crc >> 4] |= cpu_to_le16(1 << (crc & 0xf));
crc              1168 drivers/net/ethernet/amd/sunlance.c 	u32 crc;
crc              1192 drivers/net/ethernet/amd/sunlance.c 		crc = ether_crc_le(6, ha->addr);
crc              1193 drivers/net/ethernet/amd/sunlance.c 		crc = crc >> 26;
crc              1197 drivers/net/ethernet/amd/sunlance.c 			u16 tmp = sbus_readw(&mcast_table[crc>>4]);
crc              1198 drivers/net/ethernet/amd/sunlance.c 			tmp |= 1 << (crc & 0xf);
crc              1199 drivers/net/ethernet/amd/sunlance.c 			sbus_writew(tmp, &mcast_table[crc>>4]);
crc              1203 drivers/net/ethernet/amd/sunlance.c 			mcast_table [crc >> 4] |= 1 << (crc & 0xf);
crc               891 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	u32 crc = ~0;
crc               902 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		temp = ((crc & 1) ^ data_byte) & 1;
crc               903 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc >>= 1;
crc               907 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 			crc ^= CRC32_POLY_LE;
crc               910 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	return crc;
crc               915 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	u32 crc;
crc               924 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc = bitrev32(~xgbe_vid_crc32_le(vid_le)) >> 28;
crc               926 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		vlan_hash_table |= (1 << crc);
crc              1045 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 	u32 crc;
crc              1054 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN));
crc              1055 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc >>= hash_table_shift;
crc              1056 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		hash_table[crc >> 5] |= (1 << (crc & 0x1f));
crc              1060 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN));
crc              1061 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		crc >>= hash_table_shift;
crc              1062 drivers/net/ethernet/amd/xgbe/xgbe-dev.c 		hash_table[crc >> 5] |= (1 << (crc & 0x1f));
crc               864 drivers/net/ethernet/apple/bmac.c 	unsigned int	 crc;
crc               868 drivers/net/ethernet/apple/bmac.c 	crc = bmac_crc((unsigned short *)addr) & 0x3f; /* Big-endian alert! */
crc               869 drivers/net/ethernet/apple/bmac.c 	crc = reverse6[crc];	/* Hyperfast bit-reversing algorithm */
crc               870 drivers/net/ethernet/apple/bmac.c 	if (bp->hash_use_count[crc]++) return; /* This bit is already set */
crc               871 drivers/net/ethernet/apple/bmac.c 	mask = crc % 16;
crc               873 drivers/net/ethernet/apple/bmac.c 	bp->hash_use_count[crc/16] |= mask;
crc               879 drivers/net/ethernet/apple/bmac.c 	unsigned int crc;
crc               883 drivers/net/ethernet/apple/bmac.c 	crc = bmac_crc((unsigned short *)addr) & 0x3f; /* Big-endian alert! */
crc               884 drivers/net/ethernet/apple/bmac.c 	crc = reverse6[crc];	/* Hyperfast bit-reversing algorithm */
crc               885 drivers/net/ethernet/apple/bmac.c 	if (bp->hash_use_count[crc] == 0) return; /* That bit wasn't in use! */
crc               886 drivers/net/ethernet/apple/bmac.c 	if (--bp->hash_use_count[crc]) return; /* That bit is still in use */
crc               887 drivers/net/ethernet/apple/bmac.c 	mask = crc % 16;
crc               889 drivers/net/ethernet/apple/bmac.c 	bp->hash_table_mask[crc/16] &= mask;
crc              1015 drivers/net/ethernet/apple/bmac.c 	u32 crc;
crc              1034 drivers/net/ethernet/apple/bmac.c 			crc = ether_crc_le(6, ha->addr);
crc              1035 drivers/net/ethernet/apple/bmac.c 			crc >>= 26;
crc              1036 drivers/net/ethernet/apple/bmac.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc               589 drivers/net/ethernet/apple/mace.c     u32 crc;
crc               607 drivers/net/ethernet/apple/mace.c 	        crc = ether_crc_le(6, ha->addr);
crc               608 drivers/net/ethernet/apple/mace.c 		i = crc >> 26;	/* bit number in multicast_filter */
crc               484 drivers/net/ethernet/apple/macmace.c 	u32 crc;
crc               506 drivers/net/ethernet/apple/macmace.c 				crc = ether_crc_le(6, ha->addr);
crc               508 drivers/net/ethernet/apple/macmace.c 				i = crc >> 26;
crc                52 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c 	u32 crc;
crc               452 drivers/net/ethernet/atheros/atlx/atl2.c 			if (rxd->status.crc)
crc               293 drivers/net/ethernet/atheros/atlx/atl2.h 	unsigned crc:1;		/* received a packet with crc error */
crc              3616 drivers/net/ethernet/broadcom/bnx2.c 		u32 crc;
crc              3621 drivers/net/ethernet/broadcom/bnx2.c 			crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              3622 drivers/net/ethernet/broadcom/bnx2.c 			bit = crc & 0xff;
crc              2786 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	u32 crc = ~0;
crc              2800 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 		crc = crc32_le(crc, buff, count);
crc              2804 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c 	if (crc != CRC32_RESIDUAL)
crc              7648 drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h static inline u8 calc_crc8(u32 data, u8 crc)
crc              7664 drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h 		C[i] = crc & 1;
crc              7665 drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h 		crc = crc >> 1;
crc              3043 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		 ((u8 *)bulletin) + sizeof(bulletin->crc),
crc              3044 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		 bulletin->length - sizeof(bulletin->crc));
crc              3057 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		u32 crc;
crc              3063 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		crc = bnx2x_crc_vf_bulletin(&bp->shadow_bulletin.content);
crc              3065 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 		if (bp->shadow_bulletin.content.crc == crc)
crc              3069 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c 			  bp->shadow_bulletin.content.crc, crc);
crc              2284 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c 	bulletin->crc = bnx2x_crc_vf_bulletin(bulletin);
crc               402 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h 	u32 crc;			/* crc of structure to ensure is not in
crc              9779 drivers/net/ethernet/broadcom/tg3.c 		u32 crc;
crc              9782 drivers/net/ethernet/broadcom/tg3.c 			crc = calc_crc(ha->addr, ETH_ALEN);
crc              9783 drivers/net/ethernet/broadcom/tg3.c 			bit = ~crc & 0x7f;
crc              1756 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 		      u64 mask0, u64 mask1, unsigned int crc, bool enable);
crc              1954 drivers/net/ethernet/dec/tulip/de4x5.c     u32 omr, crc;
crc              1966 drivers/net/ethernet/dec/tulip/de4x5.c 		crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              1967 drivers/net/ethernet/dec/tulip/de4x5.c 		hashcode = crc & DE4X5_HASH_BITS;  /* hashcode is 9 LSb of CRC */
crc               940 drivers/net/ethernet/dec/tulip/dmfe.c 	u32 crc = crc32(~0, Data, Len);
crc               941 drivers/net/ethernet/dec/tulip/dmfe.c 	if (flag) crc = ~crc;
crc               942 drivers/net/ethernet/dec/tulip/dmfe.c 	return crc;
crc               338 drivers/net/ethernet/dlink/dl2k.c 	u32 crc;
crc               348 drivers/net/ethernet/dlink/dl2k.c 		crc = ~ether_crc_le (256 - 4, sromdata);
crc               349 drivers/net/ethernet/dlink/dl2k.c 		if (psrom->crc != cpu_to_le32(crc)) {
crc              1221 drivers/net/ethernet/dlink/dl2k.c 			int crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              1225 drivers/net/ethernet/dlink/dl2k.c 				if (crc & (1 << (31 - bit)))
crc               343 drivers/net/ethernet/dlink/dl2k.h 	u32 crc;		/* 0xfc-0xff */
crc              1586 drivers/net/ethernet/dlink/sundance.c 		int crc;
crc              1589 drivers/net/ethernet/dlink/sundance.c 			crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              1590 drivers/net/ethernet/dlink/sundance.c 			for (index=0, bit=0; bit < 6; bit++, crc <<= 1)
crc              1591 drivers/net/ethernet/dlink/sundance.c 				if (crc & 0x80000000) index |= 1 << bit;
crc              2608 drivers/net/ethernet/emulex/benet/be_cmds.c 		memcpy(flashed_crc, req->crc, 4);
crc              2667 drivers/net/ethernet/emulex/benet/be_cmds.c 	u8 crc[4];
crc              2669 drivers/net/ethernet/emulex/benet/be_cmds.c 	status = be_cmd_get_flash_crc(adapter, crc, img_optype, img_offset,
crc              2677 drivers/net/ethernet/emulex/benet/be_cmds.c 	if (!memcmp(crc, p + crc_offset, 4))
crc              1454 drivers/net/ethernet/emulex/benet/be_cmds.h 	u8 crc[4];
crc               226 drivers/net/ethernet/emulex/benet/be_hw.h 	u8 crc;
crc               871 drivers/net/ethernet/emulex/benet/be_main.c 	SET_TX_WRB_HDR_BITS(crc, hdr,
crc               857 drivers/net/ethernet/ethoc.c 			u32 crc = ether_crc(ETH_ALEN, ha->addr);
crc               858 drivers/net/ethernet/ethoc.c 			int bit = (crc >> 26) & 0x3f;
crc              3065 drivers/net/ethernet/freescale/fec_main.c 	unsigned int crc, tmp;
crc              3093 drivers/net/ethernet/freescale/fec_main.c 		crc = ether_crc_le(ndev->addr_len, ha->addr);
crc              3098 drivers/net/ethernet/freescale/fec_main.c 		hash = (crc >> (32 - FEC_HASH_BITS)) & 0x3f;
crc               567 drivers/net/ethernet/freescale/fec_mpc52xx.c 			u32 crc;
crc               573 drivers/net/ethernet/freescale/fec_mpc52xx.c 				crc = ether_crc_le(6, ha->addr) >> 26;
crc               574 drivers/net/ethernet/freescale/fec_mpc52xx.c 				if (crc >= 32)
crc               575 drivers/net/ethernet/freescale/fec_mpc52xx.c 					gaddr1 |= 1 << (crc-32);
crc               577 drivers/net/ethernet/freescale/fec_mpc52xx.c 					gaddr2 |= 1 << crc;
crc              1062 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	u32 crc = 0xFFFFFFFF;
crc              1078 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN);
crc              1079 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	crc = bitrev32(crc);
crc              1092 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		bucket = (s32)((crc >> 23) & 0x1ff);
crc              1094 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		bucket = (s32)((crc >> 24) & 0xff);
crc              1173 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	u32 crc = 0xFFFFFFFF;
crc              1189 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN);
crc              1190 drivers/net/ethernet/freescale/fman/fman_dtsec.c 	crc = bitrev32(crc);
crc              1193 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		bucket = (s32)((crc >> 23) & 0x1ff);
crc              1195 drivers/net/ethernet/freescale/fman/fman_dtsec.c 		bucket = (s32)((crc >> 24) & 0xff);
crc               536 drivers/net/ethernet/freescale/fman/fman_tgec.c 	u32 crc = 0xFFFFFFFF, hash;
crc               550 drivers/net/ethernet/freescale/fman/fman_tgec.c 	crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN);
crc               551 drivers/net/ethernet/freescale/fman/fman_tgec.c 	crc = bitrev32(crc);
crc               553 drivers/net/ethernet/freescale/fman/fman_tgec.c 	hash = (crc >> TGEC_HASH_MCAST_SHIFT) & TGEC_HASH_ADR_MSK;
crc               617 drivers/net/ethernet/freescale/fman/fman_tgec.c 	u32 crc = 0xFFFFFFFF, hash;
crc               626 drivers/net/ethernet/freescale/fman/fman_tgec.c 	crc = crc32_le(crc, (u8 *)eth_addr, ETH_ALEN);
crc               627 drivers/net/ethernet/freescale/fman/fman_tgec.c 	crc = bitrev32(crc);
crc               629 drivers/net/ethernet/freescale/fman/fman_tgec.c 	hash = (crc >> TGEC_HASH_MCAST_SHIFT) & TGEC_HASH_ADR_MSK;
crc               181 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	u32 crc, csrVal;
crc               183 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	crc = ether_crc(6, mac);
crc               185 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	temp = (crc & 0x3f) >> 1;
crc               192 drivers/net/ethernet/freescale/fs_enet/mac-fec.c 	if (crc & 1)
crc              1120 drivers/net/ethernet/i825xx/sun3_82586.c 	unsigned short crc,aln,rsc,ovrn;
crc              1122 drivers/net/ethernet/i825xx/sun3_82586.c 	crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */
crc              1131 drivers/net/ethernet/i825xx/sun3_82586.c 	dev->stats.rx_crc_errors += crc;
crc               392 drivers/net/ethernet/ibm/emac/core.h #define	EMAC_XAHT_CRC_TO_SLOT(dev, crc)			\
crc               394 drivers/net/ethernet/ibm/emac/core.h 	 ((crc) >> ((sizeof (u32) * BITS_PER_BYTE) -	\
crc               643 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	u16 crc;
crc               650 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	crc = fm10k_crc_16b(&mbx->mbx_hdr, mbx->remote, 1);
crc               653 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	return crc ? FM10K_MBX_ERR_CRC : 0;
crc               857 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	u16 crc;
crc               863 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	crc = fm10k_fifo_crc(fifo, fm10k_fifo_head_offset(fifo, mbx->pulled),
crc               865 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	crc = fm10k_crc_16b(&hdr, crc, 1);
crc               868 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
crc               882 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	u16 crc = fm10k_crc_16b(&hdr, mbx->local, 1);
crc               887 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
crc               903 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	u16 crc = fm10k_crc_16b(&hdr, mbx->local, 1);
crc               908 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c 	mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
crc               691 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c 	{I40E_HMC_STORE(i40e_hmc_obj_txq, crc),            32,  0 + (7 * 128) },
crc                68 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.h 	u32 crc;
crc               390 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c 	struct fcoe_crc_eof *crc;
crc               470 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c 		crc = skb_put(skb, sizeof(*crc));
crc               471 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c 		crc->fcoe_eof = FC_EOF_T;
crc               125 drivers/net/ethernet/jme.c 		       const u32 *mask, u32 crc, int fnr)
crc               134 drivers/net/ethernet/jme.c 	jwrite32(jme, JME_WFODP, crc);
crc               215 drivers/net/ethernet/jme.c 	u32 crc = 0xCDCDCDCD;
crc               250 drivers/net/ethernet/jme.c 		jme_setup_wakeup_frame(jme, mask, crc, i);
crc               501 drivers/net/ethernet/korina.c 		u32 crc;
crc               504 drivers/net/ethernet/korina.c 			crc = ether_crc_le(6, ha->addr);
crc               505 drivers/net/ethernet/korina.c 			crc >>= 26;
crc               506 drivers/net/ethernet/korina.c 			hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf));
crc              1840 drivers/net/ethernet/marvell/mv643xx_eth.c 	int crc = 0;
crc              1846 drivers/net/ethernet/marvell/mv643xx_eth.c 		crc = (crc ^ addr[i]) << 8;
crc              1848 drivers/net/ethernet/marvell/mv643xx_eth.c 			if (crc & (0x100 << j))
crc              1849 drivers/net/ethernet/marvell/mv643xx_eth.c 				crc ^= 0x107 << j;
crc              1853 drivers/net/ethernet/marvell/mv643xx_eth.c 	return crc;
crc              2549 drivers/net/ethernet/marvell/mvneta.c 	int crc = 0;
crc              2555 drivers/net/ethernet/marvell/mvneta.c 		crc = (crc ^ addr[i]) << 8;
crc              2557 drivers/net/ethernet/marvell/mvneta.c 			if (crc & (0x100 << j))
crc              2558 drivers/net/ethernet/marvell/mvneta.c 				crc ^= 0x107 << j;
crc              2562 drivers/net/ethernet/marvell/mvneta.c 	return crc;
crc              2922 drivers/net/ethernet/marvell/skge.c 	u32 crc, bit;
crc              2924 drivers/net/ethernet/marvell/skge.c 	crc = ether_crc_le(ETH_ALEN, addr);
crc              2925 drivers/net/ethernet/marvell/skge.c 	bit = ~crc & 0x3f;
crc                38 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 	u32 crc, i, j;
crc                41 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		crc = i;
crc                43 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 			if (crc & 0x00000001L)
crc                44 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 				crc = (crc >> 1) ^ DR_STE_CRC_POLY;
crc                46 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 				crc = crc >> 1;
crc                48 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		dr_ste_crc_tab32[0][i] = crc;
crc                68 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 	u32 crc = 0, one, two;
crc                75 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		one = *curr++ ^ crc;
crc                78 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		crc = dr_ste_crc_tab32[0][(two >> 24) & 0xff]
crc                93 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		crc = (crc >> 8) ^ dr_ste_crc_tab32[0][(crc & 0xff)
crc                96 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 	return ((crc >> 24) & 0xff) | ((crc << 8) & 0xff0000) |
crc                97 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_crc32.c 		((crc >> 8) & 0xff00) | ((crc << 24) & 0xff000000);
crc               182 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h MLXSW_ITEM32(pci, cqe0, crc, 0x0C, 8, 1);
crc               183 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h MLXSW_ITEM32(pci, cqe12, crc, 0x0C, 9, 1);
crc               184 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h mlxsw_pci_cqe_item_helpers(crc, 0, 12, 12);
crc               104 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c static u16 mlxsw_sp_acl_bf_crc_byte(u16 crc, u8 c)
crc               106 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	return (crc << 8) ^ mlxsw_sp_acl_bf_crc_tab[(crc >> 8) ^ c];
crc               111 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	u16 crc = 0;
crc               114 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 		crc = mlxsw_sp_acl_bf_crc_byte(crc, *buffer++);
crc               115 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_bloom_filter.c 	return crc;
crc              1002 drivers/net/ethernet/micrel/ks8851.c 		u32 crc;
crc              1007 drivers/net/ethernet/micrel/ks8851.c 			crc = ether_crc(ETH_ALEN, ha->addr);
crc              1008 drivers/net/ethernet/micrel/ks8851.c 			crc >>= (32 - 6);  /* get top six bits */
crc              1010 drivers/net/ethernet/micrel/ks8851.c 			rxctrl.mchash[crc >> 4] |= (1 << (crc & 0xf));
crc               778 drivers/net/ethernet/micrel/ks8851_mll.c 	long crc = -1;
crc               784 drivers/net/ethernet/micrel/ks8851_mll.c 			crc = (crc << 1) ^
crc               785 drivers/net/ethernet/micrel/ks8851_mll.c 				((crc < 0) ^ (current_octet & 1) ?
crc               789 drivers/net/ethernet/micrel/ks8851_mll.c 	return (unsigned long)crc;
crc              3561 drivers/net/ethernet/micrel/ksz884x.c 	u32 crc;
crc              3600 drivers/net/ethernet/micrel/ksz884x.c 	crc = ether_crc(to, data);
crc              3601 drivers/net/ethernet/micrel/ksz884x.c 	writel(crc, hw->io + KS8841_WOL_FRAME_CRC_OFFSET + i);
crc              2874 drivers/net/ethernet/microchip/lan743x_main.c 	u16 crc;
crc              2916 drivers/net/ethernet/microchip/lan743x_main.c 		crc = lan743x_pm_wakeframe_crc16(ipv4_multicast, 3);
crc              2920 drivers/net/ethernet/microchip/lan743x_main.c 				  (crc & MAC_WUF_CFG_CRC16_MASK_));
crc              2928 drivers/net/ethernet/microchip/lan743x_main.c 		crc = lan743x_pm_wakeframe_crc16(ipv6_multicast, 2);
crc              2932 drivers/net/ethernet/microchip/lan743x_main.c 				  (crc & MAC_WUF_CFG_CRC16_MASK_));
crc              2948 drivers/net/ethernet/microchip/lan743x_main.c 		crc = lan743x_pm_wakeframe_crc16(arp_type, 2);
crc              2952 drivers/net/ethernet/microchip/lan743x_main.c 				  (crc & MAC_WUF_CFG_CRC16_MASK_));
crc               573 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 	unsigned crc, reread_crc;
crc               611 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 	crc = crc32(~0, fw->data, fw->size);
crc               628 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 	if (crc != reread_crc) {
crc               630 drivers/net/ethernet/myricom/myri10ge/myri10ge.c 			(unsigned)fw->size, reread_crc, crc);
crc                17 drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h static inline u32 crc32_posix_end(u32 crc, size_t total_len)
crc                23 drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h 		crc = crc32_be(crc, &c, 1);
crc                27 drivers/net/ethernet/netronome/nfp/nfpcore/crc32.h 	return ~crc;
crc               131 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	u32 size, crc;
crc               140 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	crc = crc32_posix(db, size);
crc               141 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 	if (crc != get_unaligned_le32(db->start + size)) {
crc               143 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c 			crc, get_unaligned_le32(db->start + size));
crc              1526 drivers/net/ethernet/packetengines/hamachi.c 						register u32 crc, p_r, p_r1;
crc              1536 drivers/net/ethernet/packetengines/hamachi.c 								crc = (p_r & 0xffff) + (p_r >> 16);
crc              1539 drivers/net/ethernet/packetengines/hamachi.c 								crc = (p_r >> 16) + (p_r & 0xffff)
crc              1543 drivers/net/ethernet/packetengines/hamachi.c 								crc = p_r + (p_r1 >> 16);
crc              1546 drivers/net/ethernet/packetengines/hamachi.c 								crc = p_r + (p_r1 & 0xff00) + (p_r1 >> 16);
crc              1548 drivers/net/ethernet/packetengines/hamachi.c 							default:	/*NOTREACHED*/ crc = 0;
crc              1550 drivers/net/ethernet/packetengines/hamachi.c 						if (crc & 0xffff0000) {
crc              1551 drivers/net/ethernet/packetengines/hamachi.c 							crc &= 0xffff;
crc              1552 drivers/net/ethernet/packetengines/hamachi.c 							++crc;
crc              1556 drivers/net/ethernet/packetengines/hamachi.c 						if (skb->csum > crc)
crc              1557 drivers/net/ethernet/packetengines/hamachi.c 							skb->csum -= crc;
crc              1559 drivers/net/ethernet/packetengines/hamachi.c 							skb->csum += (~crc & 0xffff);
crc              1366 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 	u8 crc, validation_byte = 0;
crc              1393 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 	crc = crc8(cdu_crc8_table,
crc              1412 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 		validation_byte |= ((conn_type & 0xF) << 3) | (crc & 0x7);
crc              1414 drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c 		validation_byte |= crc & 0x7F;
crc              1475 drivers/net/ethernet/qlogic/qed/qed_l2.c 	u32 crc = qed_crc32c_le(ETH_MULTICAST_BIN_FROM_MAC_SEED,
crc              1478 drivers/net/ethernet/qlogic/qed/qed_l2.c 	return crc & 0xff;
crc              1970 drivers/net/ethernet/qlogic/qed/qed_main.c 					  u32 *crc)
crc              2000 drivers/net/ethernet/qlogic/qed/qed_main.c 	*crc = (~cpu_to_be32(crc32(0xffffffff, buf, nvm_image->length - 4)));
crc              2054 drivers/net/ethernet/qlogic/qed/qed_main.c 		u32 crc = 0;
crc              2056 drivers/net/ethernet/qlogic/qed/qed_main.c 		rc = qed_nvm_flash_image_access_crc(cdev, &nvm_image, &crc);
crc              2064 drivers/net/ethernet/qlogic/qed/qed_main.c 					nvm_image.length - 4), (u8 *)&crc, 4);
crc               331 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	int crc_size = sizeof(p_bulletin->crc);
crc               346 drivers/net/ethernet/qlogic/qed/qed_sriov.c 	p_bulletin->crc = crc32(0, (u8 *)p_bulletin + crc_size,
crc               351 drivers/net/ethernet/qlogic/qed/qed_sriov.c 		   p_bulletin->version, p_vf->relative_vf_id, p_bulletin->crc);
crc              1493 drivers/net/ethernet/qlogic/qed/qed_vf.c 	u32 crc, crc_size;
crc              1495 drivers/net/ethernet/qlogic/qed/qed_vf.c 	crc_size = sizeof(p_iov->bulletin.p_virt->crc);
crc              1506 drivers/net/ethernet/qlogic/qed/qed_vf.c 	crc = crc32(0, (u8 *)&shadow + crc_size,
crc              1508 drivers/net/ethernet/qlogic/qed/qed_vf.c 	if (crc != shadow.crc)
crc               577 drivers/net/ethernet/qlogic/qed/qed_vf.h 	u32 crc;
crc               901 drivers/net/ethernet/rdc/r6040.c 		u32 crc;
crc               915 drivers/net/ethernet/rdc/r6040.c 			crc = ether_crc(ETH_ALEN, addrs);
crc               916 drivers/net/ethernet/rdc/r6040.c 			crc >>= 26;
crc               917 drivers/net/ethernet/rdc/r6040.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc              2861 drivers/net/ethernet/sfc/falcon/farch.c 	u32 crc;
crc              2877 drivers/net/ethernet/sfc/falcon/farch.c 			crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              2878 drivers/net/ethernet/sfc/falcon/farch.c 			bit = crc & (EF4_MCAST_HASH_ENTRIES - 1);
crc              2957 drivers/net/ethernet/sfc/farch.c 	u32 crc;
crc              2973 drivers/net/ethernet/sfc/farch.c 			crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              2974 drivers/net/ethernet/sfc/farch.c 			bit = crc & (EFX_MCAST_HASH_ENTRIES - 1);
crc               311 drivers/net/ethernet/sgi/ioc3-eth.c 	u8 crc;
crc               344 drivers/net/ethernet/sgi/ioc3-eth.c 		crc = reg & 0xff;
crc               350 drivers/net/ethernet/sgi/ioc3-eth.c 		pr_cont(" registration number %pM, CRC %02x", serial, crc);
crc              1530 drivers/net/ethernet/sgi/ioc3-eth.c 	u32 crc;
crc              1532 drivers/net/ethernet/sgi/ioc3-eth.c 	crc = ether_crc_le(ETH_ALEN, addr);
crc              1534 drivers/net/ethernet/sgi/ioc3-eth.c 	crc &= 0x3f;    /* bit reverse lowest 6 bits for hash index */
crc              1537 drivers/net/ethernet/sgi/ioc3-eth.c 		temp |= (crc & 0x1);
crc              1538 drivers/net/ethernet/sgi/ioc3-eth.c 		crc >>= 1;
crc               430 drivers/net/ethernet/silan/sc92031.c 			u32 crc;
crc               433 drivers/net/ethernet/silan/sc92031.c 			crc = ~ether_crc(ETH_ALEN, ha->addr);
crc               434 drivers/net/ethernet/silan/sc92031.c 			crc >>= 24;
crc               436 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x01)	bit |= 0x02;
crc               437 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x02)	bit |= 0x01;
crc               438 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x10)	bit |= 0x20;
crc               439 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x20)	bit |= 0x10;
crc               440 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x40)	bit |= 0x08;
crc               441 drivers/net/ethernet/silan/sc92031.c 			if (crc & 0x80)	bit |= 0x04;
crc              2349 drivers/net/ethernet/sis/sis900.c 	u32 crc = ether_crc(6, addr);
crc              2353 drivers/net/ethernet/sis/sis900.c 		return (int)(crc >> 24);
crc              2355 drivers/net/ethernet/sis/sis900.c 		return (int)(crc >> 25);
crc              4235 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 crc = ~0x0;
crc              4244 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		temp = ((crc & 1) ^ data_byte) & 1;
crc              4245 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		crc >>= 1;
crc              4249 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			crc ^= 0xedb88320;
crc              4252 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	return crc;
crc              4257 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 crc, hash = 0;
crc              4262 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		crc = bitrev32(~stmmac_vid_crc32_le(vid_le)) >> 28;
crc              4263 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		hash |= (1 << crc);
crc              2937 drivers/net/ethernet/sun/cassini.c 	u32 crc;
crc              2959 drivers/net/ethernet/sun/cassini.c 			crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              2960 drivers/net/ethernet/sun/cassini.c 			crc >>= 24;
crc              2961 drivers/net/ethernet/sun/cassini.c 			hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf));
crc              6368 drivers/net/ethernet/sun/niu.c 			u32 crc = ether_crc_le(ETH_ALEN, ha->addr);
crc              6370 drivers/net/ethernet/sun/niu.c 			crc >>= 24;
crc              6371 drivers/net/ethernet/sun/niu.c 			hash[crc >> 4] |= (1 << (15 - (crc & 0xf)));
crc               998 drivers/net/ethernet/sun/sunbmac.c 	u32 tmp, crc;
crc              1022 drivers/net/ethernet/sun/sunbmac.c 			crc = ether_crc_le(6, ha->addr);
crc              1023 drivers/net/ethernet/sun/sunbmac.c 			crc >>= 26;
crc              1024 drivers/net/ethernet/sun/sunbmac.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc              1802 drivers/net/ethernet/sun/sungem.c 		u32 crc;
crc              1808 drivers/net/ethernet/sun/sungem.c 			crc = ether_crc_le(6, ha->addr);
crc              1809 drivers/net/ethernet/sun/sungem.c 			crc >>= 24;
crc              1810 drivers/net/ethernet/sun/sungem.c 			hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf));
crc              1531 drivers/net/ethernet/sun/sunhme.c 		u32 crc;
crc              1535 drivers/net/ethernet/sun/sunhme.c 			crc = ether_crc_le(6, ha->addr);
crc              1536 drivers/net/ethernet/sun/sunhme.c 			crc >>= 26;
crc              1537 drivers/net/ethernet/sun/sunhme.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc              2406 drivers/net/ethernet/sun/sunhme.c 	u32 crc;
crc              2423 drivers/net/ethernet/sun/sunhme.c 			crc = ether_crc_le(6, ha->addr);
crc              2424 drivers/net/ethernet/sun/sunhme.c 			crc >>= 26;
crc              2425 drivers/net/ethernet/sun/sunhme.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc               630 drivers/net/ethernet/sun/sunqe.c 	u32 crc;
crc               651 drivers/net/ethernet/sun/sunqe.c 			crc = ether_crc_le(6, ha->addr);
crc               652 drivers/net/ethernet/sun/sunqe.c 			crc >>= 26;
crc               653 drivers/net/ethernet/sun/sunqe.c 			hash_table[crc >> 4] |= 1 << (crc & 0xf);
crc               197 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	u32 crc = ~0;
crc               206 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		temp = ((crc & 1) ^ data_byte) & 1;
crc               207 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc >>= 1;
crc               211 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 			crc ^= CRC32_POLY_LE;
crc               214 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	return crc;
crc               222 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	u32 crc;
crc               229 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc = bitrev32(~xlgmac_vid_crc32_le(vid_le)) >> 28;
crc               231 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		vlan_hash_table |= (1 << crc);
crc               336 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 	u32 crc;
crc               344 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN));
crc               345 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc >>= hash_table_shift;
crc               346 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		hash_table[crc >> 5] |= (1 << (crc & 0x1f));
crc               350 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN));
crc               351 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		crc >>= hash_table_shift;
crc               352 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c 		hash_table[crc >> 5] |= (1 << (crc & 0x1f));
crc              2097 drivers/net/ethernet/ti/tlan.c 	u32		def_tx, crc, code;
crc              2116 drivers/net/ethernet/ti/tlan.c 	crc     = inb(dev->base_addr + TLAN_DIO_DATA + 2);
crc              2132 drivers/net/ethernet/ti/tlan.c 		dev->stats.rx_errors  += rx_over + crc + code;
crc              2139 drivers/net/ethernet/ti/tlan.c 		dev->stats.rx_crc_errors     += crc;
crc               557 drivers/net/ethernet/toshiba/spider_net.c 	u32 crc;
crc               567 drivers/net/ethernet/toshiba/spider_net.c 	crc = crc32_be(~0, addr_for_crc, netdev->addr_len);
crc               569 drivers/net/ethernet/toshiba/spider_net.c 	hash = (crc >> 27);
crc               571 drivers/net/ethernet/toshiba/spider_net.c 	hash |= crc & 7;
crc              1188 drivers/net/ethernet/tundra/tsi108_eth.c 			u32 hash, crc;
crc              1190 drivers/net/ethernet/tundra/tsi108_eth.c 			crc = ether_crc(6, ha->addr);
crc              1191 drivers/net/ethernet/tundra/tsi108_eth.c 			hash = crc >> 23;
crc              2974 drivers/net/ethernet/via/via-velocity.c 	u16 crc = 0xFFFF;
crc              2991 drivers/net/ethernet/via/via-velocity.c 			crc = crc_ccitt(crc, &(pattern[i * 8 + j]), 1);
crc              2995 drivers/net/ethernet/via/via-velocity.c 	crc = ~crc;
crc              2996 drivers/net/ethernet/via/via-velocity.c 	return bitrev32(crc) >> 16;
crc              3034 drivers/net/ethernet/via/via-velocity.c 		u16 crc;
crc              3045 drivers/net/ethernet/via/via-velocity.c 		crc = wol_calc_crc((sizeof(struct arp_packet) + 7) / 8, buf,
crc              3048 drivers/net/ethernet/via/via-velocity.c 		writew(crc, &regs->PatternCRC[0]);
crc               234 drivers/net/hamradio/baycom_epp.c  	unsigned int crc = 0xffff;
crc               237 drivers/net/hamradio/baycom_epp.c 		crc = (crc >> 8) ^ crc_ccitt_table[(crc ^ *buffer++) & 0xff];
crc               238 drivers/net/hamradio/baycom_epp.c 	crc ^= 0xffff;
crc               239 drivers/net/hamradio/baycom_epp.c 	*buffer++ = crc;
crc               240 drivers/net/hamradio/baycom_epp.c 	*buffer++ = crc >> 8;
crc               363 drivers/net/hamradio/baycom_epp.c         unsigned bitstream, notbitstream, bitbuf, numbit, crc;
crc               376 drivers/net/hamradio/baycom_epp.c 	crc = calc_crc_ccitt(bp, pkt_len);
crc               377 drivers/net/hamradio/baycom_epp.c 	crcarr[0] = crc;
crc               378 drivers/net/hamradio/baycom_epp.c 	crcarr[1] = crc >> 8;
crc                77 drivers/net/hamradio/hdlcdrv.c  	unsigned int crc = crc_ccitt(0xffff, buffer, len) ^ 0xffff;
crc                79 drivers/net/hamradio/hdlcdrv.c 	*buffer++ = crc;
crc                80 drivers/net/hamradio/hdlcdrv.c 	*buffer++ = crc >> 8;
crc                95 drivers/net/hamradio/hdlcdrv.c 	unsigned int crc = 0xffff;
crc                98 drivers/net/hamradio/hdlcdrv.c 		crc = (crc >> 8) ^ crc_ccitt_table[(crc ^ *buf++) & 0xff];
crc                99 drivers/net/hamradio/hdlcdrv.c 	crc ^= 0xffff;
crc               100 drivers/net/hamradio/hdlcdrv.c 	return crc & 0xffff;
crc               117 drivers/net/hamradio/mkiss.c 	unsigned short crc = 0xffff;
crc               120 drivers/net/hamradio/mkiss.c 		crc = (crc << 8) ^ crc_flex_table[((crc >> 8) ^ *cp++) & 0xff];
crc               122 drivers/net/hamradio/mkiss.c 	return crc;
crc               127 drivers/net/hamradio/mkiss.c 	unsigned short crc = 0xffff;
crc               133 drivers/net/hamradio/mkiss.c 		crc = (crc << 8) ^ crc_flex_table[((crc >> 8) ^ *cp++) & 0xff];
crc               135 drivers/net/hamradio/mkiss.c 	if ((crc & 0xffff) != 0x7070)
crc               143 drivers/net/hamradio/mkiss.c 	unsigned short crc = 0x0000;
crc               148 drivers/net/hamradio/mkiss.c 	crc = crc16(0, cp, size);
crc               150 drivers/net/hamradio/mkiss.c 	if (crc != 0x0000)
crc               198 drivers/net/hamradio/mkiss.c static int kiss_esc_crc(unsigned char *s, unsigned char *d, unsigned short crc,
crc               209 drivers/net/hamradio/mkiss.c 			c = crc >> 8;
crc               211 drivers/net/hamradio/mkiss.c 			c = crc & 0xff;
crc               480 drivers/net/hamradio/mkiss.c 		unsigned short crc;
crc               488 drivers/net/hamradio/mkiss.c 			crc = swab16(crc16(0, p, len));
crc               489 drivers/net/hamradio/mkiss.c 			count = kiss_esc_crc(p, ax->xbuff, crc, len+2);
crc               497 drivers/net/hamradio/mkiss.c 			crc = calc_crc_flex(p, len);
crc               498 drivers/net/hamradio/mkiss.c 			count = kiss_esc_crc(p, ax->xbuff, crc, len+2);
crc               489 drivers/net/ieee802154/cc2520.c 		u16 crc = crc_ccitt(0, skb->data, skb->len);
crc               491 drivers/net/ieee802154/cc2520.c 		put_unaligned_le16(crc, skb_put(skb, 2));
crc              1121 drivers/net/phy/mscc.c 			      u16 *crc)
crc              1137 drivers/net/phy/mscc.c 	*crc = phy_base_read(phydev, MSCC_PHY_VERIPHY_CNTL_2);
crc              1294 drivers/net/phy/mscc.c 	u16 crc, reg;
crc              1362 drivers/net/phy/mscc.c 				 fw->size + 1, &crc);
crc              1366 drivers/net/phy/mscc.c 	if (crc == MSCC_VSC8574_REVB_INT8051_FW_CRC) {
crc              1404 drivers/net/phy/mscc.c 					 fw->size + 1, &crc);
crc              1408 drivers/net/phy/mscc.c 		if (crc != MSCC_VSC8574_REVB_INT8051_FW_CRC)
crc              1462 drivers/net/phy/mscc.c 	u16 crc, reg;
crc              1541 drivers/net/phy/mscc.c 				 fw->size + 1, &crc);
crc              1545 drivers/net/phy/mscc.c 	if (crc != MSCC_VSC8584_REVB_INT8051_FW_CRC) {
crc              1557 drivers/net/phy/mscc.c 				 fw->size + 1, &crc);
crc              1561 drivers/net/phy/mscc.c 	if (crc != MSCC_VSC8584_REVB_INT8051_FW_CRC)
crc               620 drivers/net/usb/catc.c 	u32 crc;
crc               622 drivers/net/usb/catc.c 	crc = ether_crc_le(6, addr);
crc               623 drivers/net/usb/catc.c 	multicast[(crc >> 3) & 0x3f] |= 1 << (crc & 7);
crc               648 drivers/net/usb/catc.c 			u32 crc = ether_crc_le(6, ha->addr);
crc               650 drivers/net/usb/catc.c 				catc->multicast[(crc >> 3) & 0x3f] |= 1 << (crc & 7);
crc               652 drivers/net/usb/catc.c 				catc->multicast[7-(crc >> 29)] |= 1 << ((crc >> 26) & 7);
crc                94 drivers/net/usb/cdc_eem.c 	u32		crc = 0;
crc               134 drivers/net/usb/cdc_eem.c 	crc = crc32_le(~0, skb->data, skb->len);
crc               135 drivers/net/usb/cdc_eem.c 	crc = ~crc;
crc               137 drivers/net/usb/cdc_eem.c 	put_unaligned_le32(crc, skb_put(skb, 4));
crc               256 drivers/net/usb/cdc_eem.c 			u32	crc, crc2;
crc               302 drivers/net/usb/cdc_eem.c 				crc = get_unaligned_le32(skb2->data
crc               307 drivers/net/usb/cdc_eem.c 				crc = get_unaligned_be32(skb2->data
crc               314 drivers/net/usb/cdc_eem.c 				return crc == crc2;
crc               316 drivers/net/usb/cdc_eem.c 			if (unlikely(crc != crc2)) {
crc               309 drivers/net/usb/dm9601.c 			u32 crc = ether_crc(ETH_ALEN, ha->addr) >> 26;
crc               310 drivers/net/usb/dm9601.c 			hashes[crc >> 3] |= 1 << (crc & 0x7);
crc              3842 drivers/net/usb/lan78xx.c 	u16 bit, crc, msb;
crc              3845 drivers/net/usb/lan78xx.c 	crc = 0xFFFF;
crc              3849 drivers/net/usb/lan78xx.c 			msb = crc >> 15;
crc              3850 drivers/net/usb/lan78xx.c 			crc <<= 1;
crc              3853 drivers/net/usb/lan78xx.c 				crc ^= crc16poly;
crc              3854 drivers/net/usb/lan78xx.c 				crc |= (u16)0x0001U;
crc              3860 drivers/net/usb/lan78xx.c 	return crc;
crc              3868 drivers/net/usb/lan78xx.c 	u16 crc;
crc              3922 drivers/net/usb/lan78xx.c 		crc = lan78xx_wakeframe_crc16(ipv4_multicast, 3);
crc              3927 drivers/net/usb/lan78xx.c 					(crc & WUF_CFGX_CRC16_MASK_));
crc              3936 drivers/net/usb/lan78xx.c 		crc = lan78xx_wakeframe_crc16(ipv6_multicast, 2);
crc              3941 drivers/net/usb/lan78xx.c 					(crc & WUF_CFGX_CRC16_MASK_));
crc              3966 drivers/net/usb/lan78xx.c 		crc = lan78xx_wakeframe_crc16(arp_type, 2);
crc              3971 drivers/net/usb/lan78xx.c 					(crc & WUF_CFGX_CRC16_MASK_));
crc              1337 drivers/net/usb/smsc95xx.c 	u32 crc = bitrev16(crc16(0xFFFF, buffer, len));
crc              1338 drivers/net/usb/smsc95xx.c 	return crc << ((filter % 2) * 16);
crc              1661 drivers/net/usb/smsc95xx.c 		u32 crc[4];
crc              1675 drivers/net/usb/smsc95xx.c 		memset(crc, 0, sizeof(crc));
crc              1686 drivers/net/usb/smsc95xx.c 			crc[filter/2] |= smsc_crc(bcast, 6, filter);
crc              1699 drivers/net/usb/smsc95xx.c 			crc[filter/2] |= smsc_crc(mcast, 3, filter);
crc              1712 drivers/net/usb/smsc95xx.c 			crc[filter/2] |= smsc_crc(arp, 2, filter);
crc              1724 drivers/net/usb/smsc95xx.c 			crc[filter/2] |= smsc_crc(dev->net->dev_addr, ETH_ALEN, filter);
crc              1750 drivers/net/usb/smsc95xx.c 			ret = smsc95xx_write_reg_nopm(dev, WUFF, crc[i]);
crc               279 drivers/net/usb/sr9700.c 			u32 crc = ether_crc(ETH_ALEN, ha->addr) >> 26;
crc               280 drivers/net/usb/sr9700.c 			hashes[crc >> 3] |= 1 << (crc & 0x7);
crc               595 drivers/net/wan/sbni.c 	u32  crc = CRC32_INITIAL;
crc               600 drivers/net/wan/sbni.c 	if( check_fhdr( ioaddr, &framelen, &frameno, &ack, &is_first, &crc ) ) {
crc               602 drivers/net/wan/sbni.c 			?  upload_data( dev, framelen, frameno, is_first, crc )
crc               603 drivers/net/wan/sbni.c 			:  skip_tail( ioaddr, framelen, crc );
crc               628 drivers/net/wan/sbni.c 	u32  crc = CRC32_INITIAL;
crc               649 drivers/net/wan/sbni.c 	send_frame_header( dev, &crc );
crc               658 drivers/net/wan/sbni.c 		download_data( dev, &crc );
crc               663 drivers/net/wan/sbni.c 	outsb( dev->base_addr + DAT, (u8 *)&crc, sizeof crc );
crc               700 drivers/net/wan/sbni.c 	     unsigned  is_first,  u32  crc )
crc               713 drivers/net/wan/sbni.c 			frame_ok = append_frame_to_pkt( dev, framelen, crc );
crc               719 drivers/net/wan/sbni.c 		else if( (frame_ok = skip_tail( dev->base_addr, framelen, crc ))
crc               732 drivers/net/wan/sbni.c 		frame_ok = skip_tail( dev->base_addr, framelen, crc );
crc               809 drivers/net/wan/sbni.c append_frame_to_pkt( struct net_device  *dev,  unsigned  framelen,  u32  crc )
crc               823 drivers/net/wan/sbni.c 	if( calc_crc32( crc, p, framelen ) != CRC32_REMAINDER )
crc               905 drivers/net/wan/sbni.c 	u32  crc = *crc_p;
crc               920 drivers/net/wan/sbni.c 	crc = CRC32( value, crc );
crc               923 drivers/net/wan/sbni.c 	crc = CRC32( value, crc );
crc               926 drivers/net/wan/sbni.c 	crc = CRC32( nl->tx_frameno, crc );
crc               928 drivers/net/wan/sbni.c 	crc = CRC32( 0, crc );
crc               929 drivers/net/wan/sbni.c 	*crc_p = crc;
crc               939 drivers/net/wan/sbni.c skip_tail( unsigned int  ioaddr,  unsigned int  tail_len,  u32 crc )
crc               942 drivers/net/wan/sbni.c 		crc = CRC32( inb( ioaddr + DAT ), crc );
crc               944 drivers/net/wan/sbni.c 	return  crc == CRC32_REMAINDER;
crc               957 drivers/net/wan/sbni.c 	u32  crc = *crc_p;
crc               965 drivers/net/wan/sbni.c 	crc = CRC32( value, crc );
crc               968 drivers/net/wan/sbni.c 	crc = CRC32( value, crc );
crc               979 drivers/net/wan/sbni.c 	crc = CRC32( value, crc );
crc               981 drivers/net/wan/sbni.c 	crc = CRC32( inb( ioaddr + DAT ), crc );	/* reserved byte */
crc               984 drivers/net/wan/sbni.c 	*crc_p = crc;
crc              1549 drivers/net/wan/sbni.c calc_crc32( u32  crc,  u8  *p,  u32  len )
crc              1552 drivers/net/wan/sbni.c 		crc = CRC32( *p++, crc );
crc              1554 drivers/net/wan/sbni.c 	return  crc;
crc               135 drivers/net/wan/sbni.h #define CRC32(c,crc) (crc32tab[((size_t)(crc) ^ (c)) & 0xff] ^ (((crc) >> 8) & 0x00FFFFFF))
crc                43 drivers/net/wireless/ath/ath10k/debug.c 	u32 crc = 0;
crc                62 drivers/net/wireless/ath/ath10k/debug.c 		crc = crc32_le(0, firmware->data, firmware->size);
crc                68 drivers/net/wireless/ath/ath10k/debug.c 		    crc);
crc                75 drivers/net/wireless/ath/ath10k/debug.c 	u32 crc;
crc                85 drivers/net/wireless/ath/ath10k/debug.c 		crc = crc32_le(0, board->data, board->size);
crc                87 drivers/net/wireless/ath/ath10k/debug.c 		crc = 0;
crc                92 drivers/net/wireless/ath/ath10k/debug.c 		    crc);
crc               166 drivers/net/wireless/ath/wil6210/fw.h 	__le32 crc; /* crc32 of the following data  */
crc                55 drivers/net/wireless/ath/wil6210/fw_inc.c 	u32 crc;
crc               107 drivers/net/wireless/ath/wil6210/fw_inc.c 	fh.crc = 0;
crc               109 drivers/net/wireless/ath/wil6210/fw_inc.c 	crc = crc32_le(~0, (unsigned char const *)hdr, sizeof(*hdr));
crc               110 drivers/net/wireless/ath/wil6210/fw_inc.c 	crc = crc32_le(crc, (unsigned char const *)&fh, sizeof(fh));
crc               111 drivers/net/wireless/ath/wil6210/fw_inc.c 	crc = crc32_le(crc, (unsigned char const *)&fh_[1],
crc               113 drivers/net/wireless/ath/wil6210/fw_inc.c 	crc = ~crc;
crc               115 drivers/net/wireless/ath/wil6210/fw_inc.c 	if (crc != le32_to_cpu(fh_->crc)) {
crc               118 drivers/net/wireless/ath/wil6210/fw_inc.c 			   (ulong)dlen, crc, le32_to_cpu(fh_->crc));
crc               335 drivers/net/wireless/atmel/at76c50x-usb.h 	__le32 crc;		/* CRC32 of the whole image */
crc               894 drivers/net/wireless/atmel/atmel.c 			 u16 msdu_size, u16 rx_packet_loc, u32 crc)
crc               906 drivers/net/wireless/atmel/atmel.c 		crc = crc32_le(crc, mac4, 6);
crc               921 drivers/net/wireless/atmel/atmel.c 		crc = crc32_le(crc, skbp + 12, msdu_size);
crc               923 drivers/net/wireless/atmel/atmel.c 		if ((crc ^ 0xffffffff) != netcrc) {
crc               949 drivers/net/wireless/atmel/atmel.c 	u32 netcrc, crc = 0xffffffff;
crc               959 drivers/net/wireless/atmel/atmel.c 		crc = crc32_le(crc, &octet, 1);
crc               962 drivers/net/wireless/atmel/atmel.c 	return (crc ^ 0xffffffff) == netcrc;
crc               967 drivers/net/wireless/atmel/atmel.c 			 u16 msdu_size, u16 rx_packet_loc, u32 crc, u16 seq_no,
crc               990 drivers/net/wireless/atmel/atmel.c 			crc = crc32_le(crc, mac4, 6);
crc              1003 drivers/net/wireless/atmel/atmel.c 			crc = crc32_le(crc, &priv->rx_buf[12], msdu_size);
crc              1005 drivers/net/wireless/atmel/atmel.c 			if ((crc ^ 0xffffffff) != netcrc) {
crc              1019 drivers/net/wireless/atmel/atmel.c 			crc = crc32_le(crc,
crc              1023 drivers/net/wireless/atmel/atmel.c 			if ((crc ^ 0xffffffff) != netcrc) {
crc              1064 drivers/net/wireless/atmel/atmel.c 		u32 crc = 0xffffffff;
crc              1107 drivers/net/wireless/atmel/atmel.c 			crc = crc32_le(0xffffffff, (unsigned char *)&header, 24);
crc              1117 drivers/net/wireless/atmel/atmel.c 				fast_rx_path(priv, &header, msdu_size, rx_packet_loc, crc);
crc              1119 drivers/net/wireless/atmel/atmel.c 				frag_rx_path(priv, &header, msdu_size, rx_packet_loc, crc,
crc              1134 drivers/net/wireless/atmel/atmel.c 				crc = crc32_le(crc, (unsigned char *)&priv->rx_buf, msdu_size);
crc              1135 drivers/net/wireless/atmel/atmel.c 				if ((crc ^ 0xffffffff) != (*((u32 *)&priv->rx_buf[msdu_size]))) {
crc               112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c 	dload_buf->crc = cpu_to_le32(0);
crc               904 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h 	__le32 crc;
crc               709 drivers/net/wireless/broadcom/brcm80211/brcmsmac/d11.h 	u16 crc;
crc               202 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	__le16 crc;		/* CRC up to here */
crc               708 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	u16 crc = 0;
crc               713 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 		crc = (crc << 1) + bytes[i];
crc               715 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	return crc;
crc               737 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	req->crc = cpu_to_le16(build_crc(req));
crc              1396 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	u16 crc;
crc              1428 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	crc = build_crc(ans);
crc              1429 drivers/net/wireless/intersil/orinoco/orinoco_usb.c 	if (le16_to_cpu(ans->crc) != crc) {
crc                79 drivers/net/wireless/intersil/p54/p54.h 	__le16 crc;
crc               528 drivers/net/wireless/intersil/p54/p54usb.c 	hdr->crc = cpu_to_le32(~crc32_le(~0, (void *)&hdr->fw_load_addr,
crc               113 drivers/net/wireless/intersil/p54/p54usb.h 	__le32 crc;
crc                50 drivers/net/wireless/marvell/mwifiex/fw.h 	__le32 crc;
crc               126 drivers/net/wireless/marvell/mwifiex/usb.h 	__le32 crc;
crc                72 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c 	__le32 crc;
crc               905 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c 	hdr->crc = cpu_to_le32(~crc32(0, pdata, len));
crc               609 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	u16 crc;
crc               625 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	crc = crc_ccitt(~0, data, len - 2);
crc               633 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	crc = swab16(crc);
crc               635 drivers/net/wireless/ralink/rt2x00/rt2800lib.c 	return fw_crc == crc;
crc              1174 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	u16 crc;
crc              1192 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	crc = crc_itu_t(0, data, len - 2);
crc              1193 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	crc = crc_itu_t_byte(crc, 0);
crc              1194 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	crc = crc_itu_t_byte(crc, 0);
crc              1196 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	return (fw_crc == crc) ? FW_OK : FW_BAD_CRC;
crc              1071 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	u16 crc;
crc              1089 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	crc = crc_itu_t(0, data, len - 2);
crc              1090 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	crc = crc_itu_t_byte(crc, 0);
crc              1091 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	crc = crc_itu_t_byte(crc, 0);
crc              1093 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	return (fw_crc == crc) ? FW_OK : FW_BAD_CRC;
crc               369 drivers/net/wireless/realtek/rtlwifi/core.c static u16 crc16_ccitt(u8 data, u16 crc)
crc               376 drivers/net/wireless/realtek/rtlwifi/core.c 		crc_bit15 = ((crc & BIT(15)) ? 1 : 0);
crc               380 drivers/net/wireless/realtek/rtlwifi/core.c 		result = crc << 1;
crc               386 drivers/net/wireless/realtek/rtlwifi/core.c 		crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in;
crc               392 drivers/net/wireless/realtek/rtlwifi/core.c 		crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in;
crc               398 drivers/net/wireless/realtek/rtlwifi/core.c 		crc = result;
crc               401 drivers/net/wireless/realtek/rtlwifi/core.c 	return crc;
crc               406 drivers/net/wireless/realtek/rtlwifi/core.c 	u16 crc = 0xffff;
crc               410 drivers/net/wireless/realtek/rtlwifi/core.c 		crc = crc16_ccitt(pattern[i], crc);
crc               412 drivers/net/wireless/realtek/rtlwifi/core.c 	crc = ~crc;
crc               414 drivers/net/wireless/realtek/rtlwifi/core.c 	return crc;
crc               517 drivers/net/wireless/realtek/rtlwifi/core.c 		rtl_pattern.crc = _calculate_wol_pattern_crc(content, len);
crc               519 drivers/net/wireless/realtek/rtlwifi/core.c 			 "CRC_Remainder = 0x%x\n", rtl_pattern.crc);
crc               825 drivers/net/wireless/realtek/rtlwifi/pci.c 		if (!stats.crc && !stats.hwerror && (skb->len > FCS_LEN)) {
crc               299 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 			       (!pstatus->crc) && (!pstatus->icv));
crc               388 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 	status->crc = (u16)get_rx_desc_crc32(pdesc);
crc               389 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 	status->hwerror = (status->crc | status->icv);
crc               422 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c 	if (status->crc)
crc               281 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 	     (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv));
crc               312 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 	stats->crc = (u16)get_rx_desc_crc32(p_desc);
crc               313 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 	stats->hwerror = (stats->crc | stats->icv);
crc               332 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c 	if (stats->crc)
crc               776 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c 	     (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv));
crc               297 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats->crc = (u16)get_rx_desc_crc32(pdesc);
crc               298 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats->hwerror = (stats->crc | stats->icv);
crc               365 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats.crc = (u16)get_rx_desc_crc32(rxdesc);
crc               366 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c 	stats.hwerror = (stats.crc | stats.icv);
crc               428 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c 	     (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv));
crc               452 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c 	stats->crc = (u16) GET_RX_DESC_CRC32(pdesc);
crc               453 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c 	stats->hwerror = (stats->crc | stats->icv);
crc               244 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 				(!pstatus->hwerror) && (!pstatus->crc) &&
crc               348 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 	status->crc = (u16)get_rx_desc_crc32(pdesc);
crc               349 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 	status->hwerror = (status->crc | status->icv);
crc               375 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c 	if (status->crc)
crc               221 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 	     (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv));
crc               246 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 	stats->crc = (u16)GET_RX_STATUS_DESC_CRC32(pdesc);
crc               247 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 	stats->hwerror = (u16)(stats->crc | stats->icv);
crc               266 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c 	if (stats->crc)
crc               243 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 		 (!pstatus->crc) && (!pstatus->icv));
crc               275 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 	status->crc = (u16)get_rx_desc_crc32(pdesc);
crc               276 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 	status->hwerror = (status->crc | status->icv);
crc               295 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c 	if (status->crc)
crc               219 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 				  (!pstatus->crc) && (!pstatus->icv));
crc               313 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 	status->crc = (u16)get_rx_desc_crc32(pdesc);
crc               314 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 	status->hwerror = (status->crc | status->icv);
crc               352 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c 	if (status->crc)
crc              4028 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c 			cam = BIT(31) | rtl_pattern->crc;
crc               304 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 			      (!pstatus->crc) && (!pstatus->icv));
crc               448 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 	status->crc = (u16)get_rx_desc_crc32(pdesc);
crc               449 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 	status->hwerror = (status->crc | status->icv);
crc               495 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c 	if (status->crc)
crc               439 drivers/net/wireless/realtek/rtlwifi/usb.c 	if (!stats.crc) {
crc               481 drivers/net/wireless/realtek/rtlwifi/usb.c 	if (!stats.crc) {
crc              2100 drivers/net/wireless/realtek/rtlwifi/wifi.h 	u16 crc:1;
crc              2206 drivers/net/wireless/realtek/rtlwifi/wifi.h 	u16 crc;
crc                58 drivers/nfc/microread/i2c.c 	u8 crc = 0;
crc                65 drivers/nfc/microread/i2c.c 		crc = crc ^ skb->data[i];
crc                67 drivers/nfc/microread/i2c.c 	skb_put_u8(skb, crc);
crc                79 drivers/nfc/microread/i2c.c 	u8 crc = 0;
crc                82 drivers/nfc/microread/i2c.c 		crc = crc ^ skb->data[i];
crc                84 drivers/nfc/microread/i2c.c 	if (crc != skb->data[skb->len-1]) {
crc                85 drivers/nfc/microread/i2c.c 		pr_err("CRC error 0x%x != 0x%x\n", crc, skb->data[skb->len-1]);
crc               406 drivers/nfc/microread/microread.c 	u16 crc;
crc               431 drivers/nfc/microread/microread.c 		crc = crc_ccitt(0xffff, skb->data, skb->len);
crc               432 drivers/nfc/microread/microread.c 		crc = ~crc;
crc               433 drivers/nfc/microread/microread.c 		skb_put_u8(skb, crc & 0xff);
crc               434 drivers/nfc/microread/microread.c 		skb_put_u8(skb, crc >> 8);
crc                76 drivers/nfc/nxp-nci/firmware.c 	u16 crc = 0xffff;
crc                79 drivers/nfc/nxp-nci/firmware.c 		crc = ((crc >> 8) | (crc << 8)) ^ *buffer++;
crc                80 drivers/nfc/nxp-nci/firmware.c 		crc ^= (crc & 0xff) >> 4;
crc                81 drivers/nfc/nxp-nci/firmware.c 		crc ^= (crc & 0xff) << 12;
crc                82 drivers/nfc/nxp-nci/firmware.c 		crc ^= (crc & 0xff) << 5;
crc                85 drivers/nfc/nxp-nci/firmware.c 	return crc;
crc                91 drivers/nfc/nxp-nci/firmware.c 	u16 header, crc;
crc               118 drivers/nfc/nxp-nci/firmware.c 	crc = nxp_nci_fw_crc(skb->data, chunk_len + NXP_NCI_FW_HDR_LEN);
crc               119 drivers/nfc/nxp-nci/firmware.c 	put_unaligned_be16(crc, skb_put(skb, NXP_NCI_FW_CRC_LEN));
crc               283 drivers/nfc/nxp-nci/firmware.c 	u16 crc, frame_crc;
crc               286 drivers/nfc/nxp-nci/firmware.c 	crc = nxp_nci_fw_crc(skb->data, len);
crc               289 drivers/nfc/nxp-nci/firmware.c 	return (crc ^ frame_crc);
crc               272 drivers/nfc/pn544/i2c.c 	u16 crc;
crc               278 drivers/nfc/pn544/i2c.c 	crc = crc_ccitt(0xffff, skb->data, skb->len);
crc               279 drivers/nfc/pn544/i2c.c 	crc = ~crc;
crc               280 drivers/nfc/pn544/i2c.c 	skb_put_u8(skb, crc & 0xff);
crc               281 drivers/nfc/pn544/i2c.c 	skb_put_u8(skb, crc >> 8);
crc               332 drivers/nfc/pn544/i2c.c 	u16 crc;
crc               335 drivers/nfc/pn544/i2c.c 	crc = crc_ccitt(0xffff, buf, len - 2);
crc               336 drivers/nfc/pn544/i2c.c 	crc = ~crc;
crc               338 drivers/nfc/pn544/i2c.c 	if (buf[len - 2] != (crc & 0xff) || buf[len - 1] != (crc >> 8)) {
crc               340 drivers/nfc/pn544/i2c.c 		       crc, buf[len - 1], buf[len - 2]);
crc               606 drivers/nfc/pn544/i2c.c 	u16 crc;
crc               609 drivers/nfc/pn544/i2c.c 	crc = crc_ccitt(0xffff, data, datalen);
crc               628 drivers/nfc/pn544/i2c.c 	put_unaligned_be16(crc, &frame.be_crc);
crc               158 drivers/nfc/st21nfca/i2c.c 	u16 crc;
crc               163 drivers/nfc/st21nfca/i2c.c 	crc = crc_ccitt(0xffff, skb->data, skb->len);
crc               164 drivers/nfc/st21nfca/i2c.c 	crc = ~crc;
crc               166 drivers/nfc/st21nfca/i2c.c 	tmp = crc & 0x00ff;
crc               169 drivers/nfc/st21nfca/i2c.c 	tmp = (crc >> 8) & 0x00ff;
crc               267 drivers/nfc/st21nfca/i2c.c 	u16 crc;
crc               269 drivers/nfc/st21nfca/i2c.c 	crc = crc_ccitt(0xffff, buf, buflen - 2);
crc               270 drivers/nfc/st21nfca/i2c.c 	crc = ~crc;
crc               272 drivers/nfc/st21nfca/i2c.c 	if (buf[buflen - 2] != (crc & 0xff) || buf[buflen - 1] != (crc >> 8)) {
crc               274 drivers/nfc/st21nfca/i2c.c 		       ": CRC error 0x%x != 0x%x 0x%x\n", crc, buf[buflen - 1],
crc               757 drivers/nubus/nubus.c 	board->crc = nubus_get_rom(&rp, 4, bytelanes);
crc                86 drivers/s390/char/hmcdrv_ftp.c 	u16 crc = 0xffffU;
crc                91 drivers/s390/char/hmcdrv_ftp.c 	crc = crc16(crc, cmd, len);
crc                92 drivers/s390/char/hmcdrv_ftp.c 	pdesc = ftpcmds + (crc % ARRAY_SIZE(ftpcmds));
crc                94 drivers/s390/char/hmcdrv_ftp.c 		 cmd, crc, (crc % ARRAY_SIZE(ftpcmds)));
crc              7492 drivers/scsi/FlashPoint.c 	unsigned short crc = 0;
crc              7498 drivers/scsi/FlashPoint.c 			if ((crc ^ ch) & 1)
crc              7499 drivers/scsi/FlashPoint.c 				crc = (crc >> 1) ^ CRCMASK;
crc              7501 drivers/scsi/FlashPoint.c 				crc >>= 1;
crc              7505 drivers/scsi/FlashPoint.c 	return crc;
crc               276 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	u32			crc;
crc               336 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE;
crc               339 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	crc = fcoe_fc_crc(fp);
crc               356 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	cp->fcoe_crc32 = cpu_to_le32(~crc);
crc               560 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	u32 crc;
crc               608 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		crc = fcoe_fc_crc(fp);
crc               613 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		fr_crc(fp) = cpu_to_le32(~crc);
crc              1474 drivers/scsi/fcoe/fcoe.c 	u32 crc;
crc              1510 drivers/scsi/fcoe/fcoe.c 	wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE;
crc              1517 drivers/scsi/fcoe/fcoe.c 		crc = 0;
crc              1520 drivers/scsi/fcoe/fcoe.c 		crc = fcoe_fc_crc(fp);
crc              1538 drivers/scsi/fcoe/fcoe.c 	cp->fcoe_crc32 = cpu_to_le32(~crc);
crc               314 drivers/scsi/fcoe/fcoe_transport.c 	u32 crc;
crc               317 drivers/scsi/fcoe/fcoe_transport.c 	crc = crc32(~0, skb->data, skb_headlen(skb));
crc               327 drivers/scsi/fcoe/fcoe_transport.c 			crc = crc32(crc, data + (off & ~PAGE_MASK), clen);
crc               333 drivers/scsi/fcoe/fcoe_transport.c 	return crc;
crc               481 drivers/scsi/libfc/fc_fcp.c 	u32 crc;
crc               530 drivers/scsi/libfc/fc_fcp.c 		crc = crc32(~0, (u8 *) fh, sizeof(*fh));
crc               532 drivers/scsi/libfc/fc_fcp.c 						    &offset, &crc);
crc               535 drivers/scsi/libfc/fc_fcp.c 			crc = crc32(crc, buf + len, 4 - (len % 4));
crc               537 drivers/scsi/libfc/fc_fcp.c 		if (~crc != le32_to_cpu(fr_crc(fp))) {
crc                24 drivers/scsi/libfc/fc_frame.c 	u32 crc;
crc                33 drivers/scsi/libfc/fc_frame.c 	crc = ~crc32(~0, bp, len);
crc                34 drivers/scsi/libfc/fc_frame.c 	error = crc ^ fr_crc(fp);
crc               102 drivers/scsi/libfc/fc_libfc.c 			     u32 *crc)
crc               133 drivers/scsi/libfc/fc_libfc.c 		if (crc)
crc               134 drivers/scsi/libfc/fc_libfc.c 			*crc = crc32(*crc, buf, sg_bytes);
crc               125 drivers/scsi/libfc/fc_libfc.h 			     u32 *crc);
crc              2684 drivers/scsi/lpfc/lpfc_scsi.c 	uint16_t crc = 0;
crc              2687 drivers/scsi/lpfc/lpfc_scsi.c 	crc = crc_t10dif(data, count);
crc              2688 drivers/scsi/lpfc/lpfc_scsi.c 	x = cpu_to_be16(crc);
crc               316 drivers/scsi/qedf/qedf_els.c 	u32 crc;
crc               334 drivers/scsi/qedf/qedf_els.c 	crc = fcoe_fc_crc(fp);
crc               339 drivers/scsi/qedf/qedf_els.c 	fr_crc(fp) = cpu_to_le32(~crc);
crc              2508 drivers/scsi/qedf/qedf_io.c 	u32 payload_len, crc;
crc              2564 drivers/scsi/qedf/qedf_io.c 	crc = fcoe_fc_crc(fp);
crc              2569 drivers/scsi/qedf/qedf_io.c 	fr_crc(fp) = cpu_to_le32(~crc);
crc               999 drivers/scsi/qedf/qedf_main.c 	u32			crc;
crc              1090 drivers/scsi/qedf/qedf_main.c 	wlen = (skb->len - tlen + sizeof(crc)) / FCOE_WORD_TO_BYTE;
crc              1093 drivers/scsi/qedf/qedf_main.c 	crc = fcoe_fc_crc(fp);
crc              1111 drivers/scsi/qedf/qedf_main.c 	cp->fcoe_crc32 = cpu_to_le32(~crc);
crc                76 drivers/scsi/qedi/qedi.h 	u32 crc;
crc              3981 drivers/scsi/qla2xxx/qla_target.c 			struct ctio_crc_from_fw *crc =
crc              3988 drivers/scsi/qla2xxx/qla_target.c 			    *((u64 *)&crc->actual_dif[0]),
crc              3989 drivers/scsi/qla2xxx/qla_target.c 			    *((u64 *)&crc->expected_dif[0]));
crc               451 drivers/soc/fsl/qe/qe.c 	u32 crc;
crc               502 drivers/soc/fsl/qe/qe.c 	crc = be32_to_cpu(*(__be32 *)((void *)firmware + calc_size));
crc               503 drivers/soc/fsl/qe/qe.c 	if (crc != crc32(0, firmware, calc_size)) {
crc               192 drivers/ssb/pci.c static inline u8 ssb_crc8(u8 crc, u8 data)
crc               229 drivers/ssb/pci.c 	return t[crc ^ data];
crc               244 drivers/ssb/pci.c 	u8 crc = 0xFF;
crc               247 drivers/ssb/pci.c 		crc = ssb_crc8(crc, sprom[word] & 0x00FF);
crc               248 drivers/ssb/pci.c 		crc = ssb_crc8(crc, (sprom[word] & 0xFF00) >> 8);
crc               250 drivers/ssb/pci.c 	crc = ssb_crc8(crc, sprom[size - 1] & 0x00FF);
crc               251 drivers/ssb/pci.c 	crc ^= 0xFF;
crc               253 drivers/ssb/pci.c 	return crc;
crc               258 drivers/ssb/pci.c 	u8 crc;
crc               262 drivers/ssb/pci.c 	crc = ssb_sprom_crc(sprom, size);
crc               265 drivers/ssb/pci.c 	if (crc != expected_crc)
crc               152 drivers/staging/iio/adc/ad7280a.c 	unsigned char crc;
crc               154 drivers/staging/iio/adc/ad7280a.c 	crc = crc_tab[val >> 16 & 0xFF];
crc               155 drivers/staging/iio/adc/ad7280a.c 	crc = crc_tab[crc ^ (val >> 8 & 0xFF)];
crc               157 drivers/staging/iio/adc/ad7280a.c 	return  crc ^ (val & 0xFF);
crc               162 drivers/staging/iio/adc/ad7280a.c 	unsigned char crc = ad7280_calc_crc8(st->crc_tab, val >> 10);
crc               164 drivers/staging/iio/adc/ad7280a.c 	if (crc != ((val >> 2) & 0xFF))
crc               342 drivers/staging/isdn/hysdn/hysdn_boot.c 	u_char crc;
crc               351 drivers/staging/isdn/hysdn/hysdn_boot.c 	for (p = cp, crc = 0; p < (cp + len - 2); p++)
crc               352 drivers/staging/isdn/hysdn/hysdn_boot.c 		if ((crc & 0x80))
crc               353 drivers/staging/isdn/hysdn/hysdn_boot.c 			crc = (((u_char) (crc << 1)) + 1) + *p;
crc               355 drivers/staging/isdn/hysdn/hysdn_boot.c 			crc = ((u_char) (crc << 1)) + *p;
crc               356 drivers/staging/isdn/hysdn/hysdn_boot.c 	crc = ~crc;
crc               357 drivers/staging/isdn/hysdn/hysdn_boot.c 	if (crc != *(cp + len - 1)) {
crc               550 drivers/staging/media/omap4iss/iss_csi2.c 	csi2->ctrl.ecc_enable = pdata->bus.csi2.crc;
crc               117 drivers/staging/rtl8188eu/core/rtw_security.c 	u32  crc;
crc               122 drivers/staging/rtl8188eu/core/rtw_security.c 	crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
crc               125 drivers/staging/rtl8188eu/core/rtw_security.c 		crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8);
crc               126 drivers/staging/rtl8188eu/core/rtw_security.c 	return cpu_to_le32(~crc);    /* transmit complement, per CRC-32 spec */
crc               581 drivers/staging/rtl8188eu/core/rtw_security.c 	u8	crc[4];
crc               631 drivers/staging/rtl8188eu/core/rtw_security.c 					*((__le32 *)crc) = getcrc32(payload, length);/* modified by Amy*/
crc               635 drivers/staging/rtl8188eu/core/rtw_security.c 					arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               638 drivers/staging/rtl8188eu/core/rtw_security.c 					*((__le32 *)crc) = getcrc32(payload, length);/* modified by Amy*/
crc               641 drivers/staging/rtl8188eu/core/rtw_security.c 					arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               662 drivers/staging/rtl8188eu/core/rtw_security.c 	u8	crc[4];
crc               709 drivers/staging/rtl8188eu/core/rtw_security.c 			*((__le32 *)crc) = getcrc32(payload, length-4);
crc               711 drivers/staging/rtl8188eu/core/rtw_security.c 			if (crc[3] != payload[length-1] ||
crc               712 drivers/staging/rtl8188eu/core/rtw_security.c 			    crc[2] != payload[length-2] ||
crc               713 drivers/staging/rtl8188eu/core/rtw_security.c 			    crc[1] != payload[length-3] ||
crc               714 drivers/staging/rtl8188eu/core/rtw_security.c 			    crc[0] != payload[length-4]) {
crc               717 drivers/staging/rtl8188eu/core/rtw_security.c 					 &crc, &payload[length-4]));
crc               291 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 	u32 crc;
crc               337 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		crc = ~crc32_le(~0, pos, len);
crc               338 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[0] = crc;
crc               339 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[1] = crc >> 8;
crc               340 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[2] = crc >> 16;
crc               341 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[3] = crc >> 24;
crc               378 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 	u32 crc;
crc               459 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		crc = ~crc32_le(~0, pos, plen);
crc               460 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[0] = crc;
crc               461 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[1] = crc >> 8;
crc               462 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[2] = crc >> 16;
crc               463 drivers/staging/rtl8192e/rtllib_crypt_tkip.c 		icv[3] = crc >> 24;
crc                93 drivers/staging/rtl8192e/rtllib_crypt_wep.c 	u32 crc;
crc               137 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		crc = ~crc32_le(~0, pos, len);
crc               139 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[0] = crc;
crc               140 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[1] = crc >> 8;
crc               141 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[2] = crc >> 16;
crc               142 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[3] = crc >> 24;
crc               173 drivers/staging/rtl8192e/rtllib_crypt_wep.c 	u32 crc;
crc               209 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		crc = ~crc32_le(~0, pos, plen);
crc               210 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[0] = crc;
crc               211 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[1] = crc >> 8;
crc               212 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[2] = crc >> 16;
crc               213 drivers/staging/rtl8192e/rtllib_crypt_wep.c 		icv[3] = crc >> 24;
crc               295 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 	u32 crc;
crc               340 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		crc = ~crc32_le(~0, pos, len);
crc               341 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[0] = crc;
crc               342 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[1] = crc >> 8;
crc               343 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[2] = crc >> 16;
crc               344 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[3] = crc >> 24;
crc               378 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 	u32 crc;
crc               455 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		crc = ~crc32_le(~0, pos, plen);
crc               456 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[0] = crc;
crc               457 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[1] = crc >> 8;
crc               458 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[2] = crc >> 16;
crc               459 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c 		icv[3] = crc >> 24;
crc                88 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 	u32 crc;
crc               130 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		crc = ~crc32_le(~0, pos, len);
crc               132 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[0] = crc;
crc               133 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[1] = crc >> 8;
crc               134 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[2] = crc >> 16;
crc               135 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[3] = crc >> 24;
crc               167 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 	u32 crc;
crc               206 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		crc = ~crc32_le(~0, pos, plen);
crc               207 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[0] = crc;
crc               208 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[1] = crc >> 8;
crc               209 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[2] = crc >> 16;
crc               210 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_wep.c 		icv[3] = crc >> 24;
crc               138 drivers/staging/rtl8712/rtl871x_security.c 	u32  crc;
crc               142 drivers/staging/rtl8712/rtl871x_security.c 	crc = 0xffffffff; /* preload shift register, per CRC-32 spec */
crc               144 drivers/staging/rtl8712/rtl871x_security.c 		crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8);
crc               145 drivers/staging/rtl8712/rtl871x_security.c 	return ~crc;    /* transmit complement, per CRC-32 spec */
crc               153 drivers/staging/rtl8712/rtl871x_security.c 	unsigned char	crc[4];
crc               183 drivers/staging/rtl8712/rtl871x_security.c 				*((__le32 *)crc) = cpu_to_le32(getcrc32(
crc               189 drivers/staging/rtl8712/rtl871x_security.c 						crc, 4);
crc               194 drivers/staging/rtl8712/rtl871x_security.c 				*((__le32 *)crc) = cpu_to_le32(getcrc32(
crc               200 drivers/staging/rtl8712/rtl871x_security.c 						crc, 4);
crc               211 drivers/staging/rtl8712/rtl871x_security.c 	u8 crc[4];
crc               239 drivers/staging/rtl8712/rtl871x_security.c 		*((__le32 *)crc) = cpu_to_le32(getcrc32(payload, length - 4));
crc               565 drivers/staging/rtl8712/rtl871x_security.c 	u8 crc[4];
crc               607 drivers/staging/rtl8712/rtl871x_security.c 					*((__le32 *)crc) = cpu_to_le32(
crc               613 drivers/staging/rtl8712/rtl871x_security.c 							length, crc, 4);
crc               619 drivers/staging/rtl8712/rtl871x_security.c 					*((__le32 *)crc) = cpu_to_le32(getcrc32(
crc               625 drivers/staging/rtl8712/rtl871x_security.c 							payload + length, crc,
crc               645 drivers/staging/rtl8712/rtl871x_security.c 	u8 crc[4];
crc               687 drivers/staging/rtl8712/rtl871x_security.c 			*((__le32 *)crc) = cpu_to_le32(getcrc32(payload,
crc               196 drivers/staging/rtl8723bs/core/rtw_security.c 	u32  crc;
crc               201 drivers/staging/rtl8723bs/core/rtw_security.c 	crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
crc               204 drivers/staging/rtl8723bs/core/rtw_security.c 		crc = crc32_table[(crc ^ *p) & 0xff] ^ (crc >> 8);
crc               206 drivers/staging/rtl8723bs/core/rtw_security.c 	return cpu_to_le32(~crc);    /* transmit complement, per CRC-32 spec */
crc               216 drivers/staging/rtl8723bs/core/rtw_security.c 	unsigned char crc[4];
crc               249 drivers/staging/rtl8723bs/core/rtw_security.c 				*((__le32 *)crc) = getcrc32(payload, length);
crc               253 drivers/staging/rtl8723bs/core/rtw_security.c 				arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               257 drivers/staging/rtl8723bs/core/rtw_security.c 				*((__le32 *)crc) = getcrc32(payload, length);
crc               260 drivers/staging/rtl8723bs/core/rtw_security.c 				arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               274 drivers/staging/rtl8723bs/core/rtw_security.c 	u8 crc[4];
crc               303 drivers/staging/rtl8723bs/core/rtw_security.c 		*((u32 *)crc) = le32_to_cpu(getcrc32(payload, length-4));
crc               305 drivers/staging/rtl8723bs/core/rtw_security.c 		if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || crc[1] != payload[length-3] || crc[0] != payload[length-4]) {
crc               307 drivers/staging/rtl8723bs/core/rtw_security.c 						crc[3], payload[length-1], crc[2], payload[length-2], crc[1], payload[length-3], crc[0], payload[length-4]));
crc               656 drivers/staging/rtl8723bs/core/rtw_security.c 	u8 crc[4];
crc               725 drivers/staging/rtl8723bs/core/rtw_security.c 					*((__le32 *)crc) = getcrc32(payload, length);/* modified by Amy*/
crc               729 drivers/staging/rtl8723bs/core/rtw_security.c 					arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               733 drivers/staging/rtl8723bs/core/rtw_security.c 					*((__le32 *)crc) = getcrc32(payload, length);/* modified by Amy*/
crc               736 drivers/staging/rtl8723bs/core/rtw_security.c 					arcfour_encrypt(&mycontext, payload+length, crc, 4);
crc               765 drivers/staging/rtl8723bs/core/rtw_security.c 	u8 crc[4];
crc               846 drivers/staging/rtl8723bs/core/rtw_security.c 			*((u32 *)crc) = le32_to_cpu(getcrc32(payload, length-4));
crc               848 drivers/staging/rtl8723bs/core/rtw_security.c 			if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || crc[1] != payload[length-3] || crc[0] != payload[length-4]) {
crc               851 drivers/staging/rtl8723bs/core/rtw_security.c 					 crc[3], payload[length-1], crc[2], payload[length-2], crc[1], payload[length-3], crc[0], payload[length-4]));
crc                61 drivers/staging/wilc1000/wilc_spi.c static u8 crc7_byte(u8 crc, u8 data)
crc                63 drivers/staging/wilc1000/wilc_spi.c 	return crc7_syndrome_table[(crc << 1) ^ data];
crc                66 drivers/staging/wilc1000/wilc_spi.c static u8 crc7(u8 crc, const u8 *buffer, u32 len)
crc                69 drivers/staging/wilc1000/wilc_spi.c 		crc = crc7_byte(crc, *buffer++);
crc                70 drivers/staging/wilc1000/wilc_spi.c 	return crc;
crc               294 drivers/staging/wilc1000/wilc_spi.c 	u8 crc[2];
crc               502 drivers/staging/wilc1000/wilc_spi.c 				crc[0] = rb[rix++];
crc               503 drivers/staging/wilc1000/wilc_spi.c 				crc[1] = rb[rix++];
crc               539 drivers/staging/wilc1000/wilc_spi.c 			if (!spi_priv->crc_off && wilc_spi_rx(wilc, crc, 2)) {
crc               597 drivers/staging/wilc1000/wilc_spi.c 			if (!spi_priv->crc_off && wilc_spi_rx(wilc, crc, 2)) {
crc               617 drivers/staging/wilc1000/wilc_spi.c 	u8 cmd, order, crc[2] = {0};
crc               662 drivers/staging/wilc1000/wilc_spi.c 			if (wilc_spi_tx(wilc, crc, 2)) {
crc              1078 drivers/staging/wlan-ng/hfa384x.h 	u16 crc;
crc               147 drivers/staging/wlan-ng/p80211wep.c 	u32 i, j, k, crc, keylen;
crc               187 drivers/staging/wlan-ng/p80211wep.c 	crc = ~0;
crc               195 drivers/staging/wlan-ng/p80211wep.c 		crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8);
crc               197 drivers/staging/wlan-ng/p80211wep.c 	crc = ~crc;
crc               200 drivers/staging/wlan-ng/p80211wep.c 	c_crc[0] = crc;
crc               201 drivers/staging/wlan-ng/p80211wep.c 	c_crc[1] = crc >> 8;
crc               202 drivers/staging/wlan-ng/p80211wep.c 	c_crc[2] = crc >> 16;
crc               203 drivers/staging/wlan-ng/p80211wep.c 	c_crc[3] = crc >> 24;
crc               220 drivers/staging/wlan-ng/p80211wep.c 	u32 i, j, k, crc, keylen;
crc               260 drivers/staging/wlan-ng/p80211wep.c 	crc = ~0;
crc               264 drivers/staging/wlan-ng/p80211wep.c 		crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8);
crc               270 drivers/staging/wlan-ng/p80211wep.c 	crc = ~crc;
crc               273 drivers/staging/wlan-ng/p80211wep.c 	icv[0] = crc;
crc               274 drivers/staging/wlan-ng/p80211wep.c 	icv[1] = crc >> 8;
crc               275 drivers/staging/wlan-ng/p80211wep.c 	icv[2] = crc >> 16;
crc               276 drivers/staging/wlan-ng/p80211wep.c 	icv[3] = crc >> 24;
crc               116 drivers/staging/wlan-ng/prism2fw.c 	u16 crc;	/* CRC value (if it falls at a chunk boundary) */
crc              1238 drivers/target/target_core_sbc.c 			__u16 crc;
crc              1254 drivers/target/target_core_sbc.c 			crc = crc_t10dif(daddr + offset, avail);
crc              1264 drivers/target/target_core_sbc.c 				crc = crc_t10dif_update(crc, daddr, offset);
crc              1269 drivers/target/target_core_sbc.c 			sdt->guard_tag = cpu_to_be16(crc);
crc              1291 drivers/target/target_core_sbc.c 		  __u16 crc, sector_t sector, unsigned int ei_lba)
crc              1298 drivers/target/target_core_sbc.c 	csum = cpu_to_be16(crc);
crc              1396 drivers/target/target_core_sbc.c 			__u16 crc;
crc              1423 drivers/target/target_core_sbc.c 			crc = crc_t10dif(daddr + dsg_off, avail);
crc              1433 drivers/target/target_core_sbc.c 				crc = crc_t10dif_update(crc, daddr, dsg_off);
crc              1438 drivers/target/target_core_sbc.c 			rc = sbc_dif_v1_verify(cmd, sdt, crc, sector, ei_lba);
crc               281 drivers/thunderbolt/eeprom.c 	u8 crc;
crc               294 drivers/thunderbolt/eeprom.c 	crc = tb_crc8(data + 1, 8);
crc               295 drivers/thunderbolt/eeprom.c 	if (crc != data[0]) {
crc               297 drivers/thunderbolt/eeprom.c 				data[0], crc);
crc               494 drivers/thunderbolt/eeprom.c 	u32 crc;
crc               561 drivers/thunderbolt/eeprom.c 	crc = tb_crc8((u8 *) &header->uid, 8);
crc               562 drivers/thunderbolt/eeprom.c 	if (crc != header->uid_crc8) {
crc               565 drivers/thunderbolt/eeprom.c 			header->uid_crc8, crc);
crc               573 drivers/thunderbolt/eeprom.c 	crc = tb_crc32(sw->drom + TB_DROM_DATA_START, header->data_len);
crc               574 drivers/thunderbolt/eeprom.c 	if (crc != header->data_crc32) {
crc               577 drivers/thunderbolt/eeprom.c 			header->data_crc32, crc);
crc               605 drivers/usb/atm/ueagle-atm.c 	u32 crc = 0;
crc               619 drivers/usb/atm/ueagle-atm.c 	crc = get_unaligned_le32(pfw);
crc               622 drivers/usb/atm/ueagle-atm.c 	if (crc32_be(0, pfw, size) != crc)
crc              1618 drivers/usb/atm/ueagle-atm.c 	u32 crc;
crc              1657 drivers/usb/atm/ueagle-atm.c 	crc = get_unaligned_le32(data);
crc              1660 drivers/usb/atm/ueagle-atm.c 	if (crc32_be(0, data, size) != crc)
crc               147 drivers/usb/atm/usbatm.c 	u32 crc;
crc               492 drivers/usb/atm/usbatm.c 			ctrl->crc = ~crc32_be(ctrl->crc, ptr, left - 4);
crc               494 drivers/usb/atm/usbatm.c 			trailer[4] = ctrl->crc >> 24;
crc               495 drivers/usb/atm/usbatm.c 			trailer[5] = ctrl->crc >> 16;
crc               496 drivers/usb/atm/usbatm.c 			trailer[6] = ctrl->crc >> 8;
crc               497 drivers/usb/atm/usbatm.c 			trailer[7] = ctrl->crc;
crc               503 drivers/usb/atm/usbatm.c 			ctrl->crc = crc32_be(ctrl->crc, ptr, left);
crc               675 drivers/usb/atm/usbatm.c 	ctrl->crc = crc32_be(~0, skb->data, skb->len);
crc               462 drivers/usb/gadget/function/f_eem.c 			u32		crc, crc2;
crc               483 drivers/usb/gadget/function/f_eem.c 				crc = get_unaligned_le32(skb->data + len
crc               488 drivers/usb/gadget/function/f_eem.c 				crc = get_unaligned_be32(skb->data + len
crc               492 drivers/usb/gadget/function/f_eem.c 			if (crc != crc2) {
crc              1036 drivers/usb/gadget/function/f_ncm.c 			uint32_t	crc;
crc              1039 drivers/usb/gadget/function/f_ncm.c 			crc = ~crc32_le(~0,
crc              1043 drivers/usb/gadget/function/f_ncm.c 			put_unaligned_le32(crc, crc_pos);
crc              1268 drivers/usb/gadget/function/f_ncm.c 				uint32_t crc, crc2;
crc              1270 drivers/usb/gadget/function/f_ncm.c 				crc = get_unaligned_le32(skb->data +
crc              1276 drivers/usb/gadget/function/f_ncm.c 				if (crc != crc2) {
crc              1418 drivers/usb/typec/tcpm/fusb302.c 	u8 crc[4];
crc              1442 drivers/usb/typec/tcpm/fusb302.c 	ret = fusb302_i2c_block_read(chip, FUSB_REG_FIFOS, 4, crc);
crc                32 drivers/w1/slaves/w1_ds2406.c 	u16 crc=0;
crc                51 drivers/w1/slaves/w1_ds2406.c 		crc=crc16_byte(crc, w1_buf[i]);
crc                52 drivers/w1/slaves/w1_ds2406.c 	if (crc==0xb001) /* good read? */
crc                69 drivers/w1/slaves/w1_ds2406.c 	u16 crc=0;
crc                87 drivers/w1/slaves/w1_ds2406.c 		crc=crc16_byte(crc, w1_buf[i]);
crc                88 drivers/w1/slaves/w1_ds2406.c 	if (crc==0xb001) /* good read? */
crc                43 drivers/w1/slaves/w1_ds2423.c 	int crc;
crc                78 drivers/w1/slaves/w1_ds2423.c 					crc = crc16(CRC16_INIT, wrbuf, 3);
crc                79 drivers/w1/slaves/w1_ds2423.c 					crc = crc16(crc, rbuf, 11);
crc                85 drivers/w1/slaves/w1_ds2423.c 					crc = crc16(CRC16_INIT,
crc                90 drivers/w1/slaves/w1_ds2423.c 				if (crc == CRC16_VALID) {
crc                56 drivers/w1/slaves/w1_ds2438.c 	u8 crc;
crc                60 drivers/w1/slaves/w1_ds2438.c 		crc = 0;
crc                76 drivers/w1/slaves/w1_ds2438.c 			crc = w1_calc_crc8(buf, DS2438_PAGE_SIZE);
crc                79 drivers/w1/slaves/w1_ds2438.c 			if ((u8)buf[DS2438_PAGE_SIZE] == crc)
crc                92 drivers/w1/slaves/w1_ds250x.c 	u16 crc;
crc               110 drivers/w1/slaves/w1_ds250x.c 	crc = crc16(CRC16_INIT, buf, 6);
crc               112 drivers/w1/slaves/w1_ds250x.c 	if (crc != CRC16_VALID)
crc               127 drivers/w1/slaves/w1_ds250x.c 	crc = crc16(CRC16_INIT, &data->eprom[epoff], W1_PAGE_SIZE);
crc               128 drivers/w1/slaves/w1_ds250x.c 	crc = crc16(crc, buf, 2);
crc               130 drivers/w1/slaves/w1_ds250x.c 	if (crc != CRC16_VALID)
crc               153 drivers/w1/slaves/w1_ds28e17.c 	u16 crc;
crc               158 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(CRC16_INIT, command, command_count);
crc               162 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, w1_buf, 1);
crc               165 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, buffer, count);
crc               168 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[0] = ~(crc & 0xFF);
crc               169 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = ~((crc >> 8) & 0xFF);
crc               265 drivers/w1/slaves/w1_ds28e17.c 	u16 crc;
crc               277 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(CRC16_INIT, w1_buf, 3);
crc               278 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[3] = ~(crc & 0xFF);
crc               279 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[4] = ~((crc >> 8) & 0xFF);
crc               304 drivers/w1/slaves/w1_ds28e17.c 	u16 crc;
crc               316 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(CRC16_INIT, w1_buf, 3);
crc               319 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, wbuffer, wcount);
crc               323 drivers/w1/slaves/w1_ds28e17.c 	crc = crc16(crc, w1_buf, 1);
crc               324 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[1] = ~(crc & 0xFF);
crc               325 drivers/w1/slaves/w1_ds28e17.c 	w1_buf[2] = ~((crc >> 8) & 0xFF);
crc                51 drivers/w1/slaves/w1_therm.c 	u8 crc;
crc               332 drivers/w1/slaves/w1_therm.c 	u8 rom[9], crc;
crc               376 drivers/w1/slaves/w1_therm.c 		crc = 0;
crc               387 drivers/w1/slaves/w1_therm.c 			crc = w1_calc_crc8(rom, 8);
crc               388 drivers/w1/slaves/w1_therm.c 			if (rom[8] == crc) {
crc               498 drivers/w1/slaves/w1_therm.c 		info->crc = 0;
crc               548 drivers/w1/slaves/w1_therm.c 				info->crc = w1_calc_crc8(info->rom, 8);
crc               550 drivers/w1/slaves/w1_therm.c 				if (info->rom[8] == info->crc)
crc               584 drivers/w1/slaves/w1_therm.c 		      info.crc, (info.verdict) ? "YES" : "NO");
crc               427 drivers/w1/w1.c 	rn->crc = w1_calc_crc8((u8 *)&rn64_le, 7);
crc               431 drivers/w1/w1.c 		  rn->family, (unsigned long long)rn->id, rn->crc);
crc               448 drivers/w1/w1.c 				sl->reg_num.crc == rn->crc) {
crc               744 drivers/w1/w1.c 		  rn->family, (unsigned long long)rn->id, rn->crc);
crc               757 drivers/w1/w1.c 			  (unsigned long long)rn->id, rn->crc);
crc               859 drivers/w1/w1.c 					sl->reg_num.crc == id->crc) {
crc               930 drivers/w1/w1.c 		if (rn && tmp->crc == w1_calc_crc8((u8 *)&rn_le, 7))
crc               357 drivers/w1/w1_io.c 	u8 crc = 0;
crc               360 drivers/w1/w1_io.c 		crc = w1_crc8_table[crc ^ *data++];
crc               362 drivers/w1/w1_io.c 	return crc;
crc               392 drivers/w1/w1_netlink.c 		sl->reg_num.crc, cmd->cmd, cmd->len);
crc              2331 fs/btrfs/ctree.h static inline u32 btrfs_crc32c(u32 crc, const void *address, unsigned length)
crc              2333 fs/btrfs/ctree.h 	return crc32c(crc, address, length);
crc              2336 fs/btrfs/ctree.h static inline void btrfs_crc32c_final(u32 crc, u8 *result)
crc              2338 fs/btrfs/ctree.h 	put_unaligned_le32(~crc, result);
crc               466 fs/btrfs/free-space-cache.c 	u32 crc = ~(u32)0;
crc               477 fs/btrfs/free-space-cache.c 	crc = btrfs_crc32c(crc, io_ctl->orig + offset, PAGE_SIZE - offset);
crc               478 fs/btrfs/free-space-cache.c 	btrfs_crc32c_final(crc, (u8 *)&crc);
crc               482 fs/btrfs/free-space-cache.c 	*tmp = crc;
crc               488 fs/btrfs/free-space-cache.c 	u32 crc = ~(u32)0;
crc               504 fs/btrfs/free-space-cache.c 	crc = btrfs_crc32c(crc, io_ctl->orig + offset, PAGE_SIZE - offset);
crc               505 fs/btrfs/free-space-cache.c 	btrfs_crc32c_final(crc, (u8 *)&crc);
crc               506 fs/btrfs/free-space-cache.c 	if (val != crc) {
crc               706 fs/btrfs/send.c 	u32 crc;
crc               710 fs/btrfs/send.c 	hdr->crc = 0;
crc               712 fs/btrfs/send.c 	crc = btrfs_crc32c(0, (unsigned char *)sctx->send_buf, sctx->send_size);
crc               713 fs/btrfs/send.c 	hdr->crc = cpu_to_le32(crc);
crc                39 fs/btrfs/send.h 	__le32 crc;
crc              2092 fs/ext4/ext4.h static inline u32 ext4_chksum(struct ext4_sb_info *sbi, u32 crc,
crc              2103 fs/ext4/ext4.h 	*(u32 *)desc.ctx = crc;
crc              2428 fs/ext4/super.c 	__u16 crc = 0;
crc              2447 fs/ext4/super.c 		crc = csum32 & 0xFFFF;
crc              2455 fs/ext4/super.c 	crc = crc16(~0, sbi->s_es->s_uuid, sizeof(sbi->s_es->s_uuid));
crc              2456 fs/ext4/super.c 	crc = crc16(crc, (__u8 *)&le_group, sizeof(le_group));
crc              2457 fs/ext4/super.c 	crc = crc16(crc, (__u8 *)gdp, offset);
crc              2462 fs/ext4/super.c 		crc = crc16(crc, (__u8 *)gdp + offset,
crc              2467 fs/ext4/super.c 	return cpu_to_le16(crc);
crc               816 fs/f2fs/checkpoint.c 	__u32 crc;
crc               832 fs/f2fs/checkpoint.c 	crc = f2fs_checkpoint_chksum(sbi, *cp_block);
crc               833 fs/f2fs/checkpoint.c 	if (crc != cur_cp_crc(*cp_block)) {
crc              1454 fs/f2fs/f2fs.h static inline u32 __f2fs_crc32(struct f2fs_sb_info *sbi, u32 crc,
crc              1466 fs/f2fs/f2fs.h 	*(u32 *)desc.ctx = crc;
crc              1486 fs/f2fs/f2fs.h static inline u32 f2fs_chksum(struct f2fs_sb_info *sbi, u32 crc,
crc              1489 fs/f2fs/f2fs.h 	return __f2fs_crc32(sbi, crc, address, length);
crc              2514 fs/f2fs/super.c 	__u32 crc = 0;
crc              2526 fs/f2fs/super.c 			offsetof(struct f2fs_super_block, crc)) {
crc              2531 fs/f2fs/super.c 		crc = le32_to_cpu(raw_super->crc);
crc              2532 fs/f2fs/super.c 		if (!f2fs_crc_valid(sbi, crc, raw_super, crc_offset)) {
crc              2533 fs/f2fs/super.c 			f2fs_info(sbi, "Invalid SB checksum value: %u", crc);
crc              2996 fs/f2fs/super.c 	__u32 crc = 0;
crc              3007 fs/f2fs/super.c 		crc = f2fs_crc32(sbi, F2FS_RAW_SUPER(sbi),
crc              3008 fs/f2fs/super.c 				offsetof(struct f2fs_super_block, crc));
crc              3009 fs/f2fs/super.c 		F2FS_RAW_SUPER(sbi)->crc = cpu_to_le32(crc);
crc               692 fs/gfs2/log.c  	u32 hash, crc;
crc               745 fs/gfs2/log.c  	crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
crc               747 fs/gfs2/log.c  	lh->lh_crc = cpu_to_be32(crc);
crc               123 fs/gfs2/recovery.c 	u32 hash, crc;
crc               136 fs/gfs2/recovery.c 	crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
crc               139 fs/gfs2/recovery.c 	if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc))
crc              1090 fs/gfs2/rgrp.c 	u32 crc;
crc              1104 fs/gfs2/rgrp.c 	crc = gfs2_disk_hash(buf, sizeof(struct gfs2_rgrp));
crc              1105 fs/gfs2/rgrp.c 	str->rg_crc = cpu_to_be32(crc);
crc               778 fs/jffs2/debug.c 	uint32_t crc;
crc               795 fs/jffs2/debug.c 	crc = crc32(0, &node.u, sizeof(node.u) - 4);
crc               796 fs/jffs2/debug.c 	if (crc != je32_to_cpu(node.u.hdr_crc)) {
crc               832 fs/jffs2/debug.c 		crc = crc32(0, &node.i, sizeof(node.i) - 8);
crc               833 fs/jffs2/debug.c 		if (crc != je32_to_cpu(node.i.node_crc)) {
crc               854 fs/jffs2/debug.c 		crc = crc32(0, &node.d, sizeof(node.d) - 8);
crc               855 fs/jffs2/debug.c 		if (crc != je32_to_cpu(node.d.node_crc)) {
crc               599 fs/jffs2/gc.c  	uint32_t crc, rawlen;
crc               634 fs/jffs2/gc.c  	crc = crc32(0, node, sizeof(struct jffs2_unknown_node)-4);
crc               635 fs/jffs2/gc.c  	if (je32_to_cpu(node->u.hdr_crc) != crc) {
crc               637 fs/jffs2/gc.c  			ref_offset(raw), je32_to_cpu(node->u.hdr_crc), crc);
crc               643 fs/jffs2/gc.c  		crc = crc32(0, node, sizeof(node->i)-8);
crc               644 fs/jffs2/gc.c  		if (je32_to_cpu(node->i.node_crc) != crc) {
crc               647 fs/jffs2/gc.c  				crc);
crc               652 fs/jffs2/gc.c  			crc = crc32(0, node->i.data, je32_to_cpu(node->i.csize));
crc               653 fs/jffs2/gc.c  			if (je32_to_cpu(node->i.data_crc) != crc) {
crc               656 fs/jffs2/gc.c  					je32_to_cpu(node->i.data_crc), crc);
crc               663 fs/jffs2/gc.c  		crc = crc32(0, node, sizeof(node->d)-8);
crc               664 fs/jffs2/gc.c  		if (je32_to_cpu(node->d.node_crc) != crc) {
crc               667 fs/jffs2/gc.c  				je32_to_cpu(node->d.node_crc), crc);
crc               678 fs/jffs2/gc.c  			crc = crc32(0, node->d.name, node->d.nsize);
crc               679 fs/jffs2/gc.c  			if (je32_to_cpu(node->d.name_crc) != crc) {
crc               682 fs/jffs2/gc.c  					je32_to_cpu(node->d.name_crc), crc);
crc              1030 fs/jffs2/gc.c  		uint32_t crc;
crc              1051 fs/jffs2/gc.c  		crc = crc32(0, &ri, sizeof(ri)-8);
crc              1052 fs/jffs2/gc.c  		if (crc != je32_to_cpu(ri.node_crc)) {
crc              1055 fs/jffs2/gc.c  				je32_to_cpu(ri.node_crc), crc);
crc                29 fs/jffs2/read.c 	uint32_t crc;
crc                51 fs/jffs2/read.c 	crc = crc32(0, ri, sizeof(*ri)-8);
crc                55 fs/jffs2/read.c 		  crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize),
crc                57 fs/jffs2/read.c 	if (crc != je32_to_cpu(ri->node_crc)) {
crc                59 fs/jffs2/read.c 			je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw));
crc               123 fs/jffs2/read.c 	crc = crc32(0, readbuf, je32_to_cpu(ri->csize));
crc               124 fs/jffs2/read.c 	if (crc != je32_to_cpu(ri->data_crc)) {
crc               126 fs/jffs2/read.c 			je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw));
crc               130 fs/jffs2/read.c 	jffs2_dbg(2, "Data CRC matches calculated CRC %08x\n", crc);
crc                37 fs/jffs2/readinode.c 	uint32_t crc, ofs, len;
crc                99 fs/jffs2/readinode.c 	crc = crc32(tn->partial_crc, buffer, len);
crc               107 fs/jffs2/readinode.c 	if (crc != tn->data_crc) {
crc               109 fs/jffs2/readinode.c 			     ref_offset(ref), tn->data_crc, crc);
crc               591 fs/jffs2/readinode.c 	uint32_t crc;
crc               596 fs/jffs2/readinode.c 	crc = crc32(0, rd, sizeof(*rd) - 8);
crc               597 fs/jffs2/readinode.c 	if (unlikely(crc != je32_to_cpu(rd->node_crc))) {
crc               599 fs/jffs2/readinode.c 			     ref_offset(ref), je32_to_cpu(rd->node_crc), crc);
crc               704 fs/jffs2/readinode.c 	uint32_t crc;
crc               709 fs/jffs2/readinode.c 	crc = crc32(0, rd, sizeof(*rd) - 8);
crc               710 fs/jffs2/readinode.c 	if (unlikely(crc != je32_to_cpu(rd->node_crc))) {
crc               712 fs/jffs2/readinode.c 			     ref_offset(ref), je32_to_cpu(rd->node_crc), crc);
crc              1134 fs/jffs2/readinode.c 	uint32_t crc, new_size;
crc              1213 fs/jffs2/readinode.c 	crc = crc32(0, latest_node, sizeof(*latest_node)-8);
crc              1214 fs/jffs2/readinode.c 	if (crc != je32_to_cpu(latest_node->node_crc)) {
crc               332 fs/jffs2/scan.c 	uint32_t xid, version, totlen, crc;
crc               335 fs/jffs2/scan.c 	crc = crc32(0, rx, sizeof(struct jffs2_raw_xattr) - 4);
crc               336 fs/jffs2/scan.c 	if (crc != je32_to_cpu(rx->node_crc)) {
crc               338 fs/jffs2/scan.c 			      ofs, je32_to_cpu(rx->node_crc), crc);
crc               388 fs/jffs2/scan.c 	uint32_t crc;
crc               391 fs/jffs2/scan.c 	crc = crc32(0, rr, sizeof(*rr) - 4);
crc               392 fs/jffs2/scan.c 	if (crc != je32_to_cpu(rr->node_crc)) {
crc               394 fs/jffs2/scan.c 			      ofs, je32_to_cpu(rr->node_crc), crc);
crc               992 fs/jffs2/scan.c 	uint32_t crc, ino = je32_to_cpu(ri->ino);
crc              1006 fs/jffs2/scan.c 	crc = crc32(0, ri, sizeof(*ri)-8);
crc              1007 fs/jffs2/scan.c 	if (crc != je32_to_cpu(ri->node_crc)) {
crc              1009 fs/jffs2/scan.c 			  __func__, ofs, je32_to_cpu(ri->node_crc), crc);
crc              1048 fs/jffs2/scan.c 	uint32_t crc;
crc              1055 fs/jffs2/scan.c 	crc = crc32(0, rd, sizeof(*rd)-8);
crc              1057 fs/jffs2/scan.c 	if (crc != je32_to_cpu(rd->node_crc)) {
crc              1059 fs/jffs2/scan.c 			  __func__, ofs, je32_to_cpu(rd->node_crc), crc);
crc              1081 fs/jffs2/scan.c 	crc = crc32(0, fd->name, rd->nsize);
crc              1082 fs/jffs2/scan.c 	if (crc != je32_to_cpu(rd->name_crc)) {
crc              1084 fs/jffs2/scan.c 			  __func__, ofs, je32_to_cpu(rd->name_crc), crc);
crc               578 fs/jffs2/summary.c 	uint32_t crc;
crc               589 fs/jffs2/summary.c 	crc = crc32(0, &crcnode, sizeof(crcnode)-4);
crc               591 fs/jffs2/summary.c 	if (je32_to_cpu(summary->hdr_crc) != crc) {
crc               602 fs/jffs2/summary.c 	crc = crc32(0, summary, sizeof(struct jffs2_raw_summary)-8);
crc               604 fs/jffs2/summary.c 	if (je32_to_cpu(summary->node_crc) != crc) {
crc               609 fs/jffs2/summary.c 	crc = crc32(0, summary->sum, sumsize - sizeof(struct jffs2_raw_summary));
crc               611 fs/jffs2/summary.c 	if (je32_to_cpu(summary->sum_crc) != crc) {
crc               139 fs/jffs2/xattr.c 	uint32_t crc, offset, totlen;
crc               154 fs/jffs2/xattr.c 	crc = crc32(0, &rx, sizeof(rx) - 4);
crc               155 fs/jffs2/xattr.c 	if (crc != je32_to_cpu(rx.node_crc)) {
crc               157 fs/jffs2/xattr.c 			    offset, je32_to_cpu(rx.hdr_crc), crc);
crc               209 fs/jffs2/xattr.c 	uint32_t crc, length;
crc               231 fs/jffs2/xattr.c 	crc = crc32(0, data, length);
crc               232 fs/jffs2/xattr.c 	if (crc != xd->data_crc) {
crc               235 fs/jffs2/xattr.c 			      ref_offset(xd->node), xd->data_crc, crc);
crc               450 fs/jffs2/xattr.c 	uint32_t crc, offset, totlen;
crc               466 fs/jffs2/xattr.c 	crc = crc32(0, &rr, sizeof(rr) - 4);
crc               467 fs/jffs2/xattr.c 	if (crc != je32_to_cpu(rr.node_crc)) {
crc               469 fs/jffs2/xattr.c 			    offset, je32_to_cpu(rr.node_crc), crc);
crc                99 fs/nilfs2/recovery.c 	u32 crc;
crc               104 fs/nilfs2/recovery.c 	crc = crc32_le(nilfs->ns_crc_seed,
crc               115 fs/nilfs2/recovery.c 			crc = crc32_le(crc, bh->b_data, size);
crc               119 fs/nilfs2/recovery.c 	*sum = crc;
crc               135 fs/nilfs2/recovery.c 	u32 crc;
crc               154 fs/nilfs2/recovery.c 			    nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes,
crc               159 fs/nilfs2/recovery.c 		if (crc != le32_to_cpu(sr->sr_sum)) {
crc               204 fs/nilfs2/recovery.c 	u32 crc;
crc               222 fs/nilfs2/recovery.c 	if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeof(sum->ss_datasum),
crc               228 fs/nilfs2/recovery.c 	if (crc != le32_to_cpu(sum->ss_datasum))
crc               175 fs/nilfs2/segbuf.c 	u32 crc;
crc               182 fs/nilfs2/segbuf.c 	crc = crc32_le(seed,
crc               192 fs/nilfs2/segbuf.c 		crc = crc32_le(crc, bh->b_data, size);
crc               194 fs/nilfs2/segbuf.c 	raw_sum->ss_sumsum = cpu_to_le32(crc);
crc               203 fs/nilfs2/segbuf.c 	u32 crc;
crc               208 fs/nilfs2/segbuf.c 	crc = crc32_le(seed,
crc               214 fs/nilfs2/segbuf.c 		crc = crc32_le(crc, bh->b_data, bh->b_size);
crc               218 fs/nilfs2/segbuf.c 		crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size);
crc               221 fs/nilfs2/segbuf.c 	raw_sum->ss_datasum = cpu_to_le32(crc);
crc               231 fs/nilfs2/segbuf.c 	u32 crc;
crc               235 fs/nilfs2/segbuf.c 	crc = crc32_le(seed,
crc               238 fs/nilfs2/segbuf.c 	raw_sr->sr_sum = cpu_to_le32(crc);
crc               436 fs/nilfs2/the_nilfs.c 	u32 crc;
crc               443 fs/nilfs2/the_nilfs.c 	crc = crc32_le(le32_to_cpu(sbp->s_crc_seed), (unsigned char *)sbp,
crc               445 fs/nilfs2/the_nilfs.c 	crc = crc32_le(crc, sum, 4);
crc               446 fs/nilfs2/the_nilfs.c 	crc = crc32_le(crc, (unsigned char *)sbp + sumoff + 4,
crc               448 fs/nilfs2/the_nilfs.c 	return crc == le32_to_cpu(sbp->s_sum);
crc               354 fs/ocfs2/blockcheck.c 	u32 crc;
crc               359 fs/ocfs2/blockcheck.c 	crc = crc32_le(~0, data, blocksize);
crc               368 fs/ocfs2/blockcheck.c 	bc->bc_crc32e = cpu_to_le32(crc);
crc               387 fs/ocfs2/blockcheck.c 	u32 crc, ecc;
crc               397 fs/ocfs2/blockcheck.c 	crc = crc32_le(~0, data, blocksize);
crc               398 fs/ocfs2/blockcheck.c 	if (crc == bc_crc32e)
crc               404 fs/ocfs2/blockcheck.c 	     (unsigned int)bc_crc32e, (unsigned int)crc);
crc               411 fs/ocfs2/blockcheck.c 	crc = crc32_le(~0, data, blocksize);
crc               412 fs/ocfs2/blockcheck.c 	if (crc == bc_crc32e) {
crc               418 fs/ocfs2/blockcheck.c 	     (unsigned int)bc_crc32e, (unsigned int)crc);
crc               447 fs/ocfs2/blockcheck.c 	u32 crc, ecc;
crc               456 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
crc               457 fs/ocfs2/blockcheck.c 		crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
crc               474 fs/ocfs2/blockcheck.c 	bc->bc_crc32e = cpu_to_le32(crc);
crc               494 fs/ocfs2/blockcheck.c 	u32 crc, ecc, fix;
crc               509 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0; i < nr; i++)
crc               510 fs/ocfs2/blockcheck.c 		crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
crc               511 fs/ocfs2/blockcheck.c 	if (crc == bc_crc32e)
crc               517 fs/ocfs2/blockcheck.c 	     (unsigned int)bc_crc32e, (unsigned int)crc);
crc               541 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0; i < nr; i++)
crc               542 fs/ocfs2/blockcheck.c 		crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size);
crc               543 fs/ocfs2/blockcheck.c 	if (crc == bc_crc32e) {
crc               549 fs/ocfs2/blockcheck.c 	     (unsigned int)bc_crc32e, (unsigned int)crc);
crc                86 fs/omfs/inode.c 	u16 crc = 0;
crc                92 fs/omfs/inode.c 	crc = crc_itu_t(crc, ptr + ofs, count);
crc                93 fs/omfs/inode.c 	oi->i_head.h_crc = cpu_to_be16(crc);
crc                18 fs/qnx6/dir.c  	unsigned crc = 0;
crc                21 fs/qnx6/dir.c  		crc = ((crc >> 1) + *(name++)) ^
crc                22 fs/qnx6/dir.c  			((crc & 0x00000001) ? 0x80000000 : 0);
crc                24 fs/qnx6/dir.c  	return crc;
crc               214 fs/ubifs/debug.c 	pr_err("\tcrc            %#x\n", le32_to_cpu(ch->crc));
crc               229 fs/ubifs/io.c  	uint32_t crc, node_crc, magic;
crc               266 fs/ubifs/io.c  	crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8);
crc               267 fs/ubifs/io.c  	node_crc = le32_to_cpu(ch->crc);
crc               268 fs/ubifs/io.c  	if (crc != node_crc) {
crc               271 fs/ubifs/io.c  				  crc, node_crc);
crc               308 fs/ubifs/io.c  	uint32_t crc;
crc               324 fs/ubifs/io.c  		crc = crc32(UBIFS_CRC32_INIT, buf + 8, UBIFS_PAD_NODE_SZ - 8);
crc               325 fs/ubifs/io.c  		ch->crc = cpu_to_le32(crc);
crc               379 fs/ubifs/io.c  	uint32_t crc;
crc               381 fs/ubifs/io.c  	crc = crc32(UBIFS_CRC32_INIT, node + 8, len - 8);
crc               382 fs/ubifs/io.c  	ch->crc = cpu_to_le32(crc);
crc               450 fs/ubifs/io.c  	uint32_t crc;
crc               464 fs/ubifs/io.c  	crc = crc32(UBIFS_CRC32_INIT, node + 8, len - 8);
crc               465 fs/ubifs/io.c  	ch->crc = cpu_to_le32(crc);
crc               345 fs/ubifs/lpt.c 	uint16_t crc;
crc               360 fs/ubifs/lpt.c 	crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES,
crc               364 fs/ubifs/lpt.c 	pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS);
crc               378 fs/ubifs/lpt.c 	uint16_t crc;
crc               392 fs/ubifs/lpt.c 	crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES,
crc               396 fs/ubifs/lpt.c 	pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS);
crc               410 fs/ubifs/lpt.c 	uint16_t crc;
crc               417 fs/ubifs/lpt.c 	crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES,
crc               421 fs/ubifs/lpt.c 	pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS);
crc               434 fs/ubifs/lpt.c 	uint16_t crc;
crc               439 fs/ubifs/lpt.c 	crc = crc16(-1, buf + UBIFS_LPT_CRC_BYTES,
crc               443 fs/ubifs/lpt.c 	pack_bits(c, &addr, &pos, crc, UBIFS_LPT_CRC_BITS);
crc               928 fs/ubifs/lpt.c 	uint16_t crc, calc_crc;
crc               930 fs/ubifs/lpt.c 	crc = ubifs_unpack_bits(c, &addr, &pos, UBIFS_LPT_CRC_BITS);
crc               933 fs/ubifs/lpt.c 	if (crc != calc_crc) {
crc               935 fs/ubifs/lpt.c 			  crc, calc_crc);
crc              1073 fs/ubifs/lpt_commit.c 	uint16_t crc, calc_crc;
crc              1085 fs/ubifs/lpt_commit.c 	crc = ubifs_unpack_bits(c, &addr, &pos, UBIFS_LPT_CRC_BITS);
crc              1088 fs/ubifs/lpt_commit.c 	if (crc != calc_crc)
crc              1409 fs/ubifs/recovery.c 	uint32_t crc;
crc              1431 fs/ubifs/recovery.c 	crc = crc32(UBIFS_CRC32_INIT, (void *)ino + 8, len - 8);
crc              1432 fs/ubifs/recovery.c 	ino->ch.crc = cpu_to_le32(crc);
crc               449 fs/ubifs/tnc.c 	uint32_t crc, node_crc;
crc               472 fs/ubifs/tnc.c 		crc = crc32(UBIFS_CRC32_INIT, buf + 8, node_len - 8);
crc               473 fs/ubifs/tnc.c 		node_crc = le32_to_cpu(ch->crc);
crc               474 fs/ubifs/tnc.c 		if (crc != node_crc)
crc               458 fs/ubifs/ubifs-media.h 	__le32 crc;
crc                48 fs/udf/namei.c 	uint16_t crc;
crc                99 fs/udf/namei.c 	crc = crc_itu_t(0, (uint8_t *)cfi + sizeof(struct tag),
crc               103 fs/udf/namei.c 		crc = crc_itu_t(crc, (uint8_t *)sfi->impUse,
crc               107 fs/udf/namei.c 		crc = crc_itu_t(crc, fibh->ebh->b_data +
crc               113 fs/udf/namei.c 		crc = crc_itu_t(crc, (uint8_t *)sfi->impUse,
crc               115 fs/udf/namei.c 		crc = crc_itu_t(crc, fibh->ebh->b_data, fibh->eoffset);
crc               118 fs/udf/namei.c 	cfi->descTag.descCRC = cpu_to_le16(crc);
crc               169 fs/udf/unicode.c 	uint8_t crc[CRC_LEN];
crc               256 fs/udf/unicode.c 			crc[0] = CRC_MARK;
crc               257 fs/udf/unicode.c 			crc[1] = hex_asc_upper_hi(valueCRC >> 8);
crc               258 fs/udf/unicode.c 			crc[2] = hex_asc_upper_lo(valueCRC >> 8);
crc               259 fs/udf/unicode.c 			crc[3] = hex_asc_upper_hi(valueCRC);
crc               260 fs/udf/unicode.c 			crc[4] = hex_asc_upper_lo(valueCRC);
crc               262 fs/udf/unicode.c 			memcpy(&str_o[str_o_len], crc, len);
crc                42 fs/xfs/libxfs/xfs_btree.c 	int			crc,
crc                45 fs/xfs/libxfs/xfs_btree.c 	uint32_t		magic = xfs_magics[crc][btnum];
crc                65 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
crc                67 fs/xfs/libxfs/xfs_btree.c 	if (crc) {
crc                77 fs/xfs/libxfs/xfs_btree.c 	if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum))
crc               131 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
crc               133 fs/xfs/libxfs/xfs_btree.c 	if (crc) {
crc               141 fs/xfs/libxfs/xfs_btree.c 	if (be32_to_cpu(block->bb_magic) != xfs_btree_magic(crc, btnum))
crc              1143 fs/xfs/libxfs/xfs_btree.c 	int			crc = xfs_sb_version_hascrc(&mp->m_sb);
crc              1144 fs/xfs/libxfs/xfs_btree.c 	__u32			magic = xfs_btree_magic(crc, btnum);
crc              1153 fs/xfs/libxfs/xfs_btree.c 		if (crc) {
crc              1166 fs/xfs/libxfs/xfs_btree.c 		if (crc) {
crc                66 fs/xfs/libxfs/xfs_btree.h uint32_t xfs_btree_magic(int crc, xfs_btnum_t btnum);
crc                17 fs/xfs/libxfs/xfs_cksum.h 	uint32_t crc;
crc                20 fs/xfs/libxfs/xfs_cksum.h 	crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset);
crc                23 fs/xfs/libxfs/xfs_cksum.h 	crc = crc32c(crc, &zero, sizeof(__u32));
crc                26 fs/xfs/libxfs/xfs_cksum.h 	return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)],
crc                52 fs/xfs/libxfs/xfs_cksum.h xfs_end_cksum(uint32_t crc)
crc                54 fs/xfs/libxfs/xfs_cksum.h 	return ~cpu_to_le32(crc);
crc                66 fs/xfs/libxfs/xfs_cksum.h 	uint32_t crc = xfs_start_cksum_update(buffer, length, cksum_offset);
crc                68 fs/xfs/libxfs/xfs_cksum.h 	*(__le32 *)(buffer + cksum_offset) = xfs_end_cksum(crc);
crc                77 fs/xfs/libxfs/xfs_cksum.h 	uint32_t crc = xfs_start_cksum_safe(buffer, length, cksum_offset);
crc                79 fs/xfs/libxfs/xfs_cksum.h 	return *(__le32 *)(buffer + cksum_offset) == xfs_end_cksum(crc);
crc                48 fs/xfs/libxfs/xfs_da_format.h 	__be32			crc;	/* CRC of block */
crc                79 fs/xfs/libxfs/xfs_da_format.h #define XFS_DA3_NODE_CRC_OFF	(offsetof(struct xfs_da3_node_hdr, info.crc))
crc               326 fs/xfs/libxfs/xfs_da_format.h 	__be32			crc;	/* CRC of block */
crc               339 fs/xfs/libxfs/xfs_da_format.h #define XFS_DIR3_DATA_CRC_OFF  offsetof(struct xfs_dir3_data_hdr, hdr.crc)
crc               473 fs/xfs/libxfs/xfs_da_format.h #define XFS_DIR3_LEAF_CRC_OFF  offsetof(struct xfs_dir3_leaf_hdr, info.crc)
crc               521 fs/xfs/libxfs/xfs_da_format.h #define XFS_DIR3_FREE_CRC_OFF  offsetof(struct xfs_dir3_free, hdr.hdr.crc)
crc               696 fs/xfs/libxfs/xfs_da_format.h #define XFS_ATTR3_LEAF_CRC_OFF	(offsetof(struct xfs_attr3_leaf_hdr, info.crc))
crc               589 fs/xfs/libxfs/xfs_inode_buf.c 	uint32_t		crc;
crc               595 fs/xfs/libxfs/xfs_inode_buf.c 	crc = xfs_start_cksum_update((char *)dip, mp->m_sb.sb_inodesize,
crc               597 fs/xfs/libxfs/xfs_inode_buf.c 	dip->di_crc = xfs_end_cksum(crc);
crc              1656 fs/xfs/xfs_log.c 	uint32_t		crc;
crc              1659 fs/xfs/xfs_log.c 	crc = xfs_start_cksum_update((char *)rhead,
crc              1674 fs/xfs/xfs_log.c 			crc = crc32c(crc, &xhdr[i].hic_xheader,
crc              1680 fs/xfs/xfs_log.c 	crc = crc32c(crc, dp, size);
crc              1682 fs/xfs/xfs_log.c 	return xfs_end_cksum(crc);
crc              5139 fs/xfs/xfs_log_recover.c 	__le32			crc;
crc              5141 fs/xfs/xfs_log_recover.c 	crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len));
crc              5151 fs/xfs/xfs_log_recover.c 		if (old_crc && crc != old_crc)
crc              5162 fs/xfs/xfs_log_recover.c 	if (crc != old_crc) {
crc              5167 fs/xfs/xfs_log_recover.c 					le32_to_cpu(crc));
crc              1078 include/drm/drm_crtc.h 	struct drm_crtc_crc crc;
crc               141 include/linux/ceph/msgr.h 	__le32 crc;       /* header crc32c */
crc               160 include/linux/ceph/msgr.h 	__le32 crc;       /* header crc32c */
crc                10 include/linux/crc-ccitt.h extern u16 crc_ccitt(u16 crc, const u8 *buffer, size_t len);
crc                11 include/linux/crc-ccitt.h extern u16 crc_ccitt_false(u16 crc, const u8 *buffer, size_t len);
crc                13 include/linux/crc-ccitt.h static inline u16 crc_ccitt_byte(u16 crc, const u8 c)
crc                15 include/linux/crc-ccitt.h 	return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff];
crc                18 include/linux/crc-ccitt.h static inline u16 crc_ccitt_false_byte(u16 crc, const u8 c)
crc                20 include/linux/crc-ccitt.h     return (crc << 8) ^ crc_ccitt_false_table[(crc >> 8) ^ c];
crc                18 include/linux/crc-itu-t.h extern u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len);
crc                20 include/linux/crc-itu-t.h static inline u16 crc_itu_t_byte(u16 crc, const u8 data)
crc                22 include/linux/crc-itu-t.h 	return (crc << 8) ^ crc_itu_t_table[((crc >> 8) ^ data) & 0xff];
crc                11 include/linux/crc-t10dif.h extern __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer,
crc                14 include/linux/crc-t10dif.h extern __u16 crc_t10dif_update(__u16 crc, unsigned char const *, size_t);
crc                20 include/linux/crc16.h extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
crc                22 include/linux/crc16.h static inline u16 crc16_byte(u16 crc, const u8 data)
crc                24 include/linux/crc16.h 	return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff];
crc                11 include/linux/crc32.h u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len);
crc                12 include/linux/crc32.h u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len);
crc                32 include/linux/crc32.h u32 __attribute_const__ crc32_le_shift(u32 crc, size_t len);
crc                39 include/linux/crc32.h u32 __pure __crc32c_le(u32 crc, unsigned char const *p, size_t len);
crc                59 include/linux/crc32.h u32 __attribute_const__ __crc32c_le_shift(u32 crc, size_t len);
crc                 7 include/linux/crc32c.h extern u32 crc32c(u32 crc, const void *address, unsigned int length);
crc                10 include/linux/crc64.h u64 __pure crc64_be(u64 crc, const void *p, size_t len);
crc                 8 include/linux/crc7.h static inline u8 crc7_be_byte(u8 crc, u8 data)
crc                10 include/linux/crc7.h 	return crc7_be_syndrome_table[crc ^ data];
crc                13 include/linux/crc7.h extern u8 crc7_be(u8 crc, const u8 *buffer, size_t len);
crc                99 include/linux/crc8.h u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
crc               121 include/linux/f2fs_fs.h 	__le32 crc;			/* checksum of superblock */
crc              1614 include/linux/jbd2.h static inline u32 jbd2_chksum(journal_t *journal, u32 crc,
crc              1627 include/linux/jbd2.h 	*(u32 *)desc.ctx = crc;
crc                35 include/linux/module.h 	unsigned long crc;
crc               579 include/linux/module.h 					const s32 **crc,
crc                88 include/linux/mtd/jedec.h 	__le16 crc;
crc               117 include/linux/mtd/onfi.h 	__le16 crc;
crc               143 include/linux/mtd/onfi.h 	__le16 crc;
crc                56 include/linux/nubus.h 	unsigned long crc;
crc                43 include/linux/platform_data/media/omap4iss.h 	unsigned crc:1;
crc              1084 include/linux/qed/common_hsi.h 	__le32 crc[4];
crc                22 include/linux/w1.h 		crc:8;
crc                24 include/linux/w1.h 	__u64	crc:8,
crc               262 include/linux/xz.h XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc);
crc                38 include/media/vsp1.h 	void (*callback)(void *data, unsigned int status, u32 crc);
crc               105 include/media/vsp1.h 	struct vsp1_du_crc_config crc;
crc               289 include/scsi/sas.h 	__be32 crc;
crc               460 include/scsi/sas.h 	__be32 crc;
crc               520 include/scsi/sas.h 	__be32 crc;
crc               691 include/scsi/sas.h 	__be32 crc;
crc               589 include/uapi/linux/batadv_packet.h 	__be32 crc;
crc                22 include/uapi/linux/bcm933xx_hcs.h 	__u32 crc;
crc                46 include/uapi/linux/cramfs_fs.h 	__u32 crc;
crc               340 include/uapi/linux/genwqe/genwqe_card.h 	__u32 crc;			/* crc of this image */
crc               494 kernel/module.c 	const s32 *crc;
crc               527 kernel/module.c 	fsa->crc = symversion(syms->crcs, symnum);
crc               587 kernel/module.c 					const s32 **crc,
crc               600 kernel/module.c 		if (crc)
crc               601 kernel/module.c 			*crc = fsa.crc;
crc              1292 kernel/module.c static u32 resolve_rel_crc(const s32 *crc)
crc              1294 kernel/module.c 	return *(u32 *)((void *)crc + *crc);
crc              1300 kernel/module.c 			 const s32 *crc)
crc              1308 kernel/module.c 	if (!crc)
crc              1326 kernel/module.c 			crcval = resolve_rel_crc(crc);
crc              1328 kernel/module.c 			crcval = *crc;
crc              1329 kernel/module.c 		if (versions[i].crc == crcval)
crc              1332 kernel/module.c 			 crcval, versions[i].crc);
crc              1349 kernel/module.c 	const s32 *crc;
crc              1356 kernel/module.c 	if (!find_symbol("module_layout", NULL, &crc, true, false)) {
crc              1361 kernel/module.c 	return check_version(info, "module_layout", mod, crc);
crc              1378 kernel/module.c 				const s32 *crc)
crc              1439 kernel/module.c 	const s32 *crc;
crc              1449 kernel/module.c 	sym = find_symbol(name, &owner, &crc,
crc              1454 kernel/module.c 	if (!check_version(info, name, mod, crc)) {
crc               681 kernel/power/swap.c 	struct crc_data *crc = NULL;
crc               708 kernel/power/swap.c 	crc = kmalloc(sizeof(*crc), GFP_KERNEL);
crc               709 kernel/power/swap.c 	if (!crc) {
crc               714 kernel/power/swap.c 	memset(crc, 0, offsetof(struct crc_data, go));
crc               737 kernel/power/swap.c 	init_waitqueue_head(&crc->go);
crc               738 kernel/power/swap.c 	init_waitqueue_head(&crc->done);
crc               741 kernel/power/swap.c 	crc->crc32 = &handle->crc32;
crc               743 kernel/power/swap.c 		crc->unc[thr] = data[thr].unc;
crc               744 kernel/power/swap.c 		crc->unc_len[thr] = &data[thr].unc_len;
crc               747 kernel/power/swap.c 	crc->thr = kthread_run(crc32_threadfn, crc, "image_crc32");
crc               748 kernel/power/swap.c 	if (IS_ERR(crc->thr)) {
crc               749 kernel/power/swap.c 		crc->thr = NULL;
crc               799 kernel/power/swap.c 		crc->run_threads = thr;
crc               800 kernel/power/swap.c 		atomic_set(&crc->ready, 1);
crc               801 kernel/power/swap.c 		wake_up(&crc->go);
crc               844 kernel/power/swap.c 		wait_event(crc->done, atomic_read(&crc->stop));
crc               845 kernel/power/swap.c 		atomic_set(&crc->stop, 0);
crc               857 kernel/power/swap.c 	if (crc) {
crc               858 kernel/power/swap.c 		if (crc->thr)
crc               859 kernel/power/swap.c 			kthread_stop(crc->thr);
crc               860 kernel/power/swap.c 		kfree(crc);
crc              1172 kernel/power/swap.c 	struct crc_data *crc = NULL;
crc              1199 kernel/power/swap.c 	crc = kmalloc(sizeof(*crc), GFP_KERNEL);
crc              1200 kernel/power/swap.c 	if (!crc) {
crc              1205 kernel/power/swap.c 	memset(crc, 0, offsetof(struct crc_data, go));
crc              1230 kernel/power/swap.c 	init_waitqueue_head(&crc->go);
crc              1231 kernel/power/swap.c 	init_waitqueue_head(&crc->done);
crc              1234 kernel/power/swap.c 	crc->crc32 = &handle->crc32;
crc              1236 kernel/power/swap.c 		crc->unc[thr] = data[thr].unc;
crc              1237 kernel/power/swap.c 		crc->unc_len[thr] = &data[thr].unc_len;
crc              1240 kernel/power/swap.c 	crc->thr = kthread_run(crc32_threadfn, crc, "image_crc32");
crc              1241 kernel/power/swap.c 	if (IS_ERR(crc->thr)) {
crc              1242 kernel/power/swap.c 		crc->thr = NULL;
crc              1329 kernel/power/swap.c 		if (crc->run_threads) {
crc              1330 kernel/power/swap.c 			wait_event(crc->done, atomic_read(&crc->stop));
crc              1331 kernel/power/swap.c 			atomic_set(&crc->stop, 0);
crc              1332 kernel/power/swap.c 			crc->run_threads = 0;
crc              1415 kernel/power/swap.c 					crc->run_threads = thr + 1;
crc              1416 kernel/power/swap.c 					atomic_set(&crc->ready, 1);
crc              1417 kernel/power/swap.c 					wake_up(&crc->go);
crc              1423 kernel/power/swap.c 		crc->run_threads = thr;
crc              1424 kernel/power/swap.c 		atomic_set(&crc->ready, 1);
crc              1425 kernel/power/swap.c 		wake_up(&crc->go);
crc              1429 kernel/power/swap.c 	if (crc->run_threads) {
crc              1430 kernel/power/swap.c 		wait_event(crc->done, atomic_read(&crc->stop));
crc              1431 kernel/power/swap.c 		atomic_set(&crc->stop, 0);
crc              1452 kernel/power/swap.c 	if (crc) {
crc              1453 kernel/power/swap.c 		if (crc->thr)
crc              1454 kernel/power/swap.c 			kthread_stop(crc->thr);
crc              1455 kernel/power/swap.c 		kfree(crc);
crc               484 lib/842/842_compress.c 	u32 crc;
crc               582 lib/842/842_compress.c 	crc = crc32_be(0, in, ilen);
crc               583 lib/842/842_compress.c 	ret = add_bits(p, crc, CRC_BITS);
crc               283 lib/842/842_decompress.c 	u64 crc;
crc               378 lib/842/842_decompress.c 	ret = next_bits(&p, &crc, CRC_BITS);
crc               385 lib/842/842_decompress.c 	if (crc != (u64)crc32_be(0, out, total - p.olen)) {
crc                99 lib/crc-ccitt.c u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len)
crc               102 lib/crc-ccitt.c 		crc = crc_ccitt_byte(crc, *buffer++);
crc               103 lib/crc-ccitt.c 	return crc;
crc               114 lib/crc-ccitt.c u16 crc_ccitt_false(u16 crc, u8 const *buffer, size_t len)
crc               117 lib/crc-ccitt.c 		crc = crc_ccitt_false_byte(crc, *buffer++);
crc               118 lib/crc-ccitt.c 	return crc;
crc                57 lib/crc-itu-t.c u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)
crc                60 lib/crc-itu-t.c 		crc = crc_itu_t_byte(crc, *buffer++);
crc                61 lib/crc-itu-t.c 	return crc;
crc                57 lib/crc-t10dif.c __u16 crc_t10dif_update(__u16 crc, const unsigned char *buffer, size_t len)
crc                66 lib/crc-t10dif.c 		return crc_t10dif_generic(crc, buffer, len);
crc                70 lib/crc-t10dif.c 	*(__u16 *)desc.ctx = crc;
crc                55 lib/crc16.c    u16 crc16(u16 crc, u8 const *buffer, size_t len)
crc                58 lib/crc16.c    		crc = crc16_byte(crc, *buffer++);
crc                59 lib/crc16.c    	return crc;
crc                58 lib/crc32.c    crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])
crc                61 lib/crc32.c    #  define DO_CRC(x) crc = t0[(crc ^ (x)) & 255] ^ (crc >> 8)
crc                67 lib/crc32.c    #  define DO_CRC(x) crc = t0[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)
crc               106 lib/crc32.c    		q = crc ^ *++b; /* use pre increment for speed */
crc               108 lib/crc32.c    		crc = DO_CRC4;
crc               110 lib/crc32.c    		crc = DO_CRC8;
crc               112 lib/crc32.c    		crc ^= DO_CRC4;
crc               128 lib/crc32.c    	return crc;
crc               146 lib/crc32.c    static inline u32 __pure crc32_le_generic(u32 crc, unsigned char const *p,
crc               153 lib/crc32.c    		crc ^= *p++;
crc               155 lib/crc32.c    			crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0);
crc               159 lib/crc32.c    		crc ^= *p++;
crc               160 lib/crc32.c    		crc = (crc >> 2) ^ tab[0][crc & 3];
crc               161 lib/crc32.c    		crc = (crc >> 2) ^ tab[0][crc & 3];
crc               162 lib/crc32.c    		crc = (crc >> 2) ^ tab[0][crc & 3];
crc               163 lib/crc32.c    		crc = (crc >> 2) ^ tab[0][crc & 3];
crc               167 lib/crc32.c    		crc ^= *p++;
crc               168 lib/crc32.c    		crc = (crc >> 4) ^ tab[0][crc & 15];
crc               169 lib/crc32.c    		crc = (crc >> 4) ^ tab[0][crc & 15];
crc               174 lib/crc32.c    		crc ^= *p++;
crc               175 lib/crc32.c    		crc = (crc >> 8) ^ tab[0][crc & 255];
crc               178 lib/crc32.c    	crc = (__force u32) __cpu_to_le32(crc);
crc               179 lib/crc32.c    	crc = crc32_body(crc, p, len, tab);
crc               180 lib/crc32.c    	crc = __le32_to_cpu((__force __le32)crc);
crc               182 lib/crc32.c    	return crc;
crc               186 lib/crc32.c    u32 __pure __weak crc32_le(u32 crc, unsigned char const *p, size_t len)
crc               188 lib/crc32.c    	return crc32_le_generic(crc, p, len, NULL, CRC32_POLY_LE);
crc               190 lib/crc32.c    u32 __pure __weak __crc32c_le(u32 crc, unsigned char const *p, size_t len)
crc               192 lib/crc32.c    	return crc32_le_generic(crc, p, len, NULL, CRC32C_POLY_LE);
crc               195 lib/crc32.c    u32 __pure __weak crc32_le(u32 crc, unsigned char const *p, size_t len)
crc               197 lib/crc32.c    	return crc32_le_generic(crc, p, len,
crc               200 lib/crc32.c    u32 __pure __weak __crc32c_le(u32 crc, unsigned char const *p, size_t len)
crc               202 lib/crc32.c    	return crc32_le_generic(crc, p, len,
crc               243 lib/crc32.c    static u32 __attribute_const__ crc32_generic_shift(u32 crc, size_t len,
crc               251 lib/crc32.c    		crc = (crc >> 1) ^ (crc & 1 ? polynomial : 0);
crc               255 lib/crc32.c    		return crc;
crc               260 lib/crc32.c    			crc = gf2_multiply(crc, power, polynomial);
crc               270 lib/crc32.c    	return crc;
crc               273 lib/crc32.c    u32 __attribute_const__ crc32_le_shift(u32 crc, size_t len)
crc               275 lib/crc32.c    	return crc32_generic_shift(crc, len, CRC32_POLY_LE);
crc               278 lib/crc32.c    u32 __attribute_const__ __crc32c_le_shift(u32 crc, size_t len)
crc               280 lib/crc32.c    	return crc32_generic_shift(crc, len, CRC32C_POLY_LE);
crc               294 lib/crc32.c    static inline u32 __pure crc32_be_generic(u32 crc, unsigned char const *p,
crc               301 lib/crc32.c    		crc ^= *p++ << 24;
crc               303 lib/crc32.c    			crc =
crc               304 lib/crc32.c    			    (crc << 1) ^ ((crc & 0x80000000) ? polynomial :
crc               309 lib/crc32.c    		crc ^= *p++ << 24;
crc               310 lib/crc32.c    		crc = (crc << 2) ^ tab[0][crc >> 30];
crc               311 lib/crc32.c    		crc = (crc << 2) ^ tab[0][crc >> 30];
crc               312 lib/crc32.c    		crc = (crc << 2) ^ tab[0][crc >> 30];
crc               313 lib/crc32.c    		crc = (crc << 2) ^ tab[0][crc >> 30];
crc               317 lib/crc32.c    		crc ^= *p++ << 24;
crc               318 lib/crc32.c    		crc = (crc << 4) ^ tab[0][crc >> 28];
crc               319 lib/crc32.c    		crc = (crc << 4) ^ tab[0][crc >> 28];
crc               323 lib/crc32.c    		crc ^= *p++ << 24;
crc               324 lib/crc32.c    		crc = (crc << 8) ^ tab[0][crc >> 24];
crc               327 lib/crc32.c    	crc = (__force u32) __cpu_to_be32(crc);
crc               328 lib/crc32.c    	crc = crc32_body(crc, p, len, tab);
crc               329 lib/crc32.c    	crc = __be32_to_cpu((__force __be32)crc);
crc               331 lib/crc32.c    	return crc;
crc               335 lib/crc32.c    u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len)
crc               337 lib/crc32.c    	return crc32_be_generic(crc, p, len, NULL, CRC32_POLY_BE);
crc               340 lib/crc32.c    u32 __pure crc32_be(u32 crc, unsigned char const *p, size_t len)
crc               342 lib/crc32.c    	return crc32_be_generic(crc, p, len,
crc               552 lib/crc32test.c 	u32 crc;	/* random starting crc */
crc               674 lib/crc32test.c 	static u32 crc;
crc               680 lib/crc32test.c 		crc ^= __crc32c_le(test[i].crc, test_buf +
crc               690 lib/crc32test.c 		if (test[i].crc32c_le != __crc32c_le(test[i].crc, test_buf +
crc               719 lib/crc32test.c 		crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start,
crc               725 lib/crc32test.c 			crc1 = __crc32c_le(test[i].crc, test_buf +
crc               756 lib/crc32test.c 	static u32 crc;
crc               762 lib/crc32test.c 		crc ^= crc32_le(test[i].crc, test_buf +
crc               765 lib/crc32test.c 		crc ^= crc32_be(test[i].crc, test_buf +
crc               775 lib/crc32test.c 		if (test[i].crc_le != crc32_le(test[i].crc, test_buf +
crc               779 lib/crc32test.c 		if (test[i].crc_be != crc32_be(test[i].crc, test_buf +
crc               809 lib/crc32test.c 		crc_full = crc32_le(test[i].crc, test_buf + test[i].start,
crc               815 lib/crc32test.c 			crc1 = crc32_le(test[i].crc, test_buf +
crc                43 lib/crc64.c    u64 __pure crc64_be(u64 crc, const void *p, size_t len)
crc                50 lib/crc64.c    		t = ((crc >> 56) ^ (*_p++)) & 0xFF;
crc                51 lib/crc64.c    		crc = crc64table[t] ^ (crc << 8);
crc                54 lib/crc64.c    	return crc;
crc                65 lib/crc7.c     u8 crc7_be(u8 crc, const u8 *buffer, size_t len)
crc                68 lib/crc7.c     		crc = crc7_be_byte(crc, *buffer++);
crc                69 lib/crc7.c     	return crc;
crc                74 lib/crc8.c     u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc)
crc                78 lib/crc8.c     		crc = table[(crc ^ *pdata++) & 0xff];
crc                80 lib/crc8.c     	return crc;
crc                41 lib/gen_crc32table.c 	uint32_t crc = 1;
crc                46 lib/gen_crc32table.c 		crc = (crc >> 1) ^ ((crc & 1) ? polynomial : 0);
crc                48 lib/gen_crc32table.c 			tab[0][i + j] = crc ^ tab[0][j];
crc                51 lib/gen_crc32table.c 		crc = tab[0][i];
crc                53 lib/gen_crc32table.c 			crc = tab[0][crc & 0xff] ^ (crc >> 8);
crc                54 lib/gen_crc32table.c 			tab[j][i] = crc;
crc                75 lib/gen_crc32table.c 	uint32_t crc = 0x80000000;
crc                80 lib/gen_crc32table.c 		crc = (crc << 1) ^ ((crc & 0x80000000) ? CRC32_POLY_BE : 0);
crc                82 lib/gen_crc32table.c 			crc32table_be[0][i + j] = crc ^ crc32table_be[0][j];
crc                85 lib/gen_crc32table.c 		crc = crc32table_be[0][i];
crc                87 lib/gen_crc32table.c 			crc = crc32table_be[0][(crc >> 24) & 0xff] ^ (crc << 8);
crc                88 lib/gen_crc32table.c 			crc32table_be[j][i] = crc;
crc                25 lib/gen_crc64table.c 	uint64_t i, j, c, crc;
crc                28 lib/gen_crc64table.c 		crc = 0;
crc                32 lib/gen_crc64table.c 			if ((crc ^ c) & 0x8000000000000000ULL)
crc                33 lib/gen_crc64table.c 				crc = (crc << 1) ^ CRC64_ECMA182_POLY;
crc                35 lib/gen_crc64table.c 				crc <<= 1;
crc                39 lib/gen_crc64table.c 		crc64_table[i] = crc;
crc              1138 lib/inflate.c  static ulg crc;		/* initialized in makecrc() so it'll reside in bss */
crc              1139 lib/inflate.c  #define CRC_VALUE (crc ^ 0xffffffffUL)
crc              1179 lib/inflate.c    crc = (ulg)0xffffffffUL; /* shift register contents */
crc                38 lib/libcrc32c.c u32 crc32c(u32 crc, const void *address, unsigned int length)
crc                45 lib/libcrc32c.c 	*ctx = crc;
crc                49 lib/xz/xz_crc32.c XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc)
crc                51 lib/xz/xz_crc32.c 	crc = ~crc;
crc                54 lib/xz/xz_crc32.c 		crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
crc                58 lib/xz/xz_crc32.c 	return ~crc;
crc                62 lib/xz/xz_dec_test.c static uint32_t crc;
crc                73 lib/xz/xz_dec_test.c 	crc = 0xFFFFFFFF;
crc               134 lib/xz/xz_dec_test.c 		crc = crc32(crc, buffer_out, buffers.out_pos);
crc               144 lib/xz/xz_dec_test.c 				"CRC32 = 0x%08X\n", ~crc);
crc                16 lib/xz/xz_stream.h #	define xz_crc32(buf, size, crc) \
crc                17 lib/xz/xz_stream.h 		(~crc32_le(~(uint32_t)(crc), buf, size))
crc               186 net/batman-adv/bridge_loop_avoidance.c 	old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
crc               322 net/batman-adv/bridge_loop_avoidance.c 	backbone_gw->crc = BATADV_BLA_CRC_INIT;
crc               508 net/batman-adv/bridge_loop_avoidance.c 	entry->crc = BATADV_BLA_CRC_INIT;
crc               661 net/batman-adv/bridge_loop_avoidance.c 	__be16 crc;
crc               665 net/batman-adv/bridge_loop_avoidance.c 	crc = htons(backbone_gw->crc);
crc               667 net/batman-adv/bridge_loop_avoidance.c 	memcpy(&mac[4], &crc, 2);
crc               747 net/batman-adv/bridge_loop_avoidance.c 		old_backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
crc               755 net/batman-adv/bridge_loop_avoidance.c 	backbone_gw->crc ^= crc16(0, claim->addr, ETH_ALEN);
crc               834 net/batman-adv/bridge_loop_avoidance.c 	u16 backbone_crc, crc;
crc               847 net/batman-adv/bridge_loop_avoidance.c 	crc = ntohs(*((__be16 *)(&an_addr[4])));
crc               851 net/batman-adv/bridge_loop_avoidance.c 		   __func__, batadv_print_vid(vid), backbone_gw->orig, crc);
crc               854 net/batman-adv/bridge_loop_avoidance.c 	backbone_crc = backbone_gw->crc;
crc               857 net/batman-adv/bridge_loop_avoidance.c 	if (backbone_crc != crc) {
crc               862 net/batman-adv/bridge_loop_avoidance.c 			   backbone_crc, crc);
crc              1527 net/batman-adv/bridge_loop_avoidance.c 	u16 crc;
crc              1539 net/batman-adv/bridge_loop_avoidance.c 		crc = crc16(0, primary_if->net_dev->dev_addr, ETH_ALEN);
crc              1540 net/batman-adv/bridge_loop_avoidance.c 		bat_priv->bla.claim_dest.group = htons(crc);
crc              1598 net/batman-adv/bridge_loop_avoidance.c 	__be32 crc;
crc              1606 net/batman-adv/bridge_loop_avoidance.c 	crc = batadv_skb_crc32(skb, (u8 *)(bcast_packet + 1));
crc              1622 net/batman-adv/bridge_loop_avoidance.c 		if (entry->crc != crc)
crc              1640 net/batman-adv/bridge_loop_avoidance.c 	entry->crc = crc;
crc              2070 net/batman-adv/bridge_loop_avoidance.c 			backbone_crc = backbone_gw->crc;
crc              2126 net/batman-adv/bridge_loop_avoidance.c 	backbone_crc = claim->backbone_gw->crc;
crc              2308 net/batman-adv/bridge_loop_avoidance.c 			backbone_crc = backbone_gw->crc;
crc              2362 net/batman-adv/bridge_loop_avoidance.c 	backbone_crc = backbone_gw->crc;
crc               617 net/batman-adv/main.c 	u32 crc = 0;
crc               629 net/batman-adv/main.c 		crc = crc32c(crc, data, len);
crc               633 net/batman-adv/main.c 	return htonl(crc);
crc               893 net/batman-adv/translation-table.c 		tt_vlan->crc = htonl(vlan->tt.crc);
crc               976 net/batman-adv/translation-table.c 		tt_vlan->crc = htonl(vlan->tt.crc);
crc              1132 net/batman-adv/translation-table.c 				   tt_local->vlan->tt.crc);
crc              1163 net/batman-adv/translation-table.c 	u32 crc;
crc              1172 net/batman-adv/translation-table.c 	crc = vlan->tt.crc;
crc              1185 net/batman-adv/translation-table.c 	    nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) ||
crc              1925 net/batman-adv/translation-table.c 			   last_ttvn, vlan->tt.crc,
crc              1957 net/batman-adv/translation-table.c 			   last_ttvn, vlan->tt.crc,
crc              2036 net/batman-adv/translation-table.c 	u32 crc;
crc              2043 net/batman-adv/translation-table.c 	crc = vlan->tt.crc;
crc              2060 net/batman-adv/translation-table.c 	    nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) ||
crc              2680 net/batman-adv/translation-table.c 	u32 i, crc_tmp, crc = 0;
crc              2732 net/batman-adv/translation-table.c 			crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
crc              2739 net/batman-adv/translation-table.c 	return crc;
crc              2758 net/batman-adv/translation-table.c 	u32 i, crc_tmp, crc = 0;
crc              2791 net/batman-adv/translation-table.c 			crc ^= crc32c(crc_tmp, tt_common->addr, ETH_ALEN);
crc              2796 net/batman-adv/translation-table.c 	return crc;
crc              3046 net/batman-adv/translation-table.c 	u32 crc;
crc              3065 net/batman-adv/translation-table.c 		crc = vlan->tt.crc;
crc              3068 net/batman-adv/translation-table.c 		if (crc != ntohl(tt_vlan_tmp->crc))
crc              3098 net/batman-adv/translation-table.c 		vlan->tt.crc = batadv_tt_local_crc(bat_priv, vlan->vid);
crc              3112 net/batman-adv/translation-table.c 	u32 crc;
crc              3124 net/batman-adv/translation-table.c 		crc = batadv_tt_global_crc(bat_priv, orig_node, vlan->vid);
crc              3125 net/batman-adv/translation-table.c 		vlan->tt.crc = crc;
crc              3181 net/batman-adv/translation-table.c 		tt_vlan_req->crc = tt_vlan->crc;
crc               329 net/batman-adv/types.h 	u32 crc;
crc               758 net/batman-adv/types.h 	__be32 crc;
crc              1846 net/batman-adv/types.h 	u16 crc;
crc              1100 net/bluetooth/rfcomm/core.c 	unsigned char hdr[5], crc[1];
crc              1113 net/bluetooth/rfcomm/core.c 	crc[0] = __fcs(hdr);
crc              1119 net/bluetooth/rfcomm/core.c 	iv[2].iov_base = crc;
crc              1150 net/bluetooth/rfcomm/core.c 	u8 *crc;
crc              1162 net/bluetooth/rfcomm/core.c 	crc = skb_put(skb, 1);
crc              1163 net/bluetooth/rfcomm/core.c 	*crc = __fcs((void *) hdr);
crc               309 net/can/gw.c   	u8 crc = crc8->init_crc_val;
crc               317 net/can/gw.c   			crc = crc8->crctab[crc ^ cf->data[i]];
crc               320 net/can/gw.c   			crc = crc8->crctab[crc ^ cf->data[i]];
crc               325 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc               329 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc               333 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
crc               338 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
crc               344 net/can/gw.c   	u8 crc = crc8->init_crc_val;
crc               348 net/can/gw.c   		crc = crc8->crctab[crc ^ cf->data[i]];
crc               352 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc               356 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc               360 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
crc               365 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
crc               371 net/can/gw.c   	u8 crc = crc8->init_crc_val;
crc               375 net/can/gw.c   		crc = crc8->crctab[crc ^ cf->data[i]];
crc               379 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[0]];
crc               383 net/can/gw.c   		crc = crc8->crctab[crc ^ crc8->profile_data[cf->data[1] & 0xF]];
crc               387 net/can/gw.c   		crc = crc8->crctab[crc ^ (cf->can_id & 0xFF) ^
crc               392 net/can/gw.c   	cf->data[crc8->result_idx] = crc ^ crc8->final_xor_val;
crc               821 net/ceph/auth_x.c 		sigblock->header_crc = msg->hdr.crc;
crc               848 net/ceph/auth_x.c 		sigblock->header_crc = msg->hdr.crc;
crc              1264 net/ceph/messenger.c 	u32 crc;
crc              1317 net/ceph/messenger.c 	crc = crc32c(0, &m->hdr, offsetof(struct ceph_msg_header, crc));
crc              1318 net/ceph/messenger.c 	con->out_msg->hdr.crc = cpu_to_le32(crc);
crc              1322 net/ceph/messenger.c 	crc = crc32c(0, m->front.iov_base, m->front.iov_len);
crc              1323 net/ceph/messenger.c 	con->out_msg->footer.front_crc = cpu_to_le32(crc);
crc              1325 net/ceph/messenger.c 		crc = crc32c(0, m->middle->vec.iov_base,
crc              1327 net/ceph/messenger.c 		con->out_msg->footer.middle_crc = cpu_to_le32(crc);
crc              1539 net/ceph/messenger.c static u32 ceph_crc32c_page(u32 crc, struct page *page,
crc              1547 net/ceph/messenger.c 	crc = crc32c(crc, kaddr + page_offset, length);
crc              1550 net/ceph/messenger.c 	return crc;
crc              1565 net/ceph/messenger.c 	u32 crc;
crc              1580 net/ceph/messenger.c 	crc = do_datacrc ? le32_to_cpu(msg->footer.data_crc) : 0;
crc              1599 net/ceph/messenger.c 				msg->footer.data_crc = cpu_to_le32(crc);
crc              1604 net/ceph/messenger.c 			crc = ceph_crc32c_page(crc, page, page_offset, length);
crc              1612 net/ceph/messenger.c 		msg->footer.data_crc = cpu_to_le32(crc);
crc              2298 net/ceph/messenger.c 					unsigned int sec_len, u32 *crc)
crc              2314 net/ceph/messenger.c 		*crc = crc32c(0, section->iov_base, section->iov_len);
crc              2327 net/ceph/messenger.c 	u32 crc = 0;
crc              2334 net/ceph/messenger.c 		crc = con->in_data_crc;
crc              2345 net/ceph/messenger.c 				con->in_data_crc = crc;
crc              2351 net/ceph/messenger.c 			crc = ceph_crc32c_page(crc, page, page_offset, ret);
crc              2355 net/ceph/messenger.c 		con->in_data_crc = crc;
crc              2375 net/ceph/messenger.c 	u32 crc;
crc              2386 net/ceph/messenger.c 	crc = crc32c(0, &con->in_hdr, offsetof(struct ceph_msg_header, crc));
crc              2387 net/ceph/messenger.c 	if (cpu_to_le32(crc) != con->in_hdr.crc) {
crc              2389 net/ceph/messenger.c 		       crc, con->in_hdr.crc);
crc               578 net/ipv6/calipso.c 	u16 crc, len = option[1] + 2;
crc               583 net/ipv6/calipso.c 	crc = crc_ccitt(0xffff, option, 8);
crc               584 net/ipv6/calipso.c 	crc = crc_ccitt(crc, zero, sizeof(zero));
crc               586 net/ipv6/calipso.c 		crc = crc_ccitt(crc, option + 10, len - 10);
crc               587 net/ipv6/calipso.c 	crc = ~crc;
crc               588 net/ipv6/calipso.c 	if (option[8] != (crc & 0xff) || option[9] != ((crc >> 8) & 0xff))
crc               733 net/ipv6/calipso.c 	u16 crc;
crc               765 net/ipv6/calipso.c 	crc = ~crc_ccitt(0xffff, calipso, len);
crc               766 net/ipv6/calipso.c 	calipso[8] = crc & 0xff;
crc               767 net/ipv6/calipso.c 	calipso[9] = (crc >> 8) & 0xff;
crc              1984 net/mac80211/ieee80211_i.h 			       u64 filter, u32 crc, u8 *transmitter_bssid,
crc               897 net/mac80211/util.c 			    u64 filter, u32 crc,
crc               965 net/mac80211/util.c 			crc = crc32_be(crc, pos - 2, elen + 2);
crc              1019 net/mac80211/util.c 					crc = crc32_be(crc, pos - 2, elen + 2);
crc              1069 net/mac80211/util.c 					crc = crc32_be(crc, pos - 2, elen + 2);
crc              1078 net/mac80211/util.c 					crc = crc32_be(crc, pos - 2, elen + 2);
crc              1208 net/mac80211/util.c 				crc = crc32_be(crc, pos - 2, elen + 2);
crc              1234 net/mac80211/util.c 					crc = crc32_be(crc, pos - 2, elen + 2);
crc              1271 net/mac80211/util.c 	return crc;
crc              1344 net/mac80211/util.c 			       u64 filter, u32 crc, u8 *transmitter_bssid,
crc              1368 net/mac80211/util.c 	crc = _ieee802_11_parse_elems_crc(start, len, action, elems, filter,
crc              1369 net/mac80211/util.c 					  crc, non_inherit);
crc              1397 net/mac80211/util.c 	return crc;
crc               170 net/mac80211/wep.c 	__le32 crc;
crc               176 net/mac80211/wep.c 	crc = cpu_to_le32(~crc32_le(~0, data, data_len));
crc               177 net/mac80211/wep.c 	if (memcmp(&crc, data + data_len, IEEE80211_WEP_ICV_LEN) != 0)
crc               251 net/mac802154/rx.c 	u16 crc;
crc               263 net/mac802154/rx.c 		crc = crc_ccitt(0, skb->data, skb->len);
crc               264 net/mac802154/rx.c 		put_unaligned_le16(crc, skb_put(skb, 2));
crc               275 net/mac802154/rx.c 		crc = crc_ccitt(0, skb->data, skb->len);
crc               276 net/mac802154/rx.c 		if (crc) {
crc                59 net/mac802154/tx.c 		u16 crc;
crc                72 net/mac802154/tx.c 		crc = crc_ccitt(0, skb->data, skb->len);
crc                73 net/mac802154/tx.c 		put_unaligned_le16(crc, skb_put(skb, 2));
crc                58 net/nfc/digital_core.c 	u16 crc;
crc                60 net/nfc/digital_core.c 	crc = crc_func(init, skb->data, skb->len);
crc                63 net/nfc/digital_core.c 		crc = ~crc;
crc                66 net/nfc/digital_core.c 		crc = __fswab16(crc);
crc                68 net/nfc/digital_core.c 	skb_put_u8(skb, crc & 0xFF);
crc                69 net/nfc/digital_core.c 	skb_put_u8(skb, (crc >> 8) & 0xFF);
crc                76 net/nfc/digital_core.c 	u16 crc;
crc                81 net/nfc/digital_core.c 	crc = crc_func(crc_init, skb->data, skb->len - 2);
crc                84 net/nfc/digital_core.c 		crc = ~crc;
crc                87 net/nfc/digital_core.c 		crc = __swab16(crc);
crc                89 net/nfc/digital_core.c 	rc = (skb->data[skb->len - 2] - (crc & 0xFF)) +
crc                90 net/nfc/digital_core.c 	     (skb->data[skb->len - 1] - ((crc >> 8) & 0xFF));
crc                73 net/nfc/nci/spi.c 		u16 crc;
crc                75 net/nfc/nci/spi.c 		crc = crc_ccitt(CRC_INIT, skb->data, skb->len);
crc                76 net/nfc/nci/spi.c 		skb_put_u8(skb, crc >> 8);
crc                77 net/nfc/nci/spi.c 		skb_put_u8(skb, crc & 0xFF);
crc               149 net/nfc/nci/spi.c 	u16 crc;
crc               161 net/nfc/nci/spi.c 	crc = crc_ccitt(CRC_INIT, skb->data, skb->len);
crc               162 net/nfc/nci/spi.c 	skb_put_u8(skb, crc >> 8);
crc               163 net/nfc/nci/spi.c 	skb_put_u8(skb, crc & 0xFF);
crc               332 net/wireless/lib80211_crypt_tkip.c 	u32 crc;
crc               350 net/wireless/lib80211_crypt_tkip.c 	crc = ~crc32_le(~0, pos, len);
crc               352 net/wireless/lib80211_crypt_tkip.c 	icv[0] = crc;
crc               353 net/wireless/lib80211_crypt_tkip.c 	icv[1] = crc >> 8;
crc               354 net/wireless/lib80211_crypt_tkip.c 	icv[2] = crc >> 16;
crc               355 net/wireless/lib80211_crypt_tkip.c 	icv[3] = crc >> 24;
crc               385 net/wireless/lib80211_crypt_tkip.c 	u32 crc;
crc               442 net/wireless/lib80211_crypt_tkip.c 	crc = ~crc32_le(~0, pos, plen);
crc               443 net/wireless/lib80211_crypt_tkip.c 	icv[0] = crc;
crc               444 net/wireless/lib80211_crypt_tkip.c 	icv[1] = crc >> 8;
crc               445 net/wireless/lib80211_crypt_tkip.c 	icv[2] = crc >> 16;
crc               446 net/wireless/lib80211_crypt_tkip.c 	icv[3] = crc >> 24;
crc               108 net/wireless/lib80211_crypt_wep.c 	u32 crc, klen, len;
crc               131 net/wireless/lib80211_crypt_wep.c 	crc = ~crc32_le(~0, pos, len);
crc               133 net/wireless/lib80211_crypt_wep.c 	icv[0] = crc;
crc               134 net/wireless/lib80211_crypt_wep.c 	icv[1] = crc >> 8;
crc               135 net/wireless/lib80211_crypt_wep.c 	icv[2] = crc >> 16;
crc               136 net/wireless/lib80211_crypt_wep.c 	icv[3] = crc >> 24;
crc               154 net/wireless/lib80211_crypt_wep.c 	u32 crc, klen, plen;
crc               180 net/wireless/lib80211_crypt_wep.c 	crc = ~crc32_le(~0, pos, plen);
crc               181 net/wireless/lib80211_crypt_wep.c 	icv[0] = crc;
crc               182 net/wireless/lib80211_crypt_wep.c 	icv[1] = crc >> 8;
crc               183 net/wireless/lib80211_crypt_wep.c 	icv[2] = crc >> 16;
crc               184 net/wireless/lib80211_crypt_wep.c 	icv[3] = crc >> 24;
crc               120 scripts/genksyms/genksyms.c static unsigned long partial_crc32_one(unsigned char c, unsigned long crc)
crc               122 scripts/genksyms/genksyms.c 	return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8);
crc               125 scripts/genksyms/genksyms.c static unsigned long partial_crc32(const char *s, unsigned long crc)
crc               128 scripts/genksyms/genksyms.c 		crc = partial_crc32_one(*s++, crc);
crc               129 scripts/genksyms/genksyms.c 	return crc;
crc               530 scripts/genksyms/genksyms.c static unsigned long expand_and_crc_sym(struct symbol *sym, unsigned long crc)
crc               538 scripts/genksyms/genksyms.c 		return crc;
crc               561 scripts/genksyms/genksyms.c 			crc = partial_crc32(cur->string, crc);
crc               562 scripts/genksyms/genksyms.c 			crc = partial_crc32_one(' ', crc);
crc               572 scripts/genksyms/genksyms.c 				crc = partial_crc32(cur->string, crc);
crc               573 scripts/genksyms/genksyms.c 				crc = partial_crc32_one(' ', crc);
crc               577 scripts/genksyms/genksyms.c 				crc = expand_and_crc_sym(subsym, crc);
crc               607 scripts/genksyms/genksyms.c 				crc = partial_crc32(symbol_types[cur->tag].name,
crc               608 scripts/genksyms/genksyms.c 						    crc);
crc               609 scripts/genksyms/genksyms.c 				crc = partial_crc32_one(' ', crc);
crc               610 scripts/genksyms/genksyms.c 				crc = partial_crc32(cur->string, crc);
crc               611 scripts/genksyms/genksyms.c 				crc = partial_crc32_one(' ', crc);
crc               615 scripts/genksyms/genksyms.c 				crc = expand_and_crc_sym(subsym, crc);
crc               631 scripts/genksyms/genksyms.c 	return crc;
crc               642 scripts/genksyms/genksyms.c 		unsigned long crc;
crc               652 scripts/genksyms/genksyms.c 		crc = expand_and_crc_sym(sym, 0xffffffff) ^ 0xffffffff;
crc               687 scripts/genksyms/genksyms.c 		       name, crc);
crc               167 scripts/mod/modpost.c 	unsigned int crc;
crc               406 scripts/mod/modpost.c 			   unsigned int crc, enum export export)
crc               415 scripts/mod/modpost.c 	s->crc = crc;
crc               685 scripts/mod/modpost.c 	unsigned int crc;
crc               699 scripts/mod/modpost.c 		crc = (unsigned int) sym->st_value;
crc               708 scripts/mod/modpost.c 			crc = TO_NATIVE(*crcp);
crc               710 scripts/mod/modpost.c 		sym_update_crc(symname + strlen("__crc_"), mod, crc,
crc              2318 scripts/mod/modpost.c 		s->crc = exp->crc;
crc              2343 scripts/mod/modpost.c 			   s->crc, s->name);
crc              2451 scripts/mod/modpost.c 		unsigned int crc;
crc              2468 scripts/mod/modpost.c 		crc = strtoul(line, &d, 16);
crc              2482 scripts/mod/modpost.c 		sym_update_crc(symname, mod, crc, export_no(export));
crc              2518 scripts/mod/modpost.c 					   symbol->crc, symbol->name,
crc                74 sound/soc/codecs/sigmadsp.c 	__le32 crc;
crc               480 sound/soc/codecs/sigmadsp.c 	u32 crc;
crc               509 sound/soc/codecs/sigmadsp.c 	crc = crc32(0, fw->data + sizeof(*ssfw_head),
crc               511 sound/soc/codecs/sigmadsp.c 	pr_debug("%s: crc=%x\n", __func__, crc);
crc               512 sound/soc/codecs/sigmadsp.c 	if (crc != le32_to_cpu(ssfw_head->crc)) {
crc               514 sound/soc/codecs/sigmadsp.c 			le32_to_cpu(ssfw_head->crc), crc);
crc                59 sound/usb/6fire/firmware.c static u8 usb6fire_fw_ihex_hex(const u8 *data, u8 *crc)
crc                72 sound/usb/6fire/firmware.c 	*crc += val;
crc                82 sound/usb/6fire/firmware.c 	u8 crc = 0;
crc               103 sound/usb/6fire/firmware.c 			record->txt_offset, &crc);
crc               106 sound/usb/6fire/firmware.c 			record->txt_offset, &crc) << 8;
crc               109 sound/usb/6fire/firmware.c 			record->txt_offset, &crc);
crc               112 sound/usb/6fire/firmware.c 			record->txt_offset, &crc);
crc               122 sound/usb/6fire/firmware.c 				+ record->txt_offset, &crc);
crc               125 sound/usb/6fire/firmware.c 	usb6fire_fw_ihex_hex(record->txt_data + record->txt_offset, &crc);
crc               126 sound/usb/6fire/firmware.c 	if (crc) {
crc                95 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               101 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               108 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               115 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               123 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               130 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               137 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               143 tools/firewire/nosy-dump.h 			uint32_t crc;
crc               153 tools/firewire/nosy-dump.h 			uint32_t crc;
crc                46 tools/firmware/ihex2fw.c static uint8_t hex(const uint8_t *data, uint8_t *crc)
crc                49 tools/firmware/ihex2fw.c 	*crc += val;
crc               138 tools/firmware/ihex2fw.c 	uint8_t type, crc = 0, crcbyte = 0;
crc               157 tools/firmware/ihex2fw.c 	len = hex(data + i, &crc); i += 2;
crc               160 tools/firmware/ihex2fw.c 		len += hex(data + i, &crc); i += 2;
crc               178 tools/firmware/ihex2fw.c 	record->addr  = hex(data + i, &crc) << 8; i += 2;
crc               179 tools/firmware/ihex2fw.c 	record->addr |= hex(data + i, &crc); i += 2;
crc               180 tools/firmware/ihex2fw.c 	type = hex(data + i, &crc); i += 2;
crc               183 tools/firmware/ihex2fw.c 		record->data[j] = hex(data + i, &crc);
crc               186 tools/firmware/ihex2fw.c 	crcbyte = hex(data + i, &crc); i += 2;
crc               187 tools/firmware/ihex2fw.c 	if (crc != 0) {
crc               189 tools/firmware/ihex2fw.c 			line, crcbyte, (unsigned char)(crcbyte-crc));
crc                15 tools/pcmcia/crc32hash.c 	unsigned int crc = 0;
crc                17 tools/pcmcia/crc32hash.c 		crc ^= *p++;
crc                19 tools/pcmcia/crc32hash.c 			crc = (crc >> 1) ^ ((crc & 1) ? 0xedb88320 : 0);
crc                21 tools/pcmcia/crc32hash.c 	return crc;
crc               123 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_read(int fd, struct circ_buf *crc)
crc               128 tools/power/acpi/tools/acpidbg/acpidbg.c 	p = &crc->buf[crc->head];
crc               129 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = circ_space_to_end(crc);
crc               134 tools/power/acpi/tools/acpidbg/acpidbg.c 		crc->head = (crc->head + len) & (ACPI_AML_BUF_SIZE - 1);
crc               138 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_read_batch_cmd(int unused, struct circ_buf *crc)
crc               144 tools/power/acpi/tools/acpidbg/acpidbg.c 	p = &crc->buf[crc->head];
crc               145 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = circ_space_to_end(crc);
crc               155 tools/power/acpi/tools/acpidbg/acpidbg.c 		crc->head = (crc->head + len) & (ACPI_AML_BUF_SIZE - 1);
crc               159 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_read_batch_log(int fd, struct circ_buf *crc)
crc               165 tools/power/acpi/tools/acpidbg/acpidbg.c 	p = &crc->buf[crc->head];
crc               166 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = circ_space_to_end(crc);
crc               171 tools/power/acpi/tools/acpidbg/acpidbg.c 			crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1);
crc               187 tools/power/acpi/tools/acpidbg/acpidbg.c 			crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1);
crc               198 tools/power/acpi/tools/acpidbg/acpidbg.c 				crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1);
crc               211 tools/power/acpi/tools/acpidbg/acpidbg.c 				crc->head = (crc->head + 1) & (ACPI_AML_BUF_SIZE - 1);
crc               223 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_write(int fd, struct circ_buf *crc)
crc               228 tools/power/acpi/tools/acpidbg/acpidbg.c 	p = &crc->buf[crc->tail];
crc               229 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = circ_count_to_end(crc);
crc               234 tools/power/acpi/tools/acpidbg/acpidbg.c 		crc->tail = (crc->tail + len) & (ACPI_AML_BUF_SIZE - 1);
crc               238 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_write_batch_log(int fd, struct circ_buf *crc)
crc               243 tools/power/acpi/tools/acpidbg/acpidbg.c 	p = &crc->buf[crc->tail];
crc               244 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = circ_count_to_end(crc);
crc               251 tools/power/acpi/tools/acpidbg/acpidbg.c 		crc->tail = (crc->tail + len) & (ACPI_AML_BUF_SIZE - 1);
crc               255 tools/power/acpi/tools/acpidbg/acpidbg.c static int acpi_aml_write_batch_cmd(int fd, struct circ_buf *crc)
crc               259 tools/power/acpi/tools/acpidbg/acpidbg.c 	len = acpi_aml_write(fd, crc);
crc               260 tools/power/acpi/tools/acpidbg/acpidbg.c 	if (circ_count_to_end(crc) == 0)