/linux-master/lib/ |
H A D | crc64-rocksoft.c | 57 u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len) argument 61 u64 crc; member in struct:__anon138 66 return crc64_rocksoft_generic(crc, buffer, len); 70 desc.crc = crc; 76 return desc.crc;
|
H A D | libcrc32c.c | 4 *@Article{castagnoli-crc, 16 * the iscsi-crc.c module of the linux-iscsi driver at 38 u32 crc32c(u32 crc, const void *address, unsigned int length) argument 45 *ctx = crc;
|
/linux-master/drivers/media/platform/ti/omap3isp/ |
H A D | omap3isp.h | 90 * @crc: Enable the cyclic redundancy check 103 unsigned int crc:1; member in struct:isp_ccp2_cfg 113 * @crc: Enable the cyclic redundancy check 118 unsigned crc:1; member in struct:isp_csi2_cfg
|
/linux-master/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_drm.h | 28 * @crc: CRC computation configuration 42 struct vsp1_du_crc_config crc; member in struct:vsp1_drm_pipeline 45 void (*du_complete)(void *data, unsigned int status, u32 crc);
|
/linux-master/drivers/w1/slaves/ |
H A D | w1_ds2406.c | 32 u16 crc = 0; local 51 crc = crc16_byte(crc, w1_buf[i]); 52 if (crc == 0xb001) /* good read? */ 69 u16 crc = 0; local 87 crc = crc16_byte(crc, w1_buf[i]); 88 if (crc == 0xb001) /* good read? */
|
/linux-master/include/linux/ |
H A D | export-internal.h | 65 #define SYMBOL_CRC(sym, crc, sec) \ 69 ".long " #crc "\n" \
|
H A D | crc8.h | 25 * Return value of crc8() indicating valid message+crc. This is true 40 * crc8_populate_lsb - fill crc table for given polynomial in regular bit order. 58 * crc8_populate_msb - fill crc table for given polynomial in reverse bit order. 78 * @table: crc table used for calculation. 81 * @crc: previous returned crc8 value. 97 * (see URL http://www.ross.net/crc/download/crc_v3.txt). 99 u8 crc8(const u8 table[CRC8_TABLE_SIZE], const u8 *pdata, size_t nbytes, u8 crc);
|
/linux-master/arch/s390/crypto/ |
H A D | crc32be-vx.c | 69 * @crc: Initial CRC value, typically ~0. 80 u32 crc32_be_vgfm_16(u32 crc, unsigned char const *buf, size_t size) argument 87 fpu_vlvgf(0, crc, 0);
|
/linux-master/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | core917d.c | 34 .crc = &crc907d,
|
/linux-master/arch/mips/bcm63xx/ |
H A D | nvram.c | 29 u32 crc, expected_crc; local 36 if (bcm963xx_nvram_checksum(&nvram, &expected_crc, &crc)) 38 expected_crc, crc);
|
/linux-master/drivers/scsi/libfc/ |
H A D | fc_frame.c | 24 u32 crc; local 33 crc = ~crc32(~0, bp, len); 34 error = crc ^ fr_crc(fp);
|
/linux-master/tools/firmware/ |
H A D | ihex2fw.c | 46 static uint8_t hex(const uint8_t *data, uint8_t *crc) argument 49 *crc += val; 138 uint8_t type, crc = 0, crcbyte = 0; local 157 len = hex(data + i, &crc); i += 2; 160 len += hex(data + i, &crc); i += 2; 178 record->addr = hex(data + i, &crc) << 8; i += 2; 179 record->addr |= hex(data + i, &crc); i += 2; 180 type = hex(data + i, &crc); i += 2; 183 record->data[j] = hex(data + i, &crc); 186 crcbyte = hex(data + i, &crc); [all...] |
/linux-master/net/wireless/ |
H A D | lib80211_crypt_wep.c | 108 u32 crc, klen, len; local 131 crc = ~crc32_le(~0, pos, len); 133 icv[0] = crc; 134 icv[1] = crc >> 8; 135 icv[2] = crc >> 16; 136 icv[3] = crc >> 24; 154 u32 crc, klen, plen; local 180 crc = ~crc32_le(~0, pos, plen); 181 icv[0] = crc; 182 icv[1] = crc >> [all...] |
/linux-master/drivers/staging/rtl8192e/ |
H A D | rtllib_crypt_wep.c | 67 u32 crc; local 107 crc = ~crc32_le(~0, pos, len); 109 icv[0] = crc; 110 icv[1] = crc >> 8; 111 icv[2] = crc >> 16; 112 icv[3] = crc >> 24; 136 u32 crc; local 162 crc = ~crc32_le(~0, pos, plen); 163 icv[0] = crc; 164 icv[1] = crc >> [all...] |
/linux-master/drivers/iio/chemical/ |
H A D | scd30_i2c.c | 72 char crc; local 82 crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE); 84 buf[i] = crc; 96 /* validate received data and strip off crc bytes */ 98 crc = crc8(scd30_i2c_crc8_tbl, buf + i, 2, CRC8_INIT_VALUE); 99 if (crc != buf[i + 2]) {
|
H A D | ags02ma.c | 37 u8 crc; member in struct:ags02ma_reading 44 u8 crc; local 64 crc = crc8(ags02ma_crc8_table, (u8 *)&read_buffer.data, 66 if (crc != read_buffer.crc) {
|
/linux-master/drivers/iio/humidity/ |
H A D | am2315.c | 79 u16 crc = 0xffff; local 82 crc ^= *data++; 84 if (crc & 0x01) { 85 crc >>= 1; 86 crc ^= 0xA001; 88 crc >>= 1; 93 return crc; 115 u16 crc; local 139 crc = am2315_crc(rx_buf, sizeof(rx_buf) - 2); 140 if ((crc [all...] |
/linux-master/fs/bcachefs/ |
H A D | extents.c | 267 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 D | compress.c | 153 void *dst_data, struct bch_extent_crc_unpacked crc) 157 size_t dst_len = crc.uncompressed_size << 9; 163 switch (crc.compression_type) { 224 struct bch_extent_crc_unpacked *crc) 227 size_t dst_len = crc->uncompressed_size << 9; 231 BUG_ON(DIV_ROUND_UP(crc->live_size, PAGE_SECTORS) > bio->bi_max_vecs); 233 if (crc->uncompressed_size << 9 > c->opts.encoded_extent_max || 234 crc->compressed_size << 9 > c->opts.encoded_extent_max) { 241 if (__bio_uncompress(c, bio, data.b, *crc)) { 252 bio->bi_iter.bi_size = crc 152 __bio_uncompress(struct bch_fs *c, struct bio *src, void *dst_data, struct bch_extent_crc_unpacked crc) argument 223 bch2_bio_uncompress_inplace(struct bch_fs *c, struct bio *bio, struct bch_extent_crc_unpacked *crc) argument 267 bch2_bio_uncompress(struct bch_fs *c, struct bio *src, struct bio *dst, struct bvec_iter dst_iter, struct bch_extent_crc_unpacked crc) argument [all...] |
/linux-master/arch/sparc/crypto/ |
H A D | crc32c_glue.c | 55 static u32 crc32c_compute(u32 crc, const u8 *data, unsigned int len) argument 62 crc = __crc32c_le(crc, data, n); 68 crc32c_sparc64(&crc, (const u64 *)data, n); 73 crc = __crc32c_le(crc, data, len); 74 return crc;
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_onfi.c | 21 u16 onfi_crc16(u16 crc, u8 const *p, size_t len) argument 25 crc ^= *p++ << 8; 27 crc = (crc << 1) ^ ((crc & 0x8000) ? 0x8005 : 0); 30 return crc; 64 != le16_to_cpu(ep->crc))) { 155 u16 crc; local 188 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)&pbuf[i], 254); 189 if (crc [all...] |
/linux-master/drivers/acpi/ |
H A D | acpi_dbg.c | 253 struct circ_buf *crc = &acpi_aml_io.out_crc; local 257 ret = acpi_aml_lock_write(crc, ACPI_AML_OUT_KERN); 262 p = &crc->buf[crc->head]; 263 n = min(len, circ_space_to_end(crc)); 267 crc->head = (crc->head + n) & (ACPI_AML_BUF_SIZE - 1); 275 struct circ_buf *crc = &acpi_aml_io.in_crc; local 278 ret = acpi_aml_lock_read(crc, ACPI_AML_IN_KERN); 283 p = &crc 575 struct circ_buf *crc = &acpi_aml_io.out_crc; local 645 struct circ_buf *crc = &acpi_aml_io.in_crc; local [all...] |
/linux-master/kernel/power/ |
H A D | swap.c | 604 wait_queue_head_t go; /* start crc update */ 605 wait_queue_head_t done; /* crc update done */ 712 struct crc_data *crc = NULL; local 739 crc = kzalloc(sizeof(*crc), GFP_KERNEL); 740 if (!crc) { 741 pr_err("Failed to allocate crc\n"); 774 init_waitqueue_head(&crc->go); 775 init_waitqueue_head(&crc->done); 778 crc 1221 struct crc_data *crc = NULL; local [all...] |
/linux-master/drivers/net/usb/ |
H A D | cdc_eem.c | 94 u32 crc = 0; local 134 crc = crc32_le(~0, skb->data, skb->len); 135 crc = ~crc; 137 put_unaligned_le32(crc, skb_put(skb, 4)); 256 u32 crc, crc2; local 302 crc = get_unaligned_le32(skb2->data 307 crc = get_unaligned_be32(skb2->data 314 return crc == crc2; 316 if (unlikely(crc ! [all...] |
/linux-master/arch/x86/boot/tools/ |
H A D | build.c | 109 static u32 partial_crc32_one(u8 c, u32 crc) argument 111 return crctab32[(crc ^ c) & 0xff] ^ (crc >> 8); 114 static u32 partial_crc32(const u8 *s, int len, u32 crc) argument 117 crc = partial_crc32_one(*s++, crc); 118 return crc; 180 u32 crc = 0xffffffffUL; local 225 crc = partial_crc32(buf, i, crc); [all...] |