Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/
Dcrc16.c34 uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len) in crc16() argument
38 crc = (crc << 8) ^ crc16_table[((crc >> 8) ^ *buffer++) & 0xff]; in crc16()
40 return crc; in crc16()
Dcrc32.c49 uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len) in crc32() argument
53 crc = (crc << 8) ^ (crc32_table[((crc >> 24) ^ *buffer++) & 0xff]); in crc32()
55 return crc; in crc32()
Dcrc64.c50 uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len) in crc64() argument
54 crc = (crc << 8) ^ (crc64_table[((crc >> 56) ^ *buffer++) & 0xff]); in crc64()
56 return crc; in crc64()
Dcrc7.c31 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len) in crc7() argument
35 crc = crc7_table[(crc << 1) ^ *buffer++]; in crc7()
37 return (crc); in crc7()
Dcrc8.c33 uint8_t crc8(uint8_t crc, uint8_t const *buffer, size_t len) in crc8() argument
38 crc = crc8_table[crc ^ *buffer++]; in crc8()
40 return (crc); in crc8()
/DragonOS-0.1.5/kernel/src/common/
Dcrc16.h12 uint16_t crc16(uint16_t crc, const uint8_t *buffer, size_t len);
Dcrc32.h12 uint32_t crc32(uint32_t crc, const uint8_t *buffer, size_t len);
Dcrc64.h12 uint64_t crc64(uint64_t crc, const uint8_t *buffer, size_t len);
Dcrc7.h12 uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len);
Dcrc8.h12 uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len);
/DragonOS-0.1.5/docs/kernel/core_api/
Dkernel_api.md701 **`uint8_t crc7(uint8_t crc, const uint8_t *buffer, size_t len)`**
703 **`uint8_t crc8(uint8_t crc, const uint8_t *buffer, size_t len)`**
705 **`uint16_t crc16(uint16_t crc, uint8_t const *buffer, size_t len)`**
707 **`uint32_t crc32(uint32_t crc, uint8_t const *buffer, size_t len)`**
709 **`uint64_t crc64(uint64_t crc, uint8_t const *buffer, size_t len)`**
717 **crc**