HomeSort by relevance Sort by last modified time
    Searched refs:crc (Results 1 - 25 of 96) sorted by null

1 2 3 4

  /onnv/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/crc32/
crc32.c 9 * lib/crypto/crc32/crc.c
31 * CRC-32/AUTODIN-II routines
36 #include <crc-32.h>
47 unsigned int crc; local
49 CRC32(crc, in, in_length, 0, crc_table);
51 *cksum = crc;
  /onnv/onnv-gate/usr/src/uts/common/io/nxge/
nxge_fflp_hash.c 50 /* CRC-CCITT Polynomial */
56 /* The four CRC-CCITT tables. */
64 #define COMPUTE_H1_BYTE(crc, data) \
65 (crc = (crc<<8)^h1table[0][((crc >> 24) ^data) & 0xff])
90 * reference crc-ccitt implementation
96 uint16_t mcrc, crc = 0, bits = 0; local
100 crc = ((crc ^ mcrc) & 0x8000)
115 uint32_t index, bit, byte, crc; local
140 uint16_t crc; local
166 uint32_t crc; local
187 uint16_t crc; local
212 uint32_t w, crc; local
281 uint32_t crc, bit, byte, index; local
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/os/
sctp_crc32.c 41 /* The four CRC tables. */
76 uint32_t i, j, k, crc; local
79 crc = reflect_32(i);
82 crc = (crc & 0x80000000) ?
83 (crc << 1) ^ SCTP_POLY : crc << 1;
86 crctab[3 - k][i] = flip32(reflect_32(crc));
88 crctab[k][i] = reflect_32(crc);
97 uint32_t crc; local
114 uint32_t w, crc; local
    [all...]
  /onnv/onnv-gate/usr/src/common/lzma/
LzHash.h 18 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; \
36 /* #define HASH_ZIP_CALC hashValue = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */
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];
    [all...]
  /onnv/onnv-gate/usr/src/common/hdcrc/
hd_crc.h 76 mm_crc32_u8(uint32_t crc, uint8_t *data)
78 mm_crc32_u8(uint32_t crc, uint8_t *data)
84 : "=S" (crc)
85 : "0" (crc), "c" (*data));
87 return (crc);
95 mm_crc32_u64(uint32_t crc, uint64_t *data)
97 mm_crc32_u64(uint32_t crc, uint64_t *data)
103 : "=S" (crc)
104 : "0" (crc), "c" (*data));
106 return (crc);
    [all...]
  /onnv/onnv-gate/usr/src/cmd/iscsi/iscsitgtd/
iscsi_ffp.h 43 uint32_t crc);
iscsi_crc.c 26 * This file contains CRC-32C code use to verify
35 * This is the CRC-32C table
120 * reflected crc using table.
126 uint32_t crc = 0xffffffff, result; local
139 return (HW_CRC32(buffer, length, crc));
142 crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
143 (crc >> 8);
145 result = crc ^ 0xffffffff;
161 * byte at at time, calculates reflected crc using table
    [all...]
  /onnv/onnv-gate/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
gmem.esc 107 engine serd.memory.generic-sparc.membuf-crc@CHIP, N=120, T=30min;
108 engine serd.memory.generic-sparc.membuf-crc@MEM_BUFF, N=120, T=30min;
109 engine serd.memory.generic-sparc.membuf-crc@MEM_CTRL, N=120, T=30min;
113 engine=serd.memory.generic-sparc.membuf-crc@CHIP;
115 engine=serd.memory.generic-sparc.membuf-crc@MEM_BUFF;
117 engine=serd.memory.generic-sparc.membuf-crc@MEM_CTRL;
120 * membuf-crc errors will fault the FRU of the detector & the FRU of the sender
124 event ereport.cpu.generic-sparc.membuf-crc@CHIP { within(1s) };
125 event ereport.cpu.generic-sparc.membuf-crc@MEM_BUFF { within(1s) };
126 event ereport.cpu.generic-sparc.membuf-crc@MEM_CTRL { within(1s) }
    [all...]
