| /src/sys/external/bsd/drm2/dist/drm/ | 
| drm_debugfs_crc.c | 48  * DOC: CRC ABI 50  * DRM device drivers can provide to userspace CRC information of each frame as
 51  * it reached a given hardware component (a CRC sampling "source").
 54  * file dri/0/crtc-N/crc/control in debugfs, with N being the index of the CRTC.
 59  * Once frame CRC generation is enabled, userspace can capture them by reading
 60  * the dri/0/crtc-N/crc/data file. Each line in that file contains the frame
 62  * containing the CRC data. Fields are separated by a single space and the number
 63  * of CRC fields is source-specific.
 65  * Note that though in some cases the CRC is computed in a specified way and on
 66  * the frame contents as supplied by userspace (eDP 1.3), in general the CRC
 130  struct drm_crtc_crc *crc = &crtc->crc;  local in function:crc_control_write
 201  struct drm_crtc_crc *crc = &crtc->crc;  local in function:crtc_crc_open
 264  struct drm_crtc_crc *crc = &crtc->crc;  local in function:crtc_crc_release
 291  struct drm_crtc_crc *crc = &crtc->crc;  local in function:crtc_crc_read
 350  struct drm_crtc_crc *crc = &crtc->crc;  local in function:crtc_crc_poll
 399  struct drm_crtc_crc *crc = &crtc->crc;  local in function:drm_crtc_add_crc_entry
 [all...]
 | 
| /src/sys/dev/nand/ | 
| nand_crc.c | 34 /* Implements CRC-16 as required by the ONFI 2.3 specification */ 47 	uint16_t crc = init;  local in function:nand_crc16
 52 		crc ^= data[i] << 8;
 55 			if ((crc & highbit) != 0x00)
 56 				crc = (crc << 1) ^ polynom;
 58 				crc <<= 1;
 62 	return crc;
 
 | 
| /src/distrib/utils/sparkcrc/ | 
| sparkcrc.c | 42  * Trivial progarm to generate a crc suitable for use in a sparkive file 87 	int crc = 0;  local in function:main
 97 			crc = (crc >> 8) ^ crclookup[(crc & 0xff) ^ buf[i]];
 100 	printf("%d\n", (int)crc);
 
 | 
| /src/usr.bin/cksum/ | 
| crc_extern.h | 35 int	 crc(int, uint32_t *, off_t *); 
 | 
| /src/common/dist/zlib/ | 
| crc32.c | 3 /* crc32.c -- compute the CRC-32 of a data stream 7  * This interleaved implementation of a CRC makes use of pipelined multiple
 9  * Kadatch and Jenkins (2010). See doc/crc-doc.1.0.pdf in this distribution.
 17   of the crc tables. Therefore, if you #define DYNAMIC_CRC_TABLE, you should
 35   A CRC of a message is computed on N braids of words in the message, where
 41   into a single CRC at the end. For this code, N must be in the range 1..6 and
 138  * Table of powers of x for combining CRC-32s, filled in by make_crc_table()
 144  * Tables for byte-wise and braided CRC-32 calculations, and a table of powers
 145  * of x for combining CRC-32s, all made by make_crc_table().
 150 /* CRC polynomial. *
 [all...]
 | 
| /src/sys/ufs/chfs/ | 
| ebh_media.h | 55 /* sizeof(crc) + sizeof(lid) */ 83  * @crc: CRC32 sum
 93  * Invalidated eraseblock header means that the @crc and @lid is set to 0.
 96 	le32 crc;  member in struct:chfs_nor_eb_hdr
 102  * @crc: CRC32 sum
 111 	le32 crc;  member in struct:chfs_nand_eb_hdr
 
 | 
