Lines Matching refs:len
93 uint16_t crc16(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
123 uint16_t crc16_reflect(uint16_t poly, uint16_t seed, const uint8_t *src, size_t len);
139 uint8_t crc8(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value,
173 uint16_t crc16_ccitt(uint16_t seed, const uint8_t *src, size_t len);
210 uint16_t crc16_itu_t(uint16_t seed, const uint8_t *src, size_t len);
223 static inline uint16_t crc16_ansi(const uint8_t *src, size_t len) in crc16_ansi() argument
225 return crc16_reflect(0xA001, 0xffff, src, len); in crc16_ansi()
237 uint32_t crc32_ieee(const uint8_t *data, size_t len);
249 uint32_t crc32_ieee_update(uint32_t crc, const uint8_t *data, size_t len);
264 size_t len, bool first_pkt, bool last_pkt);
277 uint8_t crc8_ccitt(uint8_t initial_value, const void *buf, size_t len);
291 uint8_t crc8_rohc(uint8_t initial_value, const void *buf, size_t len);
306 uint8_t crc7_be(uint8_t seed, const uint8_t *src, size_t len);
321 uint8_t crc4_ti(uint8_t seed, const uint8_t *src, size_t len);
340 uint8_t crc4(const uint8_t *src, size_t len, uint8_t polynomial, uint8_t initial_value,
351 uint32_t crc24_pgp(const uint8_t *data, size_t len);
364 uint32_t crc24_pgp_update(uint32_t crc, const uint8_t *data, size_t len);
388 static inline uint32_t crc_by_type(enum crc_type type, const uint8_t *src, size_t len, in crc_by_type() argument
394 return crc4(src, len, poly, seed, reflect); in crc_by_type()
396 return crc4_ti(seed, src, len); in crc_by_type()
398 return crc7_be(seed, src, len); in crc_by_type()
400 return crc8(src, len, poly, seed, reflect); in crc_by_type()
402 return crc8_ccitt(seed, src, len); in crc_by_type()
404 return crc8_rohc(seed, src, len); in crc_by_type()
407 return crc16_reflect(poly, seed, src, len); in crc_by_type()
409 return crc16(poly, seed, src, len); in crc_by_type()
412 return crc16_ansi(src, len); in crc_by_type()
414 return crc16_ccitt(seed, src, len); in crc_by_type()
416 return crc16_itu_t(seed, src, len); in crc_by_type()
418 uint32_t crc = crc24_pgp_update(seed, src, len); in crc_by_type()
425 return crc32_c(seed, src, len, first, last); in crc_by_type()
427 return crc32_ieee_update(seed, src, len); in crc_by_type()