/system/bt/embdrv/sbc/decoder/srce/ |
D | framing.c | 157 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 …]
|
D | decoder-sbc.c | 249 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()
|
D | decoder-private.c | 122 frame->crc = data[3]; in OI_SBC_ReadHeader()
|
/system/core/libsparse/ |
D | sparse_crc32.cpp | 92 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()
|
D | sparse_read.cpp | 336 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 …]
|
D | output_file.h | 29 int sparse, int chunks, int crc); 32 int sparse, int chunks, int crc);
|
D | sparse.cpp | 145 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()
|
D | sparse_crc32.h | 22 uint32_t sparse_crc32(uint32_t crc, const void* buf, size_t size);
|
D | output_file.cpp | 504 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()
|
D | simg_dump.py | 179 crc = struct.unpack("<I", crc_bin) 180 curtype = format("Unverified CRC32 0x%08X" % (crc))
|
/system/core/libsparse/include/sparse/ |
D | sparse.h | 168 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/ |
D | fcs.cc | 48 crc = 0; in Initialize() 52 crc = ((crc >> 8) & 0x00ff) ^ crctab[(crc & 0x00ff) ^ byte]; in AddByte() 56 return crc; in GetChecksum()
|
D | fcs.h | 34 uint16_t crc;
|
/system/nfc/src/adaptation/ |
D | CrcChecksum.cc | 73 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/ |
D | zip_archive.cc | 1240 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/ |
D | storaged.proto | 55 optional uint32 crc = 1; field
|
D | storaged.cpp | 192 if (proto.crc() != computed_crc) { in load_proto()
|
/system/vold/ |
D | Checkpoint.cpp | 429 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/ |
D | oi_codec_sbc.h | 179 uint8_t crc; /**< Parity check byte used for error detection. */ member
|
/system/bt/stack/l2cap/ |
D | l2c_fcr.cc | 114 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/ |
D | update_metadata.proto | 83 // xz file after decompression. The xz file should only use crc32 or no crc at
|
/system/update_engine/update_engine/ |
D | update_metadata.proto | 83 // xz file after decompression. The xz file should only use crc32 or no crc at
|