/external/autotest/client/site_tests/platform_CompressedSwap/src/ |
D | hog.c | 14 #define CHUNK_SIZE MEGA /* one-megabyte chunks */ macro 16 const int n_touches = CHUNK_SIZE >> 12; /* average 1 per page */ 38 char *fake_data = malloc(CHUNK_SIZE); in main() 61 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main() 63 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main() 64 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main() 68 p = malloc(CHUNK_SIZE); in main() 76 memcpy(p, fake_data, CHUNK_SIZE); in main()
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 13 #define CHUNK_SIZE (1 << 20) macro 64 size_t new_buf_size = buf_size + balloon_size * CHUNK_SIZE; in BalloonMemory() 69 char *new_chunk = global_buf + buf_size + chunk * CHUNK_SIZE; in BalloonMemory() 70 memcpy(new_chunk, fake_data, CHUNK_SIZE); in BalloonMemory() 146 fake_data = malloc(CHUNK_SIZE); in main() 147 read(random_fd, fake_data, CHUNK_SIZE / compression_factor); in main() 149 memset(fake_data + CHUNK_SIZE / compression_factor, 1, in main() 150 CHUNK_SIZE - (CHUNK_SIZE / compression_factor)); in main()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_streaming_writes.c | 42 #define CHUNK_SIZE 32 macro 143 batch = malloc(sizeof(*batch) * (OBJECT_SIZE / CHUNK_SIZE / 64)); in test_streaming() 144 for (i = n = 0; i < OBJECT_SIZE / CHUNK_SIZE / 64; i++) { in test_streaming() 155 unsigned x = (n * CHUNK_SIZE) % 4096 >> 2; in test_streaming() 156 unsigned y = (n * CHUNK_SIZE) / 4096; in test_streaming() 166 b[k++] = ((y+1) << 16) | (x + (CHUNK_SIZE >> 2)); in test_streaming() 193 for (offset = 0; offset < OBJECT_SIZE; offset += CHUNK_SIZE) { in test_streaming() 199 for (i = 0; i < CHUNK_SIZE/4; i++) in test_streaming() 205 b = offset / CHUNK_SIZE / 64; in test_streaming() 206 n = offset / CHUNK_SIZE % 64; in test_streaming() [all …]
|
/external/u-boot/drivers/spi/ |
D | atcspi200_spi.c | 19 #define CHUNK_SIZE 1 macro 242 num_blks = DIV_ROUND_UP(tran_len , CHUNK_SIZE); in __atcspi200_spi_xfer() 243 num_bytes = (tran_len) % CHUNK_SIZE; in __atcspi200_spi_xfer() 245 num_bytes = CHUNK_SIZE; in __atcspi200_spi_xfer() 252 num_blks -= CHUNK_SIZE; in __atcspi200_spi_xfer() 253 dout += CHUNK_SIZE; in __atcspi200_spi_xfer() 258 if (rf_cnt >= CHUNK_SIZE) in __atcspi200_spi_xfer() 259 rx_bytes = CHUNK_SIZE; in __atcspi200_spi_xfer() 266 num_blks -= CHUNK_SIZE; in __atcspi200_spi_xfer()
|
/external/skqp/experimental/canvaskit/htmlcanvas/ |
D | util.js | 22 var CHUNK_SIZE = 0x8000; //arbitrary number 28 slice = bytes.slice(index, Math.min(index + CHUNK_SIZE, length)); 30 index += CHUNK_SIZE;
|
/external/skia/modules/canvaskit/htmlcanvas/ |
D | util.js | 22 var CHUNK_SIZE = 0x8000; //arbitrary number 28 slice = bytes.slice(index, Math.min(index + CHUNK_SIZE, length)); 30 index += CHUNK_SIZE;
|
/external/brotli/java/org/brotli/wrapper/enc/ |
D | BrotliOutputStreamTest.java | 30 private static final int CHUNK_SIZE = 256; field in BrotliOutputStreamTest 81 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run() 94 for (int offset = 0; offset < original.length; offset += CHUNK_SIZE) { in run() 95 encoder.write(original, offset, Math.min(CHUNK_SIZE, original.length - offset)); in run()
|
D | BrotliEncoderChannelTest.java | 32 private static final int CHUNK_SIZE = 256; field in BrotliEncoderChannelTest 82 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run() 97 int limit = Math.min(CHUNK_SIZE, src.remaining()); in run()
|
/external/ltp/testcases/kernel/controllers/memctl/ |
D | run_memctl_test.sh | 100 CHUNK_SIZE=6291456; # malloc n chunks of size m(6M) 104 MEM_TASK=`expr $CHUNK_SIZE \* $NUM_CHUNKS`; # memory allocated by a task 135 TEST_NUM=$TEST_NUM MYGROUP=$MYGROUP SCRIPT_PID=$SCRIPT_PID CHUNK_SIZE=$CHUNK_SIZE \
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | Murmur3_128HashFunction.java | 87 private static final int CHUNK_SIZE = 16; field in Murmur3_128HashFunction.Murmur3_128Hasher 95 super(CHUNK_SIZE); in Murmur3_128Hasher() 106 length += CHUNK_SIZE; in process() 183 ByteBuffer.wrap(new byte[CHUNK_SIZE]) in makeHash()
|
D | SipHashFunction.java | 98 private static final int CHUNK_SIZE = 8; field in SipHashFunction.SipHasher 122 super(CHUNK_SIZE); in SipHasher() 133 b += CHUNK_SIZE; in process()
|
/external/guava/guava/src/com/google/common/hash/ |
D | Murmur3_128HashFunction.java | 87 private static final int CHUNK_SIZE = 16; field in Murmur3_128HashFunction.Murmur3_128Hasher 95 super(CHUNK_SIZE); in Murmur3_128Hasher() 106 length += CHUNK_SIZE; in process() 183 ByteBuffer.wrap(new byte[CHUNK_SIZE]) in makeHash()
|
D | SipHashFunction.java | 98 private static final int CHUNK_SIZE = 8; field in SipHashFunction.SipHasher 122 super(CHUNK_SIZE); in SipHasher() 133 b += CHUNK_SIZE; in process()
|
/external/google-fruit/include/fruit/impl/data_structures/ |
D | memory_pool.defn.h | 75 if (required_space > CHUNK_SIZE) { in allocate() 78 p = operator new(CHUNK_SIZE); in allocate() 80 capacity = CHUNK_SIZE - required_space; in allocate()
|
D | memory_pool.h | 34 constexpr static const std::size_t CHUNK_SIZE = 4 * 1024 - 64;
|
/external/brotli/python/tests/ |
D | compressor_test.py | 18 CHUNK_SIZE = 2048 variable in _TestCompressor 47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE) 58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
D | decompressor_test.py | 19 CHUNK_SIZE = 1 variable in TestDecompressor 37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
/external/crosvm/qcow_utils/src/ |
D | qcow_img.rs | 256 const CHUNK_SIZE: usize = 65536; in dd() constant 257 let mut buf = [0; CHUNK_SIZE]; in dd() 260 std::cmp::min(CHUNK_SIZE, count - read_count) in dd() 262 CHUNK_SIZE in dd() 267 qcow_file.write_zeroes(CHUNK_SIZE).map_err(|_| ())?; in dd()
|
/external/u-boot/tools/ |
D | mkenvimage.c | 69 #define CHUNK_SIZE 4096 macro 172 filebuf = realloc(filebuf, filesize + CHUNK_SIZE); in main() 177 readbytes = read(txt_fd, filebuf + filesize, CHUNK_SIZE); in main()
|
/external/apache-http/src/org/apache/commons/codec/binary/ |
D | Base64.java | 51 static final int CHUNK_SIZE = 76; field in Base64 259 … (CHUNK_SEPARATOR.length == 0 ? 0 : (int) Math.ceil((float) encodedDataLength / CHUNK_SIZE)); in encodeBase64() 270 int nextSeparatorIndex = CHUNK_SIZE; in encodeBase64() 316 (CHUNK_SIZE * (chunksSoFar + 1)) + in encodeBase64()
|
/external/brotli/research/ |
D | deorummolae.cc | 10 #define CHUNK_SIZE 64 macro 17 #define CHUNK_MASK (CHUNK_SIZE - 1) 86 file_map->insert(file_map->end(), file.size() / CHUNK_SIZE, i); in buildFullText() 128 TextIdx f = file_map->at(pos / CHUNK_SIZE); in poisonData() 248 size_t f = file_map[sa[i] / CHUNK_SIZE]; in DM_generate()
|
/external/pcre/dist2/src/sljit/ |
D | sljitExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 macro 172 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 259 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|
D | sljitProtExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 macro 215 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 307 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
|
/external/boringssl/src/util/bot/ |
D | update_clang.py | 48 CHUNK_SIZE = 4096 62 chunk = response.read(CHUNK_SIZE)
|
/external/perfetto/ui/src/chrome_extension/ |
D | chrome_tracing_controller.ts | 33 const CHUNK_SIZE: number = 1024 * 1024 * 16; // 16Mb constant 164 {handle: this.streamHandle, offset, size: CHUNK_SIZE});
|