/linux-master/fs/udf/ |
H A D | namei.c | 27 #include <linux/crc-itu-t.h>
|
/linux-master/fs/nilfs2/ |
H A D | the_nilfs.c | 511 u32 crc; local 518 crc = crc32_le(le32_to_cpu(sbp->s_crc_seed), (unsigned char *)sbp, 520 crc = crc32_le(crc, sum, 4); 521 crc = crc32_le(crc, (unsigned char *)sbp + sumoff + 4, 523 return crc == le32_to_cpu(sbp->s_sum);
|
H A D | recovery.c | 99 u32 crc; local 104 crc = crc32_le(nilfs->ns_crc_seed, 115 crc = crc32_le(crc, bh->b_data, size); 119 *sum = crc; 135 u32 crc; local 154 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, 159 if (crc != le32_to_cpu(sr->sr_sum)) { 204 u32 crc; local 222 if (nilfs_compute_checksum(nilfs, bh_sum, &crc, sizeo [all...] |
H A D | segbuf.c | 181 u32 crc; local 188 crc = crc32_le(seed, 198 crc = crc32_le(crc, bh->b_data, size); 200 raw_sum->ss_sumsum = cpu_to_le32(crc); 209 u32 crc; local 214 crc = crc32_le(seed, 220 crc = crc32_le(crc, bh->b_data, bh->b_size); 224 crc 237 u32 crc; local [all...] |
/linux-master/fs/ext4/ |
H A D | ext4.h | 2463 static inline u32 ext4_chksum(struct ext4_sb_info *sbi, u32 crc, argument 2474 *(u32 *)desc.ctx = crc;
|
/linux-master/drivers/net/ethernet/sun/ |
H A D | sunhme.c | 1353 u32 crc; local 1357 crc = ether_crc_le(6, ha->addr); 1358 crc >>= 26; 1359 hash_table[crc >> 4] |= 1 << (crc & 0xf); 2090 u32 crc; local 2107 crc = ether_crc_le(6, ha->addr); 2108 crc >>= 26; 2109 hash_table[crc >> 4] |= 1 << (crc [all...] |
/linux-master/drivers/mmc/host/ |
H A D | mmc_spi.c | 19 #include <linux/crc-itu-t.h> 70 /* Read and write blocks start with these tokens and end with crc; 114 struct spi_transfer token, t, crc, early_status; member in struct:mmc_spi_host 543 t = &host->crc; 676 * + token ... if error token, no data or crc 728 /* Walk through the data and the crc and do 749 u16 crc = crc_itu_t(0, t->rx_buf, t->len); local 752 if (scratch->crc_val != crc) { 754 "read - crc error: crc_val=0x%04x, computed=0x%04x len=%d\n", 755 scratch->crc_val, crc, [all...] |
/linux-master/drivers/media/i2c/ |
H A D | thp7312.c | 1748 u64 crc; local 1769 ret = cci_read(thp7312->regmap, THP7312_REG_FW_CRC_RESULT, &crc, NULL); 1773 if (fw_crc != crc) { 1775 fw_crc, crc);
|
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | head.c | 27 #include "crc.h" 46 if (clr.crc) nv50_crc_atomic_clr(head); 75 if (asyh->set.crc ) nv50_crc_atomic_set (head, asyh); 487 asyh->crc = armh->crc;
|
/linux-master/drivers/gpu/drm/mxsfb/ |
H A D | mxsfb_drv.c | 162 u32 reg, crc; local 170 crc = readl(mxsfb->base + LCDC_V4_CRC_STAT); 172 drm_crtc_add_crc_entry(&mxsfb->crtc, true, vbc, &crc);
|
/linux-master/drivers/char/tpm/ |
H A D | tpm_tis_i2c.c | 14 #include <linux/crc-ccitt.h> 268 /* reflect crc result, regardless of host endianness */
|
/linux-master/net/mac80211/ |
H A D | parse.c | 57 ieee80211_parse_extension_element(u32 *crc, argument 186 if (crc && calc_crc) 187 *crc = crc32_be(*crc, (void *)elem, elem->datalen + 2); 199 u32 crc = params->crc; local 269 crc = crc32_be(crc, pos - 2, elen + 2); 323 crc = crc32_be(crc, po [all...] |
/linux-master/net/ipv6/ |
H A D | calipso.c | 33 #include <linux/crc-ccitt.h> 574 u16 crc, len = option[1] + 2; local 579 crc = crc_ccitt(0xffff, option, 8); 580 crc = crc_ccitt(crc, zero, sizeof(zero)); 582 crc = crc_ccitt(crc, option + 10, len - 10); 583 crc = ~crc; 584 if (option[8] != (crc 726 u16 crc; local [all...] |
/linux-master/fs/btrfs/ |
H A D | send.h | 53 /* crc including the header with zero crc field */ 54 __le32 crc; member in struct:btrfs_cmd_header
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
H A D | trx.c | 243 (!pstatus->crc) && (!pstatus->icv)); 275 status->crc = (u16)get_rx_desc_crc32(pdesc); 276 status->hwerror = (status->crc | status->icv); 295 if (status->crc)
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
H A D | trx.c | 304 stats->crc = (u16)get_rx_desc_crc32(pdesc); 305 stats->hwerror = (stats->crc | stats->icv); 372 stats.crc = (u16)get_rx_desc_crc32(rxdesc); 373 stats.hwerror = (stats.crc | stats.icv);
|
H A D | mac.c | 737 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv));
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
H A D | trx.c | 241 (!pstats->hwerror) && (!pstats->crc) && (!pstats->icv)); 272 stats->crc = (u16)get_rx_desc_crc32(p_desc); 273 stats->hwerror = (stats->crc | stats->icv); 292 if (stats->crc)
|
/linux-master/drivers/net/wireless/realtek/rtlwifi/ |
H A D | pci.c | 778 if (!stats.crc && !stats.hwerror && (skb->len > FCS_LEN)) {
|
H A D | core.c | 371 static u16 crc16_ccitt(u8 data, u16 crc) argument 378 crc_bit15 = ((crc & BIT(15)) ? 1 : 0); 382 result = crc << 1; 388 crc_bit11 = ((crc & BIT(11)) ? 1 : 0) ^ shift_in; 394 crc_bit4 = ((crc & BIT(4)) ? 1 : 0) ^ shift_in; 400 crc = result; 403 return crc; 408 u16 crc = 0xffff; local 412 crc = crc16_ccitt(pattern[i], crc); [all...] |
/linux-master/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt73usb.c | 14 #include <linux/crc-itu-t.h> 1071 u16 crc; local 1080 * The last 2 bytes in the firmware array are the crc checksum itself, 1081 * this means that we should never pass those 2 bytes to the crc 1087 * Use the crc itu-t algorithm. 1089 crc = crc_itu_t(0, data, len - 2); 1090 crc = crc_itu_t_byte(crc, 0); 1091 crc = crc_itu_t_byte(crc, [all...] |
H A D | rt61pci.c | 14 #include <linux/crc-itu-t.h> 1174 u16 crc; local 1183 * The last 2 bytes in the firmware array are the crc checksum itself. 1184 * This means that we should never pass those 2 bytes to the crc 1190 * Use the crc itu-t algorithm. 1192 crc = crc_itu_t(0, data, len - 2); 1193 crc = crc_itu_t_byte(crc, 0); 1194 crc = crc_itu_t_byte(crc, [all...] |
H A D | rt2800lib.c | 24 #include <linux/crc-ccitt.h> 630 u16 crc; local 633 * The last 2 bytes in the firmware array are the crc checksum itself, 634 * this means that we should never pass those 2 bytes to the crc 640 * Use the crc ccitt algorithm. 644 * Obviously using crc ccitt directly is much more efficient. 646 crc = crc_ccitt(~0, data, len - 2); 649 * There is a small difference between the crc-itu-t + bitrev and 650 * the crc-ccitt crc calculatio [all...] |
/linux-master/drivers/net/wireless/microchip/wilc1000/ |
H A D | spi.c | 10 #include <linux/crc-itu-t.h> 120 u8 crc[]; member in struct:wilc_spi_cmd::__anon1470::__anon1471 125 u8 crc[]; member in struct:wilc_spi_cmd::__anon1470::__anon1472 130 u8 crc[]; member in struct:wilc_spi_cmd::__anon1470::__anon1473 135 u8 crc[]; member in struct:wilc_spi_cmd::__anon1470::__anon1474 140 u8 crc[]; member in struct:wilc_spi_cmd::__anon1470::__anon1475 148 u8 crc[]; member in struct:wilc_spi_read_rsp_data 424 u8 cmd, order, crc[2]; local 471 crc[0] = crc_calc >> 8; 472 crc[ 678 u8 crc[2]; local [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | mcu.c | 44 __le32 crc; member in struct:mt7663_fw_buf
|