Home
last modified time | relevance | path

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

123456

/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c64 (crc = (crc<<8)^h1table[0][((crc >> 24) ^data) & 0xff])
99 crc = ((crc ^ mcrc) & 0x8000) ? in crc_ccitt()
120 crc = (crc & 0x80000000) ? in nxge_crc32c_init()
121 (crc << 1) ^ SCTP_POLY : crc << 1; in nxge_crc32c_init()
146 crc = (crc & 0x8000) ? in nxge_crc_ccitt_init()
147 (crc << 1) ^ CRC_CCITT_POLY : crc << 1; in nxge_crc_ccitt_init()
171 crc = (crc << 8) ^ crc32c_tab[3][buf[i] ^ (crc >> 24)]; in nxge_crc32c_byte()
173 crc = (crc >> 8) ^ crc32c_tab[0][buf[i] ^ (crc & 0xff)]; in nxge_crc32c_byte()
193 crc = (crc << 8) ^ crc_ccitt_tab[3][buf[i] ^ (crc >> 8)]; in nxge_crc_ccitt_byte()
195 crc = (crc << 8) ^ crc_ccitt_tab[0][buf[i] ^ (crc >> 8)]; in nxge_crc_ccitt_byte()
[all …]
/illumos-gate/usr/src/common/hdcrc/
H A Dhd_crc.h73 : "=S" (crc) in mm_crc32_u8()
76 return (crc); in mm_crc32_u8()
92 : "=S" (crc) in mm_crc32_u64()
95 return (crc); in mm_crc32_u64()
116 : "=S" (crc) in mm_crc32_u32()
119 return (crc); in mm_crc32_u32()
137 crc = mm_crc32_u8(crc, data); in intel_crc32c()
147 crc = INTEL_CRC_FUNC(crc, (INTEL_CRC_DATA_TYPE *)data); in intel_crc32c()
154 crc = mm_crc32_u8(crc, data); in intel_crc32c()
159 return (crc ^ 0xFFFFFFFF); in intel_crc32c()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsctp_crc32.c82 crc = (crc & 0x80000000) ? in sctp_crc32_init()
83 (crc << 1) ^ SCTP_POLY : crc << 1; in sctp_crc32_init()
97 uint32_t crc; in sctp_crc_byte() local
100 crc = *crcptr; in sctp_crc_byte()
103 crc = (crc << 8) ^ crctab[3][buf[i] ^ (crc >> 24)]; in sctp_crc_byte()
105 crc = (crc >> 8) ^ crctab[0][buf[i] ^ (crc & 0xff)]; in sctp_crc_byte()
108 *crcptr = crc; in sctp_crc_byte()
114 uint32_t w, crc; in sctp_crc_word() local
117 crc = *crcptr; in sctp_crc_word()
119 w = crc ^ buf[i]; in sctp_crc_word()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_crc.c126 uint32_t crc = 0xffffffff, result; in iscsi_crc32c() local
144 crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^ in iscsi_crc32c()
145 (crc >> 8); in iscsi_crc32c()
147 result = crc ^ 0xffffffff; in iscsi_crc32c()
187 byte0 = (uint8_t)((crc >> 24) & 0xFF); in iscsi_crc32c_continued()
189 byte2 = (uint8_t)((crc >> 8) & 0xFF); in iscsi_crc32c_continued()
190 byte3 = (uint8_t)(crc & 0xFF); in iscsi_crc32c_continued()
194 crc = crc ^ 0xffffffff; in iscsi_crc32c_continued()
196 crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^ in iscsi_crc32c_continued()
197 (crc >> 8); in iscsi_crc32c_continued()
[all …]
/illumos-gate/usr/src/contrib/zlib/
H A Dcrc32.c626 crc = (~crc) & 0xffffffff;
741 crc = (~crc) & 0xffffffff; in crc32_z()
1031 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1032 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1033 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1034 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1035 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1036 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1037 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
1038 crc = (crc >> 8) ^ crc_table[(crc ^ *buf++) & 0xff]; in crc32_z()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
H A Dgmem.esc144 ereport.cpu.generic-sparc.membuf-crc@CHIP;
149 ereport.cpu.generic-sparc.membuf-crc@CHIP<>;
161 ereport.cpu.generic-sparc.membuf-crc@CHIP;
167 ereport.cpu.generic-sparc.membuf-crc@CHIP;
174 ereport.cpu.generic-sparc.membuf-crc@MEM_BUFF;
206 ereport.cpu.generic-sparc.membuf-crc@MEM_BUFF;
213 ereport.cpu.generic-sparc.membuf-crc@MEM_CTRL;
230 ereport.cpu.generic-sparc.membuf-crc@MEM_CTRL;
260 ereport.cpu.generic-sparc.membuf-crc-uc@CHIP,
275 ereport.cpu.generic-sparc.membuf-crc-uc@CHIP,
[all …]
H A Dzambezi.esc230 event ereport.asic.zambezi.lfu.crc-error@interconnect
274 event ereport.asic.zambezi.lfu.retrain-error-second-crc@interconnect
280 event ereport.asic.zambezi.lfu.retrain-failed-second-crc@interconnect
367 ereport.asic.zambezi.lfu.crc-error@interconnect
392 ereport.asic.zambezi.lfu.crc-error@interconnect
417 ereport.asic.zambezi.lfu.crc-error@interconnect
442 ereport.asic.zambezi.lfu.crc-error@interconnect
484 ereport.asic.zambezi.lfu.retrain-failed-second-crc@interconnect
502 ereport.asic.zambezi.lfu.retrain-failed-second-crc@interconnect,
517 ereport.asic.zambezi.lfu.retrain-error-second-crc@interconnect,
[all …]
/illumos-gate/usr/src/common/lzma/
H A DLzHash.h18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
26 hashValue = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
29 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
32 hash4Value = (temp ^ ((UInt32)cur[2] << 8) ^ (p->crc[cur[3]] << 5)); \
33 hashValue = (hash4Value ^ (p->crc[cur[4]] << 3)) & p->hashMask; \
37 #define HASH_ZIP_CALC hashValue = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
41 hash2Value = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);
44 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
49 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/common/
H A Defx_crc32.c114 uint32_t crc = crc_init; in efx_crc32_calculate() local
118 crc = (crc >> 8) ^ efx_crc32_table[(crc ^ data) & 0xff]; in efx_crc32_calculate()
121 return (crc); in efx_crc32_calculate()
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dpm3393.c453 u32 crc = (u32)~0; in calc_crc() local
457 crc ^= *b++; in calc_crc()
459 if (crc & 0x1) in calc_crc()
460 crc = (crc >> 1) ^ 0xedb88320; in calc_crc()
462 crc = (crc >> 1); in calc_crc()
467 crc = ((crc >> 4) & 0x0f0f0f0f) | ((crc << 4) & 0xf0f0f0f0); in calc_crc()
468 crc = ((crc >> 2) & 0x33333333) | ((crc << 2) & 0xcccccccc); in calc_crc()
469 crc = ((crc >> 1) & 0x55555555) | ((crc << 1) & 0xaaaaaaaa); in calc_crc()
471 crc = (crc >> 16) | (crc << 16); in calc_crc()
472 crc = (crc >> 8 & 0x00ff00ff) | (crc << 8 & 0xff00ff00); in calc_crc()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dcrc32.h119 #define CRC32(crc, buf, size, start, table) \ argument
126 crc = Xcrc; \
134 #define CRC32_STRING(crc, len, str, start, table) \ argument
141 (crc) = Xcrc; \
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/crc32/
H A Dcrc32.c47 unsigned int crc; local
49 CRC32(crc, in, in_length, 0, crc_table);
51 *cksum = crc;
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_impl.c913 uint32_t crc = 0xffffffff, result; in idm_crc32c() local
931 crc = idm_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^ in idm_crc32c()
932 (crc >> 8); in idm_crc32c()
934 result = crc ^ 0xffffffff; in idm_crc32c()
975 byte0 = (uint8_t)((crc >> 24) & 0xFF); in idm_crc32c_continued()
977 byte2 = (uint8_t)((crc >> 8) & 0xFF); in idm_crc32c_continued()
978 byte3 = (uint8_t)(crc & 0xFF); in idm_crc32c_continued()
982 crc = crc ^ 0xffffffff; in idm_crc32c_continued()
984 crc = idm_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^ in idm_crc32c_continued()
985 (crc >> 8); in idm_crc32c_continued()
[all …]
/illumos-gate/usr/src/uts/sun4u/io/
H A Drmc_comm_dp.c260 uint16_t crc; in dp_calc_crc16() local
262 crc = 0; in dp_calc_crc16()
264 crc = (crc >> 8) ^ crctab16[(crc ^ *buf++) & 0xFF]; in dp_calc_crc16()
266 return (crc); in dp_calc_crc16()
490 uint16_t crc; in dp_got_full_msg() local
501 bcopy(pkt->buf + (pkt->full_length - sizeof (crc)), &crc, sizeof (crc)); in dp_got_full_msg()
529 uint16_t crc; in dp_get_msglen() local
536 if (dp_msgp->crc == crc) { in dp_get_msglen()
1369 dp_msgp->crc = dp_calc_crc16(pkt->msg_buf + in rmc_comm_dp_msend()
1383 dp_msgp->crc = dp_msgp->crc/2; in rmc_comm_dp_msend()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dsyncstat.c183 st.ipack, st.opack, st.underrun, st.overrun, st.abort, st.crc, in main()
210 st.crc = nst.crc - st.crc; in sample()
222 st.opack, st.underrun, st.overrun, st.abort, st.crc, iutil, outil); in sample()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/
H A Dcdu_def.h24 static u8 calc_crc8(u32 data, u8 crc) in calc_crc8() argument
40 C[i] = crc & 1; in calc_crc8()
41 crc = crc >> 1; in calc_crc8()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_init.c267 uint32_t crc; in smb_drv_ioctl() local
289 crc = ioc_hdr.crc; in smb_drv_ioctl()
290 ioc_hdr.crc = 0; in smb_drv_ioctl()
291 if (smb_crc_gen((uint8_t *)&ioc_hdr, sizeof (ioc_hdr)) != crc) in smb_drv_ioctl()
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/
H A Dhermon.c1202 uint32_t crc = 0xFFFF; in cnx_crc16() local
1218 if (crc & 0x8000) { in cnx_crc16()
1219 crc = (((crc << 1) | in cnx_crc16()
1222 crc = ((crc << 1) | (word >> 31)) & 0xFFFF; in cnx_crc16()
1229 if (crc & 0x8000) { in cnx_crc16()
1230 crc = ((crc << 1) ^ poly) & 0xFFFF; in cnx_crc16()
1232 crc = (crc << 1) & 0xFFFF; in cnx_crc16()
1236 crc = crc ^ 0xFFFF; in cnx_crc16()
1244 uint16_t crc; in cnx_local_set_guid_crc_img() local
1251 ntohs(crc)); in cnx_local_set_guid_crc_img()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/common/
H A Dud_lib.c998 uint16_t crc; in ud_verify_tag() local
1070 crc, addr); in ud_verify_tag()
1098 uint16_t crc; in ud_make_tag() local
1168 uint16_t crc = 0; in ud_crc() local
1171 crc = ud_crc_table[(crc >> 8 ^ *addr++) & 0xff] ^ (crc<<8); in ud_crc()
1174 return (crc); in ud_crc()
1196 uint16_t crc; in UdfTxName() local
1200 crc = DOT; in UdfTxName()
1202 crc += DOT; in UdfTxName()
1212 crc = 0; in UdfTxName()
[all …]
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_subr.c921 uint16_t crc; in ud_make_tag() local
936 tag->tag_crc = SWAP_16(crc); in ud_make_tag()
1183 uint16_t crc; in ud_verify_tag_and_desc() local
1337 uint16_t crc = 0; in ud_crc() local
1340 crc = ud_crc_table[(crc >> 8 ^ *addr++) & 0xff] ^ (crc<<8); in ud_crc()
1343 return (crc); in ud_crc()
1678 uint16_t w2_char, crc; in ud_uncompress() local
1691 crc = 0; in ud_uncompress()
1732 crc += w2_char; in ud_uncompress()
1809 crc = ud_crc(in_str, in_len); in ud_uncompress()
[all …]
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_wep.c230 uint32_t crc; in wep_encrypt() local
250 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header, in wep_encrypt()
261 *(uint32_t *)crcbuf = LE_32(~crc); in wep_encrypt()
277 uint32_t crc; in wep_decrypt() local
304 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header, in wep_decrypt()
315 return (crc == ~LE_32(*(uint32_t *)crcbuf)); in wep_decrypt()
/illumos-gate/usr/src/cmd/fm/scripts/
H A Dbuildcode.pl178 $csum = crc($csum, $i);
203 $csum = crc($csum, oct('0b' . $1));
296 sub crc { subroutine
H A Dbustcode.pl128 $csum = crc($csum, $i);
208 $csum = crc($csum, oct('0b' . $1));
321 sub crc { subroutine
/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe_fc.c388 uint32_t crc; in fcoe_fill_frame_tailers() local
394 CRC32(crc, frm->frm_fc_frame, frm->frm_fc_frame_size, in fcoe_fill_frame_tailers()
396 FRM2FMI(frm)->fmi_fft->fft_crc[0] = 0xFF & (~crc); in fcoe_fill_frame_tailers()
397 FRM2FMI(frm)->fmi_fft->fft_crc[1] = 0xFF & (~crc >> 8); in fcoe_fill_frame_tailers()
398 FRM2FMI(frm)->fmi_fft->fft_crc[2] = 0xFF & (~crc >> 16); in fcoe_fill_frame_tailers()
399 FRM2FMI(frm)->fmi_fft->fft_crc[3] = 0xFF & (~crc >> 24); in fcoe_fill_frame_tailers()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/hsi/mcp/
H A Dnvm_map.h68 u32_t crc; /* 32-bit CRC */ member
199 u32_t crc; member
215 u32_t crc; /* 0x44c */ member
227 u32_t crc; /* 0x53c */ member
274 u32_t crc; member
291 u32_t crc; member

123456