Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 16 of 16) 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()
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/
Dcrc32c-intel.c46 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/
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.c260 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/
Dmisc.c123 ulg c = crc; in flush_window()
133 crc = c; in flush_window()
/arch/m32r/boot/compressed/
Dmisc.c131 ulg c = crc; /* temporary variable */ in flush_window()
141 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/sh/boot/compressed/
Dmisc_64.c142 ulg c = crc; /* temporary variable */ in flush_window()
152 crc = c; in flush_window()
Dmisc_32.c163 ulg c = crc; /* temporary variable */ in flush_window()
173 crc = c; in flush_window()
/arch/cris/arch-v10/boot/compressed/
Dmisc.c171 ulg c = crc; /* temporary variable */ in flush_window()
183 crc = c; in flush_window()
/arch/arm/boot/compressed/
Dmisc.c268 ulg c = crc; in flush_window()
278 crc = c; in flush_window()
/arch/powerpc/sysdev/qe_lib/
Dqe.c391 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/
Dmisc.c181 ulg c = crc; /* temporary variable */ in flush_window()
191 crc = c; in flush_window()
/arch/x86/boot/compressed/
Dmisc.c315 unsigned long c = crc; /* temporary variable */ in flush_window()
324 crc = c; in flush_window()