| chfs_scan.c | 73  * chfs_scan_check_node_hdr - checks node magic and crc 80 	uint32_t crc, hdr_crc;  local in function:chfs_scan_check_node_hdr
 90 	crc = crc32(0, (uint8_t *)nhdr, CHFS_NODE_HDR_SIZE - 4);
 92 	if (crc != hdr_crc) {
 93 		dbg("bad crc\n");
 100 /* chfs_scan_check_vnode - check vnode crc and add it to vnode cache */
 110 	uint32_t crc;  local in function:chfs_scan_check_vnode
 113 	crc = crc32(0, (uint8_t *)vnode,
 116 	/* check node crc */
 117 	if (crc != le32toh(vnode->node_crc))
 282  uint32_t crc;  local in function:chfs_scan_check_dirent_node
 356  uint32_t crc, vno;  local in function:chfs_scan_check_data_node
 [all...]
 | 
| /src/sys/dev/i2c/ | 
| am2315.c | 78 	uint16_t crc = 0xffff;  local in function:am2315_crc 81 		crc ^= data[j];
 83 			if (crc & 0x01) {
 84 				crc >>= 1;
 85 				crc ^= 0xA001;
 87 				crc >>= 1;
 92 	return crc;
 193 	uint16_t crc, readcrc, model;  local in function:am2315_attach
 265 	buf[10], crc, readcrc))
 271 	crc = am2315_crc(buf, 4)
 361  uint16_t crc, readcrc;  local in function:am2315_refresh
 [all...]
 | 
| /src/sys/lib/libsa/ | 
| cread.c | 64 #define HEAD_CRC	0x02	/* bit 1 set: header CRC present */ 76 	unsigned long	crc;	/* crc32 of uncompressed data */  member in struct:sd
 98 crc32(uint32_t crc, const uint8_t *const buf, size_t len)
 102 	return crc;
 107 	crc = 0xffffffffU ^ crc;
 111 			carry = ((crc & 0x01) ? 1 : 0) ^ (c & 0x01);
 112 			crc >>= 1;
 115 				crc = (crc ^ ETHER_CRC_POLY_LE)
 384  uint32_t crc;  local in function:read
 [all...]
 | 
| /src/sys/fs/udf/ | 
| udf_osta.c | 147  * CRC 010041 187 	unsigned short crc=0;  local in function:udf_cksum
 190 		crc = crc_table[(crc>>8 ^ *s++) & 0xff] ^ (crc<<8);
 191 	return crc;
 198 	unsigned short crc=0;  local in function:udf_unicode_cksum
 204 		crc = crc_table[(crc>>8 ^ (*s>>8)) & 0xff] ^ (crc<<8)
 [all...]
 | 
| /src/usr.bin/mkubootimage/ | 
| crc32.c | 93 	uint32_t crc;  local in function:crc32v 96 	crc = ~0U;
 103 			crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
 106 	return crc ^ ~0U;
 
 | 
| /src/sys/lib/libkern/ | 
| crc32.c | 3 /* crc32.c -- compute the CRC-32 of a data stream 5  * Adapted from zlib's crc code.
 11  * CRC methods: exclusive-oring 32 bits of data at a time, and pre-computing
 24 /* Definitions for doing the crc four data bytes at a time. */
 29  * Tables of CRC-32s of all single-byte values, made by make_crc_table().
 42 uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len)
 49     c = (u4)crc;
 83 uint32_t crc32(uint32_t crc, const uint8_t *buf, size_t len)
 90     c = REV((u4)crc);
 
 | 
| crc16.h | 35 /* CRC table for standard ANSI CRC-16 with polynom 0x8005 */ 78 crc16(uint16_t crc, const uint8_t *data, size_t len)
 81 		crc = crc16_byte(crc, *data++);
 82 	return crc;
 
 | 
| /src/usr.sbin/mtree/ | 
| Makefile | 10 SRCS=	compare.c crc.c create.c excludes.c misc.c mtree.c spec.c specspec.c \ 
 | 
| /src/sys/net80211/ | 
| ieee80211_crypto_wep.c | 310 	uint32_t i, j, k, crc;  local in function:wep_encrypt 339 	crc = ~0;
 348 			crc = crc32_table[(crc ^ *pos) & 0xff] ^ (crc >> 8);
 370 	crc = ~crc;
 373 	icv[0] = crc;
 374 	icv[1] = crc >> 8;
 375 	icv[2] = crc >> 16
 395  uint32_t i, j, k, crc;  local in function:wep_decrypt
 [all...]
 | 
| /src/common/dist/zlib/examples/ | 
| gznorm.c | 104     unsigned long crc = 0;          // accumulated CRC of uncompressed data  local in function:gzip_normalize 142             // tracked, for the calculation of the total CRC.
 158                 // correctly compute the total CRC.
 386                     // CRC and the total uncompressed length.
 391                             // Update the total CRC.
 395                             crc = crc ? crc32_combine(crc, part, len2) : part;
 436     // Write the gzip trailer, which is the CRC and the uncompressed lengt
 [all...]
 | 
