Home
last modified time | relevance | path

Searched refs:crc32c (Results 1 – 9 of 9) sorted by relevance

/freebsd/sys/libkern/
H A Dgsb_crc32.c738 multitable_crc32c(uint32_t crc32c, in multitable_crc32c() argument
745 return (crc32c); in multitable_crc32c()
748 return (crc32c_sb8_64_bit(crc32c, buffer, length, to_even_word)); in multitable_crc32c()
752 table_crc32c(uint32_t crc32c, const unsigned char *buffer, unsigned int length) in table_crc32c() argument
755 return (singletable_crc32c(crc32c, buffer, length)); in table_crc32c()
757 return (multitable_crc32c(crc32c, buffer, length)); in table_crc32c()
763 (uint32_t crc32c, const unsigned char *buffer, unsigned int length))
775 (uint32_t crc32c, const unsigned char *buffer, unsigned int length))
784 calculate_crc32c(uint32_t crc32c, in calculate_crc32c() argument
788 return (table_crc32c(crc32c, buffer, length)); in calculate_crc32c()
[all …]
/freebsd/sys/netinet/
H A Dsctp_crc32.c50 sctp_finalize_crc32c(uint32_t crc32c) in sctp_finalize_crc32c() argument
64 byte0 = crc32c & 0x000000ff; in sctp_finalize_crc32c()
65 byte1 = (crc32c >> 8) & 0x000000ff; in sctp_finalize_crc32c()
66 byte2 = (crc32c >> 16) & 0x000000ff; in sctp_finalize_crc32c()
67 byte3 = (crc32c >> 24) & 0x000000ff; in sctp_finalize_crc32c()
68 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_finalize_crc32c()
70 return (~crc32c); in sctp_finalize_crc32c()
/freebsd/tests/sys/kern/
H A Dlibkern_crc32.c50 check_crc32c(uint32_t expected, uint32_t crc32c, const void *buffer, in check_crc32c() argument
57 act = sse42_crc32c(crc32c, buffer, length); in check_crc32c()
62 act = armv8_crc32c(crc32c, buffer, length); in check_crc32c()
66 act = singletable_crc32c(crc32c, buffer, length); in check_crc32c()
69 act = multitable_crc32c(crc32c, buffer, length); in check_crc32c()
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c1739 u_int32_t i, crc32c; in sctp_crc32c() local
1743 crc32c = ~0; in sctp_crc32c()
1745 CRC32C(crc32c, buf[i]); in sctp_crc32c()
1746 crc32c = ~crc32c; in sctp_crc32c()
1747 byte0 = crc32c & 0xff; in sctp_crc32c()
1748 byte1 = (crc32c >> 8) & 0xff; in sctp_crc32c()
1749 byte2 = (crc32c >> 16) & 0xff; in sctp_crc32c()
1750 byte3 = (crc32c >> 24) & 0xff; in sctp_crc32c()
1751 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_crc32c()
1752 return (htonl(crc32c)); in sctp_crc32c()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1824 u_int32_t i, crc32c; in sctp_crc32c() local
1828 crc32c = ~0; in sctp_crc32c()
1830 CRC32C(crc32c, buf[i]); in sctp_crc32c()
1831 crc32c = ~crc32c; in sctp_crc32c()
1832 byte0 = crc32c & 0xff; in sctp_crc32c()
1833 byte1 = (crc32c >> 8) & 0xff; in sctp_crc32c()
1834 byte2 = (crc32c >> 16) & 0xff; in sctp_crc32c()
1835 byte3 = (crc32c >> 24) & 0xff; in sctp_crc32c()
1836 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in sctp_crc32c()
1837 return (htonl(crc32c)); in sctp_crc32c()
/freebsd/usr.bin/mkimg/
H A Dvhdx.c198 crc32c(const void *data, uint32_t len) in crc32c() function
250 checksum = crc32c(&header, sizeof(header)); in vhdx_write_headers()
259 checksum = crc32c(&header, sizeof(header)); in vhdx_write_headers()
297 checksum = crc32c(region_table, SIZE_64KB); in vhdx_write_region_tables()
/freebsd/sys/sys/
H A Dgsb_crc32.h35 uint32_t calculate_crc32c(uint32_t crc32c, const unsigned char *buffer,
/freebsd/sys/netinet/libalias/
H A Dalias_sctp.c894 local_sctp_finalize_crc32(uint32_t crc32c) in local_sctp_finalize_crc32() argument
907 result = ~crc32c; in local_sctp_finalize_crc32()
918 crc32c = ((byte0 << 24) | (byte1 << 16) | (byte2 << 8) | byte3); in local_sctp_finalize_crc32()
925 crc32c = result; in local_sctp_finalize_crc32()
927 return (crc32c); in local_sctp_finalize_crc32()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstrCrypto.td47 "crc32c $rs1, $rs2, $rd", []>;