Home
last modified time | relevance | path

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

/arch/x86/crypto/
Dcrct10dif-pclmul_glue.c36 asmlinkage __u16 crc_t10dif_pcl(__u16 crc, const unsigned char *buf,
40 __u16 crc; member
52 ctx->crc = 0; in chksum_init()
64 ctx->crc = crc_t10dif_pcl(ctx->crc, data, length); in chksum_update()
67 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update()
75 *(__u16 *)out = ctx->crc; in chksum_final()
96 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
104 return __chksum_finup(&ctx->crc, data, length, out); in chksum_digest()
Dcrc32-pclmul_glue.c51 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()
Dcrc32c-intel_glue.c74 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()
Dcrct10dif-pcl-asm_64.S57 # /white-papers/fast-crc-computation-generic-polynomials-pclmulqdq-paper.pdf
/arch/x86/boot/tools/
Dbuild.c118 static u32 partial_crc32_one(u8 c, u32 crc) in partial_crc32_one() argument
120 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); in partial_crc32_one()
123 static u32 partial_crc32(const u8 *s, int len, u32 crc) in partial_crc32() argument
126 crc = partial_crc32_one(*s++, crc); in partial_crc32()
127 return crc; in partial_crc32()
340 u32 crc = 0xffffffffUL; in main() local
405 crc = partial_crc32(buf, i, crc); in main()
410 crc = partial_crc32(kernel, sz, crc); in main()
416 crc = partial_crc32_one('\0', crc); in main()
422 printf("CRC %x\n", crc); in main()
[all …]
/arch/x86/lib/
Dhash.c41 static inline u32 crc32_u32(u32 crc, u32 val) in crc32_u32() argument
44 asm ("crc32l %1,%0\n" : "+r" (crc) : "rm" (val)); in crc32_u32()
46 asm (".byte 0xf2, 0x0f, 0x38, 0xf1, 0xc1" : "+a" (crc) : "c" (val)); in crc32_u32()
48 return crc; in crc32_u32()
/arch/mips/bcm63xx/
Dnvram.c46 u32 crc, expected_crc; in bcm63xx_nvram_init() local
63 crc = crc32_le(~0, (u8 *)&nvram, check_len); in bcm63xx_nvram_init()
65 if (crc != expected_crc) in bcm63xx_nvram_init()
67 expected_crc, crc); in bcm63xx_nvram_init()
/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/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.c424 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/
Dsetup.c64 cpu->extn.crc = read_aux_reg(ARC_REG_CRC_BCR) ? 1 : 0; in read_arc_build_cfg_regs()
197 IS_AVAIL1(cpu->extn.crc, "crc "), in arc_cpu_mumbojumbo()
/arch/arc/include/asm/
Darcregs.h330 unsigned int swap:1, norm:1, minmax:1, barrel:1, crc:1, pad1:3, member
/arch/mips/include/asm/octeon/
Dcvmx-pko-defs.h1224 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;
/arch/powerpc/kernel/
Dmodule_64.c324 vers->crc = -(unsigned long)reloc_start; in dedotify_versions()