/external/u-boot/tools/ |
D | zynqimage.c | 82 uint32_t checksum; /* 0x48 */ member 92 uint32_t checksum = 0; in zynqimage_checksum() local 97 checksum += le32_to_cpu(ptr->width_detection); in zynqimage_checksum() 98 checksum += le32_to_cpu(ptr->image_identifier); in zynqimage_checksum() 99 checksum += le32_to_cpu(ptr->encryption); in zynqimage_checksum() 100 checksum += le32_to_cpu(ptr->user_field); in zynqimage_checksum() 101 checksum += le32_to_cpu(ptr->image_offset); in zynqimage_checksum() 102 checksum += le32_to_cpu(ptr->image_size); in zynqimage_checksum() 103 checksum += le32_to_cpu(ptr->__reserved1); in zynqimage_checksum() 104 checksum += le32_to_cpu(ptr->image_load); in zynqimage_checksum() [all …]
|
D | zynqmpimage.c | 69 uint32_t checksum = 0; in zynqmpimage_checksum() local 74 checksum += le32_to_cpu(ptr->width_detection); in zynqmpimage_checksum() 75 checksum += le32_to_cpu(ptr->image_identifier); in zynqmpimage_checksum() 76 checksum += le32_to_cpu(ptr->encryption); in zynqmpimage_checksum() 77 checksum += le32_to_cpu(ptr->image_load); in zynqmpimage_checksum() 78 checksum += le32_to_cpu(ptr->image_offset); in zynqmpimage_checksum() 79 checksum += le32_to_cpu(ptr->pfw_image_length); in zynqmpimage_checksum() 80 checksum += le32_to_cpu(ptr->total_pfw_image_length); in zynqmpimage_checksum() 81 checksum += le32_to_cpu(ptr->image_size); in zynqmpimage_checksum() 82 checksum += le32_to_cpu(ptr->image_stored_size); in zynqmpimage_checksum() [all …]
|
D | default_image.c | 46 uint32_t checksum; in image_verify_header() local 66 checksum = be32_to_cpu(hdr->ih_hcrc); in image_verify_header() 69 if (crc32(0, data, len) != checksum) { in image_verify_header() 78 checksum = be32_to_cpu(hdr->ih_dcrc); in image_verify_header() 79 if (crc32(0, data, len) != checksum) { in image_verify_header() 90 uint32_t checksum; in image_set_header() local 98 checksum = crc32(0, in image_set_header() 124 image_set_dcrc(hdr, checksum); in image_set_header() 132 checksum = crc32(0, (const unsigned char *)hdr, in image_set_header() 135 image_set_hcrc(hdr, checksum); in image_set_header()
|
D | mkexynosspl.c | 79 uint32_t checksum = 0; in main() local 158 for (i = 0, checksum = 0; i < count; i++) in main() 159 checksum += buffer[i]; in main() 160 checksum = cpu_to_le32(checksum); in main() 168 memcpy(&vsh.spl_checksum, &checksum, sizeof(checksum)); in main() 179 write_to_file(ofd, &checksum, sizeof(checksum)); in main()
|
/external/deqp/scripts/khr_util/ |
D | registry_cache.py | 37 def __init__(self, repository, filename, revision, checksum): argument 41 self.checksum = checksum 44 return hash((self.repository, self.filename, self.revision, self.checksum)) 47 …, self.filename, self.revision, self.checksum) == (other.repository, other.filename, other.revisio… 56 return self.checksum 103 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): argument 116 if checksum != gotChecksum: 117 raise Exception("Checksum mismatch, expected %s, got %s" % (checksum, gotChecksum)) 121 def checkFile (filename, checksum): argument 129 return computeChecksum(readFile(filename)) == checksum [all …]
|
/external/autotest/client/cros/video/ |
D | frame_checksum_utils.py | 18 for checksum in checksums: 19 if checksum in counts: 20 counts[checksum] += 1 22 counts[checksum] = 1 37 for i, checksum in enumerate(checksums): 38 if checksum not in d: 39 d[checksum] = i
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | ChecksumCalculatingInputStream.java | 31 private final Checksum checksum; field in ChecksumCalculatingInputStream 33 public ChecksumCalculatingInputStream(final Checksum checksum, final InputStream in) { in ChecksumCalculatingInputStream() argument 35 if ( checksum == null ){ in ChecksumCalculatingInputStream() 43 this.checksum = checksum; in ChecksumCalculatingInputStream() 57 checksum.update(ret); in read() 83 checksum.update(b, off, ret); in read() 102 return checksum.getValue(); in getValue()
|
D | ChecksumVerifyingInputStream.java | 34 private final Checksum checksum; field in ChecksumVerifyingInputStream 36 public ChecksumVerifyingInputStream(final Checksum checksum, final InputStream in, in ChecksumVerifyingInputStream() argument 38 this.checksum = checksum; in ChecksumVerifyingInputStream() 57 checksum.update(ret); in read() 60 if (bytesRemaining == 0 && expectedChecksum != checksum.getValue()) { in read() 87 checksum.update(b, off, ret); in read() 90 if (bytesRemaining <= 0 && expectedChecksum != checksum.getValue()) { in read()
|
/external/libchrome/base/metrics/ |
D | bucket_ranges_unittest.cc | 22 EXPECT_EQ(0u, ranges.checksum()); in TEST() 67 EXPECT_EQ(289217253u, ranges.checksum()); in TEST() 73 EXPECT_EQ(2843835776u, ranges.checksum()); in TEST() 81 uint32_t checksum = i; in TEST() local 84 if (checksum & 1) in TEST() 85 checksum = kReversedPolynomial ^ (checksum >> 1); in TEST() 87 checksum >>= 1; in TEST() 89 EXPECT_EQ(kCrcTable[i], checksum); in TEST()
|
/external/deqp/external/ |
D | fetch_sources.py | 61 def __init__(self, url, filename, checksum, baseDir, extractDir = "src", postExtract=None): argument 65 self.checksum = checksum 77 if self.getExtractedChecksum() != self.checksum: 80 self.storeExtractedChecksum(self.checksum) 90 return computeChecksum(readFile(archiveFile)) == self.checksum 105 def storeExtractedChecksum (self, checksum): argument 106 checksum_bytes = checksum.encode("utf-8") 131 checksum = computeChecksum(data) 134 if checksum != self.checksum: 135 …ception("Checksum mismatch for %s, expected %s, got %s" % (self.filename, self.checksum, checksum)) [all …]
|
/external/guava/guava/src/com/google/common/hash/ |
D | ChecksumHashFunction.java | 63 private final Checksum checksum; field in ChecksumHashFunction.ChecksumHasher 65 private ChecksumHasher(Checksum checksum) { in ChecksumHasher() argument 66 this.checksum = checkNotNull(checksum); in ChecksumHasher() 71 checksum.update(b); in update() 76 checksum.update(bytes, off, len); in update() 81 long value = checksum.getValue(); in hash()
|
/external/stressapptest/src/ |
D | adler32memcpy.cc | 87 AdlerChecksum *checksum) { in CalculateAdlerChecksum() argument 119 checksum->Set(a1, a2, b1, b2); in CalculateAdlerChecksum() 125 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyC() argument 159 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyC() 166 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyWarmC() argument 221 checksum->Set(a1, a2, b1, b2); in AdlerMemcpyWarmC() 227 unsigned int size_in_bytes, AdlerChecksum *checksum) { in AdlerMemcpyAsm() argument 393 if (checksum != NULL) { in AdlerMemcpyAsm() 394 checksum->Set(checksum_arr[0], checksum_arr[1], in AdlerMemcpyAsm() 509 if (checksum != NULL) { in AdlerMemcpyAsm() [all …]
|
/external/scapy/doc/scapy/ |
D | functions.rst | 8 UDP checksum 11 The following example explains howto use the checksum() function to compute and 12 UDP checksum manually. The following steps must be performed: 16 3. call checksum() with the pseudo header and the UDP packet 22 # Get the UDP checksum computed by Scapy 27 # Set the UDP checksum to 0 and compute the checksum 'manually'
|
/external/pdfium/fxbarcode/oned/ |
D | BC_OnedCode39Writer.cpp | 152 int32_t checksum = 0; in CalcCheckSum() local 158 checksum += j; in CalcCheckSum() 165 return kOnedCode39Checksum[checksum % FX_ArraySize(kOnedCode39Checksum)]; in CalcCheckSum() 170 char checksum = CalcCheckSum(contents); in EncodeImpl() local 171 if (checksum == '*') in EncodeImpl() 179 encodedContents += checksum; in EncodeImpl() 240 char checksum; in encodedContents() local 241 checksum = CalcCheckSum(str); in encodedContents() 242 if (checksum == '*') in encodedContents() 244 str += checksum; in encodedContents() [all …]
|
D | BC_OnedCode128Writer_unittest.cpp | 12 int32_t checksum; member 38 int32_t checksum = in TEST() local 40 EXPECT_EQ(test_case.checksum, checksum); in TEST() 71 int32_t checksum = in TEST() local 73 EXPECT_EQ(test_case.checksum, checksum); in TEST()
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
D | ChecksumBenchmark.java | 60 CRC32 checksum = new CRC32(); in crc32Checksum() local 61 checksum.update(testBytes); in crc32Checksum() 62 result ^= checksum.getValue(); in crc32Checksum() 76 Adler32 checksum = new Adler32(); in adler32Checksum() local 77 checksum.update(testBytes); in adler32Checksum() 78 result ^= checksum.getValue(); in adler32Checksum()
|
/external/u-boot/net/ |
D | checksum.c | 38 unsigned long checksum; in add_ip_checksums() local 49 checksum = sum + new; in add_ip_checksums() 50 if (checksum > 0xffff) in add_ip_checksums() 51 checksum -= 0xffff; in add_ip_checksums() 53 return (~checksum) & 0xffff; in add_ip_checksums()
|
/external/u-boot/common/ |
D | kgdb.c | 227 unsigned char checksum; in getpacket() local 244 checksum = 0; in getpacket() 254 checksum = checksum + ch; in getpacket() 267 if (checksum != xmitcsum) in getpacket() 282 } while (checksum != xmitcsum); in getpacket() 289 unsigned char checksum; in putpacket() local 296 checksum = 0; in putpacket() 301 checksum += ch; in putpacket() 306 putDebugChar(hexchars[checksum >> 4]); in putpacket() 307 putDebugChar(hexchars[checksum & 0xf]); in putpacket()
|
/external/squashfs-tools/squashfs-tools/ |
D | process_fragments.c | 75 file_buffer->checksum = chksum; in checksum_sparse() 220 char *data_buffer, int fd, unsigned short *checksum) in get_fragment_cksum() argument 237 *checksum = cksum; in get_fragment_cksum() 279 unsigned short checksum; in frag_thrd() local 325 checksum = dupl_ptr->fragment_checksum; in frag_thrd() 339 data_buffer, fd, &checksum); in frag_thrd() 340 if(checksum != file_buffer->checksum) { in frag_thrd() 344 } else if(checksum == file_buffer->checksum) in frag_thrd()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Bitcode/ |
D | upgrade-dbg-checksum.ll | 1 ; Test that DIFile(checksumkind, checksum) representation in Bitcode does 14 !4 = !DIFile(filename: "a.c", directory: "/test", checksumkind: CSK_None, checksum: "") 15 ; CHECK: !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e… 16 !5 = !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e92a7… 17 ; CHECK: !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03… 18 !6 = !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03a2ed…
|
/external/iptables/extensions/ |
D | libxt_CHECKSUM.man | 4 \fB\-\-checksum\-fill\fP 5 Compute and fill in the checksum in a packet that lacks a checksum. 7 such as dhcp clients, that do not work well with checksum offloads, 8 but don't want to disable checksum offload in your device.
|
/external/zopfli/src/zopfli/ |
D | zlib_container.c | 54 unsigned checksum = adler32(in, (unsigned)insize); in ZopfliZlibCompress() local 68 ZOPFLI_APPEND_DATA((checksum >> 24) % 256, out, outsize); in ZopfliZlibCompress() 69 ZOPFLI_APPEND_DATA((checksum >> 16) % 256, out, outsize); in ZopfliZlibCompress() 70 ZOPFLI_APPEND_DATA((checksum >> 8) % 256, out, outsize); in ZopfliZlibCompress() 71 ZOPFLI_APPEND_DATA(checksum % 256, out, outsize); in ZopfliZlibCompress()
|
/external/autotest/server/site_tests/display_Tearing/ |
D | display_Tearing.py | 98 checksum = self._get_single_color_checksum(chameleon_port, color) 99 if checksum in checksum_table: 101 checksum_table[checksum] = color 102 logging.info('Color %d has checksums %r', (color, checksum)) 144 for checksum in captured_checksums: 145 if checksum not in checksum_table: 214 checksum_table[checksum] 215 for checksum in captured_checksums]
|
/external/e2fsprogs/tests/f_dir_bad_csum/ |
D | expect.1 | 3 Directory inode 12, block #0: directory passes checks but fails checksum. 6 Directory inode 13, block #0, offset 0: directory has no checksum. 9 Directory inode 14, block #0, offset 0: directory has no checksum. 12 Directory inode 15, block #0, offset 0: directory has no checksum. 18 Directory inode 16, block #0, offset 0: directory has no checksum. 24 Directory inode 17, block #0, offset 0: directory has no checksum.
|
/external/e2fsprogs/tests/f_htree_bad_csum/ |
D | expect.1 | 3 Problem in HTREE directory inode 12: root node fails checksum. 6 Problem in HTREE directory inode 18: root node fails checksum. 12 Problem in HTREE directory inode 24: root node fails checksum. 15 Problem in HTREE directory inode 30: root node fails checksum. 18 Problem in HTREE directory inode 36: root node fails checksum.
|