Searched refs:crc32 (Results 51 - 75 of 94) sorted by relevance

1234

/freebsd-11-stable/sys/dev/liquidio/base/
H A Dlio_console.c879 crc32_result = crc32(data, sizeof(struct lio_firmware_file_header) -
881 if (crc32_result != be32toh(h->crc32)) {
883 crc32_result, be32toh(h->crc32));
/freebsd-11-stable/sys/contrib/zlib/
H A Dinflate.c448 /* check function to use adler32() for zlib or crc32() for gzip */
451 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
462 check = crc32(check, hbuf, 2); \
471 check = crc32(check, hbuf, 4); \
667 state->check = crc32(0L, Z_NULL, 0);
769 state->check = crc32(state->check, next, copy);
790 state->check = crc32(state->check, next, copy);
811 state->check = crc32(state->check, next, copy);
833 strm->adler = state->check = crc32(0L, Z_NULL, 0);
H A Dcrc32.c0 /* crc32.c -- compute the CRC-32 of a data stream
19 one thread to use crc32().
21 DYNAMIC_CRC_TABLE and MAKECRCH can be #defined to write out crc32.h.
139 /* write out CRC tables to crc32.h */
143 out = fopen("crc32.h", "w");
145 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
146 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
182 #include "crc32.h"
186 * This function can be used by asm versions of crc32()
237 unsigned long ZEXPORT crc32(cr function
[all...]
H A Dzconf.h38 # define crc32 z_crc32 macro
H A Ddeflate.c494 s->wrap == 2 ? crc32(0L, Z_NULL, 0) :
758 strm->adler = crc32(strm->adler, s->pending_buf + (beg), \
851 strm->adler = crc32(0L, Z_NULL, 0);
894 strm->adler = crc32(strm->adler, s->pending_buf,
981 strm->adler = crc32(0L, Z_NULL, 0);
1182 strm->adler = crc32(strm->adler, buf, len);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dopensolaris_crc32.c6 /* crc32.c -- compute the CRC-32 of a data stream
24 one thread to use crc32().
162 /* write out CRC tables to crc32.h */
166 out = fopen("crc32.h", "w");
168 fprintf(out, "/* crc32.h -- tables for rapid CRC calculation\n");
169 fprintf(out, " * Generated automatically by crc32.c\n */\n\n");
204 #include "crc32.h"
208 * This function can be used by asm versions of crc32()
224 unsigned long ZEXPORT crc32(crc, buf, len) function
H A Dzlib.h511 gzip stream is being written, strm->adler is a crc32 instead of an adler32.
719 recommended that a check value such as an adler32 or a crc32 be applied to
728 a crc32 instead of an adler32.
1287 ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
1295 uLong crc = crc32(0L, Z_NULL, 0);
1298 crc = crc32(crc, buffer, length);
/freebsd-11-stable/sys/sys/
H A Dlibkern.h177 crc32(const void *buf, size_t size) function
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_zip.c90 uint32_t crc32; member in struct:zip_entry
298 #define CRC32(c, b) (crc32(c ^ 0xffffffffUL, &b, 1) ^ 0xffffffffUL)
400 return crc32(crc, buff, (unsigned int)len);
974 zip_entry->crc32 = archive_le32dec(p + 14);
1125 if (zip_entry->crc32 == 0) {
1126 zip_entry->crc32 = zip_entry_central_dir.crc32;
1128 && zip_entry->crc32 != zip_entry_central_dir.crc32) {
1403 zip->entry->crc32
[all...]
H A Darchive_write_set_format_7zip.c166 uint32_t crc32; member in struct:file
509 zip->entry_crc32 = crc32(zip->entry_crc32, p, (unsigned)bytes);
567 zip->precode_crc32 = crc32(zip->precode_crc32, buff,
583 zip->encoded_crc32 = crc32(zip->encoded_crc32,
596 zip->encoded_crc32 = crc32(zip->encoded_crc32,
618 zip->entry_crc32 = crc32(zip->entry_crc32, buff, (unsigned)bytes);
644 zip->cur_file->crc32 = zip->entry_crc32;
842 archive_le32enc(&wb[8], crc32(0, &wb[12], 20));/* Start Header CRC */
941 archive_le32enc(crc, file->crc32);
H A Darchive_read_support_format_rar.c35 #include <zlib.h> /* crc32 */
914 crc32_val = crc32(0, (const unsigned char *)p + 2, (unsigned)skip - 2);
969 crc32_val = crc32(crc32_val, (const unsigned char *)p, to_read);
1304 crc32_val = crc32(0, (const unsigned char *)p + 2, 7 - 2);
1338 crc32_val = crc32(crc32_val, h, (unsigned)(header_size - 7));
1882 rar->crc_calculated = crc32(rar->crc_calculated, *buff,
1916 rar->crc_calculated = crc32(rar->crc_calculated, *buff,
1950 rar->crc_calculated = crc32(rar->crc_calculated, *buff,
2084 rar->crc_calculated = crc32(rar->crc_calculated, *buff, (unsigned)*size);
H A Darchive_read_support_filter_gzip.c349 state->crc = crc32(0L, NULL, 0);
/freebsd-11-stable/contrib/gdb/gdb/
H A Dsymfile.c987 unsigned long crc32;
1007 crc32 = bfd_get_32 (objfile->obfd, (bfd_byte *) (contents + crc_offset));
1009 *crc32_out = crc32;
1048 unsigned long crc32;
1051 basename = get_debug_link_info (objfile, &crc32);
1081 if (separate_debug_file_exists (debugfile, crc32))
1094 if (separate_debug_file_exists (debugfile, crc32))
1107 if (separate_debug_file_exists (debugfile, crc32))
1995 unsigned long crc32;
986 unsigned long crc32; local
1047 unsigned long crc32; local
1991 unsigned long crc32; local
/freebsd-11-stable/tools/tools/net80211/w00t/redir/
H A Dredir.c262 uLong crc = crc32(0L, Z_NULL, 0);
308 crc = crc32(crc, ptr, len);
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/
H A Dwesside.c648 crc = crc32(0L, Z_NULL, 0);
649 crc = crc32(crc, body, dlen);
815 crc = crc32(0L, Z_NULL, 0);
816 crc = crc32(crc, inet_clear, dlen);
1289 crc = crc32(0L, Z_NULL, 0);
1290 crc = crc32(crc, &packet[6], dlen);
1723 crc = crc32(0L, Z_NULL, 0);
1724 crc = crc32(crc, body, fragsize);
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_read_format_rar5.c110 computed_crc = crc32(0, buf, fsize);
338 /* To be extra pedantic, let's also check crc32 of the poem. */
339 assertEqualInt(crc32(0, buf, proper_size), 0x7E5EC49E);
362 assertEqualInt(crc32(0, buf, proper_size), 0x886F91EB);
843 computed_crc = crc32(computed_crc, buf, bytes_read);
/freebsd-11-stable/stand/libsa/
H A DMakefile97 SRCS+= adler32.c crc32.c
/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/COFF/
H A DCOFFObjcopy.cpp49 uint32_t CRC32 = llvm::crc32(arrayRefFromStringRef(LinkTarget->getBuffer()));
/freebsd-11-stable/stand/common/
H A Dpart.c42 #include <crc32.h>
168 if (crc32(hdr, sz) != crc) {
216 crc32(tbl, hdr->hdr_entries * hdr->hdr_entsz)) {
/freebsd-11-stable/sys/geom/part/
H A Dg_part_gpt.c441 if (crc32(buf, sz) != crc)
536 if (crc32(buf, tblsz) != hdr->hdr_crc_table) {
1188 crc = crc32(buf + pp->sectorsize,
1197 crc = crc32(buf, table->hdr->hdr_size);
1219 crc = crc32(buf, table->hdr->hdr_size);
H A Dg_part_bsd64.c61 u_int32_t d_crc; /* crc32() d_magic through last part */
518 if (crc32(&dlp->d_magic, offsetof(struct disklabel64,
660 le32enc(&dlp->d_crc, crc32(&dlp->d_magic, v));
/freebsd-11-stable/sys/fs/nandfs/
H A Dnandfs_vfsops.c207 comp_crc = crc32((uint8_t *)fsdata, fsdata->f_bytes);
231 comp_crc = crc32((uint8_t *)super, fsdata->f_sbbytes);
248 comp_crc = crc32((uint8_t *)super, fsdata->f_sbbytes);
/freebsd-11-stable/sys/geom/raid/
H A Dmd_ddf.c1082 if (crc32(ahdr, ss) != val) {
1123 crc32(meta->hdr, ss) != val ||
1282 SET32(meta, hdr->CRC, crc32(meta->hdr, ss));
1298 SET32(meta, cdr->CRC, crc32(meta->cdr, size));
1306 SET32(meta, pdr->CRC, crc32(meta->pdr, size));
1314 SET32(meta, vdr->CRC, crc32(meta->vdr, size));
1325 SET32D(meta, vdc->CRC, crc32(vdc, size));
1334 SET32(meta, pdd->CRC, crc32(meta->pdd, size));
1343 SET32(meta, bbm->CRC, crc32(meta->bbm, size));
/freebsd-11-stable/sys/dev/ioat/
H A Dioat_internal.h478 struct ioat_crc32_hw_descriptor crc32; member in union:ioat_softc::ioat_hw_descriptor
/freebsd-11-stable/usr.bin/gzip/
H A Dgzip.c656 crc = crc32(0L, Z_NULL, 0);
681 crc = crc32(crc, (const Bytef *)inbufp, (unsigned)in_size);
864 crc = crc32(0L, Z_NULL, 0);
1001 crc = crc32(crc, (const Bytef *)outbufp, (unsigned)wr);

Completed in 188 milliseconds

1234