| gzjoin.c | 239     /* skip header crc if present */ 265 local void gzinit(unsigned long *crc, unsigned long *tot, FILE *out)
 268     *crc = crc32(0L, Z_NULL, 0);
 275    the output, and the gzip trailer is written.  crc and tot maintains the
 276    crc and length (modulo 2^32) of the output for the trailer.  The resulting
 278    of gzcopy() to write the gzip header and to initialize crc and tot. */
 279 local void gzcopy(char *name, int clr, unsigned long *crc, unsigned long *tot,
 410     /* update crc and tot */
 411     *crc = crc32_combine(*crc, bget4(in), len)
 429  unsigned long crc, tot; \/* running crc and total uncompressed length *\/  local in function:main
 [all...]
 | 
| /src/sys/dev/ieee1394/ | 
| iec13213.h | 144 		 crc:16;  member in struct:csrhdr 146 	uint32_t crc:16,
 152 	BIT16x2(crc_len, crc);
 156 	BIT16x2(crc_len, crc);
 245 		BIT16x2(crc_len, crc);
 
 | 
| fwcrom.c | 218 	uint32_t data, sum, crc = 0;  local in function:crom_crc 223 			sum = ((crc >> 12) ^ (data >> shift)) & 0xf;
 224 			crc = (crc << 4) ^ (sum << 12) ^ (sum << 5) ^ sum;
 226 		crc &= 0xffff;
 228 	return (uint16_t)crc;
 291 	uint16_t crc;  local in function:crom_desc
 311 		crc = crom_crc((uint32_t *)dir->entry, dir->crc_len);
 312 		l += snprintf(buf + l, len - l, "len=%d crc=0x%04x ",
 313 		    dir->crc_len, crc);
 [all...]
 | 
| /src/sys/dev/onewire/ | 
| ds28e17iic.c | 73 /* The chip uses a 16 bit CRC on the 1-Wire bus when doing any I2C transaction. 74  * But it has some strangness to it..  the CRC can be made up from a number of
 98 	uint16_t crc = 0;  local in function:ds28e17iic_crc16
 100 	crc ^= cmd;
 101 	crc = ds28e17iic_crc16_bit(crc);
 109 		crc ^= i2c_addr;
 110 		crc = ds28e17iic_crc16_bit(crc);
 113 	crc ^= len
 [all...]
 | 
| /src/sys/dev/std/ | 
| ieee1212.c | 106 		DPRINTF(("CRC len less than info len. CRC len: %d, " 262 	u_int16_t crc, romcrc, crc1;  local in function:p1212_parse
 278 	/* Calculate both a good and known bad crc. */
 280 	/* CRC's are calculated from everything except the first quad. */
 282 	crc = p1212_calc_crc(0, &t[1], P1212_ROMFMT_GET_CRCLEN((ntohl(t[0]))),
 286 	if (crc != romcrc) {
 290 			DPRINTF(("Invalid ROM: CRC: 0x%04hx, Calculated "
 291 			    "CRC: 0x%04hx, CRC1: 0x%04hx\n",
 292 			    (unsigned short)romcrc, (unsigned short)crc,
 355  u_int16_t crclen, crc, crc1, romcrc;  local in function:p1212_parse_directory
 716  u_int16_t crclen, crc, crc1, romcrc;  local in function:p1212_parse_leaf
 750  u_int16_t crclen, crc, crc1, romcrc;  local in function:p1212_parse_textdir
 807  u_int16_t crclen, crc, crc1, romcrc;  local in function:p1212_parse_text_desc
 [all...]
 | 
| /src/sys/opencrypto/ | 
| deflate.c | 199  * and appending the crc and uncompressed length. 202  * a flag indication final buffer.  The crc is maintained
 207  * Ditto for uncompress - CRC is extracted from the final packed
 208  * and compared against CRC of uncompressed data.
 236 	u_int32_t crc;  local in function:gzip_global
 253 		crc = crc32(0, data, size);
 254 		DPRINTF("size %u, crc 0x%x\n", size, crc);
 294 		crc = crc32(0, NULL, 0);	/* get initial crc value *
 [all...]
 | 
| /src/games/adventure/ | 
| Makefile | 5 SRCS=	main.c init.c done.c save.c subr.c vocab.c wizard.c io.c data.c crc.c 
 | 
| /src/sys/arch/evbarm/stand/gzboot/ | 
| gzboot.c | 84 #define	HEAD_CRC	0x02	/* bit 1 set: header CRC present */ 98 	uint32_t	crc;	/* crc32 of uncompressed data */  member in struct:state
 194 	unsigned char *start = buf;	/* start for CRC computation */
 217 			/* Check CRC and original size */
 218 			s->crc = crc32(s->crc, start, (unsigned int)
 222 			if (get_u32(s) != s->crc) {
 223 				printf("FATAL: CRC checksum mismatch\n");
 241 	s->crc = crc32(s->crc, start
 [all...]
 | 
| /src/sys/arch/atari/stand/tostools/libtos/ | 
| cread.c | 70 #define HEAD_CRC	0x02	/* bit 1 set: header CRC present */ 82 	unsigned long	crc;	/* crc32 of uncompressed data */  member in struct:sd
 214 	if ((flags & HEAD_CRC) != 0) {  /* skip the header crc */
 279 	unsigned char *start = buf; /* starting point for crc computation */
 335 			/* Check CRC and original size */
 336 			s->crc = crc32(s->crc, start, (unsigned int)
 340 			if (getLong(s) != s->crc ||
 349 					s->crc = crc32(0L, Z_NULL, 0);
 357 	s->crc = crc32(s->crc, start
 [all...]
 |