Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 11 of 11) sorted by relevance

/arch/x86/boot/tools/
Dbuild.c110 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()
148 u32 crc = 0xffffffffUL; in main() local
240 crc = partial_crc32(buf, i, crc); in main()
245 crc = partial_crc32(kernel, sz, crc); in main()
251 crc = partial_crc32_one('\0', crc); in main()
257 fprintf(stderr, "CRC %x\n", crc); in main()
[all …]
/arch/x86/crypto/
Dcrc32c-intel.c47 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length) in crc32c_intel_le_hw_byte() argument
52 :"=S"(crc) in crc32c_intel_le_hw_byte()
53 :"0"(crc), "c"(*data) in crc32c_intel_le_hw_byte()
58 return crc; in crc32c_intel_le_hw_byte()
61 static u32 __pure crc32c_intel_le_hw(u32 crc, unsigned char const *p, size_t len) in crc32c_intel_le_hw() argument
70 :"=S"(crc) in crc32c_intel_le_hw()
71 :"0"(crc), "c"(*ptmp) in crc32c_intel_le_hw()
77 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, in crc32c_intel_le_hw()
80 return crc; in crc32c_intel_le_hw()
/arch/mips/lasat/
Dlasat_board.c96 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/
Deth_defs.h163 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
Data_defs.h154 unsigned int crc : 16; member
/arch/mn10300/boot/compressed/
Dmisc.c261 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/
Dmisc.c124 ulg c = crc; in flush_window()
134 crc = c; in flush_window()
/arch/h8300/boot/compressed/
Dmisc.c141 ulg c = crc; /* temporary variable */ in flush_window()
151 crc = c; in flush_window()
/arch/cris/boot/compressed/
Dmisc.c201 ulg c = crc; /* temporary variable */ in flush_window()
213 crc = c; in flush_window()
/arch/powerpc/sysdev/qe_lib/
Dqe.c421 u32 crc; in qe_upload_firmware() local
472 crc = be32_to_cpu(*(__be32 *)((void *)firmware + calc_size)); in qe_upload_firmware()
473 if (crc != crc32(0, firmware, calc_size)) { in qe_upload_firmware()
/arch/mips/include/asm/octeon/
Dcvmx-pko-defs.h780 uint64_t crc:1; member