Home
last modified time | relevance | path

Searched refs:crc32 (Results 1 – 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/boot/common/
H A Dgpt.c80 hdr->hdr_crc_table = crc32(0, Z_NULL, 0); in gptupdate()
81 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table, in gptupdate()
83 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptupdate()
84 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size); in gptupdate()
204 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptread_hdr()
205 if (crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size) != crc) { in gptread_hdr()
271 hdr->hdr_crc_table = crc32(0, Z_NULL, 0); in gptbootconv()
272 hdr->hdr_crc_table = crc32(hdr->hdr_crc_table, table, in gptbootconv()
274 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gptbootconv()
275 hdr->hdr_crc_self = crc32(hdr->hdr_crc_self, hdr, hdr->hdr_size); in gptbootconv()
[all …]
H A Dpart.c190 hdr->hdr_crc_self = crc32(0, Z_NULL, 0); in gpt_checkhdr()
191 if (crc32(hdr->hdr_crc_self, (const Bytef *)hdr, sz) != crc) { in gpt_checkhdr()
239 crc32(0, tbl, hdr->hdr_entries * hdr->hdr_entsz)) { in gpt_checktbl()
/illumos-gate/usr/src/uts/common/os/
H A Dsctp_crc32.c127 sctp_crc32(uint32_t crc32, const uint8_t *buf, int len) in sctp_crc32() argument
136 sctp_crc_byte(&crc32, buf, rem); in sctp_crc32()
142 sctp_crc_word(&crc32, (const uint32_t *)buf, len / 4); in sctp_crc32()
147 sctp_crc_byte(&crc32, buf + len - rem, rem); in sctp_crc32()
149 return (crc32); in sctp_crc32()
H A Dip_cksum.c386 uint32_t crc32; in sctp_cksum() local
389 crc32 = 0xFFFFFFFF; in sctp_cksum()
391 crc32 = sctp_crc32(crc32, p, mp->b_wptr - p); in sctp_cksum()
393 crc32 = sctp_crc32(crc32, mp->b_rptr, MBLKL(mp)); in sctp_cksum()
397 crc32 = ~crc32; in sctp_cksum()
399 return (crc32); in sctp_cksum()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c254 nxge_crc32c(uint32_t crc32, const uint8_t *buf, int len) in nxge_crc32c() argument
263 nxge_crc32c_byte(&crc32, buf, rem); in nxge_crc32c()
268 nxge_crc32c_word(&crc32, (const uint32_t *) buf, len / 4); in nxge_crc32c()
272 nxge_crc32c_byte(&crc32, buf + len - rem, rem); in nxge_crc32c()
274 return (crc32); in nxge_crc32c()
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnxhwi.c342 u32_t crc32; in bnx_find_mchash_collision() local
344 crc32 = compute_crc32(mc_addr, ETHERNET_ADDRESS_SIZE); in bnx_find_mchash_collision()
346 tgt_bit_pos = ~crc32 & 0xff; in bnx_find_mchash_collision()
349 crc32 = compute_crc32(mc_table->addr_arr[idx].mc_addr, in bnx_find_mchash_collision()
356 cur_bit_pos = ~crc32 & 0xff; in bnx_find_mchash_collision()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_power.c117 …sage(pdev, VERBOSE, "init_nwuf_57710: idx[%d] crc_mask=0x%08x size=%d\n", idx, nwuf->crc32, val ); in init_nwuf_57710()
131 val = nwuf->crc32 ; in init_nwuf_57710()
618 nwuf->crc32 = calc_crc32( nwuf->pattern, j, 0xffffffff /*seed*/, 1 /*complement*/ ) ; in lm_add_nwuf()
628 printk("pattern[%u] CRC=0x%08x\n",idx, nwuf->crc32 ) ; in lm_add_nwuf()
668 if ERR_IF( 0xffffffff == nwuf->crc32 ) in lm_add_nwuf()
705 nwuf->crc32 = 0 ; in lm_del_nwuf()
/illumos-gate/usr/src/common/pnglite/
H A Dpnglite.c119 calc_crc = crc32(0L, Z_NULL, 0); in png_read_ihdr()
120 calc_crc = crc32(calc_crc, ihdr, 13+4); in png_read_ihdr()
329 calc_crc = crc32(0L, Z_NULL, 0); in png_read_idat()
330 calc_crc = crc32(calc_crc, (uint8_t *)"IDAT", 4); in png_read_idat()
331 calc_crc = crc32(calc_crc, (uint8_t *)png->readbuf, length); in png_read_idat()
/illumos-gate/usr/src/boot/libsa/
H A DMakefile.inc90 objs/crc32.o := CPPFLAGS += -I$(ZLIB)
91 pics/crc32.o := CPPFLAGS += -I$(ZLIB)
112 SRCS += $(ZLIB)/adler32.c $(ZLIB)/crc32.c \
114 OBJECTS += adler32.o crc32.o
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dgpt.h37 grub_uint32_t crc32; member
/illumos-gate/usr/src/contrib/zlib/
H A Dinflate.c434 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
445 check = crc32(check, hbuf, 2); \
454 check = crc32(check, hbuf, 4); \
648 state->check = crc32(0L, Z_NULL, 0); in inflate()
755 state->check = crc32(state->check, next, copy); in inflate()
777 state->check = crc32(state->check, next, copy); in inflate()
799 state->check = crc32(state->check, next, copy); in inflate()
822 strm->adler = state->check = crc32(0L, Z_NULL, 0); in inflate()
H A Ddeflate.c532 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
797 strm->adler = crc32(strm->adler, s->pending_buf + (beg), \
892 strm->adler = crc32(0L, Z_NULL, 0);
935 strm->adler = crc32(strm->adler, s->pending_buf,
1022 strm->adler = crc32(0L, Z_NULL, 0);
1220 strm->adler = crc32(strm->adler, buf, len);
H A DChangeLog44 - Correct comment in crc32.c
45 - Add use of the ARMv8 crc32 instructions when requested
46 - Use ARM crc32 instructions if the ARM architecture has them
65 - Fix crc32.c to compile local functions only if used
227 - Avoid library header include in crc32.c for Z_SOLO
440 - Match crc32() in crc32.c exactly to the prototype in zlib.h [Sherrill]
608 - Correct constant in crc32.c to UL [Leventhal]
743 - Move declarations of gf2 functions to right place in crc32.c [Oberhumer]
773 - Add casts in crc32.c to avoid warnings [Oberhumer]
916 - Replace size_t with ptrdiff_t in crc32.c, and check for correct size
[all …]
H A Dcrc32.c306 # error Need a 64-bit integer type in order to generate crc32.h. in make_crc_table()
1052 unsigned long ZEXPORT crc32(unsigned long crc, const unsigned char FAR *buf, in crc32() function
H A Dzconf.h61 # define crc32 z_crc32 macro
H A Dzlib.h1727 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
/illumos-gate/usr/src/uts/intel/kmech_krb5/
H A DMakefile94 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/crypto/crc32/%.c
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/
H A DMakefile.com81 CRYPTO_CRC32_UTS= crc32.o
371 objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c
375 objs/%.o pics/%.o: $(REL_PATH)/crypto/crc32/%.c
518 $(CRYPTO_CRC32:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/crc32/%.c)\
520 $(CRYPTO_CRC32_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c)\
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dratz.c1073 unsigned long ZEXPORT crc32(crc, buf, len) in crc32() function
2597 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
2608 check = crc32(check, hbuf, 2); \
2617 check = crc32(check, hbuf, 4); \
2816 state->check = crc32(0L, Z_NULL, 0);
2912 state->check = crc32(state->check, next, copy);
2933 state->check = crc32(state->check, next, copy);
2954 state->check = crc32(state->check, next, copy);
2976 strm->adler = state->check = crc32(0L, Z_NULL, 0);
3705 s->crc = crc32(0L, Z_NULL, 0);
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dzlib.h118 #define crc32 z_crc32 macro
/illumos-gate/usr/src/cmd/ssh/doc/
H A DLICENCE79 The 32-bit CRC implementation in crc32.c is due to Gary S. Brown.
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/
H A Dlm.h119 u32_t crc32 ; // crc32 on (pattern & mask) member
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_lm_main.c2293 u32_t crc32; in set_mc_hash_reg() local
2319 crc32 = compute_crc32( in set_mc_hash_reg()
2325 bit_pos = ~crc32 & 0xff; in set_mc_hash_reg()
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/hsi_repository/
H A Decore_hsi_common.h1640 __le32 crc32 /* crc16 result */; member
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_hsi_common.h1640 __le32 crc32 /* crc16 result */; member

12