Lines Matching refs:crc32
6 #include <linux/crc32.h>
36 __le32 crc32;
41 __le32 crc32;
49 __le32 crc32;
146 uint32_t crc32;
166 crc32_offset = offsetof(struct u_boot_env_image_single, crc32);
171 crc32_offset = offsetof(struct u_boot_env_image_redundant, crc32);
176 crc32_offset = offsetof(struct u_boot_env_image_broadcom, crc32);
181 crc32 = le32_to_cpu(*(__le32 *)(buf + crc32_offset));
185 calc = crc32(~0, buf + crc32_data_offset, crc32_data_len) ^ ~0L;
186 if (calc != crc32) {
187 dev_err(dev, "Invalid calculated CRC32: 0x%08x (expected: 0x%08x)\n", calc, crc32);