/arch/x86/boot/tools/ |
D | build.c | 110 static u32 partial_crc32_one(u8 c, u32 crc) in partial_crc32_one() argument 112 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); in partial_crc32_one() 115 static u32 partial_crc32(const u8 *s, int len, u32 crc) in partial_crc32() argument 118 crc = partial_crc32_one(*s++, crc); in partial_crc32() 119 return crc; in partial_crc32() 146 u32 crc = 0xffffffffUL; in main() local 229 crc = partial_crc32(buf, i, crc); in main() 234 crc = partial_crc32(kernel, sz, crc); in main() 240 crc = partial_crc32_one('\0', crc); in main() 246 fprintf(stderr, "CRC %lx\n", crc); in main() [all …]
|
/arch/x86/crypto/ |
D | crc32c-intel.c | 46 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length) in crc32c_intel_le_hw_byte() argument 51 :"=S"(crc) in crc32c_intel_le_hw_byte() 52 :"0"(crc), "c"(*data) in crc32c_intel_le_hw_byte() 57 return crc; in crc32c_intel_le_hw_byte() 60 static u32 __pure crc32c_intel_le_hw(u32 crc, unsigned char const *p, size_t len) in crc32c_intel_le_hw() argument 69 :"=S"(crc) in crc32c_intel_le_hw() 70 :"0"(crc), "c"(*ptmp) in crc32c_intel_le_hw() 76 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, in crc32c_intel_le_hw() 79 return crc; in crc32c_intel_le_hw()
|
/arch/mips/lasat/ |
D | lasat_board.c | 96 unsigned long crc; in lasat_init_board_info() local 110 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info), in lasat_init_board_info() 113 if (crc != lasat_board_info.li_eeprom_info.crc32) { in lasat_init_board_info() 266 unsigned long crc; in lasat_write_eeprom_info() local 271 crc = EEPROM_CRC((unsigned char *)(&lasat_board_info.li_eeprom_info), in lasat_write_eeprom_info() 273 lasat_board_info.li_eeprom_info.crc32 = crc; in lasat_write_eeprom_info()
|
/arch/cris/include/arch-v32/arch/hwregs/ |
D | eth_defs.h | 163 unsigned int crc : 1; member 268 unsigned int crc : 1; member 289 unsigned int crc : 1; member 310 unsigned int crc : 1; member 330 unsigned int crc : 1; member
|
D | ata_defs.h | 154 unsigned int crc : 16; member
|
/arch/mn10300/boot/compressed/ |
D | misc.c | 260 ulg c = crc; /* temporary variable */ in flush_window_low() 270 crc = c; in flush_window_low() 278 ulg c = crc; /* temporary variable */ in flush_window_high() 288 crc = c; in flush_window_high()
|
/arch/alpha/boot/ |
D | misc.c | 123 ulg c = crc; in flush_window() 133 crc = c; in flush_window()
|
/arch/m32r/boot/compressed/ |
D | misc.c | 131 ulg c = crc; /* temporary variable */ in flush_window() 141 crc = c; in flush_window()
|
/arch/h8300/boot/compressed/ |
D | misc.c | 141 ulg c = crc; /* temporary variable */ in flush_window() 151 crc = c; in flush_window()
|
/arch/sh/boot/compressed/ |
D | misc_64.c | 142 ulg c = crc; /* temporary variable */ in flush_window() 152 crc = c; in flush_window()
|
D | misc_32.c | 163 ulg c = crc; /* temporary variable */ in flush_window() 173 crc = c; in flush_window()
|
/arch/cris/arch-v10/boot/compressed/ |
D | misc.c | 171 ulg c = crc; /* temporary variable */ in flush_window() 183 crc = c; in flush_window()
|
/arch/arm/boot/compressed/ |
D | misc.c | 268 ulg c = crc; in flush_window() 278 crc = c; in flush_window()
|
/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 391 u32 crc; in qe_upload_firmware() local 442 crc = be32_to_cpu(*(__be32 *)((void *)firmware + calc_size)); in qe_upload_firmware() 443 if (crc != crc32(0, firmware, calc_size)) { in qe_upload_firmware()
|
/arch/cris/arch-v32/boot/compressed/ |
D | misc.c | 181 ulg c = crc; /* temporary variable */ in flush_window() 191 crc = c; in flush_window()
|
/arch/x86/boot/compressed/ |
D | misc.c | 315 unsigned long c = crc; /* temporary variable */ in flush_window() 324 crc = c; in flush_window()
|