Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 20 of 20) sorted by relevance

/system/bt/embdrv/sbc/decoder/srce/
Dframing.c157 OI_UINT crc; in crc_iterate() local
160 crc = crc8_wide[idx >> 1]; in crc_iterate()
162 crc &= 0xff; in crc_iterate()
164 crc >>= 8; in crc_iterate()
167 return crc; in crc_iterate()
171 OI_UINT crc; in crc_iterate_top4() local
174 crc = crc8_wide[idx >> 1]; in crc_iterate_top4()
176 crc &= 0xff; in crc_iterate_top4()
178 crc >>= 8; in crc_iterate_top4()
181 return (oldcrc << 4) ^ crc; in crc_iterate_top4()
[all …]
Ddecoder-sbc.c243 uint8_t crc; in OI_CODEC_SBC_DecodeFrame() local
306 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_DecodeFrame()
307 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_DecodeFrame()
308 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, in OI_CODEC_SBC_DecodeFrame()
309 context->common.frameInfo.crc)); in OI_CODEC_SBC_DecodeFrame()
353 uint8_t crc; in OI_CODEC_SBC_SkipFrame() local
368 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_SkipFrame()
369 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_SkipFrame()
Ddecoder-private.c122 frame->crc = data[3]; in OI_SBC_ReadHeader()
/system/core/libsparse/
Dsparse_crc32.cpp92 uint32_t crc; in sparse_crc32() local
94 crc = crc_in ^ ~0U; in sparse_crc32()
95 while (size--) crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8); in sparse_crc32()
96 return crc ^ ~0U; in sparse_crc32()
Dsparse_read.cpp336 static int sparse_file_read_sparse(struct sparse_file* s, SparseFileSource* source, bool crc) { in sparse_file_read_sparse() argument
353 if (crc) { in sparse_file_read_sparse()
464 int sparse_file_read(struct sparse_file* s, int fd, bool sparse, bool crc) { in sparse_file_read() argument
465 if (crc && !sparse) { in sparse_file_read()
471 return sparse_file_read_sparse(s, &source, crc); in sparse_file_read()
477 int sparse_file_read_buf(struct sparse_file* s, char* buf, bool crc) { in sparse_file_read_buf() argument
479 return sparse_file_read_sparse(s, &source, crc); in sparse_file_read_buf()
483 bool crc) { in sparse_file_import_source() argument
529 ret = sparse_file_read_sparse(s, source, crc); in sparse_file_import_source()
538 struct sparse_file* sparse_file_import(int fd, bool verbose, bool crc) { in sparse_file_import() argument
[all …]
Dsparse.cpp139 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write() argument
145 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write()
156 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() argument
163 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback()
187 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk() argument
202 chunks, crc); in sparse_file_foreach_chunk()
224 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len() argument
231 chunks, crc); in sparse_file_len()
Doutput_file.h29 int sparse, int chunks, int crc);
32 int sparse, int chunks, int crc);
Dsparse_crc32.h22 uint32_t sparse_crc32(uint32_t crc, const void* buf, size_t size);
Doutput_file.cpp506 int chunks, bool crc) { in output_file_init() argument
514 out->use_crc = crc; in output_file_init()
594 int sparse, int chunks, int crc) { in output_file_open_callback() argument
609 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback()
619 int sparse, int chunks, int crc) { in output_file_open_fd() argument
634 ret = output_file_init(out, block_size, len, sparse, chunks, crc); in output_file_open_fd()
Dsimg_dump.py179 crc = struct.unpack("<I", crc_bin)
180 curtype = format("Unverified CRC32 0x%08X" % (crc))
/system/core/libsparse/include/sparse/
Dsparse.h168 bool crc);
182 int64_t sparse_file_len(struct sparse_file *s, bool sparse, bool crc);
209 int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc,
226 int sparse_file_foreach_chunk(struct sparse_file *s, bool sparse, bool crc,
246 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc);
261 int sparse_file_read_buf(struct sparse_file *s, char *buf, bool crc);
276 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc);
291 struct sparse_file *sparse_file_import_buf(char* buf, bool verbose, bool crc);
308 struct sparse_file *sparse_file_import_auto(int fd, bool crc, bool verbose);
/system/nfc/src/adaptation/
DCrcChecksum.cc73 uint16_t crc = 0; in crcChecksumCompute() local
78 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; in crcChecksumCompute()
80 return (crc); in crcChecksumCompute()
/system/core/libziparchive/
Dzip_archive.cc1001 uint64_t crc = 0; in Inflate() local
1034 crc = crc32(crc, &write_buf[0], write_size); in Inflate()
1051 *crc_out = crc; in Inflate()
1079 uint64_t crc = 0; in CopyEntryToWriter() local
1097 crc = crc32(crc, &buf[0], block_size); in CopyEntryToWriter()
1101 *crc_out = crc; in CopyEntryToWriter()
1111 uint64_t crc = 0; in ExtractToWriter() local
1113 return_value = CopyEntryToWriter(archive->mapped_zip, entry, writer, &crc); in ExtractToWriter()
1115 return_value = InflateEntryToWriter(archive->mapped_zip, entry, writer, &crc); in ExtractToWriter()
1126 if (kCrcChecksEnabled && (entry->crc32 != static_cast<uint32_t>(crc))) { in ExtractToWriter()
[all …]
/system/core/storaged/
Dstoraged.proto55 optional uint32 crc = 1; field
Dstoraged.cpp192 if (proto.crc() != computed_crc) { in load_proto()
/system/vold/
DCheckpoint.cpp391 void crc32(const void* data, size_t n_bytes, uint32_t* crc) { in crc32() argument
438 *crc ^= ((uint8_t*)data)[i]; in crc32()
439 *crc = table[(uint8_t)*crc] ^ *crc >> 8; in crc32()
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h179 uint8_t crc; /**< Parity check byte used for error detection. */ member
/system/bt/stack/l2cap/
Dl2c_fcr.cc116 unsigned short crc = icrc; in l2c_fcr_updcrc() local
121 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; in l2c_fcr_updcrc()
124 return (crc); in l2c_fcr_updcrc()
/system/update_engine/
Dupdate_metadata.proto83 // xz file after decompression. The xz file should only use crc32 or no crc at
/system/update_engine/update_engine/
Dupdate_metadata.proto83 // xz file after decompression. The xz file should only use crc32 or no crc at