Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 25 of 66) sorted by relevance

123

/external/pcre/dist2/src/sljit/
DsljitExecAllocator.c180 sljit_uw chunk_size; in sljit_malloc_exec() local
190 chunk_size = free_block->size; in sljit_malloc_exec()
191 if (chunk_size > size + 64) { in sljit_malloc_exec()
193 chunk_size -= size; in sljit_malloc_exec()
194 free_block->size = chunk_size; in sljit_malloc_exec()
195 header = AS_BLOCK_HEADER(free_block, chunk_size); in sljit_malloc_exec()
196 header->prev_size = chunk_size; in sljit_malloc_exec()
202 size = chunk_size; in sljit_malloc_exec()
212 chunk_size = (size + sizeof(struct block_header) + CHUNK_SIZE - 1) & CHUNK_MASK; in sljit_malloc_exec()
213 header = (struct block_header*)alloc_chunk(chunk_size); in sljit_malloc_exec()
[all …]
/external/autotest/client/site_tests/hardware_TrimIntegrity/
Dhardware_TrimIntegrity.py48 def _get_hash(self, chunk_count, chunk_size): argument
54 (chunk_count - 1, self._filename, chunk_size, self.HASH_CMD))
98 chunk_size=CHUNK_SIZE, trim_ratio=TRIM_RATIO): argument
130 file_size -= file_size % (4 * chunk_size)
139 self._verify_trim_support(chunk_size)
143 (chunk_size, self.HASH_CMD))
147 (chunk_size, self.HASH_CMD))
153 chunk_count = file_size / chunk_size
155 (self._filename, chunk_size, chunk_count))
158 ref_hash = self._get_hash(chunk_count, chunk_size)
[all …]
/external/ltp/utils/benchmark/ebizzy-0.3/
Debizzy.c66 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/mesa3d/src/intel/vulkan/tests/
Dstate_pool_test_helper.h38 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/boringssl/src/crypto/cmac/
Dcmac_test.cc41 for (unsigned chunk_size = 1; chunk_size <= msg_len; chunk_size++) { in test() local
42 SCOPED_TRACE(chunk_size); in test()
48 size_t todo = std::min(msg_len - done, static_cast<size_t>(chunk_size)); in test()
/external/ltp/testcases/kernel/controllers/io-throttle/
Diobw.c53 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/bison/lib/
Dobstack.c169 h->chunk_size = size; in _obstack_begin()
173 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin()
179 = (char *) chunk + h->chunk_size; in _obstack_begin()
216 h->chunk_size = size; in _obstack_begin_1()
221 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin_1()
227 = (char *) chunk + h->chunk_size; in _obstack_begin_1()
254 if (new_size < h->chunk_size) in _obstack_newchunk()
255 new_size = h->chunk_size; in _obstack_newchunk()
/external/ltp/testcases/kernel/controllers/memctl/
Dmemctl_test01.c59 int num_of_chunks, chunk_size, test_num, limit; variable
85 chunk_size = atoi(chunk_size_p); in main()
156 chunk_size = 5242880; /* 5 MB chunks */ in signal_handler_sigusr2()
177 array_of_chunks[i] = malloc(chunk_size); in allocate_memory()
186 limit = chunk_size / sizeof(record_t); in allocate_memory()
/external/webrtc/webrtc/common_audio/
Dblocker.cc101 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()
Dblocker_unittest.cc60 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()
Dblocker.h66 Blocker(size_t chunk_size,
75 size_t chunk_size,
/external/boringssl/src/crypto/cipher_extra/
Dcipher_test.cc115 size_t chunk_size, const std::vector<uint8_t> &key, in TestOperation() argument
163 if (chunk_size != 0) { in TestOperation()
165 size_t todo = chunk_size; in TestOperation()
230 for (size_t chunk_size : chunk_sizes) { in TestCipher() local
231 SCOPED_TRACE(chunk_size); in TestCipher()
235 TestOperation(t, cipher, true /* encrypt */, chunk_size, key, iv, in TestCipher()
241 TestOperation(t, cipher, false /* decrypt */, chunk_size, key, iv, in TestCipher()
/external/e2fsprogs/misc/
De2freefrag.c78 unsigned long chunk_size) in update_chunk_stats() argument
82 idx = ul_log2(chunk_size) + 1; in update_chunk_stats()
86 info->histogram.fc_blocks[idx] += chunk_size; in update_chunk_stats()
88 if (chunk_size > info->max) in update_chunk_stats()
89 info->max = chunk_size; in update_chunk_stats()
90 if (chunk_size < info->min) in update_chunk_stats()
91 info->min = chunk_size; in update_chunk_stats()
92 info->avg += chunk_size; in update_chunk_stats()
/external/e2fsprogs/debugfs/
De2freefrag.c78 unsigned long chunk_size) in update_chunk_stats() argument
82 idx = ul_log2(chunk_size) + 1; in update_chunk_stats()
86 info->histogram.fc_blocks[idx] += chunk_size; in update_chunk_stats()
88 if (chunk_size > info->max) in update_chunk_stats()
89 info->max = chunk_size; in update_chunk_stats()
90 if (chunk_size < info->min) in update_chunk_stats()
91 info->min = chunk_size; in update_chunk_stats()
92 info->avg += chunk_size; in update_chunk_stats()
/external/libmicrohttpd/src/testspdy/
Dtest_request_response_with_callback.c40 int chunk_size=1; variable
65 if(chunk_size % 2) in response_callback()
66 n = chunk_size; in response_callback()
68 n = max - chunk_size; in response_callback()
72 chunk_size++; in response_callback()
/external/boringssl/src/crypto/base64/
Dbase64_test.cc258 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/autotest/site_utils/stats/
Dtail_until_writer_finished.py42 def TailFile(path, sleep_interval, chunk_size, argument
61 for chunk in iter(lambda: fh.read(chunk_size), b''):
94 TailFile(args.file, args.sleep_interval, args.chunk_size,
/external/wpa_supplicant_8/src/wps/
Dhttpread.c83 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/python/cpython2/Lib/test/
Dtest_hashlib.py374 def hash_in_chunks(chunk_size, event): argument
377 hasher.update(data[index:index+chunk_size])
378 index += chunk_size
383 chunk_size = len(data) // (10**threadnum)
384 assert chunk_size > 0
385 assert chunk_size % len(smallest_data) == 0
389 args=(chunk_size, event)).start()
/external/bsdiff/
Dextents_file.cc90 size_t chunk_size = in IOOperation() local
94 chunk_processed = chunk_size; in IOOperation()
97 !(file_.get()->*io_op)(buf, chunk_size, &chunk_processed)) { in IOOperation()
/external/autotest/client/tests/ebizzy/
Debizzy.py23 def run_once(self, args='', num_chunks=1000, chunk_size=512000, argument
29 args2 = '-m -n %s -P -R -s %s -S %s -t %s' % (num_chunks, chunk_size,
/external/compiler-rt/lib/lsan/
Dlsan_common.h135 inline bool IsSpecialCaseOfOperatorNew0(uptr chunk_beg, uptr chunk_size, in IsSpecialCaseOfOperatorNew0() argument
137 return chunk_size == sizeof(uptr) && chunk_beg + chunk_size == addr && in IsSpecialCaseOfOperatorNew0()
/external/webp/src/dec/
Dwebp_dec.c112 const uint32_t chunk_size = GetLE32(*data + TAG_SIZE); in ParseVP8X() local
113 if (chunk_size != VP8X_CHUNK_SIZE) { in ParseVP8X()
167 uint32_t chunk_size; in ParseOptionalChunks() local
177 chunk_size = GetLE32(buf + TAG_SIZE); in ParseOptionalChunks()
178 if (chunk_size > MAX_CHUNK_PAYLOAD) { in ParseOptionalChunks()
182 disk_chunk_size = (CHUNK_HEADER_SIZE + chunk_size + 1) & ~1; in ParseOptionalChunks()
205 *alpha_size = chunk_size; in ParseOptionalChunks()
224 size_t riff_size, size_t* const chunk_size, in ParseVP8Header() argument
234 assert(chunk_size != NULL); in ParseVP8Header()
251 *chunk_size = size; in ParseVP8Header()
[all …]
/external/webp/src/mux/
Dmuxinternal.c195 const size_t chunk_size = chunk->data_.size; in ChunkEmit() local
199 PutLE32(dst + TAG_SIZE, (uint32_t)chunk_size); in ChunkEmit()
200 assert(chunk_size == (uint32_t)chunk_size); in ChunkEmit()
201 memcpy(dst + CHUNK_HEADER_SIZE, chunk->data_.bytes, chunk_size); in ChunkEmit()
202 if (chunk_size & 1) in ChunkEmit()
203 dst[CHUNK_HEADER_SIZE + chunk_size] = 0; // Add padding. in ChunkEmit()
/external/toolchain-utils/fdo_scripts/
Ddivide_and_merge_profiles.py23 def __init__(self, inputs, output, chunk_size, merge_program, multipliers): argument
26 self._chunk_size = chunk_size
127 options.inputs.split(','), options.output, int(options.chunk_size),

123