Home
last modified time | relevance | path

Searched refs:crc (Results 1 – 22 of 22) 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.c249 uint8_t crc; in OI_CODEC_SBC_DecodeFrame() local
312 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_DecodeFrame()
313 if (crc != context->common.frameInfo.crc) { in OI_CODEC_SBC_DecodeFrame()
314 TRACE(("CRC Mismatch: calc=%02x read=%02x\n", crc, in OI_CODEC_SBC_DecodeFrame()
315 context->common.frameInfo.crc)); in OI_CODEC_SBC_DecodeFrame()
361 uint8_t crc; in OI_CODEC_SBC_SkipFrame() local
376 crc = OI_SBC_CalculateChecksum(&context->common.frameInfo, *frameData); in OI_CODEC_SBC_SkipFrame()
377 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 …]
Doutput_file.h29 int sparse, int chunks, int crc);
32 int sparse, int chunks, int crc);
Dsparse.cpp145 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write() argument
157 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write()
168 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback() argument
175 out = output_file_open_callback(write, priv, s->block_size, s->len, false, sparse, chunks, crc); in sparse_file_callback()
199 int sparse_file_foreach_chunk(struct sparse_file* s, bool sparse, bool crc, in sparse_file_foreach_chunk() argument
214 chunks, crc); in sparse_file_foreach_chunk()
236 int64_t sparse_file_len(struct sparse_file* s, bool sparse, bool crc) { in sparse_file_len() argument
243 chunks, crc); in sparse_file_len()
Dsparse_crc32.h22 uint32_t sparse_crc32(uint32_t crc, const void* buf, size_t size);
Doutput_file.cpp504 int chunks, bool crc) { in output_file_init() argument
512 out->use_crc = crc; in output_file_init()
592 int sparse, int chunks, int crc) { in output_file_open_callback() argument
607 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback()
617 int sparse, int chunks, int crc) { in output_file_open_fd() argument
632 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/bt/gd/l2cap/
Dfcs.cc48 crc = 0; in Initialize()
52 crc = ((crc >> 8) & 0x00ff) ^ crctab[(crc & 0x00ff) ^ byte]; in AddByte()
56 return crc; in GetChecksum()
Dfcs.h34 uint16_t crc;
/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/libziparchive/
Dzip_archive.cc1240 uLong crc = 0; in Inflate() local
1276 crc = crc32(crc, &write_buf[0], static_cast<uint32_t>(write_size)); in Inflate()
1294 *crc_out = crc; in Inflate()
1321 uLong crc = 0; in CopyEntryToWriter() local
1341 crc = crc32(crc, &buf[0], block_size); in CopyEntryToWriter()
1347 *crc_out = crc; in CopyEntryToWriter()
1359 uint64_t crc = 0; in ExtractToWriter() local
1362 CopyEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in ExtractToWriter()
1365 InflateEntryToWriter(handle->mapped_zip, entry, writer, kCrcChecksEnabled ? &crc : nullptr); in ExtractToWriter()
1376 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.cpp429 void crc32(const void* data, size_t n_bytes, uint32_t* crc) { in crc32() argument
476 *crc ^= ((uint8_t*)data)[i]; in crc32()
477 *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.cc114 unsigned short crc = icrc; in l2c_fcr_updcrc() local
119 crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; in l2c_fcr_updcrc()
122 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