Home
last modified time | relevance | path

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

/include/net/sctp/
Dchecksum.h49 static inline __u32 sctp_crc32c(__u32 crc, u8 *buffer, u16 length) in sctp_crc32c() argument
51 return crc32c(crc, buffer, length); in sctp_crc32c()
56 __u32 crc = ~(__u32)0; in sctp_start_cksum() local
64 crc = sctp_crc32c(crc, buffer, sizeof(struct sctphdr) - sizeof(__u32)); in sctp_start_cksum()
67 crc = sctp_crc32c(crc, zero, sizeof(__u32)); in sctp_start_cksum()
70 crc = sctp_crc32c(crc, &buffer[sizeof(struct sctphdr)], in sctp_start_cksum()
72 return crc; in sctp_start_cksum()
/include/linux/
Dcrc-ccitt.h8 extern u16 crc_ccitt(u16 crc, const u8 *buffer, size_t len);
10 static inline u16 crc_ccitt_byte(u16 crc, const u8 c) in crc_ccitt_byte() argument
12 return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff]; in crc_ccitt_byte()
Dcrc16.h22 extern u16 crc16(u16 crc, const u8 *buffer, size_t len);
24 static inline u16 crc16_byte(u16 crc, const u8 data) in crc16_byte() argument
26 return (crc >> 8) ^ crc16_table[(crc ^ data) & 0xff]; in crc16_byte()
Dcrc-itu-t.h20 extern u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len);
22 static inline u16 crc_itu_t_byte(u16 crc, const u8 data) in crc_itu_t_byte() argument
24 return (crc << 8) ^ crc_itu_t_table[((crc >> 8) ^ data) & 0xff]; in crc_itu_t_byte()
Dcrc7.h7 static inline u8 crc7_byte(u8 crc, u8 data) in crc7_byte() argument
9 return crc7_syndrome_table[(crc << 1) ^ data]; in crc7_byte()
12 extern u8 crc7(u8 crc, const u8 *buffer, size_t len);
Dcrc32.h11 extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len);
12 extern u32 crc32_be(u32 crc, unsigned char const *p, size_t len);
14 extern u32 __crc32c_le(u32 crc, unsigned char const *p, size_t len);
Dcrc32c.h6 extern u32 crc32c(u32 crc, const void *address, unsigned int length);
Dcrc8.h99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc);
Dcramfs_fs.h45 __u32 crc; member
Dxz.h262 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc);
Dmodule.h31 unsigned long crc; member
420 const unsigned long **crc,
Dnubus.h263 unsigned long crc; member
/include/media/
Domap3isp.h104 unsigned int crc:1; member
116 unsigned crc:1; member
/include/linux/ceph/
Dmsgr.h137 __le32 crc; /* header crc32c */ member
155 __le32 crc; /* header crc32c */ member
/include/linux/isdn/
Dhdlc.h40 u16 crc; member
/include/scsi/
Dsas.h303 __be32 crc; member
437 __be32 crc; member
497 __be32 crc; member
631 __be32 crc; member
/include/linux/mtd/
Dnand.h299 __le16 crc; member