Searched refs:crc (Results 1 - 25 of 558) sorted by last modified time

1234567891011>>

/linux-master/fs/erofs/
H A Dsuper.c58 u32 expected_crc, crc; local
70 crc = crc32c(~0, dsb, len);
73 if (crc != expected_crc) {
75 crc, expected_crc);
/linux-master/drivers/dma/xilinx/
H A Dxilinx_dpdma.c158 * @crc: descriptor CRC
176 u32 crc; member in struct:xilinx_dpdma_hw_desc
619 dev_dbg(dev, "crc: 0x%08x\n", hw_desc->crc);
/linux-master/net/mac80211/
H A Dmlme.c6265 parse_params.crc = ncrc;
6269 ncrc = elems->crc;
/linux-master/drivers/bluetooth/
H A Dbtmtk.c50 __le32 crc; member in struct:btmtk_section_map::__anon5::__anon6
/linux-master/fs/bcachefs/
H A Dfs.c922 if (p.crc.compression_type)
925 offset += p.crc.offset;
H A Dbackpointers.c458 if (!p.crc.csum_type)
461 bytes = p.crc.compressed_size << 9;
486 struct nonce nonce = extent_nonce(extent.k->version, p.crc);
487 struct bch_csum csum = bch2_checksum(c, p.crc.csum_type, nonce, data_buf, bytes);
488 if (fsck_err_on(bch2_crc_cmp(csum, p.crc.csum),
H A Dsysfs.c283 struct bch_extent_crc_unpacked crc;
287 bkey_for_each_crc(k.k, ptrs, crc, entry) {
288 incompressible |= crc.compression_type == BCH_COMPRESSION_TYPE_incompressible;
289 compressed |= crc_is_compressed(crc);
291 if (crc_is_compressed(crc)) {
292 s[crc.compression_type].nr_extents++;
293 s[crc.compression_type].sectors_compressed += crc.compressed_size;
294 s[crc.compression_type].sectors_uncompressed += crc
[all...]
H A Dextents.c267 lp.crc = bch2_extent_crc_unpack(l.k, NULL);
268 rp.crc = bch2_extent_crc_unpack(r.k, NULL);
272 if (lp.ptr.offset + lp.crc.offset + lp.crc.live_size !=
273 rp.ptr.offset + rp.crc.offset ||
292 if (lp.crc.compression_type != rp.crc.compression_type ||
293 lp.crc.nonce != rp.crc.nonce)
296 if (lp.crc
454 struct bch_extent_crc_unpacked crc; local
554 union bch_extent_crc *crc = (void *) ptrs.end; local
629 struct bch_extent_crc_unpacked crc; local
725 struct bch_extent_crc_unpacked crc = local
1030 struct bch_extent_crc_unpacked crc = local
1125 struct bch_extent_crc_unpacked crc; local
[all...]
H A Dchecksum.c24 * for native checksum aglorithms (like crc), a default seed value will do.
394 struct bch_extent_crc_unpacked *crc; member in struct:crc_split
415 if (mergeable || i->crc)
450 if (i->crc)
451 *i->crc = (struct bch_extent_crc_unpacked) {
H A Dchecksum.h191 struct bch_extent_crc_unpacked crc)
193 unsigned compression_type = crc_is_compressed(crc)
194 ? crc.compression_type
196 unsigned size = compression_type ? crc.uncompressed_size : 0;
205 return nonce_add(nonce, crc.nonce << 9);
190 extent_nonce(struct bversion version, struct bch_extent_crc_unpacked crc) argument
H A Dbuckets.h160 return crc_is_compressed(p.crc)
161 ? DIV_ROUND_UP_ULL(sectors * p.crc.compressed_size,
162 p.crc.uncompressed_size)
H A Dbackpointers.h133 p.crc.offset,
H A Ddata_update.c342 struct bch_extent_crc_unpacked crc)
347 m->op.crc = crc;
348 m->op.wbio.bio.bi_iter.bi_size = crc.compressed_size << 9;
554 if (crc_is_compressed(p.crc))
570 if (bch2_csum_type_is_encryption(p.crc.csum_type)) {
571 m->op.nonce = p.crc.nonce + p.crc.offset;
572 m->op.csum_type = p.crc.csum_type;
575 if (p.crc
341 bch2_data_update_read_done(struct data_update *m, struct bch_extent_crc_unpacked crc) argument
[all...]
H A Dfsck.c1512 struct bch_extent_crc_unpacked crc; local
1516 bkey_for_each_crc(k.k, ptrs, crc, i)
1517 if (crc_is_encoded(crc) &&
1518 crc.uncompressed_size > encoded_extent_max_sectors) {
/linux-master/drivers/usb/gadget/function/
H A Df_ncm.c37 /* to trigger crc/non-crc ndp signature */
1024 uint32_t crc; local
1027 crc = ~crc32_le(~0,
1031 put_unaligned_le32(crc, crc_pos);
1282 * ethernet hdr + crc or larger than max frame size
1291 uint32_t crc, crc2; local
1293 crc = get_unaligned_le32(ntb_ptr +
1299 if (crc != crc2) {
/linux-master/drivers/misc/mei/
H A Dvsc-tp.c165 u32 recv_crc = 0, crc = ~0; local
199 crc = crc32(crc, crc_src, cpy_len);
213 crc = crc32(crc, crc_src, cpy_len);
220 crc = crc32(crc, src, cpy_len);
246 if (~recv_crc != crc || le32_to_cpu(ack.seq) != tp->seq) {
247 dev_err(&tp->spi->dev, "recv crc or seq error\n");
275 u32 crc; local
[all...]
/linux-master/sound/pci/hda/
H A Dtas2781_hda_i2c.c551 unsigned int attr, crc; local
580 crc = crc32(~0, tas_priv->cali_data.data, 84) ^ ~0;
581 dev_dbg(tas_priv->dev, "cali crc 0x%08x PK tmp_val 0x%08x\n",
582 crc, tmp_val[21]);
584 if (crc == tmp_val[21]) {
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c6611 u32 crc = ~0x0; local
6620 temp = ((crc & 1) ^ data_byte) & 1;
6621 crc >>= 1;
6625 crc ^= 0xedb88320;
6628 return crc;
6633 u32 crc, hash = 0; local
6640 crc = bitrev32(~stmmac_vid_crc32_le(vid_le)) >> 28;
6641 hash |= (1 << crc);
/linux-master/fs/zonefs/
H A Dsuper.c1112 u32 crc, stored_crc; local
1138 crc = crc32(~0U, (unsigned char *)super, sizeof(struct zonefs_super));
1139 if (crc != stored_crc) {
1141 crc, stored_crc);
/linux-master/net/batman-adv/
H A Dtranslation-table.c882 tt_vlan->crc = htonl(vlan->tt.crc);
966 tt_vlan->crc = htonl(vlan->tt.crc);
1076 u32 crc; local
1085 crc = vlan->tt.crc;
1098 nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) ||
1808 u32 crc; local
1815 crc
2446 u32 i, crc_tmp, crc = 0; local
2524 u32 i, crc_tmp, crc = 0; local
2815 u32 crc; local
2881 u32 crc; local
[all...]
/linux-master/drivers/net/ethernet/micrel/
H A Dks8851_common.c624 u32 crc; local
629 crc = ether_crc(ETH_ALEN, ha->addr);
630 crc >>= (32 - 6); /* get top six bits */
632 rxctrl.mchash[crc >> 4] |= (1 << (crc & 0xf));
/linux-master/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_vp9_req_lat_if.c330 unsigned int crc[12]; member in struct:vdec_vp9_slice_state
1596 pfc->seq, vsi->state.crc[0], vsi->state.crc[1],
1597 vsi->state.crc[2], vsi->state.crc[3]);
1599 pfc->seq, vsi->state.crc[4], vsi->state.crc[5],
1600 vsi->state.crc[6], vsi->state.crc[7]);
1622 pfc->seq, vsi->state.crc[
[all...]
H A Dvdec_hevc_req_multi_if.c259 * @crc: Used to check whether hardware's status is right
265 u32 crc[8]; member in struct:vdec_hevc_slice_info
955 mtk_vdec_debug(ctx, "pic[%d] crc: 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x",
957 inst->vsi_core->dec.crc[0], inst->vsi_core->dec.crc[1],
958 inst->vsi_core->dec.crc[2], inst->vsi_core->dec.crc[3],
959 inst->vsi_core->dec.crc[4], inst->vsi_core->dec.crc[5],
960 inst->vsi_core->dec.crc[
[all...]
/linux-master/fs/f2fs/
H A Dsuper.c3420 __u32 crc = 0; local
3428 /* Check checksum_offset and crc in superblock */
3432 offsetof(struct f2fs_super_block, crc)) {
3437 crc = le32_to_cpu(raw_super->crc);
3438 if (!f2fs_crc_valid(sbi, crc, raw_super, crc_offset)) {
3439 f2fs_info(sbi, "Invalid SB checksum value: %u", crc);
3959 __u32 crc = 0; local
3968 /* we should update superblock crc here */
3970 crc
[all...]
/linux-master/fs/ext4/
H A Dsuper.c3227 __u16 crc = 0; local
3246 crc = csum32 & 0xFFFF;
3254 crc = crc16(~0, sbi->s_es->s_uuid, sizeof(sbi->s_es->s_uuid));
3255 crc = crc16(crc, (__u8 *)&le_group, sizeof(le_group));
3256 crc = crc16(crc, (__u8 *)gdp, offset);
3260 crc = crc16(crc, (__u8 *)gdp + offset,
3264 return cpu_to_le16(crc);
[all...]

Completed in 360 milliseconds

1234567891011>>