Symbol: crc
usr/src/boot/common/gpt.c
189
uint32_t crc;
usr/src/boot/common/gpt.c
203
crc = hdr->hdr_crc_self;
usr/src/boot/common/gpt.c
205
if (crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size) != crc) {
usr/src/boot/common/gpt.c
210
hdr->hdr_crc_self = crc;
usr/src/boot/common/part.c
178
uint32_t sz, crc;
usr/src/boot/common/part.c
189
crc = le32toh(hdr->hdr_crc_self);
usr/src/boot/common/part.c
191
if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, sz) != crc) {
usr/src/boot/common/part.c
195
hdr->hdr_crc_self = crc;
usr/src/boot/sys/cddl/boot/zfs/zfssubr.c
359
uint64_t crc = salt;
usr/src/boot/sys/cddl/boot/zfs/zfssubr.c
361
ASSERT(crc != 0);
usr/src/boot/sys/cddl/boot/zfs/zfssubr.c
364
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ c) & 0xFF];
usr/src/boot/sys/cddl/boot/zfs/zfssubr.c
372
crc &= ~((1ULL << (64 - ZAP_HASHBITS)) - 1);
usr/src/boot/sys/cddl/boot/zfs/zfssubr.c
374
return (crc);
usr/src/cmd/bhyve/common/crc16.h
37
crc16(uint16_t crc, const void *buffer, unsigned int len)
usr/src/cmd/bhyve/common/crc16.h
41
crc = (((crc >> 8) & 0xffU) ^
usr/src/cmd/bhyve/common/crc16.h
42
crc16_table[(crc ^ *cp++) & 0xffU]) & 0x0000ffffU;
usr/src/cmd/bhyve/common/crc16.h
43
return crc;
usr/src/cmd/cmd-inet/usr.sbin/syncloop.c
521
end_stats.crc -= start_stats.crc;
usr/src/cmd/cmd-inet/usr.sbin/syncloop.c
535
end_stats.crc, end_stats.abort,
usr/src/cmd/cmd-inet/usr.sbin/syncstat.c
181
st.ipack, st.opack, st.underrun, st.overrun, st.abort, st.crc,
usr/src/cmd/cmd-inet/usr.sbin/syncstat.c
208
st.crc = nst.crc - st.crc;
usr/src/cmd/cmd-inet/usr.sbin/syncstat.c
220
st.opack, st.underrun, st.overrun, st.abort, st.crc, iutil, outil);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1059
crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1064
if (crc != SWAP_16(tag->tag_crc)) {
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1070
crc, addr);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1098
uint16_t crc;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1110
crc = ud_crc(addr + 0x10, crc_len);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1111
tag->tag_crc = SWAP_16(crc);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1168
uint16_t crc = 0;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1171
crc = ud_crc_table[(crc >> 8 ^ *addr++) & 0xff] ^ (crc<<8);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1174
return (crc);
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1196
uint16_t crc;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1200
crc = DOT;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1202
crc += DOT;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1206
unicode[2] = htoc[(uint16_t)(crc & 0xf000) >> 12];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1207
unicode[3] = htoc[(uint16_t)(crc & 0xf00) >> 8];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1208
unicode[4] = htoc[(uint16_t)(crc & 0xf0) >> 4];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1209
unicode[5] = htoc[crc & 0xf];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1212
crc = 0;
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1217
crc += unicode[i];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1226
crc += unicode[k];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1274
unicode[k++] = htoc[(uint16_t)(crc & 0xf000) >> 12];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1275
unicode[k++] = htoc[(uint16_t)(crc & 0xf00) >> 8];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1276
unicode[k++] = htoc[(uint16_t)(crc & 0xf0) >> 4];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
1277
unicode[k++] = htoc[crc & 0xf];
usr/src/cmd/fs.d/udfs/common/ud_lib.c
998
uint16_t crc;
usr/src/cmd/fs.d/udfs/mkfs/udfslib.c
572
uint16_t crc = 0;
usr/src/cmd/fs.d/udfs/mkfs/udfslib.c
575
crc = (crc << 8) ^ crctab[((crc >> 8) ^ *buf++) & 0xff];
usr/src/cmd/fs.d/udfs/mkfs/udfslib.c
576
return ((crc ^ rem) & 0xffff);
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1202
uint32_t crc = 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1218
if (crc & 0x8000) {
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1219
crc = (((crc << 1) |
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1222
crc = ((crc << 1) | (word >> 31)) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1229
if (crc & 0x8000) {
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1230
crc = ((crc << 1) ^ poly) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1232
crc = (crc << 1) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1236
crc = crc ^ 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1237
return (crc & 0xFFFF);
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1244
uint16_t crc;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1247
crc = htons(cnx_crc16((uint8_t *)&verifier->fwimage[offset / 4],
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1251
ntohs(crc));
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1252
(void) memcpy(&fw_p[offset + guid_crc_offset], &crc, 2);
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1298
uint16_t crc;
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1372
crc = cnx_crc16((uint8_t *)guid_structure, CNX_GUID_CRC16_SIZE,
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1375
if (crc != crc16_u.dword) {
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1377
"differs from GUID section 0x%x\n"), crc, crc16_u.dword);
usr/src/cmd/fwflash/plugins/transport/common/hermon.c
1380
"GUID section 0x%x\n", crc, crc16_u.dword);
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1910
uint32_t crc = 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1921
if (crc & 0x8000) {
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1922
crc = (((crc << 1) |
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1925
crc = ((crc << 1) | (word >> 31)) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1932
if (crc & 0x8000) {
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1933
crc = ((crc << 1) ^ poly) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1935
crc = (crc << 1) & 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1939
crc = crc ^ 0xFFFF;
usr/src/cmd/fwflash/plugins/transport/common/tavor.c
1940
return (crc & 0xFFFF);
usr/src/cmd/mdb/common/modules/disk_label/disk_label.c
690
uint_t crc;
usr/src/cmd/mdb/common/modules/disk_label/disk_label.c
733
crc = efi_crc32((unsigned char *)header,
usr/src/cmd/mdb/common/modules/disk_label/disk_label.c
736
mdb_printf("HeaderCRC32: %#x (should be %#x)\n", orig_crc, crc);
usr/src/cmd/mdb/common/modules/disk_label/disk_label.c
835
crc = efi_crc32((unsigned char *)gpet,
usr/src/cmd/mdb/common/modules/disk_label/disk_label.c
840
header->efi_gpt_PartitionEntryArrayCRC32, crc);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1856
uint32_t crc;
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1886
crc = compute_crc32(buffer, data_size);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1888
crc = compute_checksum32(buffer, data_size);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1890
return (crc); /* computed crc */
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
1903
uint32_t crc;
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2021
crc = get_checksum_crc(seg_hash, seg_limit);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2037
if (origcrc != crc) {
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2274
uint32_t crc;
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2337
crc = get_checksum_crc(seg_hash, (trailer_offset - segment_offset));
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2344
retval = pwrite(fd, &crc, sizeof (crc), trailer_offset + 1);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2346
if (retval != sizeof (crc)) {
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2388
uint32_t crc;
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2492
crc = get_checksum_crc(seg_hash, (trailer_offset -
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2514
retval = pwrite(fd, &crc, sizeof (crc), trailer_offset + 1);
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2516
if (retval != sizeof (crc)) {
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2623
uint32_t crc;
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2711
crc = get_checksum_crc(seg_hash, (seg_hash->u.seg_obj->trailer_offset -
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2722
retval = pwrite(fd, &crc, sizeof (crc),
usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/fru_access.c
2725
if (retval != sizeof (crc)) {
usr/src/common/hdcrc/hd_crc.h
108
mm_crc32_u32(uint32_t crc, uint32_t *data)
usr/src/common/hdcrc/hd_crc.h
110
mm_crc32_u32(uint32_t crc, uint32_t *data)
usr/src/common/hdcrc/hd_crc.h
116
: "=S" (crc)
usr/src/common/hdcrc/hd_crc.h
117
: "0" (crc), "c" (*data));
usr/src/common/hdcrc/hd_crc.h
119
return (crc);
usr/src/common/hdcrc/hd_crc.h
130
intel_crc32c(uint8_t *address, unsigned long length, uint32_t crc)
usr/src/common/hdcrc/hd_crc.h
137
crc = mm_crc32_u8(crc, data);
usr/src/common/hdcrc/hd_crc.h
147
crc = INTEL_CRC_FUNC(crc, (INTEL_CRC_DATA_TYPE *)data);
usr/src/common/hdcrc/hd_crc.h
154
crc = mm_crc32_u8(crc, data);
usr/src/common/hdcrc/hd_crc.h
159
return (crc ^ 0xFFFFFFFF);
usr/src/common/hdcrc/hd_crc.h
162
#define HW_CRC32(buffer, length, crc) (intel_crc32c((buffer), (length), (crc)))
usr/src/common/hdcrc/hd_crc.h
163
#define HW_CRC32_CONT(buffer, length, crc) \
usr/src/common/hdcrc/hd_crc.h
164
(intel_crc32c((buffer), (length), (crc) ^ 0xFFFFFFFF))
usr/src/common/hdcrc/hd_crc.h
166
#define HW_CRC32(buffer, length, crc) 0
usr/src/common/hdcrc/hd_crc.h
167
#define HW_CRC32_CONT(buffer, length, crc) 0
usr/src/common/hdcrc/hd_crc.h
65
mm_crc32_u8(uint32_t crc, uint8_t *data)
usr/src/common/hdcrc/hd_crc.h
67
mm_crc32_u8(uint32_t crc, uint8_t *data)
usr/src/common/hdcrc/hd_crc.h
73
: "=S" (crc)
usr/src/common/hdcrc/hd_crc.h
74
: "0" (crc), "c" (*data));
usr/src/common/hdcrc/hd_crc.h
76
return (crc);
usr/src/common/hdcrc/hd_crc.h
84
mm_crc32_u64(uint32_t crc, uint64_t *data)
usr/src/common/hdcrc/hd_crc.h
86
mm_crc32_u64(uint32_t crc, uint64_t *data)
usr/src/common/hdcrc/hd_crc.h
92
: "=S" (crc)
usr/src/common/hdcrc/hd_crc.h
93
: "0" (crc), "c" (*data));
usr/src/common/hdcrc/hd_crc.h
95
return (crc);
usr/src/common/lzma/LzFind.c
141
p->crc[i] = r;
usr/src/common/lzma/LzFind.h
46
UInt32 crc[256];
usr/src/common/lzma/LzHash.h
18
UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
usr/src/common/lzma/LzHash.h
23
UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
usr/src/common/lzma/LzHash.h
26
hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
usr/src/common/lzma/LzHash.h
29
UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
usr/src/common/lzma/LzHash.h
32
hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
usr/src/common/lzma/LzHash.h
33
hashValue = (hash4Value ^ (p->crc[cur[4]] << 3)) & p->hashMask; \
usr/src/common/lzma/LzHash.h
37
#define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
usr/src/common/lzma/LzHash.h
41
hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);
usr/src/common/lzma/LzHash.h
44
UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
usr/src/common/lzma/LzHash.h
49
UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
usr/src/common/lzma/LzHash.h
52
hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & (kHash4Size - 1); }
usr/src/common/smbsrv/smb_xdr.c
753
uint32_t crc = SMB_CRC_POLYNOMIAL;
usr/src/common/smbsrv/smb_xdr.c
758
crc = (crc ^ (uint32_t)*p) + (crc << 12);
usr/src/common/smbsrv/smb_xdr.c
760
if (crc == 0 || crc == 0xFFFFFFFF)
usr/src/common/smbsrv/smb_xdr.c
761
crc = SMB_CRC_POLYNOMIAL;
usr/src/common/smbsrv/smb_xdr.c
764
return (crc);
usr/src/grub/grub-0.97/netboot/via-rhine.c
458
unsigned long crc:1;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
594
uint64_t crc = salt;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
606
if (crc == 0 || table[128] != ZFS_CRC64_POLY) {
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
612
crc = (crc >> 8) ^ table[(crc ^ c) & 0xFF];
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
620
crc &= ~((1ULL << (64 - 28)) - 1);
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
622
return (crc);
usr/src/grub/grub-0.97/stage2/gunzip.c
1354
c = crc;
usr/src/grub/grub-0.97/stage2/gunzip.c
1358
crc = c;
usr/src/grub/grub-0.97/stage2/gunzip.c
146
static unsigned long crc;
usr/src/grub/grub-0.97/stage2/gunzip.c
332
crc = (ulg)0xffffffffUL;
usr/src/lib/fm/libdiagcode/common/diagcode.c
121
static void crc(unsigned long *crcp, unsigned val);
usr/src/lib/fm/libdiagcode/common/diagcode.c
723
crc(&csum, (unsigned)*ptr);
usr/src/lib/fm/libdiagcode/common/diagcode.c
800
crc(&csum, bitv_chunk(allbits, limbit, limbit - 5));
usr/src/lib/fm/libdiagcode/common/diagcode.c
892
crc(&csum, (unsigned)*ptr);
usr/src/lib/fm/libdiagcode/common/diagcode.c
895
crc(&csum, bitv_chunk(allbits, limbit, limbit - 5));
usr/src/lib/libefi/common/rdwr_efi.c
327
uint_t crc;
usr/src/lib/libefi/common/rdwr_efi.c
351
crc = efi->efi_gpt_HeaderCRC32;
usr/src/lib/libefi/common/rdwr_efi.c
355
crc != LE_32(efi_crc32((unsigned char *)efi,
usr/src/lib/libefi/common/rdwr_efi.c
360
crc, LE_32(efi_crc32((unsigned char *)efi,
usr/src/lib/libfru/libfruraw/raw_access.c
739
uint32_t crc;
usr/src/lib/libfru/libfruraw/raw_access.c
769
crc = compute_crc32(buffer, data_size);
usr/src/lib/libfru/libfruraw/raw_access.c
771
crc = compute_checksum32(buffer, data_size);
usr/src/lib/libfru/libfruraw/raw_access.c
773
return (crc); /* computed crc */
usr/src/lib/libfru/libfruraw/raw_access.c
800
uint32_t crc;
usr/src/lib/libfru/libfruraw/raw_access.c
906
crc = get_checksum_crc(seg_hash, seg_limit);
usr/src/lib/libfru/libfruraw/raw_access.c
922
if (origcrc != crc) {
usr/src/lib/libjedec/common/libjedec_spd.c
771
uint32_t crc = 0;
usr/src/lib/libjedec/common/libjedec_spd.c
774
crc = crc ^ (uint32_t)si->si_data[off + i] << 8;
usr/src/lib/libjedec/common/libjedec_spd.c
776
if (crc & 0x8000) {
usr/src/lib/libjedec/common/libjedec_spd.c
777
crc = crc << 1 ^ 0x1021;
usr/src/lib/libjedec/common/libjedec_spd.c
779
crc = crc << 1;
usr/src/lib/libjedec/common/libjedec_spd.c
784
crc &= 0xffff;
usr/src/lib/libjedec/common/libjedec_spd.c
785
if (crc == expect) {
usr/src/lib/libjedec/common/libjedec_spd.c
786
spd_nvl_insert_u32(si, key, crc);
usr/src/lib/libjedec/common/libjedec_spd.c
789
"expected 0x%x, found 0x%x", expect, crc);
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
53
const uint8_t crc = SPD_DDR3_NBYTES_CRC(data);
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
532
const uint8_t crc = SPD_DDR3_NBYTES_CRC(si->si_data[SPD_DDR3_NBYTES]);
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
533
const uint32_t crc_len = crc == SPD_DDR3_NBYTES_CRC_125 ? 127 : 117;
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
68
spd_insert_map(si, SPD_KEY_CRC_DDR3_LEN, crc, spd_ddr3_crc_map,
usr/src/lib/libldap5/sources/ldap/common/memcache.c
2192
unsigned int crc;
usr/src/lib/libldap5/sources/ldap/common/memcache.c
2194
unsigned long crc; /* FIXME: this is not 32-bits on all platforms! */
usr/src/lib/libldap5/sources/ldap/common/memcache.c
2197
crc = 0xffffffff; /* preload shift register, per CRC-32 spec */
usr/src/lib/libldap5/sources/ldap/common/memcache.c
2199
crc = ((crc << 8) ^ crc32_table[(crc >> 24) ^ *p]) & 0xffffffff;
usr/src/lib/libldap5/sources/ldap/common/memcache.c
2201
return (unsigned long) ~crc; /* transmit complement, per CRC-32 spec */
usr/src/lib/libproc/common/Psymtab.c
1614
build_alt_debug(file_info_t *fptr, const char *path, uint32_t crc,
usr/src/lib/libproc/common/Psymtab.c
1656
if (c != crc) {
usr/src/lib/libproc/common/Psymtab.c
1658
"expected 0x%x\n", c, crc);
usr/src/lib/libproc/common/Psymtab.c
1786
find_alt_debuglink(file_info_t *fptr, const char *name, uint32_t crc)
usr/src/lib/libproc/common/Psymtab.c
1791
Pdprintf("find_alt_debug: looking for %s, crc 0x%x\n", name, crc);
usr/src/lib/libproc/common/Psymtab.c
1805
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
1814
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
2179
uint32_t crc;
usr/src/lib/libproc/common/Psymtab.c
2202
crc = *(uint32_t *)off;
usr/src/lib/libproc/common/Psymtab.c
2214
find_alt_debuglink(fptr, dbglink->c_data->d_buf, crc);
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
510
ioc->crc = 0;
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
511
ioc->crc = smb_crc_gen((uint8_t *)ioc, sizeof (smb_ioc_header_t));
usr/src/uts/common/fs/smbsrv/smb_init.c
339
uint32_t crc;
usr/src/uts/common/fs/smbsrv/smb_init.c
361
crc = ioc_hdr.crc;
usr/src/uts/common/fs/smbsrv/smb_init.c
362
ioc_hdr.crc = 0;
usr/src/uts/common/fs/smbsrv/smb_init.c
363
if (smb_crc_gen((uint8_t *)&ioc_hdr, sizeof (ioc_hdr)) != crc)
usr/src/uts/common/fs/udfs/udf_subr.c
1183
uint16_t crc;
usr/src/uts/common/fs/udfs/udf_subr.c
1246
crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
usr/src/uts/common/fs/udfs/udf_subr.c
1247
if (crc != SWAP_16(tag->tag_crc)) {
usr/src/uts/common/fs/udfs/udf_subr.c
1250
id, SWAP_16(tag->tag_crc), crc,
usr/src/uts/common/fs/udfs/udf_subr.c
1337
uint16_t crc = 0;
usr/src/uts/common/fs/udfs/udf_subr.c
1340
crc = ud_crc_table[(crc >> 8 ^ *addr++) & 0xff] ^ (crc<<8);
usr/src/uts/common/fs/udfs/udf_subr.c
1343
return (crc);
usr/src/uts/common/fs/udfs/udf_subr.c
1678
uint16_t w2_char, crc;
usr/src/uts/common/fs/udfs/udf_subr.c
1691
crc = 0;
usr/src/uts/common/fs/udfs/udf_subr.c
1732
crc += w2_char;
usr/src/uts/common/fs/udfs/udf_subr.c
1809
crc = ud_crc(in_str, in_len);
usr/src/uts/common/fs/udfs/udf_subr.c
1811
out_str[k++] = htoc[(uint16_t)(crc & 0xf000) >> 12];
usr/src/uts/common/fs/udfs/udf_subr.c
1812
out_str[k++] = htoc[(uint16_t)(crc & 0xf00) >> 8];
usr/src/uts/common/fs/udfs/udf_subr.c
1813
out_str[k++] = htoc[(uint16_t)(crc & 0xf0) >> 4];
usr/src/uts/common/fs/udfs/udf_subr.c
1814
out_str[k++] = htoc[crc & 0xf];
usr/src/uts/common/fs/udfs/udf_subr.c
921
uint16_t crc;
usr/src/uts/common/fs/udfs/udf_subr.c
929
crc = ud_crc(addr + 0x10, crc_len);
usr/src/uts/common/fs/udfs/udf_subr.c
936
tag->tag_crc = SWAP_16(crc);
usr/src/uts/common/fs/zfs/dmu_objset.c
376
uint64_t crc = -1ULL;
usr/src/uts/common/fs/zfs/dmu_objset.c
383
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ (osv >> 6)) & 0xFF];
usr/src/uts/common/fs/zfs/dmu_objset.c
384
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ (obj >> 0)) & 0xFF];
usr/src/uts/common/fs/zfs/dmu_objset.c
385
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ (obj >> 8)) & 0xFF];
usr/src/uts/common/fs/zfs/dmu_objset.c
386
crc = (crc >> 8) ^ zfs_crc64_table[(crc ^ (obj >> 16)) & 0xFF];
usr/src/uts/common/fs/zfs/dmu_objset.c
388
crc ^= (osv>>14) ^ (obj>>24);
usr/src/uts/common/fs/zfs/dmu_objset.c
390
return (crc);
usr/src/uts/common/fs/zfs/sa.c
292
uint64_t crc = -1ULL;
usr/src/uts/common/fs/zfs/sa.c
295
crc ^= SA_ATTR_HASH(attrs[i]);
usr/src/uts/common/fs/zfs/sa.c
297
return (crc);
usr/src/uts/common/fs/zfs/zvol.c
1456
uint32_t crc;
usr/src/uts/common/fs/zfs/zvol.c
1492
CRC32(crc, &gpe, sizeof (gpe), -1U, crc32_table);
usr/src/uts/common/fs/zfs/zvol.c
1493
gpt.efi_gpt_PartitionEntryArrayCRC32 = LE_32(~crc);
usr/src/uts/common/fs/zfs/zvol.c
1494
CRC32(crc, &gpt, EFI_HEADER_SIZE, -1U, crc32_table);
usr/src/uts/common/fs/zfs/zvol.c
1495
gpt.efi_gpt_HeaderCRC32 = LE_32(~crc);
usr/src/uts/common/gssapi/mechs/krb5/crypto/crc32/crc32.c
45
unsigned int crc;
usr/src/uts/common/gssapi/mechs/krb5/crypto/crc32/crc32.c
47
CRC32(crc, in, in_length, 0, crc_table);
usr/src/uts/common/gssapi/mechs/krb5/crypto/crc32/crc32.c
49
*cksum = crc;
usr/src/uts/common/io/afe/afe.c
758
uint32_t crc;
usr/src/uts/common/io/afe/afe.c
762
CRC32(crc, macaddr, ETHERADDRL, -1U, crc32_table);
usr/src/uts/common/io/afe/afe.c
763
crc %= AFE_MCHASH;
usr/src/uts/common/io/afe/afe.c
766
index = crc / 32;
usr/src/uts/common/io/afe/afe.c
767
bit = (1 << (crc % 32));
usr/src/uts/common/io/afe/afe.c
774
afep->afe_mccount[crc]++;
usr/src/uts/common/io/afe/afe.c
775
if (afep->afe_mccount[crc] == 1)
usr/src/uts/common/io/afe/afe.c
778
afep->afe_mccount[crc]--;
usr/src/uts/common/io/afe/afe.c
779
if (afep->afe_mccount[crc] == 0)
usr/src/uts/common/io/atge/atge_main.c
1651
uint32_t crc;
usr/src/uts/common/io/atge/atge_main.c
1661
crc = atge_ether_crc(macaddr, ETHERADDRL);
usr/src/uts/common/io/atge/atge_main.c
1662
bit = (crc >> 26);
usr/src/uts/common/io/atge/atge_main.c
1664
atgep->atge_mchash |= (1ULL << (crc >> 26));
usr/src/uts/common/io/atge/atge_main.c
1675
uint32_t crc;
usr/src/uts/common/io/atge/atge_main.c
1685
crc = atge_ether_crc(macaddr, ETHERADDRL);
usr/src/uts/common/io/atge/atge_main.c
1686
bit = (crc >> 26);
usr/src/uts/common/io/atge/atge_main.c
1689
atgep->atge_mchash &= ~(1ULL << (crc >> 26));
usr/src/uts/common/io/atge/atge_main.c
2524
uint32_t crc;
usr/src/uts/common/io/atge/atge_main.c
2526
crc = 0xffffffff;
usr/src/uts/common/io/atge/atge_main.c
2529
crc = (crc << 1)
usr/src/uts/common/io/atge/atge_main.c
2530
^ ((((crc >> 31) ^ data) & 1) ? CRC32_POLY_BE : 0);
usr/src/uts/common/io/atge/atge_main.c
2534
return (crc);
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
316
uint32_t crc;
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
319
CRC32(crc, (u8_t *)(pkt->u1.rx.mem_virt + L2RX_FRAME_HDR_LEN),
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
321
if (crc != CRC32residual)
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
342
pdev->rx_info.stats.crc++;
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
795
uint32_t crc;
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
798
CRC32(crc, (u8_t *)pkt_info->mem_virt + L2RX_FRAME_HDR_LEN,
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
800
if (crc != CRC32residual)
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/bnx_lm_recv.c
821
pdev->rx_info.stats.crc++;
usr/src/uts/common/io/bnx/570x/driver/common/lmdev/lm5706.h
269
u32_t crc;
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/mm.h
82
unsigned int mm_crc32(unsigned char *address, unsigned int size, unsigned int crc);
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/vm/hw_channel.h
433
u32 crc; /* crc of structure to ensure is not in
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2891
if ((bulletin->length >= sizeof(bulletin->crc)) && (bulletin->length <= sizeof(union pf_vf_bulletin))
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2892
&& (bulletin->crc == mm_crc32((u8_t*)bulletin + sizeof(bulletin->crc), bulletin->length - sizeof(bulletin->crc), BULLETIN_CRC_SEED)))
usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/cdu_def.h
24
static u8 calc_crc8(u32 data, u8 crc)
usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/cdu_def.h
40
C[i] = crc & 1;
usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/cdu_def.h
41
crc = crc >> 1;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h
165
u32 crc;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
199
u32_t crc;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
215
u32_t crc; /* 0x44c */
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
227
u32_t crc; /* 0x53c */
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
274
u32_t crc;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
291
u32_t crc;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
68
u32_t crc; /* 32-bit CRC */
usr/src/uts/common/io/bnxe/bnxe_mm.c
1416
unsigned int crc)
usr/src/uts/common/io/bnxe/bnxe_mm.c
1424
unsigned short crc)
usr/src/uts/common/io/chxge/ch.c
1589
uint32_t crc;
usr/src/uts/common/io/chxge/ch.c
1620
&crc,
usr/src/uts/common/io/chxge/ch.c
1645
gs->glds_crc = crc;
usr/src/uts/common/io/chxge/ch.h
303
uint32_t *crc, uint32_t *carrier, uint32_t *collisions,
usr/src/uts/common/io/chxge/com/pm3393.c
451
u32 crc = (u32)~0;
usr/src/uts/common/io/chxge/com/pm3393.c
455
crc ^= *b++;
usr/src/uts/common/io/chxge/com/pm3393.c
457
if (crc & 0x1)
usr/src/uts/common/io/chxge/com/pm3393.c
458
crc = (crc >> 1) ^ 0xedb88320;
usr/src/uts/common/io/chxge/com/pm3393.c
460
crc = (crc >> 1);
usr/src/uts/common/io/chxge/com/pm3393.c
465
crc = ((crc >> 4) & 0x0f0f0f0f) | ((crc << 4) & 0xf0f0f0f0);
usr/src/uts/common/io/chxge/com/pm3393.c
466
crc = ((crc >> 2) & 0x33333333) | ((crc << 2) & 0xcccccccc);
usr/src/uts/common/io/chxge/com/pm3393.c
467
crc = ((crc >> 1) & 0x55555555) | ((crc << 1) & 0xaaaaaaaa);
usr/src/uts/common/io/chxge/com/pm3393.c
469
crc = (crc >> 16) | (crc << 16);
usr/src/uts/common/io/chxge/com/pm3393.c
470
crc = (crc >> 8 & 0x00ff00ff) | (crc << 8 & 0xff00ff00);
usr/src/uts/common/io/chxge/com/pm3393.c
472
return crc;
usr/src/uts/common/io/chxge/pe.c
751
uint32_t *overrun, uint32_t *framing, uint32_t *crc,
usr/src/uts/common/io/chxge/pe.c
812
*crc = sp->RxFCSErrors;
usr/src/uts/common/io/chxge/pe.c
843
*crc = 0;
usr/src/uts/common/io/cpqary3/cpqary3_util.c
535
clock_t crc;
usr/src/uts/common/io/cpqary3/cpqary3_util.c
537
crc = cv_timedwait_sig(cv, mt, absto);
usr/src/uts/common/io/cpqary3/cpqary3_util.c
539
crc = cv_timedwait(cv, mt, absto);
usr/src/uts/common/io/cpqary3/cpqary3_util.c
541
if (crc > 0)
usr/src/uts/common/io/cryptmod.c
654
uint32_t crc;
usr/src/uts/common/io/cryptmod.c
656
CRC32(crc, input, len, 0, crc32_table);
usr/src/uts/common/io/cryptmod.c
658
buf[0] = (uchar_t)(crc & 0xff);
usr/src/uts/common/io/cryptmod.c
659
buf[1] = (uchar_t)((crc >> 8) & 0xff);
usr/src/uts/common/io/cryptmod.c
660
buf[2] = (uchar_t)((crc >> 16) & 0xff);
usr/src/uts/common/io/cryptmod.c
661
buf[3] = (uchar_t)((crc >> 24) & 0xff);
usr/src/uts/common/io/devinfo.c
3919
uint32_t saved_crc, crc;
usr/src/uts/common/io/devinfo.c
3991
CRC32(crc, di_cache.cache_data, map_size, -1U, crc32_table);
usr/src/uts/common/io/devinfo.c
3994
if (crc != all->cache_checksum) {
usr/src/uts/common/io/devinfo.c
3997
DI_CACHE_FILE, all->cache_checksum, crc));
usr/src/uts/common/io/devinfo.c
4174
uint32_t crc;
usr/src/uts/common/io/devinfo.c
4221
CRC32(crc, di_cache.cache_data, all->map_size, -1U, crc32_table);
usr/src/uts/common/io/devinfo.c
4222
all->cache_checksum = crc;
usr/src/uts/common/io/dmfe/dmfe_main.c
1207
uint32_t crc = HASH_CRC;
usr/src/uts/common/io/dmfe/dmfe_main.c
1218
msb = crc >> 31;
usr/src/uts/common/io/dmfe/dmfe_main.c
1219
crc <<= 1;
usr/src/uts/common/io/dmfe/dmfe_main.c
1221
crc ^= POLY;
usr/src/uts/common/io/dmfe/dmfe_main.c
1222
crc |= 0x00000001;
usr/src/uts/common/io/dmfe/dmfe_main.c
1229
index |= (((crc >> bit) & 1) << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2781
u32 i, j, mask, crc;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2785
crc = 0xffffffff;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2787
crc = crc ^ mac[i];
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2789
mask = (crc & 1) * (-1);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2790
crc = (crc >> 1) ^ (poly & mask);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2793
return ~crc;
usr/src/uts/common/io/fcoe/fcoe.c
1140
uint32_t crc;
usr/src/uts/common/io/fcoe/fcoe.c
1144
CRC32(crc, frm->frm_fc_frame, frm->frm_fc_frame_size, -1U, crc32_table);
usr/src/uts/common/io/fcoe/fcoe.c
1145
return (crc == crc_from_frame ? FCOE_SUCCESS : FCOE_FAILURE);
usr/src/uts/common/io/fcoe/fcoe_fc.c
388
uint32_t crc;
usr/src/uts/common/io/fcoe/fcoe_fc.c
394
CRC32(crc, frm->frm_fc_frame, frm->frm_fc_frame_size,
usr/src/uts/common/io/fcoe/fcoe_fc.c
396
FRM2FMI(frm)->fmi_fft->fft_crc[0] = 0xFF & (~crc);
usr/src/uts/common/io/fcoe/fcoe_fc.c
397
FRM2FMI(frm)->fmi_fft->fft_crc[1] = 0xFF & (~crc >> 8);
usr/src/uts/common/io/fcoe/fcoe_fc.c
398
FRM2FMI(frm)->fmi_fft->fft_crc[2] = 0xFF & (~crc >> 16);
usr/src/uts/common/io/fcoe/fcoe_fc.c
399
FRM2FMI(frm)->fmi_fft->fft_crc[3] = 0xFF & (~crc >> 24);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_tx.c
832
wqeh->u0.s.crc = B_TRUE;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
332
cur_stats->crc = 0;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
335
cur_stats->crc += rx_ring->fcs_err;
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
337
val = cur_stats->crc;
usr/src/uts/common/io/hme/hme.c
416
uint32_t crc;
usr/src/uts/common/io/hme/hme.c
418
CRC32(crc, addr, ETHERADDRL, -1U, crc32_table);
usr/src/uts/common/io/hme/hme.c
423
return (crc >> 26);
usr/src/uts/common/io/hxge/hxge_pfc.c
1193
uint32_t crc;
usr/src/uts/common/io/hxge/hxge_pfc.c
1199
crc = (uint32_t)0xffffffff;
usr/src/uts/common/io/hxge/hxge_pfc.c
1204
if ((c & 0x1) ^ (crc & 0x1))
usr/src/uts/common/io/hxge/hxge_pfc.c
1205
crc = (crc >> 1)^0xedb88320;
usr/src/uts/common/io/hxge/hxge_pfc.c
1207
crc = (crc >> 1);
usr/src/uts/common/io/hxge/hxge_pfc.c
1211
return ((~crc) >> (32 - HASH_BITS));
usr/src/uts/common/io/i40e/core/i40e_lan_hmc.c
726
{I40E_HMC_STORE(i40e_hmc_obj_txq, crc), 32, 0 + (7 * 128) },
usr/src/uts/common/io/i40e/core/i40e_lan_hmc.h
99
u32 crc;
usr/src/uts/common/io/i40e/i40e_main.c
2938
tctx.crc = 0;
usr/src/uts/common/io/idm/idm_impl.c
913
uint32_t crc = 0xffffffff, result;
usr/src/uts/common/io/idm/idm_impl.c
928
return (HW_CRC32(buffer, length, crc));
usr/src/uts/common/io/idm/idm_impl.c
931
crc = idm_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
usr/src/uts/common/io/idm/idm_impl.c
932
(crc >> 8);
usr/src/uts/common/io/idm/idm_impl.c
934
result = crc ^ 0xffffffff;
usr/src/uts/common/io/idm/idm_impl.c
953
idm_crc32c_continued(void *address, unsigned long length, uint32_t crc)
usr/src/uts/common/io/idm/idm_impl.c
971
return (HW_CRC32_CONT(buffer, length, crc));
usr/src/uts/common/io/idm/idm_impl.c
975
byte0 = (uint8_t)((crc >> 24) & 0xFF);
usr/src/uts/common/io/idm/idm_impl.c
976
byte1 = (uint8_t)((crc >> 16) & 0xFF);
usr/src/uts/common/io/idm/idm_impl.c
977
byte2 = (uint8_t)((crc >> 8) & 0xFF);
usr/src/uts/common/io/idm/idm_impl.c
978
byte3 = (uint8_t)(crc & 0xFF);
usr/src/uts/common/io/idm/idm_impl.c
979
crc = ((byte3 << 24) | (byte2 << 16) | (byte1 << 8) | byte0);
usr/src/uts/common/io/idm/idm_impl.c
982
crc = crc ^ 0xffffffff;
usr/src/uts/common/io/idm/idm_impl.c
984
crc = idm_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
usr/src/uts/common/io/idm/idm_impl.c
985
(crc >> 8);
usr/src/uts/common/io/idm/idm_impl.c
987
result = crc ^ 0xffffffff;
usr/src/uts/common/io/iwh/iwh.c
2319
uint32_t temp, crc, *tail;
usr/src/uts/common/io/iwh/iwh.c
2366
bcopy(tail, &crc, 4);
usr/src/uts/common/io/iwh/iwh.c
2374
stat->cfg_phy_cnt, LE_32(crc)));
usr/src/uts/common/io/iwh/iwh.c
2385
if ((LE_32(crc) &
usr/src/uts/common/io/iwh/iwh.c
2390
LE_32(crc)));
usr/src/uts/common/io/iwk/iwk2.c
2097
uint32_t crc;
usr/src/uts/common/io/iwk/iwk2.c
2129
bcopy(tail, &crc, 4);
usr/src/uts/common/io/iwk/iwk2.c
2136
stat->cfg_phy_cnt, LE_32(crc)));
usr/src/uts/common/io/iwk/iwk2.c
2146
if ((LE_32(crc) &
usr/src/uts/common/io/iwk/iwk2.c
2150
LE_32(crc)));
usr/src/uts/common/io/iwp/iwp.c
2227
uint32_t temp, crc, *tail;
usr/src/uts/common/io/iwp/iwp.c
2274
bcopy(tail, &crc, 4);
usr/src/uts/common/io/iwp/iwp.c
2282
stat->cfg_phy_cnt, LE_32(crc)));
usr/src/uts/common/io/iwp/iwp.c
2293
if ((LE_32(crc) &
usr/src/uts/common/io/iwp/iwp.c
2298
LE_32(crc)));
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
504
uint32_t crc;
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
514
CRC32(crc, mp->b_rptr + off, data_len, -1U, crc_table);
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
520
*(uint32_t *)crcbuf = LE_32(~crc);
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
533
uint32_t crc;
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
546
CRC32(crc, mp->b_rptr + off, data_len, -1U, crc_table);
usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
553
return (crc == ~LE_32(*(uint32_t *)crcbuf));
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
230
uint32_t crc;
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
250
CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
261
*(uint32_t *)crcbuf = LE_32(~crc);
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
277
uint32_t crc;
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
304
CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
usr/src/uts/common/io/net80211/net80211_crypto_wep.c
315
return (crc == ~LE_32(*(uint32_t *)crcbuf));
usr/src/uts/common/io/nge/nge_chip.h
1400
uint32_t crc:1;
usr/src/uts/common/io/nge/nge_chip.h
1441
uint32_t crc:1;
usr/src/uts/common/io/nge/nge_chip.h
1479
uint32_t crc:1;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
100
(crc << 1) ^ CRC_CCITT_POLY :
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
101
crc << 1;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
104
return ((crcin << 8) ^ crc);
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
114
uint32_t index, bit, byte, crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
117
crc = reflect_32(index);
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
120
crc = (crc & 0x80000000) ?
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
121
(crc << 1) ^ SCTP_POLY : crc << 1;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
124
crc32c_tab[3 - byte][index] = flip32(reflect_32(crc));
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
126
crc32c_tab[byte][index] = reflect_32(crc);
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
139
uint16_t crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
143
crc = index << 8;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
146
crc = (crc & 0x8000) ?
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
147
(crc << 1) ^ CRC_CCITT_POLY : crc << 1;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
150
crc_ccitt_tab[3 - byte][index] = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
152
crc_ccitt_tab[byte][index] = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
165
uint32_t crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
168
crc = *crcptr;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
171
crc = (crc << 8) ^ crc32c_tab[3][buf[i] ^ (crc >> 24)];
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
173
crc = (crc >> 8) ^ crc32c_tab[0][buf[i] ^ (crc & 0xff)];
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
176
*crcptr = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
186
uint16_t crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
189
crc = *crcptr;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
193
crc = (crc << 8) ^ crc_ccitt_tab[3][buf[i] ^ (crc >> 8)];
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
195
crc = (crc << 8) ^ crc_ccitt_tab[0][buf[i] ^ (crc >> 8)];
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
198
*crcptr = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
211
uint32_t w, crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
214
crc = *crcptr;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
216
w = crc ^ buf[i];
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
217
crc = crc32c_tab[0][w >> 24] ^
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
222
*crcptr = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
280
uint32_t crc, bit, byte, index;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
283
crc = index << 24;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
286
crc = ((crc & 0x80000000)) ?
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
287
(crc << 1) ^ CRC_32C_POLY : crc << 1;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
289
h1table[byte][index] = crc;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
63
#define COMPUTE_H1_BYTE(crc, data) \
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
64
(crc = (crc<<8)^h1table[0][((crc >> 24) ^data) & 0xff])
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
95
uint16_t mcrc, crc = 0, bits = 0;
usr/src/uts/common/io/nxge/nxge_fflp_hash.c
99
crc = ((crc ^ mcrc) & 0x8000) ?
usr/src/uts/common/io/nxge/nxge_mac.c
6452
uint32_t crc;
usr/src/uts/common/io/nxge/nxge_mac.c
6458
crc = (uint32_t)0xffffffff;
usr/src/uts/common/io/nxge/nxge_mac.c
6462
if ((c & 0x1) ^ (crc & 0x1))
usr/src/uts/common/io/nxge/nxge_mac.c
6463
crc = (crc >> 1)^0xedb88320;
usr/src/uts/common/io/nxge/nxge_mac.c
6465
crc = (crc >> 1);
usr/src/uts/common/io/nxge/nxge_mac.c
6469
return ((~crc) >> (32 - HASH_BITS));
usr/src/uts/common/io/overlay/overlay_target.c
148
uint32_t crc;
usr/src/uts/common/io/overlay/overlay_target.c
149
CRC32(crc, v, ETHERADDRL, -1U, crc32_table);
usr/src/uts/common/io/overlay/overlay_target.c
150
return (crc);
usr/src/uts/common/io/pcn/pcn.c
590
uint32_t crc;
usr/src/uts/common/io/pcn/pcn.c
598
CRC32(crc, macaddr, ETHERADDRL, -1U, crc32_table);
usr/src/uts/common/io/pcn/pcn.c
599
crc >>= 26;
usr/src/uts/common/io/pcn/pcn.c
600
index = crc / 16;
usr/src/uts/common/io/pcn/pcn.c
601
bit = (1U << (crc % 16));
usr/src/uts/common/io/pcn/pcn.c
608
pcnp->pcn_mccount[crc]++;
usr/src/uts/common/io/pcn/pcn.c
609
if (pcnp->pcn_mccount[crc] == 1)
usr/src/uts/common/io/pcn/pcn.c
612
pcnp->pcn_mccount[crc]--;
usr/src/uts/common/io/pcn/pcn.c
613
if (pcnp->pcn_mccount[crc] == 0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
625
#define OSAL_CRC32(crc, buf, length) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
626
qede_osal_crc32(crc, buf, length)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2575
u32 crc)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2645
ECORE_WOL_WR(hwfn, hwfn->p_main_ptt, reg_crc, crc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2650
reg_idx, reg_crc, crc, reg_len, pattern_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
290
u32 crc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1545
u8 crc, validation_byte = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1571
crc = OSAL_CRC8(cdu_crc8_table, (u8 *)&data_to_crc, sizeof(data_to_crc), CRC8_INIT_VALUE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1586
validation_byte |= ((conn_type & 0xF) << 3) | (crc & 0x7);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1588
validation_byte |= crc & 0x7F;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1554
u32 crc = ecore_crc32c_le(ETH_MULTICAST_BIN_FROM_MAC_SEED,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1557
return crc & 0xff;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
348
static OSAL_INLINE u32 ecore_crc32(u32 crc, u8 *ptr, u32 length) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vfpf_if.h
585
u32 crc;
usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/common_hsi.h
1227
__le32 crc[4];
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
417
u32 crc;
usr/src/uts/common/io/qede/579xx/hsi/mcp/nvm_map.h
65
u32 crc; /* 32-bit CRC */
usr/src/uts/common/io/qede/qede_osal.c
800
qede_osal_crc32(u32 crc, u8 *buf, u64 length)
usr/src/uts/common/io/rge/rge_main.c
880
uint32_t crc = (uint32_t)RGE_HASH_CRC;
usr/src/uts/common/io/rge/rge_main.c
891
msb = crc >> 31;
usr/src/uts/common/io/rge/rge_main.c
892
crc <<= 1;
usr/src/uts/common/io/rge/rge_main.c
894
crc ^= POLY;
usr/src/uts/common/io/rge/rge_main.c
898
index = crc >> 26;
usr/src/uts/common/io/rtls/rtls.c
752
uint32_t crc = (ulong_t)RTLS_HASH_CRC;
usr/src/uts/common/io/rtls/rtls.c
763
msb = crc >> 31;
usr/src/uts/common/io/rtls/rtls.c
764
crc <<= 1;
usr/src/uts/common/io/rtls/rtls.c
766
crc ^= POLY;
usr/src/uts/common/io/rtls/rtls.c
767
crc |= 0x00000001;
usr/src/uts/common/io/rtls/rtls.c
773
index = crc >> 26;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.h
1253
uint32_t crc);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
126
uint32_t crc = 0xffffffff, result;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
139
return (HW_CRC32(buffer, length, crc));
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
144
crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
145
(crc >> 8);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
147
result = crc ^ 0xffffffff;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
166
iscsi_crc32c_continued(void *address, unsigned long length, uint32_t crc)
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
182
return (HW_CRC32_CONT(buffer, length, crc));
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
187
byte0 = (uint8_t)((crc >> 24) & 0xFF);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
188
byte1 = (uint8_t)((crc >> 16) & 0xFF);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
189
byte2 = (uint8_t)((crc >> 8) & 0xFF);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
190
byte3 = (uint8_t)(crc & 0xFF);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
191
crc = ((byte3 << 24) | (byte2 << 16) | (byte1 << 8) | byte0);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
194
crc = crc ^ 0xffffffff;
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
196
crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
197
(crc >> 8);
usr/src/uts/common/io/scsi/adapters/iscsi/iscsi_crc.c
199
result = crc ^ 0xffffffff;
usr/src/uts/common/io/sfe/sfe.c
1371
dp->stats.crc++;
usr/src/uts/common/io/sfe/sfe_util.c
163
uint32_t crc;
usr/src/uts/common/io/sfe/sfe_util.c
165
CRC32(crc, addr, ETHERADDRL, 0xffffffffU, crc32_table);
usr/src/uts/common/io/sfe/sfe_util.c
166
return (crc);
usr/src/uts/common/io/sfe/sfe_util.c
175
uint32_t crc;
usr/src/uts/common/io/sfe/sfe_util.c
178
crc = 0xffffffff;
usr/src/uts/common/io/sfe/sfe_util.c
181
crc = (crc << 1)
usr/src/uts/common/io/sfe/sfe_util.c
182
^ ((((crc >> 31) ^ data) & 1) ? CRC32_POLY_BE : 0);
usr/src/uts/common/io/sfe/sfe_util.c
185
return (crc);
usr/src/uts/common/io/sfe/sfe_util.c
4317
val = gstp->crc;
usr/src/uts/common/io/sfe/sfe_util.h
92
uint32_t crc;
usr/src/uts/common/io/sfxge/common/efx_crc32.c
114
uint32_t crc = crc_init;
usr/src/uts/common/io/sfxge/common/efx_crc32.c
118
crc = (crc >> 8) ^ efx_crc32_table[(crc ^ data) & 0xff];
usr/src/uts/common/io/sfxge/common/efx_crc32.c
121
return (crc);
usr/src/uts/common/io/sfxge/common/efx_mac.c
748
uint32_t crc, index;
usr/src/uts/common/io/sfxge/common/efx_mac.c
759
crc = efx_crc32_calculate(0xffffffff, addrs, EFX_MAC_ADDR_LEN);
usr/src/uts/common/io/sfxge/common/efx_mac.c
760
index = crc % EFX_MAC_HASH_BITS;
usr/src/uts/common/io/udmf/udmf_usbgem.c
514
dp->stats.crc++;
usr/src/uts/common/io/usbgem/usbgem.c
206
uint32_t crc = 0xffffffff;
usr/src/uts/common/io/usbgem/usbgem.c
208
crc = 0xffffffff;
usr/src/uts/common/io/usbgem/usbgem.c
211
crc = (crc >> 1) ^
usr/src/uts/common/io/usbgem/usbgem.c
212
(((crc ^ data) & 1) ? CRC32_POLY_LE : 0);
usr/src/uts/common/io/usbgem/usbgem.c
215
return (crc);
usr/src/uts/common/io/usbgem/usbgem.c
225
uint32_t crc;
usr/src/uts/common/io/usbgem/usbgem.c
227
crc = 0xffffffff;
usr/src/uts/common/io/usbgem/usbgem.c
230
crc = (crc << 1) ^
usr/src/uts/common/io/usbgem/usbgem.c
231
((((crc >> 31) ^ data) & 1) ? CRC32_POLY_BE : 0);
usr/src/uts/common/io/usbgem/usbgem.c
234
return (crc);
usr/src/uts/common/io/usbgem/usbgem.c
3276
val = gstp->crc;
usr/src/uts/common/io/usbgem/usbgem.h
35
uint32_t crc;
usr/src/uts/common/io/vr/vr.c
2176
uint32_t crc = (uint32_t)0xFFFFFFFFU;
usr/src/uts/common/io/vr/vr.c
2185
carry = ((crc & 0x80000000U) ? 1 : 0) ^ (c & 0x01);
usr/src/uts/common/io/vr/vr.c
2186
crc <<= 1;
usr/src/uts/common/io/vr/vr.c
2189
crc = (crc ^ 0x04C11DB6) | carry;
usr/src/uts/common/io/vr/vr.c
2192
return (crc);
usr/src/uts/common/io/yge/yge.c
2925
uint32_t crc;
usr/src/uts/common/io/yge/yge.c
2928
crc = 0xffffffff;
usr/src/uts/common/io/yge/yge.c
2931
crc = (crc << 1)
usr/src/uts/common/io/yge/yge.c
2932
^ ((((crc >> 31) ^ data) & 1) ? POLY_BE : 0);
usr/src/uts/common/io/yge/yge.c
2937
return (crc % 64);
usr/src/uts/common/os/sctp_crc32.c
100
crc = *crcptr;
usr/src/uts/common/os/sctp_crc32.c
103
crc = (crc << 8) ^ crctab[3][buf[i] ^ (crc >> 24)];
usr/src/uts/common/os/sctp_crc32.c
105
crc = (crc >> 8) ^ crctab[0][buf[i] ^ (crc & 0xff)];
usr/src/uts/common/os/sctp_crc32.c
108
*crcptr = crc;
usr/src/uts/common/os/sctp_crc32.c
114
uint32_t w, crc;
usr/src/uts/common/os/sctp_crc32.c
117
crc = *crcptr;
usr/src/uts/common/os/sctp_crc32.c
119
w = crc ^ buf[i];
usr/src/uts/common/os/sctp_crc32.c
120
crc = crctab[0][w >> 24] ^ crctab[1][(w >> 16) & 0xff] ^
usr/src/uts/common/os/sctp_crc32.c
123
*crcptr = crc;
usr/src/uts/common/os/sctp_crc32.c
76
uint32_t i, j, k, crc;
usr/src/uts/common/os/sctp_crc32.c
79
crc = reflect_32(i);
usr/src/uts/common/os/sctp_crc32.c
82
crc = (crc & 0x80000000) ?
usr/src/uts/common/os/sctp_crc32.c
83
(crc << 1) ^ SCTP_POLY : crc << 1;
usr/src/uts/common/os/sctp_crc32.c
86
crctab[3 - k][i] = flip32(reflect_32(crc));
usr/src/uts/common/os/sctp_crc32.c
88
crctab[k][i] = reflect_32(crc);
usr/src/uts/common/os/sctp_crc32.c
97
uint32_t crc;
usr/src/uts/common/smbsrv/smb_ioctl.h
60
uint32_t crc;
usr/src/uts/common/sys/crc32.h
117
#define CRC32(crc, buf, size, start, table) \
usr/src/uts/common/sys/crc32.h
124
crc = Xcrc; \
usr/src/uts/common/sys/crc32.h
132
#define CRC32_STRING(crc, len, str, start, table) \
usr/src/uts/common/sys/crc32.h
139
(crc) = Xcrc; \
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw_eth.h
104
uint32_t crc:1;
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw_eth.h
122
uint32_t crc:1;
usr/src/uts/common/sys/fibre-channel/fca/qlge/qlge_hw.h
95
uint32_t crc;
usr/src/uts/common/sys/idm/idm_impl.h
539
uint32_t crc);
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
269
uint32_t crc;
usr/src/uts/common/sys/ser_sync.h
163
int crc; /* CRC error */
usr/src/uts/intel/io/dnet/dnet.c
1130
uint32_t crc = (uint32_t)HASH_CRC;
usr/src/uts/intel/io/dnet/dnet.c
1142
msb = crc >> 31;
usr/src/uts/intel/io/dnet/dnet.c
1143
crc <<= 1;
usr/src/uts/intel/io/dnet/dnet.c
1145
crc ^= POLY;
usr/src/uts/intel/io/dnet/dnet.c
1146
crc |= 0x00000001;
usr/src/uts/intel/io/dnet/dnet.c
1153
index |= (((crc >> bit) & 1) << shift);
usr/src/uts/intel/io/dnet/dnet.c
1842
if (descp->desc0.crc) {
usr/src/uts/intel/io/dnet/dnet.c
3061
uint8_t crc;
usr/src/uts/intel/io/dnet/dnet.c
3091
crc = 0xff;
usr/src/uts/intel/io/dnet/dnet.c
3095
return (crc == vi[16]);
usr/src/uts/intel/io/dnet/dnet.c
3097
((wvi[word] >> bit) & 1) ^ ((crc >> 7) & 1);
usr/src/uts/intel/io/dnet/dnet.c
3098
crc <<= 1;
usr/src/uts/intel/io/dnet/dnet.c
3100
crc ^= 7;
usr/src/uts/intel/io/dnet/dnet.h
455
crc : 01,
usr/src/uts/sun/io/eri/eri.c
1096
uint32_t crc;
usr/src/uts/sun/io/eri/eri.c
1098
CRC32(crc, addr, ETHERADDRL, -1U, crc32_table);
usr/src/uts/sun/io/eri/eri.c
1103
return ((~crc) >> 24);
usr/src/uts/sun/io/zs_hdlc.c
1731
zss->sl_st.crc++;
usr/src/uts/sun4u/io/rmc_comm_dp.c
1369
dp_msgp->crc = dp_calc_crc16(pkt->msg_buf +
usr/src/uts/sun4u/io/rmc_comm_dp.c
1371
sizeof (dp_msgp->crc) - sizeof (dp_msgp->pad));
usr/src/uts/sun4u/io/rmc_comm_dp.c
1383
dp_msgp->crc = dp_msgp->crc/2;
usr/src/uts/sun4u/io/rmc_comm_dp.c
1482
dp_msgp->crc = dp_calc_crc16(pkt->msg_buf +
usr/src/uts/sun4u/io/rmc_comm_dp.c
1484
sizeof (dp_msgp->crc) - sizeof (dp_msgp->pad));
usr/src/uts/sun4u/io/rmc_comm_dp.c
260
uint16_t crc;
usr/src/uts/sun4u/io/rmc_comm_dp.c
262
crc = 0;
usr/src/uts/sun4u/io/rmc_comm_dp.c
264
crc = (crc >> 8) ^ crctab16[(crc ^ *buf++) & 0xFF];
usr/src/uts/sun4u/io/rmc_comm_dp.c
266
return (crc);
usr/src/uts/sun4u/io/rmc_comm_dp.c
490
uint16_t crc;
usr/src/uts/sun4u/io/rmc_comm_dp.c
499
msglen = pkt->full_length - sizeof (dp_header_t) - sizeof (crc);
usr/src/uts/sun4u/io/rmc_comm_dp.c
501
bcopy(pkt->buf + (pkt->full_length - sizeof (crc)), &crc, sizeof (crc));
usr/src/uts/sun4u/io/rmc_comm_dp.c
503
if (crc == dp_calc_crc16(pkt->buf + sizeof (dp_header_t), msglen)) {
usr/src/uts/sun4u/io/rmc_comm_dp.c
529
uint16_t crc;
usr/src/uts/sun4u/io/rmc_comm_dp.c
533
crc = dp_calc_crc16(buf + sizeof (dp_msgp->pad), sizeof (dp_header_t) -
usr/src/uts/sun4u/io/rmc_comm_dp.c
534
sizeof (dp_msgp->crc) - sizeof (dp_msgp->pad));
usr/src/uts/sun4u/io/rmc_comm_dp.c
536
if (dp_msgp->crc == crc) {
usr/src/uts/sun4u/sys/rmc_comm_lproto.h
78
uint16_t crc; /* CRC-16 Checksum of header. */
usr/src/uts/sun4v/io/vds.c
5812
uint32_t crc;
usr/src/uts/sun4v/io/vds.c
5874
CRC32(crc, gpe, sizeof (efi_gpe_t) * VD_MAXPART, -1U, crc32_table);
usr/src/uts/sun4v/io/vds.c
5875
gpt->efi_gpt_PartitionEntryArrayCRC32 = LE_32(~crc);
usr/src/uts/sun4v/io/vds.c
5877
CRC32(crc, gpt, EFI_HEADER_SIZE, -1U, crc32_table);
usr/src/uts/sun4v/io/vds.c
5878
gpt->efi_gpt_HeaderCRC32 = LE_32(~crc);