Searched refs:CRC (Results 1 - 200 of 817) sorted by relevance

12345

/linux-4.4.14/drivers/crypto/
H A Dbfin_crc.h2 * bfin_crc.h - interface to Blackfin CRC controllers
21 /* CRC to compare with that of input buffer */
28 /* Value to program the 32b CRC Polynomial */
31 /* CRC calculated from the input data */
36 /* CRC mirror flags */
96 #define MODE_DMACPY_CRC 1 /* MTM CRC compute and compare */
98 #define MODE_CALC_CRC 3 /* MSM CRC compute and compare */
112 #define RSLTMIRR 0x00100000 /* CRC result registers are mirrored. */
113 #define RSLTMIRR_OFFSET 20 /* Mirror CRC result offset. */
114 #define POLYMIRR 0x00200000 /* CRC poly register is mirrored. */
115 #define POLYMIRR_OFFSET 21 /* Mirror CRC poly offset. */
116 #define CMPMIRR 0x00400000 /* CRC compare register is mirrored. */
117 #define CMPMIRR_OFFSET 22 /* Mirror CRC compare offset. */
H A Dbfin_crc.c4 * Support Blackfin CRC HW acceleration.
121 /* setup CRC interrupts */ bfin_crypto_crc_init_hw()
388 /* set CRC data count before start DMA */ bfin_crypto_crc_handle_queue()
391 /* setup and enable CRC DMA */ bfin_crypto_crc_handle_queue()
394 /* finally kick off CRC operation */ bfin_crypto_crc_handle_queue()
598 dev_err(&pdev->dev, "Cannot map CRC IO\n"); bfin_crypto_crc_probe()
604 dev_err(&pdev->dev, "No CRC DCNTEXP IRQ specified\n"); bfin_crypto_crc_probe()
617 dev_err(&pdev->dev, "No CRC DMA channel specified\n"); bfin_crypto_crc_probe()
624 dev_err(&pdev->dev, "Unable to attach Blackfin CRC DMA channel\n"); bfin_crypto_crc_probe()
720 pr_info("Blackfin hardware CRC crypto driver\n"); bfin_crypto_crc_mod_init()
746 MODULE_DESCRIPTION("Blackfin CRC hardware crypto driver");
/linux-4.4.14/include/linux/
H A Dcrc-itu-t.h2 * crc-itu-t.h - CRC ITU-T V.41 routine
4 * Implements the standard CRC ITU-T V.41:
H A Dcrc16.h2 * crc16.h - CRC-16 routine
4 * Implements the standard CRC-16:
H A Dcrc8.h26 * if a CRC is inverted before transmission. The CRC computed over the
46 * regular bit order (lsb first). Polynomials in CRC algorithms are typically
64 * reverse bit order (msb first). Polynomials in CRC algorithms are typically
88 * discontiguous blocks of data. When generating the CRC the
95 * "A Painless Guide to CRC Error Detection Algorithms", ver 3, Aug 1993
H A Dds17287rtc.h29 #define DS_B1_CRC 0x47 /* CRC byte */
H A Dexport.h43 /* Mark the CRC weak since genksyms apparently decides not to
H A Dhdlcdrv.h21 /* maximum packet length, excluding CRC */
/linux-4.4.14/lib/
H A Dcrc32defs.h2 * There are multiple 16-bit CRC polynomials in common use, but this is
3 * *the* standard CRC-32 polynomial, first popularized by Ethernet.
57 * Little-endian CRC computation. Used with serial bit streams sent
58 * lsbit-first. Be sure to use cpu_to_le32() to append the computed CRC.
66 * Big-endian CRC computation. Used with serial bit streams sent
67 * msbit-first. Be sure to use cpu_to_be32() to append the computed CRC.
H A Dcrc-itu-t.c12 /** CRC table for the CRC ITU-T V.41 0x1021 (x^16 + x^12 + x^15 + 1) */
51 * crc_itu_t - Compute the CRC-ITU-T for the data buffer
53 * @crc: previous CRC value
57 * Returns the updated CRC value
67 MODULE_DESCRIPTION("CRC ITU-T V.41 calculations");
H A Dcrc-ccitt.c13 * This mysterious table is just the CRC of each possible byte. It can be
16 * Add the implicit x^16, and you have the standard CRC-CCITT.
55 * crc_ccitt - recompute the CRC for the data buffer
56 * @crc: previous CRC value
68 MODULE_DESCRIPTION("CRC-CCITT calculations");
H A Dcrc16.c12 /** CRC table for the CRC-16. The poly is 0x8005 (x^16 + x^15 + x^2 + 1) */
50 * crc16 - compute the CRC-16 for the data buffer
51 * @crc: previous CRC value
55 * Returns the updated CRC value.
H A Dcrc7.c14 * Table for CRC-7 (polynomial x^7 + x^3 + 1).
15 * This is a big-endian CRC (msbit is highest power of x),
H A Dcrc-t10dif.c68 MODULE_DESCRIPTION("T10 DIF CRC calculation");
H A Ddecompress_bunzip2.c99 /* The CRC values stored in the block header and calculated from the
172 /* Read in header signature and CRC, then validate signature. get_next_block()
173 (last block signature means CRC is for whole file, return now) */ get_next_block()
372 CRC), there is no danger of the overread causing an get_next_block()
553 /* Write next byte into output buffer, updating CRC */ read_bunzip()
599 /* If this block had a CRC error, force file level CRC error. */ read_bunzip()
720 /* Check CRC and release memory */ bunzip2()
/linux-4.4.14/drivers/net/wan/
H A Dsbni.h133 * CRC-32 stuff
136 /* CRC generator 0xEDB88320 */
137 /* CRC remainder 0x2144DF1C */
138 /* CRC initial value 0x00000000 */
H A Dhd64570.h169 #define ST_RX_CRC 0x04 /* CRC */
195 #define MD0_CRC_ENA 0x04 /* Enable CRC code calculation */
196 #define MD0_CRC_CCITT 0x02 /* CCITT CRC instead of CRC-16 */
214 #define CTL_UDRNC 0x20 /* Idle after CRC or FCS+flag transmission */
H A Dz85230.h53 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
54 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
79 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
109 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
111 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
147 #define CRCPS 0x80 /* CRC Preset I/O */
218 #define CRC_ERR 0x40 /* CRC/Framing Error */
H A Dhd64572.h202 2 - CRC
208 #define DST_CRC 0x04 /* CRC Error */
228 #define ST_RX_CRC 0x04 /* CRC */
249 #define CECNTL 0x170 /* CRC Counter L */
250 #define CECNTH 0x171 /* CRC Counter H */
251 #define CECCR 0x173 /* CRC Counter Ctl Reg */
H A Dwanxl.h74 #define BUFFER_LENGTH ALIGN32(HDLC_MAX_MRU + 4) /* 4 bytes for 32-bit CRC */
H A Dwanxlfw.S86 SCC_C_MASK = 0x34 // 32-bit CRC constant
87 SCC_C_PRES = 0x38 // 32-bit CRC preset
325 bsetl #26, %d3 // TX BD flag: Transmit CRC
367 movew #HDLC_MAX_MRU + 2, SCC_MFLR(%a1) // 2 bytes for CRC
377 movew #HDLC_MAX_MRU + 4, SCC_MFLR(%a1) // 4 bytes for CRC
387 movew #HDLC_MAX_MRU + 2, SCC_MFLR(%a1) // 2 bytes for CRC
397 movew #HDLC_MAX_MRU + 4, SCC_MFLR(%a1) // 4 bytes for CRC
405 movew #HDLC_MAX_MRU, SCC_MFLR(%a1) // 0 bytes for CRC
501 bclrl #2, %d2 // do not test for CRC errors
/linux-4.4.14/fs/xfs/libxfs/
H A Dxfs_cksum.h7 * Calculate the intermediate checksum for a buffer that has the CRC field
17 /* Calculate CRC up to the checksum. */ xfs_start_cksum()
23 /* Calculate the rest of the CRC. */ xfs_start_cksum()
H A Dxfs_dquot_buf.c286 * we don't calculate the CRC here as that is done when the dquot is flushed to
288 * buffer always has an up-to-date CRC value.
H A Dxfs_symlink_remote.c78 * CRC, location and bounds checking, the unpacking function checks the path
/linux-4.4.14/include/linux/fsl/bestcomm/
H A Dfec.h24 #define BCOM_FEC_TX_BD_TC 0x04000000ul /* transmit CRC */
25 #define BCOM_FEC_TX_BD_ABC 0x02000000ul /* append bad CRC */
32 #define BCOM_FEC_RX_BD_CR 0x00040000ul /* Rx CRC error */
/linux-4.4.14/arch/blackfin/include/asm/
H A Dbfin_sdh.h28 #define CMD_CRC_CHECK_D (1 << 11) /* CRC Check is disabled */
66 #define CMD_CRC_FAIL (1 << 0) /* CMD CRC Fail */
67 #define DAT_CRC_FAIL (1 << 1) /* Data CRC Fail */
90 #define CMD_CRC_FAIL_STAT (1 << 0) /* CMD CRC Fail Status */
91 #define DAT_CRC_FAIL_STAT (1 << 1) /* Data CRC Fail Status */
103 #define CMD_CRC_FAIL_MASK (1 << 0) /* CMD CRC Fail Mask */
104 #define DAT_CRC_FAIL_MASK (1 << 1) /* Data CRC Fail Mask */
/linux-4.4.14/drivers/iio/common/ms_sensors/
H A Dms_sensors_i2c.c137 * ms_sensors_crc_valid() - CRC check function
138 * @value: input and CRC compare value
141 * This function performs a x^8 + x^5 + x^4 + 1 polynomial CRC.
142 * The argument contains CRC value in LSB byte while the bytes 1 and 2
143 * are used for CRC computation.
145 * Return: 1 if CRC is valid, 0 otherwise.
178 * [ SNB3, CRC, SNB2, CRC, SNB1, CRC, SNB0, CRC]
180 * [ X, X, SNC1, SNC0, CRC, SNA1, SNA0, CRC]
413 * check the CRC and compute the temperature value.
454 * check the CRC and compute the temperature value.
492 * ms_sensors_tp_crc_valid() - CRC check function for
499 * Return: True if CRC is ok.
507 prom[0] &= 0x0FFF; /* Clear the CRC computation part */ ms_sensors_tp_crc_valid()
532 * This function will read prom coefficients and check CRC.
H A Dms_sensors_i2c.h36 * for CRC computation
/linux-4.4.14/fs/jffs2/
H A Dread.c53 jffs2_dbg(1, "Node read from %08x: node_crc %08x, calculated CRC %08x. dsize %x, csize %x, offset %x, buf %p\n", jffs2_read_dnode()
58 pr_warn("Node CRC %08x != calculated CRC %08x for node at %08x\n", jffs2_read_dnode()
85 Reading whole node and it's uncompressed - read directly to buffer provided, check CRC. jffs2_read_dnode()
86 Reading whole node and it's compressed - read into comprbuf, check CRC and decompress to buffer provided jffs2_read_dnode()
87 Reading partial node and it's uncompressed - read into readbuf, check CRC, and copy jffs2_read_dnode()
125 pr_warn("Data CRC %08x != calculated CRC %08x for node at %08x\n", jffs2_read_dnode()
130 jffs2_dbg(2, "Data CRC matches calculated CRC %08x\n", crc); jffs2_read_dnode()
H A Dreadinode.c25 * Check the data CRC of the node.
27 * Returns: 0 if the data CRC is correct;
61 dbg_readinode("check node at %#08x, data length %u, partial CRC %#08x, correct CRC %#08x, data starts at %#08x, start checking from %#08x - %u bytes.\n", check_node_data()
98 /* Continue calculating CRC */ check_node_data()
108 JFFS2_NOTICE("wrong data CRC in data node at 0x%08x: read %#08x, calculated %#08x.\n", check_node_data()
156 /* We only check the data CRC of unchecked nodes */ check_tn_node()
168 dbg_readinode("CRC error, mark it obsolete.\n"); check_tn_node()
209 * be discarded as long as the newer passes the CRC check. We don't
277 as long as the CRC is correct. Check the one we have already... */ jffs2_add_tn_to_tree()
297 dbg_readinode("new node bad CRC\n"); jffs2_add_tn_to_tree()
321 dbg_readinode("Good CRC on old node. Kill new\n"); jffs2_add_tn_to_tree()
326 dbg_readinode("Bad CRC on old overlapping node. Kill it\n"); jffs2_add_tn_to_tree()
501 dbg_readinode("node ver %d, 0x%x-0x%x failed CRC\n", jffs2_build_inode_fragtree()
598 JFFS2_NOTICE("header CRC failed on dirent node at %#08x: read %#08x, calculated %#08x\n", read_direntry()
711 JFFS2_NOTICE("node CRC failed on dnode at %#08x: read %#08x, calculated %#08x\n", read_dnode()
732 JFFS2_WARNING("inode node header CRC is corrupted at %#08x\n", ref_offset(ref)); read_dnode()
739 /* At this point we are supposed to check the data CRC read_dnode()
746 * data CRC checking until we have read all the inode read_dnode()
766 * header. So we don't mind to check the CRC of the read_dnode()
782 dbg_readinode("Calculates CRC (%#08x) for %d bytes, csize %d\n", tn->partial_crc, len, csize); read_dnode()
784 /* If we actually calculated the whole data CRC read_dnode()
787 JFFS2_NOTICE("wrong data CRC in data node at 0x%08x: read %#08x, calculated %#08x.\n", read_dnode()
795 * We checked the header CRC. If the node has no data, adjust read_dnode()
1045 JFFS2_NOTICE("Node header CRC failed at %#08x. {%04x,%04x,%08x,%08x}\n", jffs2_get_inode_nodes()
1215 JFFS2_ERROR("CRC failed for read_inode of inode %u at physical location 0x%x\n", jffs2_do_read_inode_internal()
H A Dscan.c337 JFFS2_WARNING("node CRC failed at %#08x, read=%#08x, calc=%#08x\n", jffs2_scan_xattr_node()
393 JFFS2_WARNING("node CRC failed at %#08x, read=%#08x, calc=%#08x\n", jffs2_scan_xref_node()
752 /* We seem to have a node of sorts. Check the CRC */ jffs2_scan_eraseblock()
759 noisy_printk(&noise, "%s(): Node at 0x%08x {0x%04x, 0x%04x, 0x%08x) has invalid CRC 0x%08x (calculated 0x%08x)\n", jffs2_scan_eraseblock()
994 this node; we can do all the CRC checking etc. later. There's a tradeoff here -- jffs2_scan_inode_node()
998 but we have to go _back_ to the flash in order to finish the CRC checking, etc. jffs2_scan_inode_node()
1002 /* Check the node CRC in any case. */ jffs2_scan_inode_node()
1005 pr_notice("%s(): CRC failed on node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_scan_inode_node()
1008 * We believe totlen because the CRC on the node jffs2_scan_inode_node()
1055 pr_notice("%s(): Node CRC failed on node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_scan_dirent_node()
1057 /* We believe totlen because the CRC on the node _header_ was OK, just the node itself failed. */ jffs2_scan_dirent_node()
1080 pr_notice("%s(): Name CRC failed on node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_scan_dirent_node()
1082 jffs2_dbg(1, "Name for which CRC failed is (now) '%s', ino #%d\n", jffs2_scan_dirent_node()
1086 /* We believe totlen because the CRC on the node _header_ was OK, just the name failed. */ jffs2_scan_dirent_node()
H A Dgc.c186 pr_warn("Inode #%u is in state %d during CRC check phase!\n", jffs2_garbage_collect_pass()
616 pr_warn("Header CRC failed on REF_PRISTINE node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_garbage_collect_pristine()
625 pr_warn("Node CRC failed on REF_PRISTINE data node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_garbage_collect_pristine()
634 pr_warn("Data CRC failed on REF_PRISTINE data node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_garbage_collect_pristine()
645 pr_warn("Node CRC failed on REF_PRISTINE dirent node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_garbage_collect_pristine()
660 pr_warn("Name CRC failed on REF_PRISTINE dirent node at 0x%08x: Read 0x%08x, calculated 0x%08x\n", jffs2_garbage_collect_pristine()
943 /* If the name CRC doesn't match, skip */ jffs2_garbage_collect_deletion_dirent()
1033 pr_warn("%s: Node at 0x%08x had CRC 0x%08x which doesn't match calculated CRC 0x%08x\n", jffs2_garbage_collect_hole()
H A Dsummary.c585 /* OK, now check for node validity and CRC */ jffs2_sum_scan_sumnode()
592 dbg_summary("Summary node header is corrupt (bad CRC or " jffs2_sum_scan_sumnode()
605 dbg_summary("Summary node is corrupt (bad CRC)\n"); jffs2_sum_scan_sumnode()
612 dbg_summary("Summary node data is corrupt (bad CRC)\n"); jffs2_sum_scan_sumnode()
/linux-4.4.14/arch/m68k/include/asm/
H A Dm68360_pram.h39 unsigned long c_mask32; /* CRC Constant (debb20e3) */
42 unsigned short c_mask16; /* CRC Constant (f0b8) */
58 unsigned long tcrc; /* Temp Transmit CRC */
69 unsigned long rcrc; /* Temp Transmit CRC */
98 unsigned long rcrc; /* temp receive CRC */
99 unsigned long tcrc; /* temp transmit CRC */
105 unsigned long c_mask; /* CRC constant */
106 unsigned long c_pres; /* CRC preset */
108 unsigned short crcec; /* CRC error counter */
158 unsigned long rcrc; /* temp receive CRC */
159 unsigned long tcrc; /* temp transmit CRC */
210 unsigned long rcrc; /* temp receive CRC */
211 unsigned long tcrc; /* temp transmit CRC */
217 unsigned long crcc; /* CRC Constant Temp Value */
218 unsigned short prcrc; /* Preset Receiver CRC-16/LRC */
219 unsigned short ptcrc; /* Preset Transmitter CRC-16/LRC */
332 unsigned long rcrc; /* temp receive CRC */
333 unsigned long tcrc; /* temp transmit CRC */
338 unsigned long c_pres; /* preset CRC */
339 unsigned long c_mask; /* constant mask for CRC */
340 unsigned long crcec; /* CRC error counter */
409 unsigned long rcrc; /* temp receive CRC */
410 unsigned long tcrc; /* temp transmit CRC */
415 unsigned long crc_p; /* CRC Preset */
416 unsigned long crc_c; /* CRC constant */
H A Dm68360_enet.h23 #define T_TC 0x0400 /* transmit CRC (when last) */
47 #define R_CR 0x0004 /* receive CRC error */
70 #define ETHER_CRC_32 (0x2<<10) /* Enable CRC */
89 #define CRC_WORD 4 /* Length in bytes of CRC */
90 #define C_PRES 0xffffffff /* preform 32 bit CRC */
91 #define C_MASK 0xdebb20e3 /* comply with 32 bit CRC */
H A Datafdreg.h58 #define FDCSTAT_CRC (0x08) /* CRC error */
H A Dcommproc.h119 #define BD_SC_TC ((ushort)0x0400) /* Transmit CRC */
380 uint sen_cpres; /* Preset CRC */
381 uint sen_cmask; /* Constant mask for CRC */
382 uint sen_crcec; /* CRC Error counter */
498 #define SCC_PMSR_ENCRC ((ushort)0x0800) /* Ethernet CRC mode */
606 uint st_cpres; /* Preset CRC */
607 uint st_cmask; /* Constant mask for CRC */
/linux-4.4.14/drivers/block/rsxx/
H A Dconfig.c48 * Return the compliment of the CRC to ensure compatibility config_data_crc32()
112 /* Convert data to little endian for the CRC calculation. */ rsxx_save_config()
148 * We calculate the CRC with the data in little endian, because rsxx_load_config()
151 * swap it before calculating the CRC. rsxx_load_config()
156 /* Check the CRC */ rsxx_load_config()
162 "CRC (sb x%08x is x%08x)\n", rsxx_load_config()
/linux-4.4.14/drivers/usb/serial/
H A Dsafe_serial.c21 * While the USB protocol has a CRC over the data while in transit, i.e. while
27 * number of bytes of valid data and a 10 bit CRC that will allow the receiver
42 * bits 1-0 top two bits of 10 bit CRC
43 * N-1 bottom 8 bits of 10 bit CRC
46 * | Data Length | 10 bit CRC |
49 * The 10 bit CRC is computed across the sent data, followed by the trailer
50 * with the length set and the CRC set to zero. The CRC is then OR'd into
53 * When received a 10 bit CRC is computed over the entire frame including
180 * fcs_compute10 - memcpy and calculate 10 bit CRC across buffer
185 * Perform a memcpy and calculate fcs using ppp 10bit CRC algorithm. Return
210 dev_err(&port->dev, "%s - bad CRC %x\n", __func__, fcs); safe_process_read_urb()
/linux-4.4.14/drivers/s390/char/
H A Dhmcdrv_ftp.c62 * index is determined by CRC % ARRAY_SIZE). hmcdrv_ftp_cmd_getid()
63 * 3. Original command 'nlist' was renamed, else the CRC would hmcdrv_ftp_cmd_getid()
68 {.str = "get", /* [0] get (CRC = 0x68eb) */ hmcdrv_ftp_cmd_getid()
70 {.str = "dir", /* [1] dir (CRC = 0x6a9e) */ hmcdrv_ftp_cmd_getid()
72 {.str = "delete", /* [2] delete (CRC = 0x53ae) */ hmcdrv_ftp_cmd_getid()
74 {.str = "nls", /* [3] nls (CRC = 0xf87c) */ hmcdrv_ftp_cmd_getid()
76 {.str = "put", /* [4] put (CRC = 0xac56) */ hmcdrv_ftp_cmd_getid()
78 {.str = "append", /* [5] append (CRC = 0xf56e) */ hmcdrv_ftp_cmd_getid()
92 pr_debug("FTP command '%s' has CRC 0x%04x, at table pos. %lu\n", hmcdrv_ftp_cmd_getid()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dcommon-debug.h25 * @crc_err: No. of frames with incorrect CRC value
26 * @decrypt_crc_err: No. of frames whose CRC check failed after
31 * @pre_delim_crc_err: Pre-Frame delimiter CRC error detections
32 * @post_delim_crc_err: Post-Frame delimiter CRC error detections
H A Dcommon-debug.c148 RXS_ERR("CRC ERR", crc_err); read_file_recv()
149 RXS_ERR("DECRYPT CRC ERR", decrypt_crc_err); read_file_recv()
152 RXS_ERR("PRE-DELIM CRC ERR", pre_delim_crc_err); read_file_recv()
153 RXS_ERR("POST-DELIM CRC ERR", post_delim_crc_err); read_file_recv()
221 PHY_ERR("CCK-HEADER-CRC ERR", ATH9K_PHYERR_CCK_HEADER_CRC); read_file_phy_err()
228 PHY_ERR("HT-CRC ERR", ATH9K_PHYERR_HT_CRC_ERROR); read_file_phy_err()
H A Dar9003_mac.c548 * is the CRC of the actual data. ath9k_hw_process_rxdesc_edma()
561 * in that case that we know already that the CRC of ath9k_hw_process_rxdesc_edma()
566 * The AR_PostDelimCRCErr is the CRC for the MPDU ath9k_hw_process_rxdesc_edma()
/linux-4.4.14/include/net/irda/
H A Dcrc.h5 * Description: CRC routines
/linux-4.4.14/arch/arm/plat-samsung/
H A Dpm-check.c33 * CONFIG_SAMSUNG_PM_CHECK_CHUNKSIZE defines the block-size for the CRC,
35 * and reducing the size will cause the CRC save area to grow
105 printk(KERN_ERR "Cannot allocated CRC save area\n"); s3c_pm_check_prepare()
128 * compute the CRC values for the memory blocks before the final
162 * CRC to ensure that memory is restored. The function tries to skip as
198 printk(KERN_ERR "Restore CRC error at " s3c_pm_runcheck()
201 S3C_PMDBG("Restore CRC error at %08lx (%08x vs %08x)\n", s3c_pm_runcheck()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
H A Den_port.h196 /* Received frames with a length of MTU< octets and good CRC */
206 /* Received broadcast frames with good CRC */
216 /* Received multicast frames with good CRC */
226 /* Received unicast not short or GIANT frames with good CRC */
433 /* Transmit frames with a length greater than MTU octets and a good CRC. */
444 /* Transmit broadcast frames with a good CRC */
455 /* Transmit multicast frames with a good CRC */
521 /* Total frames transmitted with a good CRC that are not aborted */
563 /* Received frames with a length greater than MTU octets and a bad CRC */
565 /* Received frames with a bad CRC that are not runts, jabbers,
569 bad CRC */
571 /* Received frames with a length less than 64 octets and a good CRC */
/linux-4.4.14/drivers/net/ethernet/freescale/fs_enet/
H A Dfec.h4 /* CRC polynomium used by the FEC for the multicast group filtering */
H A Dmac-scc.c281 /* Set CRC preset and mask. restart()
286 W32(ep, sen_crcec, 0); /* CRC Error counter */ restart()
349 /* Set processing mode. Use Ethernet CRC, catch broadcast, and restart()
/linux-4.4.14/lib/xz/
H A Dxz_crc32.c14 * accelerated CRC instruction are 3-5 times as fast as this version,
/linux-4.4.14/samples/pktgen/
H A Dpktgen.conf-1-1-flows35 # NIC adds 4 bytes CRC
H A Dpktgen.conf-1-1-ip635 # NIC adds 4 bytes CRC
H A Dpktgen.conf-1-1-ip6-rdos37 # NIC adds 4 bytes CRC
H A Dpktgen.conf-1-1-rdos36 # NIC adds 4 bytes CRC
H A Dpktgen.conf-1-236 # NIC adds 4 bytes CRC
H A Dparameters.sh70 # NIC adds 4 bytes CRC
/linux-4.4.14/Documentation/EDID/
H A D800x600.S39 #define CRC 0xc2 define
H A D1024x768.S42 #define CRC 0x55 define
H A D1280x1024.S42 #define CRC 0xa0 define
H A D1600x1200.S42 #define CRC 0x9d define
H A D1680x1050.S42 #define CRC 0x26 define
H A D1920x1080.S42 #define CRC 0x05 define
/linux-4.4.14/drivers/net/hamradio/
H A Dz8530.h32 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
33 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
58 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
88 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
90 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
126 #define CRCPS 0x80 /* CRC Preset I/O */
195 #define CRC_ERR 0x40 /* CRC/Framing Error */
231 #define CRCCBCR 0x20 /* CRC Check Bytes Completely Received */
/linux-4.4.14/drivers/edac/
H A Damd8131_edac.c108 /* Clear CRC Error flag on link side A */ amd8131_pcix_init()
113 /* Clear CRC Error flag on link side B */ amd8131_pcix_init()
133 /* Setup CRC Flood Enable for link side A */ amd8131_pcix_init()
138 /* Setup CRC Flood Enable for link side B */ amd8131_pcix_init()
159 /* Disable CRC Sync Flood on link side A */ amd8131_pcix_exit()
164 /* Disable CRC Sync Flood on link side B */ amd8131_pcix_exit()
209 /* Check if CRC error happens on link side A */ amd8131_pcix_check()
222 /* Check if CRC error happens on link side B */ amd8131_pcix_check()
H A Damd8111_edac.c110 /* Clear CRC and Link Fail flags in HT Link Control reg */ amd8111_pci_bridge_init()
134 /* Enable CRC Sync flood packets to HyperTransport Link */ amd8111_pci_bridge_init()
157 /* Disable CRC flood packets */ amd8111_pci_bridge_exit()
/linux-4.4.14/drivers/tty/serial/
H A Dip22zilog.h64 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
65 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
91 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
123 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
125 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
162 #define CRCPS 0x80 /* CRC Preset I/O */
231 #define CRC_ERR 0x40 /* CRC/Framing Error */
H A Dsunzilog.h56 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
57 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
83 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
115 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
117 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
164 #define CRCPS 0x80 /* CRC Preset I/O */
235 #define CRC_ERR 0x40 /* CRC/Framing Error */
H A Dzs.h85 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
86 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
110 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
141 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
143 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
181 #define CRCPS 0x80 /* CRC Preset I/O */
251 #define FRM_ERR 0x40 /* CRC/Framing Error */
H A Dpmac_zilog.h153 #define RES_Rx_CRC 0x40 /* Reset Rx CRC Checker */
154 #define RES_Tx_CRC 0x80 /* Reset Tx CRC Checker */
180 #define RxCRC_ENAB 0x8 /* Rx CRC Enable */
213 #define TxCRC_ENAB 0x1 /* Tx CRC Enable */
215 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
255 #define CRCPS 0x80 /* CRC Preset I/O */
326 #define CRC_ERR 0x40 /* CRC/Framing Error */
/linux-4.4.14/arch/powerpc/include/asm/
H A Ducc_slow.h34 #define T_TC 0x04000000 /* transmit CRC */
72 #define R_CR 0x00040000 /* CRC Error */
91 /* UCC Slow Transparent Transmit CRC (TCRC) */
93 /* 16-bit CCITT CRC (HDLC). (X16 + X12 + X5 + 1) */
97 /* 32-bit CCITT CRC (Ethernet and HDLC) */
H A Dcpm1.h315 uint sen_cpres; /* Preset CRC */
316 uint sen_cmask; /* Constant mask for CRC */
317 uint sen_crcec; /* CRC Error counter */
381 #define SCC_PSMR_ENCRC ((ushort)0x0800) /* Ethernet CRC mode */
455 uint st_cpres; /* Preset CRC */
456 uint st_cmask; /* Constant mask for CRC */
H A Dcpm2.h337 uint sen_cpres; /* Preset CRC */
338 uint sen_cmask; /* Constant mask for CRC */
339 uint sen_crcec; /* CRC Error counter */
404 #define SCC_PSMR_ENCRC ((ushort)0x0800) /* Ethernet CRC mode */
479 uint st_cpres; /* Preset CRC */
480 uint st_cmask; /* Constant mask for CRC */
533 uint fcc_rcrc; /* Rx temp CRC */
535 uint fcc_tcrc; /* Tx temp CRC */
545 uint fen_cmask; /* Constant mask for CRC */
546 uint fen_cpres; /* Preset CRC */
547 uint fen_crcec; /* CRC Error counter */
626 #define FCC_PSMR_ENCRC ((uint)0x00000080) /* Use 32-bit CRC */
/linux-4.4.14/arch/blackfin/mach-bf537/include/mach/
H A DdefBF537.h35 #define EMAC_WKUP_FFCRC0 0xFFC03048 /* Wake-Up Frame Filter 0,1 CRC-16 Register */
36 #define EMAC_WKUP_FFCRC1 0xFFC0304C /* Wake-Up Frame Filter 2,3 CRC-16 Register */
178 #define DTXCRC 0x00040000 /* Disable Automatic TX CRC Generation */
248 #define WF0_CRC 0x0000FFFF /* Wake-Up Filter 0 Pattern CRC */
249 #define WF1_CRC 0xFFFF0000 /* Wake-Up Filter 1 Pattern CRC */
251 #define SET_WF0_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 0 Target CRC */
252 #define SET_WF1_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 1 Target CRC */
255 #define WF2_CRC 0x0000FFFF /* Wake-Up Filter 2 Pattern CRC */
256 #define WF3_CRC 0xFFFF0000 /* Wake-Up Filter 3 Pattern CRC */
258 #define SET_WF2_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 2 Target CRC */
259 #define SET_WF3_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 3 Target CRC */
286 #define RX_CRC 0x00010000 /* RX Frame CRC Error */
/linux-4.4.14/arch/mips/lasat/
H A Dlasat_board.c109 /* Check the CRC */ lasat_init_board_info()
114 printk(KERN_WARNING "WARNING...\nWARNING...\nEEPROM CRC does " lasat_init_board_info()
270 /* Generate the CRC */ lasat_write_eeprom_info()
/linux-4.4.14/arch/blackfin/mach-bf518/include/mach/
H A DdefBF516.h33 #define EMAC_WKUP_FFCRC0 0xFFC03048 /* Wake-Up Frame Filter 0,1 CRC-16 Register */
34 #define EMAC_WKUP_FFCRC1 0xFFC0304C /* Wake-Up Frame Filter 2,3 CRC-16 Register */
180 #define DTXCRC 0x00040000 /* Disable Automatic TX CRC Generation */
257 #define WF0_CRC 0x0000FFFF /* Wake-Up Filter 0 Pattern CRC */
258 #define WF1_CRC 0xFFFF0000 /* Wake-Up Filter 1 Pattern CRC */
260 #define SET_WF0_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 0 Target CRC */
261 #define SET_WF1_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 1 Target CRC */
265 #define WF2_CRC 0x0000FFFF /* Wake-Up Filter 2 Pattern CRC */
266 #define WF3_CRC 0xFFFF0000 /* Wake-Up Filter 3 Pattern CRC */
268 #define SET_WF2_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 2 Target CRC */
269 #define SET_WF3_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 3 Target CRC */
299 #define RX_CRC 0x00010000 /* RX Frame CRC Error */
/linux-4.4.14/arch/blackfin/mach-bf527/include/mach/
H A DdefBF527.h32 #define EMAC_WKUP_FFCRC0 0xFFC03048 /* Wake-Up Frame Filter 0,1 CRC-16 Register */
33 #define EMAC_WKUP_FFCRC1 0xFFC0304C /* Wake-Up Frame Filter 2,3 CRC-16 Register */
179 #define DTXCRC 0x00040000 /* Disable Automatic TX CRC Generation */
256 #define WF0_CRC 0x0000FFFF /* Wake-Up Filter 0 Pattern CRC */
257 #define WF1_CRC 0xFFFF0000 /* Wake-Up Filter 1 Pattern CRC */
259 #define SET_WF0_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 0 Target CRC */
260 #define SET_WF1_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 1 Target CRC */
264 #define WF2_CRC 0x0000FFFF /* Wake-Up Filter 2 Pattern CRC */
265 #define WF3_CRC 0xFFFF0000 /* Wake-Up Filter 3 Pattern CRC */
267 #define SET_WF2_CRC(x) (((x)&0xFFFF)<< 0 ) /* Set Wake-Up Filter 2 Target CRC */
268 #define SET_WF3_CRC(x) (((x)&0xFFFF)<< 16 ) /* Set Wake-Up Filter 3 Target CRC */
298 #define RX_CRC 0x00010000 /* RX Frame CRC Error */
/linux-4.4.14/drivers/net/usb/
H A Dcdc_eem.c148 /* we don't use the "no Ethernet CRC" option */ eem_tx_fixup()
156 * b14: bmCRC (1 == valid Ethernet CRC) eem_tx_fixup()
311 * The bmCRC helps to denote when the CRC field in eem_rx_fixup()
312 * the Ethernet frame contains a calculated CRC: eem_rx_fixup()
313 * bmCRC = 1 : CRC is calculated eem_rx_fixup()
314 * bmCRC = 0 : CRC = 0xDEADBEEF eem_rx_fixup()
H A Dzaurus.c48 * - Framing appends a CRC, which the spec says drivers "must not" do;
88 * TRAILERS (!) with 4 bytes CRC, and maybe 2 pad bytes. zaurus_bind()
207 * - 0x01 -- Zaurus framing (add CRC) blan_mdlm_bind()
208 * - 0x02 -- PADBEFORE (CRC includes some padding) blan_mdlm_bind()
209 * - 0x04 -- PADAFTER (some padding after CRC) blan_mdlm_bind()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
H A Ddesc.h64 #define AR5K_5210_RX_DESC_STATUS1_CRC_ERROR 0x00000004 /* CRC error */
66 #define AR5K_5210_RX_DESC_STATUS1_DECRYPT_CRC_ERROR 0x00000010 /* decryption CRC failure */
80 #define AR5K_5212_RX_DESC_STATUS0_DECOMP_CRC_ERROR 0x00002000 /* decompression CRC error */
91 #define AR5K_5212_RX_DESC_STATUS1_CRC_ERROR 0x00000004 /* CRC error */
92 #define AR5K_5212_RX_DESC_STATUS1_DECRYPT_CRC_ERROR 0x00000008 /* decryption CRC failure */
122 * @AR5K_RX_PHY_ERROR_CCK_HEADER_CRC: Header CRC error [5212+]
/linux-4.4.14/drivers/net/ethernet/micrel/
H A Dks8695net.h24 #define RDES_CE (1 << 16) /* CRC error */
86 #define DTXC_TAC (1 << 1) /* Transmit Add CRC */
/linux-4.4.14/drivers/net/ethernet/amd/
H A Dni65.h45 #define M_DTCR 0x0008 /* Disable Transmit CRC) */
59 #define RCV_CRC 0x08 /* CRC Error */
H A Dnmclan_cs.c1291 static void updateCRC(int *CRC, int bit) updateCRC() argument
1298 }; /* CRC polynomial. poly[n] = coefficient of the x**n term of the updateCRC()
1299 CRC generator polynomial. */ updateCRC()
1303 /* shift CRC and control bit (CRC[32]) */ updateCRC()
1305 CRC[j] = CRC[j-1]; updateCRC()
1306 CRC[0] = 0; updateCRC()
1308 /* If bit XOR(control bit) = 1, set CRC = CRC XOR polynomial. */ updateCRC()
1309 if (bit ^ CRC[32]) updateCRC()
1311 CRC[j] ^= poly[j]; updateCRC()
1325 int CRC[33]={1}; /* CRC register, 1 word/bit + extra control bit */ BuildLAF() local
1330 CRC[32]=0; BuildLAF()
1334 updateCRC(CRC, (adr[byte] >> i) & 1); BuildLAF()
1338 hashcode = (hashcode << 1) + CRC[i]; BuildLAF()
H A Da2065.h97 #define LE_MO_DXMTFCS 0x0008 /* Disable Transmit CRC */
130 #define LE_R1_CRC 0x08 /* CRC Error */
/linux-4.4.14/arch/x86/crypto/
H A Dcrc32c-pcl-intel-asm_64.S49 ## ISCSI CRC 32 Implementation with crc32 and pclmulqdq Instruction
123 #### Calculate CRC of unaligned bytes of the buffer (if any)
192 ## 3) CRC Array:
226 movq crc_init, %xmm1 # CRC for block 1
229 movq crc1, %xmm2 # CRC for block 2
291 crc32l (bufptmp), crc_init_dw # CRC of 4 bytes
298 crc32w (bufptmp), crc_init_dw # CRC of 2 bytes
305 crc32b (bufptmp), crc_init_dw # CRC of 1 byte
H A Dcrc32-pclmul_asm.S85 #define CRC %edx define
89 #define CRC %ecx define
99 * CRC - initial crc32
110 movd CRC, CONSTANT
H A Dcrct10dif-pclmul_glue.c147 MODULE_DESCRIPTION("T10 DIF CRC calculation accelerated with PCLMULQDQ.");
H A Dcrct10dif-pcl-asm_64.S2 # Implement fast CRC-T10DIF computation with SSE and PCLMULQDQ instructions
49 # UINT16 init_crc, //initial CRC value, 16 bits
50 # const unsigned char *buf, //buffer pointer to calculate CRC on
54 # Reference paper titled "Fast CRC Computation for Generic
298 # check if any more data to fold. If not, compute the CRC of
/linux-4.4.14/include/scsi/fc/
H A Dfc_fcoe.h61 * FCoE CRC & EOF - 8 bytes.
64 __le32 fcoe_crc32; /* CRC for FC packet */
H A Dfc_encaps.h26 * the encapsulation including the fcip_encaps_header, CRC and EOF words.
50 __be32 fc_crc; /* CRC */
/linux-4.4.14/drivers/net/irda/
H A Dsh_irda.c52 #define CRCCTR 0x1F80 /* CRC engine control */
53 #define CRCIR 0x1F86 /* CRC engine input data */
54 #define CRCCR 0x1F8A /* CRC engine calculation */
55 #define CRCOR 0x1F8E /* CRC engine output data */
105 #define CRCER xIR_8 /* for MIR/FIR CRC error */
113 #define CRC_RST (1 << 15) /* CRC Engine Reset */
114 #define CRC_CT_MASK 0x0FFF /* mask for CRC Engine Input Data Count */
117 #define CRC_IN_MASK 0x0FFF /* mask for CRC Engine Input Data */
517 CRC function
556 dev_err(dev, "CRC count error %x\n", val); sh_irda_crc_init()
562 dev_err(dev, "CRC result error%x\n", val); sh_irda_crc_init()
H A Dsh_sir.c49 #define IRIF_CRC0 0x0040 /* CRC engine control */
50 #define IRIF_CRC1 0x0042 /* CRC engine input data */
51 #define IRIF_CRC2 0x0044 /* CRC engine calculation */
52 #define IRIF_CRC3 0x0046 /* CRC engine output data 1 */
53 #define IRIF_CRC4 0x0048 /* CRC engine output data 2 */
96 #define CRC_RST (1 << 15) /* CRC Engine Reset */
151 CRC function
190 dev_err(dev, "CRC count error %x\n", val); sh_sir_crc_init()
196 dev_err(dev, "CRC result error%x\n", val); sh_sir_crc_init()
H A Ddonauboe.h210 #define OBOE_CONFIG0L_CRC16 0x80 /*CRC 1=16 bit 0=32 bit */
290 #define OBOE_CTL_TX_DISTX_CRC 0x40 /*W Disable CRC generation for [FM]IR */
291 #define OBOE_CTL_TX_BAD_CRC 0x20 /*W Generate bad CRC */
301 #define OBOE_CTL_RX_CRCERR 0x20 /*R CRC error only set for [FM]IR */
H A Dali-ircc.h77 #define LSR_CRC_ERROR 0x10 /* CRC Error */
118 #define IRDA_CR_CRC 0X40 /* CRC Select. */
/linux-4.4.14/drivers/net/ethernet/freescale/
H A Dfec.h89 #define RMON_T_CRC_ALIGN 0x210 /* RMON TX pkts with CRC align err */
90 #define RMON_T_UNDERSIZE 0x214 /* RMON TX pkts < 64 bytes, good CRC */
91 #define RMON_T_OVERSIZE 0x218 /* RMON TX pkts > MAX_FL bytes good CRC */
92 #define RMON_T_FRAG 0x21c /* RMON TX pkts < 64 bytes, bad CRC */
93 #define RMON_T_JAB 0x220 /* RMON TX pkts > MAX_FL bytes, bad CRC */
118 #define RMON_R_CRC_ALIGN 0x290 /* RMON RX pkts with CRC alignment err */
119 #define RMON_R_UNDERSIZE 0x294 /* RMON RX pkts < 64 bytes, good CRC */
120 #define RMON_R_OVERSIZE 0x298 /* RMON RX pkts > MAX_FL bytes good CRC */
121 #define RMON_R_FRAG 0x29c /* RMON RX pkts < 64 bytes, bad CRC */
122 #define RMON_R_JAB 0x2a0 /* RMON RX pkts > MAX_FL bytes, bad CRC */
134 #define IEEE_R_CRC 0x2d0 /* Frames rx'd with CRC err */
H A Ducc_geth.h264 nor CRC */
265 #define MACCFG2_PAD_AND_CRC_MODE_CRC_ONLY 0x00000002 /* Append CRC
819 #define R_CR 0x00040000 /* CRC error. */
1014 /* UCC GETH Pad and CRC Mode - Note, Padding without CRC is not possible */
1019 nor CRC */
1022 CRC only */
/linux-4.4.14/drivers/net/wireless/libertas/
H A Dif_usb.h85 __le32 CRC; member in struct:fwheader
/linux-4.4.14/drivers/net/wireless/libertas_tf/
H A Dif_usb.h80 __le32 CRC; member in struct:fwheader
/linux-4.4.14/drivers/net/ethernet/ezchip/
H A Dnps_enet.h74 * crc: Rx CRC error indication
121 * rx_crc_ignore: Results of the CRC check are ignored
122 * rx_crc_strip: MAC strips the CRC from received frames
124 * tx_crc_en: Transmit CRC Enabled
/linux-4.4.14/include/rdma/
H A Dopa_port_info.h51 #define OPA_PORT_LTP_CRC_MODE_14 1 /* 14-bit LTP CRC mode (optional) */
52 #define OPA_PORT_LTP_CRC_MODE_16 2 /* 16-bit LTP CRC mode */
53 #define OPA_PORT_LTP_CRC_MODE_48 4 /* 48-bit LTP CRC mode (optional) */
54 #define OPA_PORT_LTP_CRC_MODE_PER_LANE 8 /* 12/16-bit per lane LTP CRC mode */
/linux-4.4.14/include/scsi/
H A Dfc_frame.h106 #define FCPHF_CRC_UNCHECKED 0x01 /* CRC not computed, still appended */
238 * Check the CRC in a frame.
239 * The CRC immediately follows the last data item *AFTER* the length.
240 * The return value is zero if the CRC matches.
/linux-4.4.14/arch/mips/cavium-octeon/executive/
H A Dcvmx-helper-spi.c85 * automatically put on the L2 CRC. For everything __cvmx_helper_spi_probe()
86 * except for the SPI4000 have PKO append the L2 CRC __cvmx_helper_spi_probe()
109 * Normally the ethernet L2 CRC is checked and stripped in the __cvmx_helper_spi_enable()
111 * IPD needs to check the L2 CRC. __cvmx_helper_spi_enable()
/linux-4.4.14/include/linux/mfd/
H A Dtps6586x.h16 /* VERSION CRC */
/linux-4.4.14/net/irda/
H A Dwrapper.c129 /* Insert frame and calc CRC */ async_wrap_skb()
146 /* Insert CRC in little endian format (LSB first) */ async_wrap_skb()
181 * We can also choose where we want to do the CRC calculation. We can
241 /* Copy data without CRC (length already checked) */ async_bump()
255 /* Set proper length on skb (without CRC) */ async_bump()
347 /* If we haven't done the CRC as we receive bytes, we async_unwrap_eof()
360 /* Wrong CRC, discard frame! */ async_unwrap_eof()
/linux-4.4.14/drivers/mtd/ubi/
H A Dubi-media.h41 /* The initial CRC32 value used when calculating CRC checksums */
119 /* Sizes of UBI headers without the ending CRC */
134 * @hdr_crc: erase counter header CRC checksum
186 * @data_crc: CRC checksum of the data stored in this logical eraseblock
190 * @hdr_crc: volume identifier header CRC checksum
229 * copy. UBI also calculates data CRC when the data is moved and stores it at
233 * picked. If it is set, the data CRC of the copy (P1) is examined. If the CRC
254 * The @data_crc field contains the CRC checksum of the contents of the logical
256 * not contain the CRC checksum as a rule. The only exception is when the
258 * then the wear-leveling sub-system calculates the data CRC and stores it in
265 * wear-leveling reasons. In this case, UBI calculates CRC checksum of the
324 /* Size of the volume table record without the ending CRC */
363 * Empty records contain all zeroes and the CRC checksum of those zeroes.
410 * @data_crc: CRC over the fastmap data
H A Dio.c156 * especially possible because UBI (and UBIFS) relies on CRC, and ubi_io_read()
157 * treats data as correct even in case of ECC errors if the CRC is ubi_io_read()
719 * stores it in @ec_hdr. This function also checks CRC checksum of the read
722 * o %0 if the CRC checksum is correct and the header was successfully read;
723 * o %UBI_IO_BITFLIPS if the CRC is correct, but bit-flips were detected
726 * o %UBI_IO_BAD_HDR if the erase counter header is corrupted (a CRC error);
751 * corrupted. But we have a CRC check-sum and we will detect ubi_io_read_ec_hdr()
799 ubi_warn(ubi, "bad EC header CRC at PEB %d, calculated %#08x, read %#08x", ubi_io_read_ec_hdr()
803 dbg_bld("bad EC header CRC at PEB %d, calculated %#08x, read %#08x", ubi_io_read_ec_hdr()
820 * If there was %-EBADMSG, but the header CRC is still OK, report about ubi_io_read_ec_hdr()
966 ubi_err(ubi, "non-zero data CRC"); validate_vid_hdr()
1003 * @pnum and stores it in @vid_hdr. It also checks CRC checksum of the read
1058 ubi_warn(ubi, "bad CRC at PEB %d, calculated %#08x, read %#08x", ubi_io_read_vid_hdr()
1062 dbg_bld("bad CRC at PEB %d, calculated %#08x, read %#08x", ubi_io_read_vid_hdr()
1088 * header CRC checksum and stores it at vid_hdr->hdr_crc.
1217 ubi_err(ubi, "bad CRC, calculated %#08x, read %#08x", self_check_peb_ec_hdr()
1305 ubi_err(ubi, "bad VID header CRC at PEB %d, calculated %#08x, read %#08x", self_check_peb_vid_hdr()
H A Dmisc.c57 * it and checking data CRC. This function returns %0 if the volume is not
/linux-4.4.14/drivers/isdn/i4l/
H A Disdnhdlc.c96 /* remove CRC */ check_frame()
111 and the CRC is checked.
113 excluding the CRC with the bit HDLC_END_OF_FRAME set.
118 If a CRC error is found the function returns the length with the
342 CRC (2 bytes is added) and the frame terminates with the ending flag.
374 /* closing sequence, CRC + flag(s) */ isdnhdlc_encode()
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Dchip.h492 /* verify capability fabric CRC size bits */
494 CAP_CRC_14B = (1 << 0), /* 14b CRC */
495 CAP_CRC_48B = (1 << 1), /* 48b CRC */
496 CAP_CRC_12B_16B_PER_LANE = (1 << 2) /* 12b-16b per lane CRC */
507 /* LCB_CFG_CRC_MODE TX_VAL and RX_VAL CRC mode values */
508 #define LCB_CRC_16B 0x0 /* 16b CRC */
509 #define LCB_CRC_14B 0x1 /* 14b CRC */
510 #define LCB_CRC_48B 0x2 /* 48b CRC */
511 #define LCB_CRC_12B_16B_PER_LANE 0x3 /* 12b-16b per lane CRC */
517 PORT_LTP_CRC_MODE_14 = 1, /* 14-bit LTP CRC mode (optional) */
518 PORT_LTP_CRC_MODE_16 = 2, /* 16-bit LTP CRC mode */
520 /* 48-bit overlapping LTP CRC mode (optional) */
522 /* 12 to 16 bit per lane LTP CRC mode (optional) */
/linux-4.4.14/drivers/net/ethernet/seeq/
H A Dsgiseeq.h35 #define SEEQ_RSTAT_CERROR 0x002 /* CRC error */
50 #define SEEQ_RCMD_ICRC 0x002 /* IRQ on CRC errors */
/linux-4.4.14/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet_wol.c161 /* Enable CRC forward */ bcmgenet_wol_power_down_cfg()
199 /* Disable CRC Forward */ bcmgenet_wol_power_up_cfg()
/linux-4.4.14/block/
H A Dt10-pi.c164 .name = "T10-DIF-TYPE1-CRC",
178 .name = "T10-DIF-TYPE3-CRC",
/linux-4.4.14/fs/xfs/
H A Dxfs_error.c158 * Warnings specifically for verifier errors. Differentiate CRC vs. invalid
168 bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", xfs_verifier_error()
/linux-4.4.14/include/uapi/linux/
H A Dscc.h100 TXS_NEWFRAME, /* reset CRC and send (next) frame */
118 long rxerrs; /* CRC Errors */
H A Dif_fddi.h31 * 4 byte FCS/CRC (frame check sequence).
H A Dfdreg.h50 #define ST1_CRC 0x20 /* CRC error in data or addr */
59 #define ST2_CRC 0x20 /* CRC error in data field */
H A Djffs2.h161 jint32_t data_crc; /* CRC for the (compressed) data. */
162 jint32_t node_crc; /* CRC for the raw inode (excluding data) */
/linux-4.4.14/drivers/usb/gadget/udc/
H A Dfsl_qe_udc.h205 #define NO_CRC 0x00008000 /* No send CRC */
217 #define RX_ER_CRC 0x04000000 /* Received packet with CRC error */
376 #define T_TC 0x04000000 /* transmit CRC */
405 #define R_CR 0x00040000 /* CRC Error */
/linux-4.4.14/drivers/scsi/libfc/
H A Dfc_frame.c32 * Check the CRC in a frame.
/linux-4.4.14/drivers/scsi/cxlflash/
H A Dmain.h71 /* FC CRC clear periodic timer */
H A Dsislite.h135 * ABORTFAIL might indicate that lots of frames are getting CRC errors.
137 * The link can also be reset on the CRC error threshold interrupt.
292 #define SISL_ASTATUS_FC0_CRC_T 0x2000ULL /* b50, CRC threshold exceeded */
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/
H A Ddefines.h111 #define IXGBE_RXD_STAT_CRCV 0x100 /* Speculative CRC Valid */
119 #define IXGBE_RXD_ERR_CE 0x01 /* CRC Error */
129 #define IXGBE_RXDADV_ERR_CE 0x01000000 /* CRC Error */
193 #define IXGBE_TXD_CMD_IFCS 0x02000000 /* Insert FCS (Ethernet CRC) */
/linux-4.4.14/arch/um/os-Linux/
H A Duser_syms.c36 * However, the modules will use the CRC defined *here*, no matter if it is
/linux-4.4.14/arch/x86/boot/tools/
H A Dbuild.c392 /* Number of 16-byte paragraphs, including space for a 4-byte CRC */ main()
421 /* Write the CRC */ main()
422 printf("CRC %x\n", crc); main()
425 die("Writing CRC failed"); main()
/linux-4.4.14/arch/arm/mach-ks8695/include/mach/
H A Dregs-lan.h45 #define LMDTXC_LMTAC (1 << 1) /* Transmit Add CRC */
H A Dregs-wan.h45 #define WMDTXC_WMTAC (1 << 1) /* Transmit Add CRC */
/linux-4.4.14/net/mac802154/
H A Dutil.c71 /* If transceiver sets CRC on his own we need to use lifs ieee802154_xmit_complete()
/linux-4.4.14/include/linux/isdn/
H A Dhdlc.h52 /* set if in closing phase (need to send CRC + flag) */
/linux-4.4.14/drivers/md/bcache/
H A Dutil.c256 * If we have a 64-bit integer type, then a 64-bit CRC looks just like the
258 * A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS, available from
263 * terms) 64-bit CRC, using initial all-ones register contents and a final
/linux-4.4.14/drivers/mmc/host/
H A Ddavinci_mmc.c101 #define MMCST0_CRCWR BIT(5) /* data write CRC error */
102 #define MMCST0_CRCRD BIT(6) /* data read CRC error */
103 #define MMCST0_CRCRS BIT(7) /* command response CRC error */
318 case MMC_RSP_R1: /* 48 bits, CRC */ mmc_davinci_start_command()
321 case MMC_RSP_R2: /* 136 bits, CRC */ mmc_davinci_start_command()
324 case MMC_RSP_R3: /* 48 bits, no CRC */ mmc_davinci_start_command()
966 /* All blocks sent/received, and CRC checks passed */ mmc_davinci_irq()
995 /* Data CRC error */ mmc_davinci_irq()
999 /* NOTE: this controller uses CRCWR to report both CRC mmc_davinci_irq()
1013 (data->error == -ETIMEDOUT) ? "timeout" : "CRC"); mmc_davinci_irq()
1034 /* Command CRC error */ mmc_davinci_irq()
1035 dev_dbg(mmc_dev(host->mmc), "Command CRC error\n"); mmc_davinci_irq()
H A Datmel-mci-regs.h102 # define ATMCI_RCRCE ( 1 << 18) /* Response CRC Error */
105 # define ATMCI_DCRCE ( 1 << 21) /* Data CRC Error */
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A De1000_82575.h134 #define E1000_ADVTXD_DCMD_IFCS 0x02000000 /* Insert FCS (Ethernet CRC) */
227 #define E1000_VMOLR_STRCRC 0x80000000 /* CRC stripping enable */
231 #define E1000_DVMOLR_STRCRC 0x80000000 /* CRC stripping enable */
/linux-4.4.14/drivers/net/ethernet/apple/
H A Dbmac.h58 # define RxCRCCntExp 0x00000008 /* CRC-error counter expired */
136 # define RxCRCNoStrip 0x0100 /* disable auto-CRC-stripping */
149 #define FECNT 0x6c0 /* Receive CRC error counter */
/linux-4.4.14/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.h123 u32 CRC; member in struct:config_registers
182 /* Constant to use for CRC check when CRC has been disabled */
H A Dxilinx_hwicap.c122 .CRC = 0,
147 .CRC = 0,
172 .CRC = 0,
197 .CRC = 0,
/linux-4.4.14/arch/arm/mach-pxa/
H A Dam200epd.c223 command | CRC | padding am200_presetup_fb()
224 16kb waveform data | CRC | padding am200_presetup_fb()
225 image data | CRC am200_presetup_fb()
/linux-4.4.14/fs/ubifs/
H A Dio.c69 * All UBIFS nodes are protected by CRC checksums and UBIFS checks CRC when
216 * @must_chk_crc: indicates whether to always check the CRC
218 * This function checks node magic number and CRC checksum. This function also
222 * allocated buffer when checking the CRC checksum.
224 * This function may skip data nodes CRC checking if @c->no_chk_data_crc is
226 * @must_chk_crc is true, then @c->no_chk_data_crc is ignored and CRC is
228 * mounting or re-mounting to R/W mode), @c->no_chk_data_crc is ignored and CRC
235 * CRC or magic.
282 ubifs_err(c, "bad CRC: calculated %#08x, read %#08x", ubifs_check_node()
376 * calculates node CRC, fills the common header, and adds proper padding up to
410 * calculates node CRC and fills the common header.
853 * number, and calculates node CRC checksum. The length of the @buf buffer has
894 * Returns zero in case of success, %-EUCLEAN if CRC mismatched and a negative
971 * stores in @buf. Returns zero in case of success, %-EUCLEAN if CRC mismatched
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dparam.c142 /* Enable CRC Stripping
149 "Enable CRC Stripping, disable if your BMC needs the CRC");
467 /* CRC Stripping */ e1000e_check_options()
471 .name = "CRC Stripping", e1000e_check_options()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.h144 /* long with a wrong CRC.*/
152 /* CRC error are received.*/
155 /* long with a good CRC.*/
171 /* - CRC Error */
359 /*config PAD and CRC enable */
/linux-4.4.14/include/drm/
H A Ddrm_dp_helper.h608 u8 DB1; /* 0 - PSR State; 1 - Update RFB; 2 - CRC Valid */
609 u8 DB2; /* CRC value bits 7:0 of the R or Cr component */
610 u8 DB3; /* CRC value bits 15:8 of the R or Cr component */
611 u8 DB4; /* CRC value bits 7:0 of the G or Y component */
612 u8 DB5; /* CRC value bits 15:8 of the G or Y component */
613 u8 DB6; /* CRC value bits 7:0 of the B or Cb component */
614 u8 DB7; /* CRC value bits 15:8 of the B or Cb component */
/linux-4.4.14/drivers/input/touchscreen/
H A Datmel_mxt_ts.c496 dev_err(dev, "Bootloader CRC fail\n"); mxt_check_bootloader()
1126 * On failure, CRC is set to 0 and config will always be mxt_update_crc()
1135 * Wait for crc message. On failure, CRC is set to 0 and config will mxt_update_crc()
1238 * retained. However this does invalidate the CRC and mxt_prepare_cfg_mem()
1321 * 3) Chip Information Block 24-bit CRC Checksum
1322 * 4) Chip Configuration 24-bit CRC Checksum
1380 dev_err(dev, "Bad format: failed to parse Info CRC\n"); mxt_update_cfg()
1387 dev_err(dev, "Bad format: failed to parse Config CRC\n"); mxt_update_cfg()
1393 * The Info Block CRC is calculated over mxt_info and the object mxt_update_cfg()
1396 * the configuration CRC is invalid anyway. mxt_update_cfg()
1400 dev_info(dev, "CRC zero, attempting to apply config\n"); mxt_update_cfg()
1402 dev_dbg(dev, "Config CRC 0x%06X: OK\n", mxt_update_cfg()
1406 dev_info(dev, "Config CRC 0x%06X: does not match file 0x%06X\n", mxt_update_cfg()
1411 "Warning: Info CRC error - device=0x%06X file=0x%06X\n", mxt_update_cfg()
1444 dev_warn(dev, "Config CRC error, calculated=%06X, file=%06X\n", mxt_update_cfg()
1577 * read and discard unused CRC byte otherwise mxt_get_object_table()
1582 /* CRC not enabled, so skip last byte */ mxt_get_object_table()
2268 /* Take account of CRC bytes */ mxt_load_fw()
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_defs.h81 #define FE_CRC (1<<23) /* CRC support */
367 /*e0*/ u16 nc_crcpad; /* CRC Value */
368 /*e2*/ u8 nc_crccntl0; /* CRC control register */
369 #define SNDCRC 0x10 /* Send CRC Request */
370 /*e3*/ u8 nc_crccntl1; /* CRC control register */
371 /*e4*/ u32 nc_crcdata; /* CRC data register */
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_mbx.h106 * | Size/Err_no/CRC | Rsvd0 | Head | Tail | Type |
126 * CRC: Running CRC for all data since connect plus current message header
H A Dfm10k_mbx.c525 /* pre-generated data for generating the CRC based on the poly 0xAC9A. */
561 * fm10k_crc_16b - Generate a 16 bit CRC for a region of 16 bit data
563 * @seed: seed value for CRC
566 * This function will generate a CRC based on the polynomial 0xAC9A and
591 * fm10k_fifo_crc - generate a CRC based off of FIFO data
595 * @seed: seed value for CRC
597 * This function generates a CRC for some region of the FIFO
619 * fm10k_mbx_update_local_crc - Update the local CRC for outgoing data
623 * This function will generate the CRC for all data from the end of the
625 * previous CRC as the seed for this update. The result is stored in
635 /* update local CRC to include all of the pulled data */ fm10k_mbx_update_local_crc()
640 * fm10k_mbx_verify_remote_crc - Verify the CRC is correct for current data
644 * end and generate a CRC for it. This is stored in mbx->remote. The
645 * CRC for the header is then computed and if the result is non-zero this
656 /* update the remote CRC if new data has been received */ fm10k_mbx_verify_remote_crc()
660 /* process the full header as we have to validate the CRC */ fm10k_mbx_verify_remote_crc()
873 /* generate CRC for data in flight and header */ fm10k_mbx_create_data_hdr()
879 mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC); fm10k_mbx_create_data_hdr()
898 mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC); fm10k_mbx_create_disconnect_hdr()
919 mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC); fm10k_mbx_create_fake_disconnect_hdr()
1137 /* reset CRC seeds */ fm10k_mbx_connect_reset()
1311 /* reset CRC seeds */ fm10k_mbx_process_error()
1606 /* initialize CRC seeds */ fm10k_pfvf_mbx_init()
/linux-4.4.14/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_platform.c44 * 64 bins, 128 bins, or 256 bins. "bins" refer to the division of CRC
45 * number space. 64 bins correspond to 6 bits of the CRC, 128 corresponds
46 * to 7 bits, and 256 refers to 8 bits of the CRC. Any other setting is
H A Ddwmac100_core.c130 /* The upper 6 bits of the calculated CRC are used to netdev_for_each_mc_addr()
/linux-4.4.14/drivers/w1/slaves/
H A Dw1_ds28e04.c41 /* enable/disable CRC checking on DS28E04-100 memory accesses */
98 /* cache the block if the CRC is valid */ w1_f1C_refresh_block()
253 dev_err(&sl->dev, "bad CRC at offset %d\n", eeprom_write()
H A Dw1_ds2433.c88 /* cache the block if the CRC is valid */ w1_f23_refresh_block()
231 dev_err(&sl->dev, "bad CRC at offset %d\n", (int)off); eeprom_write()
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_eem.c367 /* use the "no CRC" option */ eem_wrap()
372 * b14: bmCRC (0 == sentinel CRC) eem_wrap()
482 /* validate CRC */ eem_unwrap()
494 DBG(cdev, "invalid EEM CRC\n"); eem_unwrap()
/linux-4.4.14/drivers/video/fbdev/kyro/
H A DSTG4000Ramdac.c130 /* Set CRC Trigger to default */ InitialiseRamdac()
/linux-4.4.14/drivers/isdn/hysdn/
H A Dince1pc.h61 * RotlCRC := special 1 byte CRC over all NonEndTokenChunk bytes
/linux-4.4.14/drivers/net/ethernet/aeroflex/
H A Dgreth.h75 * Gbit MAC uses tagged maximum frame size which is 1518 excluding CRC.
/linux-4.4.14/drivers/misc/genwqe/
H A Dcard_dev.c554 * to have defined values when calculating CRC. do_flash_update()
566 "[%s] DMA: %lx CRC: %08x SZ: %ld %d\n", do_flash_update()
611 /* For Genwqe5 we get back the calculated CRC */ do_flash_update()
688 * to have defined values when calculating CRC. do_flash_read()
713 *(__be32 *)&cmd->__asiv[28] = cpu_to_be32(0) /* CRC */; do_flash_read()
721 *(__be32 *)&cmd->asiv[28] = cpu_to_be32(0); /* CRC */ do_flash_read()
729 /* we only get back the calculated CRC */ do_flash_read()
750 /* We know that we can get retc 0x104 with CRC err */ do_flash_read()
752 (cmd->attn != 0x02)) || /* Normally ignore CRC error */ do_flash_read()
H A Dcard_ddcb.h84 __be16 vcrc_16; /* Variant CRC */
107 /* CRC polynomials for DDCB */
/linux-4.4.14/drivers/net/wireless/rt2x00/
H A Drt2800usb.h84 * CRC_ERROR: CRC error.
/linux-4.4.14/drivers/net/ethernet/sun/
H A Dsunbmac.h121 #define BMAC_RCRCECTR 0x330UL /* Receive CRC error counter */
145 #define BIGMAC_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */
162 #define BIGMAC_IMASK_CCNTEXP 0x00000008 /* CRC-error counter expired */
190 #define BIGMAC_RXCFG_DCRCS 0x00000100 /* Disable CRC stripping */
H A Dsunhme.h38 #define GREG_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */
75 #define GREG_IMASK_CCNTEXP 0x00000008 /* CRC-error counter expired */
190 #define BMAC_RCRCECTR 0x330UL /* Receive CRC error counter */
228 #define BIGMAC_RXCFG_DCRCS 0x00000100 /* Disable CRC stripping */
/linux-4.4.14/drivers/net/vmxnet3/
H A Dvmxnet3_defs.h256 u32 fcs:1; /* Frame CRC correct */
274 u32 fcs:1; /* Frame CRC correct */
289 u32 fcs:1; /* Frame CRC correct */
307 u32 fcs:1; /* Frame CRC correct */
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_dsi.h45 /* GPIO Desc for CRC based Panel control */
/linux-4.4.14/crypto/
H A Dcrct10dif_generic.c125 MODULE_DESCRIPTION("T10 DIF CRC calculation.");
H A Dcrct10dif_common.c81 MODULE_DESCRIPTION("T10 DIF CRC calculation common code");
/linux-4.4.14/arch/mips/include/asm/octeon/
H A Dcvmx-pip.h234 * including CRC
450 * Configure the hardware CRC engine
454 * Invert the result of the CRC
457 * CRC initialization vector
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Djr3_pci.h132 * than the one originally plugged in has passed its CRC check. This
146 * calibration CRC.
151 /* The cal_crc_bad bit indicates that the calibration CRC has not
152 * calculated to zero. CRC is short for cyclic redundancy code. It is
156 * calibration data has a CRC attached to the end of it, to assist in
158 * received from the sensor. There are two reasons the CRC may not
564 /* Last_crc is the value that shows the actual calculated CRC. CRC
/linux-4.4.14/drivers/isdn/hardware/eicon/
H A Ddsp_defs.h240 <byte> CRC 0
241 <byte> CRC 1
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
H A Dpci.h158 * Length include CRC. Indicates the length field includes
159 * the packet's CRC.
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
H A Dfw-api-rx.h123 * bits 4:7 - MIC CRC length
174 * @RX_MPDU_RES_STATUS_CRC_OK: CRC is fine
/linux-4.4.14/drivers/net/ethernet/tundra/
H A Dtsi108_eth.h303 #define TSI108_TX_CRC (1 << 5) /* Generate CRC for this packet */
335 #define TSI108_RX_CRC (1 << 12) /* Packet had a CRC error */
/linux-4.4.14/drivers/net/wan/lmc/
H A Dlmc_ioctl.h163 #define LMC_MII16_SSI_CRC 0x1000 /* CRC select - RW */
198 #define LMC_MII16_T1_CRC 0x1000 /* CRC select - RW */
/linux-4.4.14/drivers/nfc/microread/
H A Di2c.c98 pr_err("CRC error 0x%x != 0x%x\n", crc, skb->data[skb->len-1]); check_crc()
99 pr_info("%s: BAD CRC\n", __func__); check_crc()
/linux-4.4.14/drivers/nfc/st21nfca/
H A Dst21nfca.h33 * In normal case CRC len = 2 but byte stuffing
34 * may appear in case one CRC byte = ST21NFCA_SOF_EOF
H A Di2c.c218 * Compute CRC before byte stuffing computation on frame st21nfca_hci_i2c_write()
295 ": CRC error 0x%x != 0x%x 0x%x\n", crc, buf[buflen - 1], check_crc()
298 pr_info(DRIVER_DESC ": %s : BAD CRC\n", __func__); check_crc()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
H A Dbfa_defs_cna.h41 u64 invalid_crcs; /*!< Rx CRC err frames */
42 u64 invalid_crc_gd_eof; /*!< Rx CRC err good EOF frames */
/linux-4.4.14/drivers/dma/
H A Dmv_xor.h161 u32 crc32_result; /* result of CRC-32 calculation */
173 u32 crc32_result; /* result of CRC-32 calculation */
/linux-4.4.14/lib/842/
H A D842_decompress.c388 * Validate CRC saved in compressed data. sw842_decompress()
391 pr_debug("CRC mismatch for decompression\n"); sw842_decompress()
/linux-4.4.14/fs/udf/
H A Dmisc.c135 /* rewrite CRC + checksum of eahd */ udf_add_extendedattr()
245 /* Verify the descriptor CRC */ udf_read_tagged()
/linux-4.4.14/include/net/nfc/
H A Ddigital.h193 * @NFC_DIGITAL_DRV_CAPS_IN_CRC: The driver handles CRC calculation in initiator
195 * @NFC_DIGITAL_DRV_CAPS_TG_CRC: The driver handles CRC calculation in target
/linux-4.4.14/include/sound/
H A Dak4117.h146 #define AK4117_CCRC (1<<1) /* CRC for channel status, 0 = no error, 1 = error */
147 #define AK4117_QCRC (1<<0) /* CRC for Q-subcode, 0 = no error, 1 = error */
/linux-4.4.14/include/uapi/linux/can/
H A Derror.h102 #define CAN_ERR_PROT_LOC_CRC_SEQ 0x08 /* CRC sequence */
103 #define CAN_ERR_PROT_LOC_CRC_DEL 0x18 /* CRC delimiter */
H A Dgw.h131 /* CRC8 profiles (compute CRC for additional data elements - see below) */
197 * The calculated CRC may contain additional source data elements that can be
/linux-4.4.14/firmware/
H A Dihex2fw.c182 /* check CRC */ process_ihex()
185 fprintf(stderr, "CRC failure at line %d: got 0x%X, expected 0x%X\n", process_ihex()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
H A Dvsc7326_reg.h21 #define REG_MSCH CRA(0x7,0x2,0x06) /* CRC error count */
22 #define REG_CRC_CNT CRA(0x7,0x2,0x0a) /* CRC error count */
23 #define REG_CRC_CFG CRA(0x7,0x2,0x0b) /* CRC config */
76 #define REG_FIFO_DROP_CNT(ie,fn) CRA(0x2,ie&1,0x60+fn) /* Drop & CRC Error Counter */
209 Crc = 0x09, // # frames w/ bad CRC only
/linux-4.4.14/arch/powerpc/sysdev/qe_lib/
H A Dqe.c415 * all of the microcode structures, minus the CRC.
417 * 'length' is the size that the structure says it is, including the CRC.
455 /* Validate the length and check if there's a CRC */ qe_upload_firmware()
473 /* Validate the CRC */ qe_upload_firmware()
476 printk(KERN_ERR "qe-firmware: firmware CRC is invalid\n"); qe_upload_firmware()
/linux-4.4.14/drivers/staging/wlan-ng/
H A Dprism2fw.c115 u16 crc; /* CRC value (if it falls at a chunk boundary) */
133 /* CRC records */
370 * an S3 CRC record. Currently, we don't actually do a CRC we just
412 /* space for the CRC value */ crcimage()
523 /* Expand the chunk if there is a CRC record at */ mkimage()
833 * a - Start address for CRC calculation (little endian)
H A Dp80211conv.c378 /* chop off the 802.11 CRC */ skb_p80211_to_ether()
414 /* chop off the 802.11 CRC */ skb_p80211_to_ether()
454 /* chop off the 802.11 CRC */ skb_p80211_to_ether()
481 /* chop off the 802.11 CRC */ skb_p80211_to_ether()
/linux-4.4.14/drivers/staging/rdma/ipath/
H A Dipath_uc.c402 /* Don't count the CRC. */
503 /* Don't count the CRC. */
529 /* Don't count the CRC. */
/linux-4.4.14/drivers/infiniband/hw/qib/
H A Dqib_uc.c396 /* Don't count the CRC. */ qib_uc_rcv()
482 /* Don't count the CRC. */
509 /* Don't count the CRC. */
/linux-4.4.14/drivers/net/wireless/b43/
H A Dphy_n.h402 #define B43_NPHY_TGNSYNC_CRCM0 B43_PHY_N(0x104) /* TGNsync CRC mask 0 */
403 #define B43_NPHY_TGNSYNC_CRCM1 B43_PHY_N(0x105) /* TGNsync CRC mask 1 */
404 #define B43_NPHY_TGNSYNC_CRCM2 B43_PHY_N(0x106) /* TGNsync CRC mask 2 */
405 #define B43_NPHY_TGNSYNC_CRCM3 B43_PHY_N(0x107) /* TGNsync CRC mask 3 */
406 #define B43_NPHY_TGNSYNC_CRCM4 B43_PHY_N(0x108) /* TGNsync CRC mask 4 */
407 #define B43_NPHY_CRCPOLY B43_PHY_N(0x109) /* CRC polynomial */
410 #define B43_NPHY_CRCPOLY_ORDER B43_PHY_N(0x10C) /* CRC polynomial order */
526 #define B43_NPHY_WWISE_CRCM0 B43_PHY_N(0x175) /* WWiSE CRC mask 0 */
527 #define B43_NPHY_WWISE_CRCM1 B43_PHY_N(0x176) /* WWiSE CRC mask 1 */
528 #define B43_NPHY_WWISE_CRCM2 B43_PHY_N(0x177) /* WWiSE CRC mask 2 */
529 #define B43_NPHY_WWISE_CRCM3 B43_PHY_N(0x178) /* WWiSE CRC mask 3 */
530 #define B43_NPHY_WWISE_CRCM4 B43_PHY_N(0x179) /* WWiSE CRC mask 4 */
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
H A Dtulip.h210 * Error summary flag is logical or of 'CRC Error', 'Collision Seen',
219 * 'Frame Too Long' flag is set if packet length including CRC exceeds
221 * including CRC.
/linux-4.4.14/drivers/net/ethernet/altera/
H A Daltera_tse.h236 /* Number of frames received with a CRC error */
308 /* Too long frames with CRC error */
310 /* Too short frames with CRC error */
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Db44.h225 #define B44_RX_CRCA 0x05C0UL /* MIB RX CRC Align Errors */
227 #define B44_RX_CRC 0x05C8UL /* MIB RX CRC Errors */
270 #define RX_FLAG_CRCERR 0x00000002 /* CRC Error */
/linux-4.4.14/drivers/usb/host/
H A Dfhci.h64 #define PKT_NO_CRC 0x00008000 /* don't append CRC */
85 #define USB_TD_RX_ER_CRC 0x10000000 /* CRC error */
204 __be16 tx_crc; /* temp transmit CRC */
411 struct kfifo dummy_packets_Q;/* dummy packets for the CRC overun */
/linux-4.4.14/drivers/sn/
H A Dioc3.c241 printk(KERN_ERR "IOC3: CRC error in data page\n"); read_redir_page()
272 printk(KERN_ERR "IOC3: CRC error in redirection page\n"); read_redir_map()
331 printk(KERN_ERR "IOC3: CRC error in MAC address\n"); read_mac()
370 printk(KERN_ERR "IOC3: CRC error in NIC address\n"); probe_nic()
/linux-4.4.14/drivers/message/fusion/lsi/
H A Dmpi_log_fc.h80 MPI_IOCLOGINFO_FC_LINK_CRC_ERROR = 0x24000004, /* CRC check detected error on received frame */
/linux-4.4.14/drivers/media/i2c/
H A Dadv7183_regs.h88 #define ADV7183_CRC_EN 0xB2 /* CRC enable */
/linux-4.4.14/drivers/block/
H A Dswim_asm.S213 /* read CRC */
/linux-4.4.14/drivers/bluetooth/
H A Dhci_bcsp.c90 /* ---- BCSP CRC calculation ---- */
92 /* Table for calculating CRC for polynomial 0x1021, LSB processed first,
271 /* Put CRC */ bcsp_prepare_pkt()
758 MODULE_PARM_DESC(txcrc, "Transmit CRC with every BCSP packet");
/linux-4.4.14/arch/m32r/include/asm/m32104ut/
H A Dm32104ut_pld.h137 /* CRC */
/linux-4.4.14/arch/m32r/include/asm/mappi2/
H A Dmappi2_pld.h99 /* CRC */
/linux-4.4.14/arch/m32r/include/asm/mappi3/
H A Dmappi3_pld.h89 /* CRC */
/linux-4.4.14/drivers/net/ethernet/8390/
H A D8390.h179 #define EN0_COUNTER1 EI_SHIFT(0x0e) /* Rcv CRC error counter RD */
207 #define ENRSR_CRC 0x02 /* CRC error */
/linux-4.4.14/drivers/ipack/
H A Dipack.c327 dev_warn(&dev->dev, "ID CRC invalid found 0x%x, expected 0x%x.\n", ipack_parse_id1()
346 dev_warn(&dev->dev, "ID CRC invalid found 0x%x, expected 0x%x.\n", ipack_parse_id2()
/linux-4.4.14/drivers/net/wireless/prism54/
H A Disl_oid.h174 * Long preamble uses 128-bit sync field, 8-bit CRC
175 * Short preamble uses 56-bit sync field, 16-bit CRC

Completed in 5599 milliseconds

12345