Home
last modified time | relevance | path

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

/external/bluetooth/glib/glib/
Dgslice.c178 static gpointer slab_allocator_alloc_chunk (gsize chunk_size);
179 static void slab_allocator_free_chunk (gsize chunk_size,
516 gsize chunk_size = SLAB_CHUNK_SIZE (allocator, ix); in allocator_get_magazine_threshold() local
517 …guint threshold = MAX (MIN_MAGAZINE_SIZE, allocator->max_page_size / MAX (5 * chunk_size, 5 * 32)); in allocator_get_magazine_threshold()
522 contention_counter = contention_counter * 64 / chunk_size; in allocator_get_magazine_threshold()
604 const gsize chunk_size = SLAB_CHUNK_SIZE (allocator, ix); in magazine_cache_trim() local
614 slab_allocator_free_chunk (chunk_size, chunk); in magazine_cache_trim()
657 gsize i, chunk_size = SLAB_CHUNK_SIZE (allocator, ix); in magazine_cache_pop_magazine() local
661 head = slab_allocator_alloc_chunk (chunk_size); in magazine_cache_pop_magazine()
666 chunk->next = slab_allocator_alloc_chunk (chunk_size); in magazine_cache_pop_magazine()
[all …]
/external/bluetooth/glib/gio/tests/
Dmemory-input-stream.c35 gsize bytes_read, pos, len, chunk_size; in test_read_chunks() local
48 for (chunk_size = 1; chunk_size < len - 1; chunk_size++) in test_read_chunks()
53 bytes_read = g_input_stream_read (stream, buffer, chunk_size, NULL, &error); in test_read_chunks()
55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_read_chunks()
/external/chromium/sdch/open-vcdiff/src/
Dvcencoder_test.cc125 void TestWithFixedChunkSize(size_t chunk_size);
126 void TestWithEncodedChunkVector(size_t chunk_size);
298 void VCDiffEncoderTest::TestWithFixedChunkSize(size_t chunk_size) { in TestWithFixedChunkSize() argument
303 chunk_start_index += chunk_size) { in TestWithFixedChunkSize()
304 size_t this_chunk_size = chunk_size; in TestWithFixedChunkSize()
314 const size_t num_windows = (strlen(kTarget) / chunk_size) + 1; in TestWithFixedChunkSize()
322 chunk_start_index += chunk_size) { in TestWithFixedChunkSize()
323 size_t this_chunk_size = chunk_size; in TestWithFixedChunkSize()
343 for (size_t chunk_size = 1; chunk_size < strlen(kTarget); ++chunk_size) { in TEST_F() local
344 TestWithFixedChunkSize(chunk_size); in TEST_F()
[all …]
/external/bison/lib/
Dobstack.c181 h->chunk_size = size; in _obstack_begin()
185 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin()
191 = (char *) chunk + h->chunk_size; in _obstack_begin()
228 h->chunk_size = size; in _obstack_begin_1()
233 chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size); in _obstack_begin_1()
239 = (char *) chunk + h->chunk_size; in _obstack_begin_1()
266 if (new_size < h->chunk_size) in _obstack_newchunk()
267 new_size = h->chunk_size; in _obstack_newchunk()
Dobstack.h152 long chunk_size; /* preferred size to allocate chunks in */ member
209 #define obstack_chunk_size(h) ((h)->chunk_size)
/external/v8/src/
Dspaces.cc415 size_t chunk_size = requested_pages * Page::kPageSize; in AllocatePages() local
419 if (size_ + static_cast<int>(chunk_size) > capacity_) { in AllocatePages()
421 chunk_size = capacity_ - size_; in AllocatePages()
422 requested_pages = static_cast<int>(chunk_size >> kPageSizeBits); in AllocatePages()
426 void* chunk = AllocateRawMemory(chunk_size, &chunk_size, owner->executable()); in AllocatePages()
428 LOG(NewEvent("PagedChunk", chunk, chunk_size)); in AllocatePages()
430 *allocated_pages = PagesInChunk(static_cast<Address>(chunk), chunk_size); in AllocatePages()
432 FreeRawMemory(chunk, chunk_size); in AllocatePages()
438 chunks_[chunk_id].init(static_cast<Address>(chunk), chunk_size, owner); in AllocatePages()
517 size_t chunk_size = chunks_[chunk_id].size(); in InitializePagesInChunk() local
[all …]
Dspaces.h1914 size_t* chunk_size,
1945 static int ObjectSizeFor(int chunk_size) { in ObjectSizeFor() argument
1946 if (chunk_size <= (Page::kPageSize + Page::kObjectStartOffset)) return 0; in ObjectSizeFor()
1947 return chunk_size - Page::kPageSize - Page::kObjectStartOffset; in ObjectSizeFor()
/external/wpa_supplicant_6/wpa_supplicant/src/wps/
Dhttpread.c101 int chunk_size; /* data of chunk (not hdr or ending CRLF)*/ member
562 h->chunk_size = strtoul(cbp, NULL, 16); in httpread_read_handler()
568 if (h->chunk_size == 0) { in httpread_read_handler()
584 (h->chunk_size + 2)) { in httpread_read_handler()
599 h->chunk_size = 0; /* just in case */ in httpread_read_handler()
617 ncopy = (h->chunk_start + h->chunk_size + 2) - in httpread_read_handler()
/external/libvpx/vpx_mem/
Dvpx_mem.c549 int chunk_size = 0; in vpx_mm_create_heap_memory() local
555 chunk_size = g_mm_memory_size >> SHIFT_HMM_ADDR_ALIGN_UNIT; in vpx_mm_create_heap_memory()
557 chunk_size -= DUMMY_END_BLOCK_BAUS; in vpx_mm_create_heap_memory()
562 , chunk_size);) in vpx_mm_create_heap_memory()
564 hmm_new_chunk(&hmm_d, (void *)g_p_mng_memory, chunk_size); in vpx_mm_create_heap_memory()
/external/kernel-headers/original/linux/raid/
Dmd_u.h84 int chunk_size; /* 1 chunk size in bytes */ member
119 int chunk_size; /* in bytes */ member
Dmd_k.h129 int chunk_size; member
279 int (*reconfig) (mddev_t *mddev, int layout, int chunk_size);
Dmd_p.h173 __u32 chunk_size; /* 1 chunk size in bytes */ member
/external/libvpx/vpx_mem/intel_linux/
Dvpx_mem.c719 int chunk_size = 0; in vpx_mm_create_heap_memory() local
725 chunk_size = g_mm_memory_size >> SHIFT_HMM_ADDR_ALIGN_UNIT; in vpx_mm_create_heap_memory()
727 chunk_size -= DUMMY_END_BLOCK_BAUS; in vpx_mm_create_heap_memory()
732 , chunk_size);) in vpx_mm_create_heap_memory()
734 hmm_new_chunk(&hmm_d, (void *)g_p_mng_memory, chunk_size); in vpx_mm_create_heap_memory()
/external/bluetooth/glib/tests/
Dmarkup-test.c110 gint chunk_size) in test_in_chunks() argument
119 int this_chunk = MIN (length - i, chunk_size); in test_in_chunks()
/external/chromium/net/flip/
Dflip_network_transaction_unittest.cc88 int chunk_size = length / num_chunks; in ChopFrame() local
90 const char* ptr = data + (index * chunk_size); in ChopFrame()
92 chunk_size += length % chunk_size; // The last chunk takes the remainder. in ChopFrame()
93 chunks[index] = MockWrite(true, ptr, chunk_size); in ChopFrame()
/external/v8/test/cctest/
Dtest-log.cc234 int chunk_size = GetLogLines(log_pos_, &buffer_); in GetNextChunk() local
235 CHECK_GT(buffer_.length(), chunk_size); in GetNextChunk()
236 buffer_[chunk_size] = '\0'; in GetNextChunk()
237 log_pos_ += chunk_size; in GetNextChunk()
238 return chunk_size; in GetNextChunk()