/linux-master/fs/bcachefs/ |
H A D | io_read.c | 156 bch2_data_update_read_done(&op->write, rbio->pick.crc); 266 ? max(pick->crc.compressed_size, pick->crc.live_size) 396 rbio->pick.crc.offset)) { 479 u64 data_offset = rbio->data_pos.offset - rbio->pick.crc.offset; 486 if (crc_is_compressed(rbio->pick.crc)) 500 k.k->p.offset > data_offset + rbio->pick.crc.uncompressed_size) 504 rbio->pick.crc, NULL, &new_crc, 506 rbio->pick.crc.csum_type)) { 548 struct bch_extent_crc_unpacked crc local [all...] |
H A D | io_write.c | 679 struct bch_extent_crc_unpacked crc) 683 op->pos.offset += crc.uncompressed_size; 687 e->k.size = crc.uncompressed_size; 690 if (crc.csum_type || 691 crc.compression_type || 692 crc.nonce) 693 bch2_extent_crc_append(&e->k_i, crc); 695 bch2_alloc_sectors_append_ptrs_inlined(op->c, wp, &e->k_i, crc.compressed_size, 760 if (bch2_csum_type_is_encryption(op->crc.csum_type) != 762 new_csum_type = op->crc 676 init_append_extent(struct bch_write_op *op, struct write_point *wp, struct bversion version, struct bch_extent_crc_unpacked crc) argument 933 struct bch_extent_crc_unpacked crc = { 0 }; local [all...] |
H A D | extents_types.h | 25 struct bch_extent_crc_unpacked crc; member in struct:extent_ptr_decoded
|
H A D | extents.h | 152 bch2_extent_crc_unpack(const struct bkey *k, const union bch_extent_crc *crc) argument 162 if (!crc) 169 switch (extent_entry_type(to_entry(crc))) { 172 common_fields(crc->crc32), 175 *((__le32 *) &ret.csum.lo) = (__le32 __force) crc->crc32.csum; 180 common_fields(crc->crc64), 181 .nonce = crc->crc64.nonce, 182 .csum.lo = (__force __le64) crc->crc64.csum_lo, 185 *((__le16 *) &ret.csum.hi) = (__le16 __force) crc->crc64.csum_hi; 191 common_fields(crc 204 crc_is_compressed(struct bch_extent_crc_unpacked crc) argument 210 crc_is_encoded(struct bch_extent_crc_unpacked crc) argument [all...] |
H A D | checksum.h | 191 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
|
/linux-master/crypto/ |
H A D | crct10dif_common.c | 27 #include <linux/crc-t10dif.h> 70 __u16 crc_t10dif_generic(__u16 crc, const unsigned char *buffer, size_t len) argument 75 crc = (crc << 8) ^ t10_dif_crc_table[((crc >> 8) ^ buffer[i]) & 0xff]; 77 return crc;
|
/linux-master/fs/jffs2/ |
H A D | read.c | 29 uint32_t crc; local 51 crc = crc32(0, ri, sizeof(*ri)-8); 55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), 57 if (crc != je32_to_cpu(ri->node_crc)) { 59 je32_to_cpu(ri->node_crc), crc, ref_offset(fd->raw)); 123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); 124 if (crc != je32_to_cpu(ri->data_crc)) { 126 je32_to_cpu(ri->data_crc), crc, ref_offset(fd->raw)); 130 jffs2_dbg(2, "Data CRC matches calculated CRC %08x\n", crc);
|
/linux-master/include/linux/platform_data/media/ |
H A D | omap4iss.h | 39 * @crc: Enable the cyclic redundancy check 43 unsigned crc:1; member in struct:iss_csi2_platform_data
|
/linux-master/drivers/nfc/microread/ |
H A D | i2c.c | 58 u8 crc = 0; local 65 crc = crc ^ skb->data[i]; 67 skb_put_u8(skb, crc); 79 u8 crc = 0; local 82 crc = crc ^ skb->data[i]; 84 if (crc != skb->data[skb->len-1]) { 85 pr_err("CRC error 0x%x != 0x%x\n", crc, skb->data[skb->len-1]);
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_jedec.c | 35 u16 crc; local 67 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)p, 510); 68 if (crc == le16_to_cpu(p->crc))
|
/linux-master/drivers/leds/ |
H A D | leds-cr0014114.c | 65 u8 crc; local 67 for (i = 1, crc = 1; i < len - 1; i++) 68 crc += buf[i]; 69 crc |= BIT(7); 72 if (crc == CR_SET_BRIGHTNESS || 73 crc == CR_INIT_REENUMERATE || 74 crc == CR_NEXT_REENUMERATE) 75 crc = 0xfe; 77 buf[len - 1] = crc;
|
/linux-master/net/nfc/nci/ |
H A D | spi.c | 12 #include <linux/crc-ccitt.h> 74 u16 crc; local 76 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); 77 skb_put_u8(skb, crc >> 8); 78 skb_put_u8(skb, crc & 0xFF); 150 u16 crc; local 164 crc = crc_ccitt(CRC_INIT, skb->data, skb->len); 165 skb_put_u8(skb, crc >> 8); 166 skb_put_u8(skb, crc & 0xFF);
|
/linux-master/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_psi.c | 81 static u32 dvb_crc32(u32 crc, u8 *data, u32 len) argument 85 crc = (crc << 8) ^ CRC_LUT[((crc >> 24) ^ *data++) & 0xff]; 86 return crc; 174 if (!args->crc && !args->is_crc) 177 if (args->crc) 178 *args->crc = dvb_crc32(*args->crc, args->from, args->len); 254 .from = &args->crc, 1015 u32 crc = INITIAL_CRC; local 1194 u32 crc = INITIAL_CRC; local 1368 u32 crc = INITIAL_CRC; local 1709 u32 crc = INITIAL_CRC; local 1920 u32 crc = INITIAL_CRC; local [all...] |
/linux-master/drivers/isdn/hardware/mISDN/ |
H A D | isdnhdlc.c | 14 #include <linux/crc-ccitt.h> 80 else if (hdlc->crc != 0xf0b8) /* crc error */ 214 hdlc->crc = 0xffff; 257 hdlc->crc = 0xffff; 284 hdlc->crc = crc_ccitt_byte(hdlc->crc, 368 hdlc->crc ^= 0xffff; 371 hdlc->crc & 0xff; 406 hdlc->crc [all...] |
/linux-master/fs/nilfs2/ |
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/scripts/genksyms/ |
H A D | genksyms.c | 118 static unsigned long partial_crc32_one(unsigned char c, unsigned long crc) argument 120 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); 123 static unsigned long partial_crc32(const char *s, unsigned long crc) argument 126 crc = partial_crc32_one(*s++, crc); 127 return crc; 528 static unsigned long expand_and_crc_sym(struct symbol *sym, unsigned long crc) argument 536 return crc; 559 crc 640 unsigned long crc; local [all...] |
/linux-master/arch/x86/crypto/ |
H A D | crc32c-intel_glue.c | 48 static u32 crc32c_intel_le_hw_byte(u32 crc, unsigned char const *data, size_t length) argument 52 : "+r" (crc) : "rm" (*data)); 56 return crc; 59 static u32 __pure crc32c_intel_le_hw(u32 crc, unsigned char const *p, size_t len) argument 67 : "+r" (crc) : "rm" (*ptmp)); 72 crc = crc32c_intel_le_hw_byte(crc, (unsigned char *)ptmp, 75 return crc;
|
/linux-master/include/media/ |
H A D | vsp1.h | 38 void (*callback)(void *data, unsigned int status, u32 crc); 103 * @crc: CRC computation configuration 107 struct vsp1_du_crc_config crc; member in struct:vsp1_du_atomic_pipe_config
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_gen2_dc.c | 35 req_pars->crc.legacy.initial_adler = COMP_CPR_INITIAL_ADLER; 36 req_pars->crc.legacy.initial_crc32 = COMP_CPR_INITIAL_CRC;
|
/linux-master/drivers/nfc/st21nfca/ |
H A D | i2c.c | 9 #include <linux/crc-ccitt.h> 43 /* 2 bytes crc + EOF */ 61 * crc might have fail because i2c macro 156 u16 crc; local 161 crc = crc_ccitt(0xffff, skb->data, skb->len); 162 crc = ~crc; 164 tmp = crc & 0x00ff; 167 tmp = (crc >> 8) & 0x00ff; 265 u16 crc; local [all...] |
/linux-master/lib/xz/ |
H A D | xz_dec_test.c | 62 static uint32_t crc; variable 73 crc = 0xFFFFFFFF; 134 crc = crc32(crc, buffer_out, buffers.out_pos); 144 "CRC32 = 0x%08X\n", ~crc);
|
/linux-master/lib/ |
H A D | crc-itu-t.c | 3 * crc-itu-t.c 8 #include <linux/crc-itu-t.h> 51 * @crc: previous CRC value 57 u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len) argument 60 crc = crc_itu_t_byte(crc, *buffer++); 61 return crc;
|
H A D | crc-ccitt.c | 3 * linux/lib/crc-ccitt.c 8 #include <linux/crc-ccitt.h> 55 * @crc: previous CRC value 59 u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) argument 62 crc = crc_ccitt_byte(crc, *buffer++); 63 return crc;
|
/linux-master/drivers/w1/slaves/ |
H A D | w1_ds28e17.c | 153 u16 crc; local 158 crc = crc16(CRC16_INIT, command, command_count); 162 crc = crc16(crc, w1_buf, 1); 165 crc = crc16(crc, buffer, count); 168 w1_buf[0] = ~(crc & 0xFF); 169 w1_buf[1] = ~((crc >> 8) & 0xFF); 265 u16 crc; local 277 crc 304 u16 crc; local [all...] |
/linux-master/sound/usb/6fire/ |
H A D | firmware.c | 59 static u8 usb6fire_fw_ihex_hex(const u8 *data, u8 *crc) argument 72 *crc += val; 82 u8 crc = 0; local 103 record->txt_offset, &crc); 106 record->txt_offset, &crc) << 8; 109 record->txt_offset, &crc); 112 record->txt_offset, &crc); 115 /* number of characters needed for data and crc entries */ 122 + record->txt_offset, &crc); 125 usb6fire_fw_ihex_hex(record->txt_data + record->txt_offset, &crc); [all...] |