/external/pcre/dist2/src/sljit/ |
D | sljitExecAllocator.c | 187 sljit_uw chunk_size; in sljit_malloc_exec() local 197 chunk_size = free_block->size; in sljit_malloc_exec() 198 if (chunk_size > size + 64) { in sljit_malloc_exec() 200 chunk_size -= size; in sljit_malloc_exec() 201 free_block->size = chunk_size; in sljit_malloc_exec() 202 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec() 203 header->prev_size = chunk_size; in sljit_malloc_exec() 209 size = chunk_size; in sljit_malloc_exec() 219 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec() 220 header = (struct block_header*)alloc_chunk(chunk_size); in sljit_malloc_exec() [all …]
|
D | sljitProtExecAllocator.c | 272 sljit_uw chunk_size; in sljit_malloc_exec() local 283 chunk_size = free_block->size; in sljit_malloc_exec() 284 if (chunk_size > size + 64) { in sljit_malloc_exec() 286 chunk_size -= size; in sljit_malloc_exec() 287 free_block->size = chunk_size; in sljit_malloc_exec() 288 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec() 289 header->prev_size = chunk_size; in sljit_malloc_exec() 296 size = chunk_size; in sljit_malloc_exec() 306 chunk_size = sizeof(struct chunk_header) + sizeof(struct block_header); in sljit_malloc_exec() 307 chunk_size = (chunk_size + size + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec() [all …]
|
/external/autotest/client/site_tests/hardware_TrimIntegrity/ |
D | hardware_TrimIntegrity.py | 50 def _get_hash(self, chunk_count, chunk_size): argument 56 (chunk_count - 1, self._filename, chunk_size, self.HASH_CMD)) 100 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO): argument 132 file_size -= file_size % (4 * chunk_size) 141 self._verify_trim_support(chunk_size) 145 (chunk_size, self.HASH_CMD)) 149 (chunk_size, self.HASH_CMD)) 155 chunk_count = file_size / chunk_size 157 (self._filename, chunk_size, chunk_count)) 160 ref_hash = self._get_hash(chunk_count, chunk_size) [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tcp_mmap.c | 99 static int chunk_size = 512*1024; variable 153 buffer = malloc(chunk_size); in child_thread() 159 addr = mmap(NULL, chunk_size, PROT_READ, flags, fd, 0); in child_thread() 173 zc.length = chunk_size; in child_thread() 181 assert(zc.length <= chunk_size); in child_thread() 188 assert(zc.recv_skip_hint <= chunk_size); in child_thread() 199 while (sub < chunk_size) { in child_thread() 200 lu = read(fd, buffer + sub, chunk_size - sub); in child_thread() 239 munmap(addr, chunk_size); in child_thread() 288 &chunk_size, sizeof(chunk_size)) == -1) { in do_accept() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | split_op_test.cc | 30 std::initializer_list<int64> chunk_size) { in MakeGraph() argument 32 TensorShape in_shape(chunk_size); in MakeGraph() 46 #define BM_SPLIT_1D(num_split, chunk_size) \ argument 47 static void BM_Split_1d_##num_split##_##chunk_size(int iters) { \ 50 chunk_size); \ 52 strings::Printf("1-D %d chunks of %d each", num_split, chunk_size); \ 55 auto g = MakeGraph(/* split_dim = */ 0, num_split, {chunk_size}); \ 59 BENCHMARK(BM_Split_1d_##num_split##_##chunk_size);
|
/external/ltp/utils/benchmark/ebizzy-0.3/ |
D | ebizzy.c | 66 static unsigned int chunk_size; variable 127 chunk_size = record_size * 64 * 1024; in read_options() 161 chunk_size = atoi(optarg); in read_options() 162 if (chunk_size == 0) in read_options() 202 printf("chunk_size %u\n", chunk_size); in read_options() 222 if (chunk_size < record_size) { in read_options() 224 chunk_size, record_size); in read_options() 258 size, chunks, chunk_size); in alloc_mem() 299 mem[i] = (record_t *) alloc_mem(chunk_size); in allocate() 319 for (j = 0; j < chunk_size / record_size; j++) in write_pattern() [all …]
|
/external/libchrome/base/files/ |
D | file_util.cc | 143 int64_t chunk_size; in ReadFileToStringWithMaxSize() local 145 if (!GetFileSize(path, &chunk_size) || chunk_size <= 0) in ReadFileToStringWithMaxSize() 146 chunk_size = kDefaultChunkSize - 1; in ReadFileToStringWithMaxSize() 149 chunk_size = std::min<uint64_t>(chunk_size, max_size) + 1; in ReadFileToStringWithMaxSize() 151 chunk_size = kDefaultChunkSize; in ReadFileToStringWithMaxSize() 157 local_contents.resize(chunk_size); in ReadFileToStringWithMaxSize() 160 chunk_size, file)) > 0) { in ReadFileToStringWithMaxSize() 170 chunk_size = kDefaultChunkSize; in ReadFileToStringWithMaxSize() 177 local_contents.resize(bytes_read_so_far + chunk_size); in ReadFileToStringWithMaxSize()
|
/external/python/rsa/rsa/ |
D | transform.py | 136 def int2bytes(number, fill_size=None, chunk_size=None, overflow=False): argument 174 if fill_size and chunk_size: 204 elif chunk_size and chunk_size > 0: 205 remainder = length % chunk_size 207 padding_size = chunk_size - remainder
|
/external/mesa3d/src/intel/vulkan/tests/ |
D | state_pool_test_helper.h | 38 const unsigned chunk_size = 1 << (job->id % STATES_PER_THREAD_LOG2); in alloc_states() local 39 const unsigned num_chunks = STATES_PER_THREAD / chunk_size; in alloc_states() 41 struct anv_state states[chunk_size]; in alloc_states() 46 for (unsigned i = 0; i < chunk_size; i++) { in alloc_states() 52 for (unsigned i = 0; i < chunk_size; i++) in alloc_states()
|
/external/perfetto/src/ipc/ |
D | buffered_frame_deserializer_fuzzer.cc | 32 size_t chunk_size = std::min(available_size, rbuf.size); in LLVMFuzzerTestOneInput() local 33 memcpy(rbuf.data, data, chunk_size); in LLVMFuzzerTestOneInput() 34 if (!bfd.EndReceive(chunk_size)) in LLVMFuzzerTestOneInput() 36 write_offset += chunk_size; in LLVMFuzzerTestOneInput()
|
/external/ltp/testcases/kernel/controllers/io-throttle/ |
D | iobw.c | 53 static size_t chunk_size = 0; variable 89 ret = posix_memalign(&buf, PAGE_SIZE, chunk_size); in thread() 93 id, chunk_size, strerror(errno)); in thread() 96 memset(buf, 0xaa, chunk_size); in thread() 114 i = write(fd, buf, chunk_size); in thread() 132 i = read(fd, buf, chunk_size); in thread() 230 chunk_size = align(memparse(argv[2], &end), PAGE_SIZE); in main() 261 kb(chunk_size), kb(data_size)); in main()
|
/external/ltp/testcases/kernel/controllers/memctl/ |
D | memctl_test01.c | 59 int num_of_chunks, chunk_size, test_num, limit; variable 85 chunk_size = atoi(chunk_size_p); in main() 158 chunk_size = 5242880; /* 5 MB chunks */ in signal_handler_sigusr2() 179 array_of_chunks[i] = malloc(chunk_size); in allocate_memory() 188 limit = chunk_size / sizeof(record_t); in allocate_memory()
|
/external/webrtc/webrtc/common_audio/ |
D | blocker.cc | 101 Blocker::Blocker(size_t chunk_size, in Blocker() argument 108 : chunk_size_(chunk_size), in Blocker() 112 initial_delay_(block_size_ - gcd(chunk_size, shift_amount)), in Blocker() 168 size_t chunk_size, in ProcessChunk() argument 172 RTC_CHECK_EQ(chunk_size, chunk_size_); in ProcessChunk() 222 chunk_size, in ProcessChunk()
|
D | blocker_unittest.cc | 60 size_t chunk_size, in RunTest() argument 69 size_t end = chunk_size - 1; in RunTest() 71 CopyTo(input_chunk, 0, start, num_input_channels, chunk_size, input); in RunTest() 73 chunk_size, in RunTest() 77 CopyTo(output, start, 0, num_output_channels, chunk_size, output_chunk); in RunTest() 79 start += chunk_size; in RunTest() 80 end += chunk_size; in RunTest()
|
/external/e2fsprogs/misc/ |
D | e2freefrag.c | 96 unsigned long chunk_size) in update_chunk_stats() argument 100 idx = ul_log2(chunk_size) + 1; in update_chunk_stats() 104 info->histogram.fc_blocks[idx] += chunk_size; in update_chunk_stats() 106 if (chunk_size > info->max) in update_chunk_stats() 107 info->max = chunk_size; in update_chunk_stats() 108 if (chunk_size < info->min) in update_chunk_stats() 109 info->min = chunk_size; in update_chunk_stats() 110 info->avg += chunk_size; in update_chunk_stats()
|
/external/e2fsprogs/debugfs/ |
D | e2freefrag.c | 96 unsigned long chunk_size) in update_chunk_stats() argument 100 idx = ul_log2(chunk_size) + 1; in update_chunk_stats() 104 info->histogram.fc_blocks[idx] += chunk_size; in update_chunk_stats() 106 if (chunk_size > info->max) in update_chunk_stats() 107 info->max = chunk_size; in update_chunk_stats() 108 if (chunk_size < info->min) in update_chunk_stats() 109 info->min = chunk_size; in update_chunk_stats() 110 info->avg += chunk_size; in update_chunk_stats()
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/kmem/iommu_map_range/ |
D | format | 11 field:unsigned long chunk_size; offset:24; size:8; signed:0; 14 print fmt: "v_addr=%p p_addr=%pa chunk_size=0x%lu len=%zu", (void *)REC->va, &REC->pa, REC->chunk_s…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/kmem/iommu_map_range/ |
D | format | 11 field:unsigned long chunk_size; offset:16; size:4; signed:0; 14 print fmt: "v_addr=%p p_addr=%pa chunk_size=0x%lu len=%zu", (void *)REC->va, &REC->pa, REC->chunk_s…
|
/external/boringssl/src/crypto/base64/ |
D | base64_test.cc | 258 for (size_t chunk_size = 1; chunk_size <= encoded_len; chunk_size++) { in TEST_P() local 259 SCOPED_TRACE(chunk_size); in TEST_P() 266 if (todo > chunk_size) { in TEST_P() 267 todo = chunk_size; in TEST_P()
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_hammerhead_MRA59G_3.4.0/events/kmem/iommu_map_range/ |
D | format | 12 field:unsigned int chunk_size; offset:20; size:4; signed:0; 15 print fmt: "v_addr=%p p_addr=%pa chunk_size=0x%x len=%zu", (void *)REC->va, &REC->pa, REC->chunk_si…
|
/external/wpa_supplicant_8/src/wps/ |
D | httpread.c | 83 int chunk_size; /* data of chunk (not hdr or ending CRLF)*/ member 546 h->chunk_size = strtoul(cbp, NULL, 16); in httpread_read_handler() 547 if (h->chunk_size < 0 || in httpread_read_handler() 548 h->chunk_size > h->max_bytes) { in httpread_read_handler() 551 h->chunk_size); in httpread_read_handler() 559 if (h->chunk_size == 0) { in httpread_read_handler() 574 (h->chunk_size + 2)) { in httpread_read_handler() 592 h->chunk_size = 0; /* just in case */ in httpread_read_handler() 608 ncopy = (h->chunk_start + h->chunk_size + 2) - in httpread_read_handler()
|
/external/tensorflow/tensorflow/core/lib/wav/ |
D | wav_io.cc | 279 uint32 chunk_size; in DecodeLin16WaveAsFloatVector() local 280 TF_RETURN_IF_ERROR(ReadValue<uint32>(wav_string, &chunk_size, &offset)); in DecodeLin16WaveAsFloatVector() 281 if (chunk_size > std::numeric_limits<int32>::max()) { in DecodeLin16WaveAsFloatVector() 283 "WAV data chunk '", chunk_id, "' is too large: ", chunk_size, in DecodeLin16WaveAsFloatVector() 291 *sample_count = chunk_size / bytes_per_sample; in DecodeLin16WaveAsFloatVector() 307 offset += chunk_size; in DecodeLin16WaveAsFloatVector()
|
/external/v8/src/snapshot/ |
D | default-serializer-allocator.cc | 23 void DefaultSerializerAllocator::UseCustomChunkSize(uint32_t chunk_size) { in UseCustomChunkSize() argument 24 custom_chunk_size_ = chunk_size; in UseCustomChunkSize() 145 for (uint32_t chunk_size : completed_chunks_[space]) s += chunk_size; in OutputStatistics() local
|
/external/u-boot/arch/arm/mach-uniphier/arm32/ |
D | cache-uniphier.c | 154 u32 chunk_size = min_t(u32, size, UNIPHIER_SSC_RANGE_OP_MAX_SIZE); in uniphier_cache_maint_range() local 156 uniphier_cache_maint_common(start, chunk_size, ways, in uniphier_cache_maint_range() 159 start += chunk_size; in uniphier_cache_maint_range() 160 size -= chunk_size; in uniphier_cache_maint_range()
|
/external/python/cpython2/Lib/test/ |
D | test_hashlib.py | 374 def hash_in_chunks(chunk_size): argument 377 hasher.update(data[index:index+chunk_size]) 378 index += chunk_size 382 chunk_size = len(data) // (10**threadnum) 383 assert chunk_size > 0 384 assert chunk_size % len(smallest_data) == 0 386 args=(chunk_size,))
|