Searched refs:crc (Results 1 – 10 of 10) sorted by relevance
/lib/ |
D | crc32.c | 52 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len); 60 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len) in crc32_le() argument 64 crc ^= *p++; in crc32_le() 66 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32_le() 68 return crc; in crc32_le() 72 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len) in crc32_le() argument 79 # define DO_CRC(x) crc = tab[ (crc ^ (x)) & 255 ] ^ (crc>>8) in crc32_le() 81 # define DO_CRC(x) crc = tab[ ((crc >> 24) ^ (x)) & 255] ^ (crc<<8) in crc32_le() 84 crc = __cpu_to_le32(crc); in crc32_le() 99 crc ^= *++b; in crc32_le() [all …]
|
D | gen_crc32table.c | 23 uint32_t crc = 1; in crc32init_le() local 28 crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); in crc32init_le() 30 crc32table_le[i + j] = crc ^ crc32table_le[j]; in crc32init_le() 40 uint32_t crc = 0x80000000; in crc32init_be() local 45 crc = (crc << 1) ^ ((crc & 0x80000000) ? CRCPOLY_BE : 0); in crc32init_be() 47 crc32table_be[i + j] = crc ^ crc32table_be[j]; in crc32init_be()
|
D | crc-t10dif.c | 56 __u16 crc = 0; in crc_t10dif() local 60 crc = (crc << 8) ^ t10_dif_crc_table[((crc >> 8) ^ buffer[i]) & 0xff]; in crc_t10dif() 62 return crc; in crc_t10dif()
|
D | crc16.c | 57 u16 crc16(u16 crc, u8 const *buffer, size_t len) in crc16() argument 60 crc = crc16_byte(crc, *buffer++); in crc16() 61 return crc; in crc16()
|
D | crc-itu-t.c | 59 u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len) in crc_itu_t() argument 62 crc = crc_itu_t_byte(crc, *buffer++); in crc_itu_t() 63 return crc; in crc_itu_t()
|
D | crc7.c | 59 u8 crc7(u8 crc, const u8 *buffer, size_t len) in crc7() argument 62 crc = crc7_byte(crc, *buffer++); in crc7() 63 return crc; in crc7()
|
D | crc-ccitt.c | 60 u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) in crc_ccitt() argument 63 crc = crc_ccitt_byte(crc, *buffer++); in crc_ccitt() 64 return crc; in crc_ccitt()
|
D | libcrc32c.c | 42 u32 crc32c(u32 crc, const void *address, unsigned int length) in crc32c() argument 52 *(u32 *)desc.ctx = crc; in crc32c()
|
D | Makefile | 53 obj-$(CONFIG_CRC_CCITT) += crc-ccitt.o 55 obj-$(CONFIG_CRC_T10DIF)+= crc-t10dif.o 56 obj-$(CONFIG_CRC_ITU_T) += crc-itu-t.o
|
D | inflate.c | 1134 static ulg crc; /* initialized in makecrc() so it'll reside in bss */ variable 1135 #define CRC_VALUE (crc ^ 0xffffffffUL) 1175 crc = (ulg)0xffffffffUL; /* shift register contents */ in makecrc()
|