zambezi.esc 230 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
330 * We want to count CRC errors on each connection between an interconnect
339 event ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip0@interconnect;
340 event ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip1@interconnect;
341 event ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip2@interconnect;
342 event ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip3@interconnect;
345 ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip0@interconnect,
346 ereport.asic.ultraSPARC-T2plus.interconnect.lfu.crc-trip1@interconnect
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
iscsi_crc.c 26 * This file contains CRC-32C code use to verify
35 * This is the CRC-32C table
120 * reflected crc using table.
126 uint32_t crc = 0xffffffff, result; local
139 return (HW_CRC32(buffer, length, crc));
144 crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
145 (crc >> 8);
147 result = crc ^ 0xffffffff;
163 * byte at at time, calculates reflected crc using table
    [all...]
  /onnv/onnv-gate/usr/src/common/smbsrv/
smb_match.c 266 uint32_t crc = SMB_CRC_POLYNOMIAL; local
271 crc = (crc ^ (uint32_t)*p) + (crc << 12);
273 if (crc == 0 || crc == 0xFFFFFFFF)
274 crc = SMB_CRC_POLYNOMIAL;
277 return (crc);
  /onnv/onnv-gate/usr/src/uts/common/zmod/
crc32.c 6 /* crc32.c -- compute the CRC-32 of a data stream
11 * CRC methods: exclusive-oring 32 bits of data at a time, and pre-computing
22 of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
59 /* Definitions for doing the crc four data bytes at a time. */
72 /* Local functions for crc concatenation */
86 Generate tables for a byte-wise 32-bit CRC calculation on the polynomial:
94 byte 0xb1 is the polynomial x^7+x^3+x+1), then the CRC is (q*x^32) mod p,
105 The first table is simply the CRC of all possible eight bit values. This is
107 combinations of CRC register values and incoming bytes. The remaining tables
108 allow for word-at-a-time CRC calculation for both big-endian and little
    [all...]
  /onnv/onnv-gate/usr/src/cmd/krb5/kadmin/gui/visualrt/sunsoft/jws/visual/rt/encoding/
UCEncoder.java 63 crc.update(a);
65 crc.update(b);
87 crc.value = 0;
97 tmp[0] = (byte)(crc.value >>> 8 & 0xff);
98 tmp[1] = (byte)(crc.value & 0xff);
174 crc = new CRC16();
189 private CRC16 crc; field in class:UCEncoder
UCDecoder.java 93 crc.update(high_byte);
97 crc.update(low_byte);
111 crc.value = 0;
139 int lineCRC = crc.value;
145 throw new IOException("UCDecoder: CRC check failed.");
210 crc = new CRC16();
225 CRC16 crc; field in class:UCDecoder
  /onnv/onnv-gate/usr/src/cmd/ssh/libssh/common/
deattack.c 33 * CRC attack detection has a worst-case behaviour that is O(N^2) over
82 u_int32_t crc; local
85 crc = 0;
87 crc_update(&crc, 1);
88 crc_update(&crc, 0);
92 crc_update(&crc, 1);
93 crc_update(&crc, 0);
95 crc_update(&crc, 0);
96 crc_update(&crc, 0);
99 return (crc == 0)
    [all...]
  /onnv/onnv-gate/usr/src/uts/sun4u/sys/
rmc_comm_lproto.h 78 uint16_t crc; /* CRC-16 Checksum of header. */ member in struct:dp_header
  /onnv/onnv-gate/usr/src/uts/common/io/chxge/com/
pm3393.c 48 /* Max frame size PM3393 can handle. Includes Ethernet header and CRC. */
453 u32 crc = (u32)~0; local
455 /* calculate crc one bit at a time */
457 crc ^= *b++;
459 if (crc & 0x1)
460 crc = (crc >> 1) ^ 0xedb88320;
462 crc = (crc >> 1);
467 crc = ((crc >> 4) & 0x0f0f0f0f) | ((crc << 4) & 0xf0f0f0f0)
    [all...]
  /onnv/onnv-gate/usr/src/uts/sun4u/io/
