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

1 2 3

  /netvirt/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;
  /netvirt/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...]
  /netvirt/usr/src/uts/common/inet/
sctp_crc32.c 44 /* The four CRC tables. */
79 uint32_t i, j, k, crc; local
82 crc = reflect_32(i);
85 crc = (crc & 0x80000000) ?
86 (crc << 1) ^ SCTP_POLY : crc << 1;
89 crctab[3 - k][i] = flip32(reflect_32(crc));
91 crctab[k][i] = reflect_32(crc);
100 uint32_t crc; local
117 uint32_t w, crc; local
    [all...]
  /netvirt/usr/src/cmd/iscsi/iscsitgtd/
iscsi_crc.c 26 * This file contains CRC-32C code use to verify
35 * This is the CRC-32C table
113 * reflected crc using table.
119 uint32_t crc = 0xffffffff, result; local
125 crc = iscsi_crc32c_table[(crc ^ *buffer++) & 0xFFL] ^
126 (crc >> 8);
128 result = crc ^ 0xffffffff;
144 * byte at at time, calculates reflected crc using table.
147 iscsi_crc32c_continued(void *address, unsigned long length, uint32_t crc)
    [all...]
  /netvirt/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...]
  /netvirt/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
  /netvirt/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...]
  /netvirt/usr/src/uts/common/sys/scsi/generic/
smp_frames.h 92 struct smp_crc crc; member in struct:smp_report_general_req
113 struct smp_crc crc; member in struct:smp_report_general_rsp
  /netvirt/usr/src/uts/common/gssapi/mechs/krb5/crypto/hash_provider/
hash_crc32.c 30 #include <crc-32.h>
  /netvirt/usr/src/uts/sun4u/sys/
rmc_comm_lproto.h 78 uint16_t crc; /* CRC-16 Checksum of header. */ member in struct:dp_header
  /netvirt/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...]
  /netvirt/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...]
  /netvirt/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);
  /netvirt/usr/src/uts/common/io/net80211/
net80211_crypto_wep.c 236 uint32_t crc; local
255 /* calculate CRC over unencrypted data */
256 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
267 *(uint32_t *)crcbuf = LE_32(~crc);
283 uint32_t crc; local
309 /* calculate CRC over unencrypted data */
310 CRC32(crc, mp->b_rptr + hdrlen + wep.ic_header,
315 /* decrypt ICV and compare to CRC */
321 return (crc == ~LE_32(*(uint32_t *)crcbuf));
  /netvirt/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
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...]
  /netvirt/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...]
  /netvirt/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...]
  /netvirt/usr/src/cmd/fm/scripts/
buildcode.pl 178 $csum = crc($csum, $i);
203 $csum = crc($csum, oct('0b' . $1));
207 printf("CRC: 0x%x\n", $csum) if $opt_c;
237 # table used by crc()
294 # crc -- calculate a CRC using passed-in starting value & additional data
296 sub crc { subroutine
300 printf("crc(0x%08x, 0x%x)\n", $cval, $val) if $opt_c;
bustcode.pl 128 $csum = crc($csum, $i);
208 $csum = crc($csum, oct('0b' . $1));
212 printf("CRC: 0x%x\n", $csum) if $opt_c;
262 # table used by crc()
319 # crc -- calculate a CRC using passed-in starting value & additional data
321 sub crc { subroutine
325 printf("crc(0x%08x, 0x%x)\n", $cval, $val) if $opt_c;
  /netvirt/usr/src/uts/common/fs/udfs/
udf_subr.c 924 uint16_t crc; local
932 crc = ud_crc(addr + 0x10, crc_len);
939 tag->tag_crc = SWAP_16(crc);
1119 * Next we verify the crc of the descriptor.
1186 uint16_t crc; local
1233 * crc of the descriptor.
1234 * Verifying the crc is normally sufficient to ensure the integrity
1249 crc = ud_crc(addr + 0x10, SWAP_16(tag->tag_crc_len));
1250 if (crc != SWAP_16(tag->tag_crc)) {
1251 cmn_err(CE_NOTE, "CRC mismatch TAG_ID 0x%x TAG_CRC 0x%x
1340 uint16_t crc = 0; local
1681 uint16_t w2_char, crc; local
    [all...]
  /netvirt/usr/src/uts/sun4v/io/
vdsk_common.c 131 * Return a 32-bit CRC of the contents of the buffer.
182 uint_t crc; local
197 * check CRC of the header; the size of the header should
200 crc = efi->efi_gpt_HeaderCRC32;
204 crc != LE_32(vd_efi_crc32((unsigned char *)efi,
206 VD_EFI_DEBUG("Bad EFI CRC: 0x%x != 0x%x\n",
207 crc, LE_32(vd_efi_crc32((unsigned char *)efi,
  /netvirt/usr/src/cmd/picl/plugins/sun4u/blade/fruaccess/
fru_access.c 1789 uint32_t crc; local
1847 uint32_t crc; local
2174 uint32_t crc; local
2287 uint32_t crc; local
2529 uint32_t crc; local
    [all...]
  /netvirt/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
fru_access.c 1858 uint32_t crc; local
1905 uint32_t crc; local
2276 uint32_t crc; local
2390 uint32_t crc; local
2625 uint32_t crc; local
    [all...]
  /netvirt/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
libfruaccess.c 2121 uint32_t crc; local
2167 uint32_t crc; local
2465 uint32_t crc; local
2584 uint32_t crc; local
2837 uint32_t crc; local
    [all...]

Completed in 7199 milliseconds

1 2 3