/external/mesa3d/src/gallium/drivers/r600/ |
D | compute_memory_pool.c | 47 * Creates a new pool. 52 struct compute_memory_pool* pool = (struct compute_memory_pool*) in compute_memory_pool_new() local 54 if (!pool) in compute_memory_pool_new() 59 pool->screen = rscreen; in compute_memory_pool_new() 60 pool->item_list = (struct list_head *) in compute_memory_pool_new() 62 pool->unallocated_list = (struct list_head *) in compute_memory_pool_new() 64 list_inithead(pool->item_list); in compute_memory_pool_new() 65 list_inithead(pool->unallocated_list); in compute_memory_pool_new() 66 return pool; in compute_memory_pool_new() 70 * Initializes the pool with a size of \a initial_size_in_dw. [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | pool_allocator_test.cc | 30 PoolAllocator pool( in TEST() local 36 new NoopRounder, "pool"); in TEST() 38 EXPECT_EQ(nullptr, pool.AllocateRaw(4 /*alignment*/, 0 /*num_bytes*/)); in TEST() 39 pool.DeallocateRaw(nullptr); // Should not crash. in TEST() 40 EXPECT_EQ(0, pool.get_from_pool_count()); in TEST() 41 EXPECT_EQ(0, pool.put_count()); in TEST() 42 EXPECT_EQ(0, pool.allocated_count()); in TEST() 43 EXPECT_EQ(0, pool.evicted_count()); in TEST() 49 PoolAllocator pool( in TEST() local 55 new NoopRounder, "pool"); in TEST() [all …]
|
/external/mesa3d/src/util/ |
D | slab.c | 50 * - a pointer to the child pool to which this element belongs, or 64 /* Next page in the same child pool. */ 85 * pool has been destroyed). Mark the element as freed and free the whole page 101 * Create a parent pool for the allocation of same-sized objects. 124 * Create a child pool linked to the given parent. 126 void slab_create_child(struct slab_child_pool *pool, in slab_create_child() argument 129 pool->parent = parent; in slab_create_child() 130 pool->pages = NULL; in slab_create_child() 131 pool->free = NULL; in slab_create_child() 132 pool->migrated = NULL; in slab_create_child() [all …]
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
D | threadpool.c | 43 struct threadpool *pool = data; in threadpool_worker() local 45 pthread_mutex_lock(&pool->m); in threadpool_worker() 47 while (!pool->shutdown) { in threadpool_worker() 51 while (!pool->workqueue && !pool->shutdown) in threadpool_worker() 52 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker() 54 if (pool->shutdown) { in threadpool_worker() 55 pthread_mutex_unlock(&pool->m); in threadpool_worker() 63 task = pool->workqueue; in threadpool_worker() 64 pool->workqueue = task->next; in threadpool_worker() 67 pthread_mutex_unlock(&pool->m); in threadpool_worker() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionPoolTest.java | 48 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in connectionsEvictedWhenIdleLongEnough() local 49 pool.setCleanupRunnableForTest(emptyRunnable); in connectionsEvictedWhenIdleLongEnough() 51 RealConnection c1 = newConnection(pool, routeA1, 50L); in connectionsEvictedWhenIdleLongEnough() 53 // Running at time 50, the pool returns that nothing can be evicted until time 150. in connectionsEvictedWhenIdleLongEnough() 54 assertEquals(100L, pool.cleanup(50L)); in connectionsEvictedWhenIdleLongEnough() 55 assertEquals(1, pool.getConnectionCount()); in connectionsEvictedWhenIdleLongEnough() 58 // Running at time 60, the pool returns that nothing can be evicted until time 150. in connectionsEvictedWhenIdleLongEnough() 59 assertEquals(90L, pool.cleanup(60L)); in connectionsEvictedWhenIdleLongEnough() 60 assertEquals(1, pool.getConnectionCount()); in connectionsEvictedWhenIdleLongEnough() 63 // Running at time 149, the pool returns that nothing can be evicted until time 150. in connectionsEvictedWhenIdleLongEnough() [all …]
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
D | pb_bufmgr_pool.c | 31 * Batch buffer pool management. 109 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_destroy() local 113 mtx_lock(&pool->mutex); in pool_buffer_destroy() 114 LIST_ADD(&pool_buf->head, &pool->free); in pool_buffer_destroy() 115 pool->numFree++; in pool_buffer_destroy() 116 mtx_unlock(&pool->mutex); in pool_buffer_destroy() 124 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_map() local 129 mtx_lock(&pool->mutex); in pool_buffer_map() 130 map = (unsigned char *) pool->map + pool_buf->start; in pool_buffer_map() 131 mtx_unlock(&pool->mutex); in pool_buffer_map() [all …]
|
/external/autotest/site_utils/ |
D | balance_pools.py | 6 """Adjust pool balances to cover DUT shortfalls. 8 This command takes all broken DUTs in a specific pool for specific 9 models and swaps them with working DUTs taken from a selected pool 12 pool sizes, or to create or remove pools. 14 usage: balance_pool.py [ options ] POOL MODEL [ MODEL ... ] 17 POOL Name of the pool to balance 23 Set the number of DUTs in the pool to the specified 26 Add the specified number of DUTs to the pool for every 29 Remove the specified number of DUTs from the pool for 31 -s POOL, --spare POOL [all …]
|
/external/deqp/framework/delibs/depool/ |
D | deMemPool.c | 2 * drawElements Memory Pool Library 21 * \brief Memory pool management. 48 * Represent a page of memory allocate by a memory pool. 69 * \brief Memory pool. 71 * A pool of memory from which individual memory allocations can be made. 73 * but rather all of the memory allocated from a pool is freed when the pool 76 * The pools can be arranged into a hierarchy. If a pool with children is 78 * the pool itself. 82 * creating the root pool with the deMemPool_createFailingRoot() function. 92 deMemPool* firstChild; /*!< Pointer to first child pool in linked list. */ [all …]
|
/external/wayland/src/ |
D | wayland-shm.c | 70 struct wl_shm_pool *pool; member 80 shm_pool_finish_resize(struct wl_shm_pool *pool) in shm_pool_finish_resize() argument 84 if (pool->size == pool->new_size) in shm_pool_finish_resize() 87 data = mremap(pool->data, pool->size, pool->new_size, MREMAP_MAYMOVE); in shm_pool_finish_resize() 89 wl_resource_post_error(pool->resource, in shm_pool_finish_resize() 95 pool->data = data; in shm_pool_finish_resize() 96 pool->size = pool->new_size; in shm_pool_finish_resize() 100 shm_pool_unref(struct wl_shm_pool *pool, bool external) in shm_pool_unref() argument 103 pool->external_refcount--; in shm_pool_unref() 104 if (pool->external_refcount == 0) in shm_pool_unref() [all …]
|
/external/iproute2/man/man8/ |
D | devlink-sb.8 | 33 .B pool 37 .BI "devlink sb pool set " DEV " 41 .BI pool " POOL_INDEX " 53 .B pool 57 .BI "devlink sb port pool set " DEV/PORT_INDEX " 61 .BI pool " POOL_INDEX " 85 .BI pool " POOL_INDEX " 124 .SS devlink sb pool show - display available pools and their attributes 131 .SS devlink sb pool set - set attributes of pool 135 - specifies the devlink device to set pool. [all …]
|
/external/skqp/src/compute/skc/platforms/cl_12/ |
D | cq_pool_cl.c | 34 // The command queue pool could easily be replaced with simply an LRU 35 // or even round-robin reuse pool. Even a small number of aliased 48 struct skc_cq_pool * const pool) in skc_runtime_cl_12_create_cq() argument 61 pool->cq_props, in skc_runtime_cl_12_create_cq() 102 struct skc_cq_pool * const pool, in skc_cq_pool_create() argument 106 pool->size = size + 1; // an empty spot in skc_cq_pool_create() 107 pool->reads = 0; in skc_cq_pool_create() 108 pool->writes = size; in skc_cq_pool_create() 110 pool->cq_props = cq_props; in skc_cq_pool_create() 111 pool->cq = skc_runtime_host_perm_alloc(runtime,SKC_MEM_FLAGS_READ_WRITE, in skc_cq_pool_create() [all …]
|
/external/skia/src/compute/skc/platforms/cl_12/ |
D | cq_pool_cl.c | 34 // The command queue pool could easily be replaced with simply an LRU 35 // or even round-robin reuse pool. Even a small number of aliased 48 struct skc_cq_pool * const pool) in skc_runtime_cl_12_create_cq() argument 61 pool->cq_props, in skc_runtime_cl_12_create_cq() 102 struct skc_cq_pool * const pool, in skc_cq_pool_create() argument 106 pool->size = size + 1; // an empty spot in skc_cq_pool_create() 107 pool->reads = 0; in skc_cq_pool_create() 108 pool->writes = size; in skc_cq_pool_create() 110 pool->cq_props = cq_props; in skc_cq_pool_create() 111 pool->cq = skc_runtime_host_perm_alloc(runtime,SKC_MEM_FLAGS_READ_WRITE, in skc_cq_pool_create() [all …]
|
/external/python/cpython2/Doc/includes/ |
D | mp_pool.py | 2 # A test of `multiprocessing.Pool` class 52 # Create pool 56 print 'Creating pool with %d processes\n' % PROCESSES 57 pool = multiprocessing.Pool(PROCESSES) 58 print 'pool = %s' % pool 68 results = [pool.apply_async(calculate, t) for t in TASKS] 69 imap_it = pool.imap(calculatestar, TASKS) 70 imap_unordered_it = pool.imap_unordered(calculatestar, TASKS) 72 print 'Ordered results using pool.apply_async():' 77 print 'Ordered results using pool.imap():' [all …]
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_allocator.c | 81 * At the next level we can use various sub-allocators. The state pool is a 82 * pool of smaller, fixed size objects, which operates much like the block 83 * pool. It uses a free list for freeing objects, but when it runs out of 84 * space it just allocates a new block from the block pool. This allocator is 240 anv_block_pool_expand_range(struct anv_block_pool *pool, 244 anv_block_pool_init(struct anv_block_pool *pool, in anv_block_pool_init() argument 251 pool->device = device; in anv_block_pool_init() 252 pool->bo_flags = bo_flags; in anv_block_pool_init() 253 anv_bo_init(&pool->bo, 0, 0); in anv_block_pool_init() 255 pool->fd = memfd_create("block pool", MFD_CLOEXEC); in anv_block_pool_init() [all …]
|
D | genX_query.c | 43 struct anv_query_pool *pool; in genX() local 48 /* Query pool slots are made up of some number of 64-bit values packed in genX() 79 pool = vk_alloc2(&device->alloc, pAllocator, sizeof(*pool), 8, in genX() 81 if (pool == NULL) in genX() 84 pool->type = pCreateInfo->queryType; in genX() 85 pool->pipeline_statistics = pipeline_statistics; in genX() 86 pool->stride = uint64s_per_slot * sizeof(uint64_t); in genX() 87 pool->slots = pCreateInfo->queryCount; in genX() 89 uint64_t size = pool->slots * pool->stride; in genX() 90 result = anv_bo_init_new(&pool->bo, device, size); in genX() [all …]
|
/external/boringssl/src/crypto/pool/ |
D | pool.c | 15 #include <openssl/pool.h> 43 CRYPTO_BUFFER_POOL *pool = OPENSSL_malloc(sizeof(CRYPTO_BUFFER_POOL)); in CRYPTO_BUFFER_POOL_new() local 44 if (pool == NULL) { in CRYPTO_BUFFER_POOL_new() 48 OPENSSL_memset(pool, 0, sizeof(CRYPTO_BUFFER_POOL)); in CRYPTO_BUFFER_POOL_new() 49 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); in CRYPTO_BUFFER_POOL_new() 50 if (pool->bufs == NULL) { in CRYPTO_BUFFER_POOL_new() 51 OPENSSL_free(pool); in CRYPTO_BUFFER_POOL_new() 55 CRYPTO_MUTEX_init(&pool->lock); in CRYPTO_BUFFER_POOL_new() 57 return pool; in CRYPTO_BUFFER_POOL_new() 60 void CRYPTO_BUFFER_POOL_free(CRYPTO_BUFFER_POOL *pool) { in CRYPTO_BUFFER_POOL_free() argument [all …]
|
/external/libxcam/wrapper/gstreamer/ |
D | gstxcambufferpool.cpp | 57 gst_xcam_buffer_pool_start (GstBufferPool *pool); 60 gst_xcam_buffer_pool_stop (GstBufferPool *pool); 63 gst_xcam_buffer_pool_set_config (GstBufferPool *pool, GstStructure *config); 97 gst_xcam_buffer_pool_init (GstXCamBufferPool *pool) in gst_xcam_buffer_pool_init() argument 99 pool->need_video_meta = FALSE; in gst_xcam_buffer_pool_init() 100 XCAM_CONSTRUCTOR (pool->device_manager, SmartPtr<MainDeviceManager>); in gst_xcam_buffer_pool_init() 106 GstXCamBufferPool *pool = GST_XCAM_BUFFER_POOL (object); in gst_xcam_buffer_pool_finalize() local 107 XCAM_ASSERT (pool); in gst_xcam_buffer_pool_finalize() 109 if (pool->src) in gst_xcam_buffer_pool_finalize() 110 gst_object_unref (pool->src); in gst_xcam_buffer_pool_finalize() [all …]
|
/external/proguard/src/proguard/classfile/editor/ |
D | ConstantPoolEditor.java | 27 * This class can add constant pool entries to a given class. 49 * Finds or creates a IntegerConstant constant pool entry with the given 51 * @return the constant pool index of the Utf8Constant. 79 * Finds or creates a LongConstant constant pool entry with the given value. 80 * @return the constant pool index of the LongConstant. 108 * Finds or creates a FloatConstant constant pool entry with the given 110 * @return the constant pool index of the FloatConstant. 138 * Finds or creates a DoubleConstant constant pool entry with the given 140 * @return the constant pool index of the DoubleConstant. 168 * Finds or creates a StringConstant constant pool entry with the given [all …]
|
/external/libunwind/src/mi/ |
D | mempool.c | 86 free_object (struct mempool *pool, void *object) in free_object() argument 90 obj->next = pool->free_list; in free_object() 91 pool->free_list = obj; in free_object() 92 ++pool->num_free; in free_object() 96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) in add_memory() argument 101 free_object (pool, obj); in add_memory() 105 expand (struct mempool *pool) in expand() argument 110 size = pool->chunk_size; in expand() 114 size = UNW_ALIGN(pool->obj_size, pg_size); in expand() 119 size = pool->obj_size; in expand() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) in memory_pool_init() argument 40 memset(pool, 0, sizeof(struct memory_pool)); in memory_pool_init() 44 void memory_pool_destroy(struct memory_pool * pool) in memory_pool_destroy() argument 46 while(pool->blocks) { in memory_pool_destroy() 47 struct memory_block * block = pool->blocks; in memory_pool_destroy() 48 pool->blocks = block->next; in memory_pool_destroy() 53 static void refill_pool(struct memory_pool * pool) in refill_pool() argument 55 unsigned int blocksize = pool->total_allocated; in refill_pool() 62 newblock->next = pool->blocks; in refill_pool() 63 pool->blocks = newblock; in refill_pool() [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 65 self.pool = descriptor_pool.DescriptorPool() 70 self.pool.Add(self.factory_test1_fd) 71 self.pool.Add(self.factory_test2_fd) 75 file_desc1 = self.pool.FindFileByName(name1) 82 file_desc2 = self.pool.FindFileByName(name2) 90 self.pool.FindFileByName('Does not exist') 93 file_desc1 = self.pool.FindFileContainingSymbol( 101 file_desc2 = self.pool.FindFileContainingSymbol( 111 self.pool.FindFileContainingSymbol('Does not exist') 114 msg1 = self.pool.FindMessageTypeByName( [all …]
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | mutex_pool.h | 16 bool mutex_pool_init(mutex_pool_t *pool, const char *name, witness_rank_t rank); 20 mutex_pool_mutex(mutex_pool_t *pool, uintptr_t key) { in mutex_pool_mutex() argument 23 return &pool->mutexes[hash_result[0] % MUTEX_POOL_SIZE]; in mutex_pool_mutex() 27 mutex_pool_assert_not_held(tsdn_t *tsdn, mutex_pool_t *pool) { in mutex_pool_assert_not_held() argument 29 malloc_mutex_assert_not_owner(tsdn, &pool->mutexes[i]); in mutex_pool_assert_not_held() 34 * Note that a mutex pool doesn't work exactly the way an embdedded mutex would. 35 * You're not allowed to acquire mutexes in the pool one at a time. You have to 41 mutex_pool_lock(tsdn_t *tsdn, mutex_pool_t *pool, uintptr_t key) { in mutex_pool_lock() argument 42 mutex_pool_assert_not_held(tsdn, pool); in mutex_pool_lock() 44 malloc_mutex_t *mutex = mutex_pool_mutex(pool, key); in mutex_pool_lock() [all …]
|
/external/wayland/cursor/ |
D | wayland-cursor.c | 44 struct wl_shm_pool *pool; member 54 struct shm_pool *pool; in shm_pool_create() local 56 pool = malloc(sizeof *pool); in shm_pool_create() 57 if (!pool) in shm_pool_create() 60 pool->fd = os_create_anonymous_file(size); in shm_pool_create() 61 if (pool->fd < 0) in shm_pool_create() 64 pool->data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, in shm_pool_create() 65 pool->fd, 0); in shm_pool_create() 67 if (pool->data == MAP_FAILED) in shm_pool_create() 70 pool->pool = wl_shm_create_pool(shm, pool->fd, size); in shm_pool_create() [all …]
|
/external/autotest/utils/ |
D | labellib_unittest.py | 18 got = labellib.parse_keyval_label('pool:suites') 19 self.assertEqual(got, labellib.KeyvalLabel('pool', 'suites')) 22 got = labellib.parse_keyval_label('pool:suites:penthouse') 23 self.assertEqual(got, labellib.KeyvalLabel('pool', 'suites:penthouse')) 31 labellib.KeyvalLabel('pool', 'suites')) 32 self.assertEqual(got, 'pool:suites') 36 labellib.KeyvalLabel('pool', 'suites:penthouse')) 37 self.assertEqual(got, 'pool:suites:penthouse') 44 labels = ['webcam', 'pool:suites'] 49 labels = ['webcam', 'pool:suites', 'pool:party'] [all …]
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | ByteArrayPoolTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32); in reusesBuffer() local 30 byte[] buf1 = pool.getBuf(16); in reusesBuffer() 31 byte[] buf2 = pool.getBuf(16); in reusesBuffer() 33 pool.returnBuf(buf1); in reusesBuffer() 34 pool.returnBuf(buf2); in reusesBuffer() 36 byte[] buf3 = pool.getBuf(16); in reusesBuffer() 37 byte[] buf4 = pool.getBuf(16); in reusesBuffer() 45 ByteArrayPool pool = new ByteArrayPool(32); in obeysSizeLimit() local 47 byte[] buf1 = pool.getBuf(16); in obeysSizeLimit() 48 byte[] buf2 = pool.getBuf(16); in obeysSizeLimit() [all …]
|