rmc_comm_dp.c 254 * CRC calculation routine.
260 uint16_t crc; local
262 crc = 0;
264 crc = (crc >> 8) ^ crctab16[(crc ^ *buf++) & 0xFF];
266 return (crc);
389 * Got a full header. Check header CRC and get the length of the packet
484 * Got a complete message, check CRC and pass it on to the upper layer (message
490 uint16_t crc; local
529 uint16_t crc; local
    [all...]
  /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/
syncstat.c 181 "crc isize osize\n");
183 st.ipack, st.opack, st.underrun, st.overrun, st.abort, st.crc,
210 st.crc = nst.crc - st.crc;
220 "crc iutil outil\n");
222 st.opack, st.underrun, st.overrun, st.abort, st.crc, iutil, outil);
  /onnv/onnv-gate/usr/src/uts/common/fs/smbsrv/
smb_init.c 200 uint32_t crc; local
208 crc = ioc_hdr.crc;
209 ioc_hdr.crc = 0;
210 if (smb_crc_gen((uint8_t *)&ioc_hdr, sizeof (ioc_hdr)) != crc)
  /onnv/onnv-gate/usr/src/uts/common/io/idm/
idm_impl.c 818 * This is the CRC-32C table
896 * reflected crc using table.
902 uint32_t crc = 0xffffffff, result; local
917 return (HW_CRC32(buffer, length, crc));
920 crc = idm_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
921 (crc >> 8);
923 result = crc ^ 0xffffffff;
939 * byte at at time, calculates reflected crc using table.
942 idm_crc32c_continued(void *address, unsigned long length, uint32_t crc)
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/net80211/
net80211_crypto_wep.c 230 uint32_t crc; local
249 /* calculate CRC over unencrypted data */
250 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
261 *(uint32_t *)crcbuf = LE_32(~crc);
277 uint32_t crc; local
303 /* calculate CRC over unencrypted data */
304 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
309 /* decrypt ICV and compare to CRC */
315 return (crc == ~LE_32(*(uint32_t *)crcbuf));
  /onnv/onnv-gate/usr/src/uts/common/sys/
crc32.h 35 * behind CRC is available on the web; we won't recapitulate it here.
39 * A CRC function is defined by two parameters: an initial value and a
41 * Given these values, the CRC of any bitstream is defined as follows:
43 * crc = CRC32_INITIAL;
45 * if (bit == (crc & 1))
46 * crc = (crc >> 1);
48 * crc = (crc >> 1) ^ CRC32_POLY;
54 * The most common values for the CRC parameters are
    [all...]
  /onnv/onnv-gate/usr/src/cmd/fs.d/udfs/fstyp/
ud_lib.c 1009 uint16_t crc; local
1062 * Do we want to do crc
1068 * Caliculate CRC for the descriptor
1070 crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
1073 * Verify CRC
1075 if (crc != SWAP_16(tag->tag_crc)) {
1078 gettext("CRC Does not verify"
1081 crc, addr);
1109 uint16_t crc; local
1118 * Calicualte and assign CRC, CRC_LE
1179 uint16_t crc = 0; local
1207 uint16_t crc; local
    [all...]
  /onnv/onnv-gate/usr/src/uts/common/io/fcoe/
fcoe_fc.c 379 * According to spec, fill FCOE frame tailer including CRC
385 uint32_t crc; local
389 * CRC is not big endian, can't use macro V2B
391 CRC32(crc, frm->frm_fc_frame, frm->frm_fc_frame_size,
393 FRM2FMI(frm)->fmi_fft->fft_crc[0] = 0xFF & (~crc);
394 FRM2FMI(frm)->fmi_fft->fft_crc[1] = 0xFF & (~crc >> 8);
395 FRM2FMI(frm)->fmi_fft->fft_crc[2] = 0xFF & (~crc >> 16);
396 FRM2FMI(frm)->fmi_fft->fft_crc[3] = 0xFF & (~crc >> 24);

Completed in 2419 milliseconds

1 2 3 4