/arch/x86/boot/tools/ |
D | build.c | 116 static u32 partial_crc32_one(u8 c, u32 crc) in partial_crc32_one() argument 118 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); in partial_crc32_one() 121 static u32 partial_crc32(const u8 *s, int len, u32 crc) in partial_crc32() argument 124 crc = partial_crc32_one(*s++, crc); in partial_crc32() 125 return crc; in partial_crc32() 270 u32 crc = 0xffffffffUL; in main() local 349 crc = partial_crc32(buf, i, crc); in main() 354 crc = partial_crc32(kernel, sz, crc); in main() 360 crc = partial_crc32_one('\0', crc); in main() 366 fprintf(stderr, "CRC %x\n", crc); in main() [all …]
|
/arch/x86/crypto/ |
D | crc32-pclmul_glue.c | 51 crc32_pclmul_le(u32 crc, unsigned char const *p, size_t len) in crc32_pclmul_le() argument 58 return crc32_le(crc, p, len); in crc32_pclmul_le() 64 crc = crc32_le(crc, p, prealign); in crc32_pclmul_le() 73 crc = crc32_pclmul_le_16(p, iquotient, crc); in crc32_pclmul_le() 77 crc = crc32_le(crc, p + iquotient, iremainder); in crc32_pclmul_le() 79 return crc; in crc32_pclmul_le()
|
D | crc32c-intel_glue.c | 74 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length) in crc32c_intel_le_hw_byte() argument 79 :"=S"(crc) in crc32c_intel_le_hw_byte() 80 :"0"(crc), "c"(*data) in crc32c_intel_le_hw_byte() 85 return crc; in crc32c_intel_le_hw_byte() 88 static u32 __pure crc32c_intel_le_hw(u32 crc, unsigned char const *p, size_t len) in crc32c_intel_le_hw() argument 97 :"=S"(crc) in crc32c_intel_le_hw() 98 :"0"(crc), "c"(*ptmp) in crc32c_intel_le_hw() 104 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, in crc32c_intel_le_hw() 107 return crc; in crc32c_intel_le_hw()
|
/arch/mips/bcm63xx/ |
D | nvram.c | 44 u32 crc, expected_crc; in bcm63xx_nvram_init() local 60 crc = crc32_le(~0, (u8 *)&nvram, check_len); in bcm63xx_nvram_init() 62 if (crc != expected_crc) in bcm63xx_nvram_init() 64 expected_crc, crc); in bcm63xx_nvram_init()
|
/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 | 261 ulg c = crc; /* temporary variable */ in flush_window_low() 271 crc = c; in flush_window_low() 279 ulg c = crc; /* temporary variable */ in flush_window_high() 289 crc = c; in flush_window_high()
|
/arch/alpha/boot/ |
D | misc.c | 124 ulg c = crc; in flush_window() 134 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/arc/include/asm/ |
D | arcregs.h | 321 unsigned int pad:20, crc:1, ext_arith:2, mul:2, barrel:2, minmax:2, member 325 crc:1, pad:20;
|
/arch/cris/boot/compressed/ |
D | misc.c | 201 ulg c = crc; /* temporary variable */ in flush_window() 213 crc = c; in flush_window()
|
/arch/powerpc/sysdev/qe_lib/ |
D | qe.c | 424 u32 crc; in qe_upload_firmware() local 475 crc = be32_to_cpu(*(__be32 *)((void *)firmware + calc_size)); in qe_upload_firmware() 476 if (crc != crc32(0, firmware, calc_size)) { in qe_upload_firmware()
|
/arch/arc/kernel/ |
D | setup.c | 66 cpu->extn.crc = read_aux_reg(ARC_REG_CRC_BCR); in read_arc_build_cfg_regs() 193 IS_AVAIL1(cpu->extn.crc, "crc,"), in arc_extn_mumbojumbo()
|
/arch/mips/include/asm/octeon/ |
D | cvmx-pko-defs.h | 1224 uint64_t crc:1; member 1248 uint64_t crc:1; 1617 uint64_t crc:1; member 1629 uint64_t crc:1; 1726 uint64_t crc:1; member 1764 uint64_t crc:1;
|