Home
last modified time | relevance | path

Searched full:pool (Results 1 – 25 of 7295) sorted by relevance

12345678910>>...292

/external/skia/tests/
DSkBlockAllocatorTest.cpp24 static size_t ScratchBlockSize(SkSBlockAllocator<N>& pool) { in ScratchBlockSize() argument
25 return (size_t) pool->scratchBlockSize(); in ScratchBlockSize()
31 static int block_count(const SkSBlockAllocator<N>& pool) { in block_count() argument
33 for (const Block* b : pool->blocks()) { in block_count()
41 static Block* get_block(SkSBlockAllocator<N>& pool, int blockIndex) { in get_block() argument
44 for (Block* b: pool->blocks()) { in get_block()
60 static size_t total_size(SkSBlockAllocator<N>& pool) { in total_size() argument
61 return pool->totalSize() - BlockAllocatorTestAccess::ScratchBlockSize(pool); in total_size()
65 static size_t add_block(SkSBlockAllocator<N>& pool) { in add_block() argument
66 size_t currentSize = total_size(pool); in add_block()
[all …]
/external/mesa3d/src/asahi/vulkan/
Dhk_cmd_pool.c15 hk_cmd_bo_create(struct hk_cmd_pool *pool, bool usc, struct hk_cmd_bo **bo_out) in hk_cmd_bo_create() argument
17 struct hk_device *dev = hk_cmd_pool_device(pool); in hk_cmd_bo_create()
20 bo = vk_zalloc(&pool->vk.alloc, sizeof(*bo), 8, in hk_cmd_bo_create()
23 return vk_error(pool, VK_ERROR_OUT_OF_HOST_MEMORY); in hk_cmd_bo_create()
26 "Command pool"); in hk_cmd_bo_create()
28 vk_free(&pool->vk.alloc, bo); in hk_cmd_bo_create()
29 return vk_error(pool, VK_ERROR_OUT_OF_DEVICE_MEMORY); in hk_cmd_bo_create()
39 hk_cmd_bo_destroy(struct hk_cmd_pool *pool, struct hk_cmd_bo *bo) in hk_cmd_bo_destroy() argument
41 struct hk_device *dev = hk_cmd_pool_device(pool); in hk_cmd_bo_destroy()
43 vk_free(&pool->vk.alloc, bo); in hk_cmd_bo_destroy()
[all …]
Dhk_query_pool.c35 hk_has_available(const struct hk_query_pool *pool) in hk_has_available() argument
37 return pool->vk.query_type != VK_QUERY_TYPE_TIMESTAMP; in hk_has_available()
41 hk_pool_oq_index_ptr(const struct hk_query_pool *pool) in hk_pool_oq_index_ptr() argument
43 return agx_bo_map(pool->bo) + pool->query_start; in hk_pool_oq_index_ptr()
47 hk_reports_per_query(struct hk_query_pool *pool) in hk_reports_per_query() argument
49 switch (pool->vk.query_type) { in hk_reports_per_query()
55 return util_bitcount(pool->vk.pipeline_statistics); in hk_reports_per_query()
65 hk_flush_if_timestamp(struct hk_cmd_buffer *cmd, struct hk_query_pool *pool) in hk_flush_if_timestamp() argument
73 if (pool->vk.query_type == VK_QUERY_TYPE_TIMESTAMP) { in hk_flush_if_timestamp()
86 struct hk_query_pool *pool; in hk_CreateQueryPool() local
[all …]
/external/mesa3d/src/panfrost/vulkan/
Dpanvk_mempool.c44 * In "owned" mode, a single parent owns the entire pool, and the pool owns all
46 * panvk_pool_get_bo_handles. Freeing occurs at the level of an entire pool.
47 * This is useful for streaming uploads, where the batch owns the pool.
49 * In "unowned" mode, the pool is freestanding. It does not track created BOs
56 panvk_pool_alloc_backing(struct panvk_pool *pool, size_t sz) in panvk_pool_alloc_backing() argument
58 size_t bo_sz = ALIGN_POT(MAX2(pool->base.slab_size, sz), 4096); in panvk_pool_alloc_backing()
61 /* If there's a free BO in our BO pool, let's pick it. */ in panvk_pool_alloc_backing()
62 if (pool->bo_pool && bo_sz == pool->base.slab_size && in panvk_pool_alloc_backing()
63 !list_is_empty(&pool->bo_pool->free_bos)) { in panvk_pool_alloc_backing()
65 list_first_entry(&pool->bo_pool->free_bos, struct panvk_priv_bo, node); in panvk_pool_alloc_backing()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dcompute_memory_pool.c30 static void compute_memory_shadow(struct compute_memory_pool* pool,
33 static void compute_memory_defrag(struct compute_memory_pool *pool,
37 static int compute_memory_promote_item(struct compute_memory_pool *pool,
41 static void compute_memory_move_item(struct compute_memory_pool *pool,
46 static void compute_memory_transfer(struct compute_memory_pool* pool,
52 * Creates a new pool.
57 struct compute_memory_pool* pool = (struct compute_memory_pool*) in compute_memory_pool_new() local
59 if (!pool) in compute_memory_pool_new()
64 pool->screen = rscreen; in compute_memory_pool_new()
65 pool->item_list = (struct list_head *) in compute_memory_pool_new()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dpool_allocator_test.cc31 PoolAllocator pool( in TEST() local
37 new NoopRounder, "pool"); in TEST()
39 EXPECT_EQ(nullptr, pool.AllocateRaw(4 /*alignment*/, 0 /*num_bytes*/)); in TEST()
40 pool.DeallocateRaw(nullptr); // Should not crash. in TEST()
41 EXPECT_EQ(0, pool.get_from_pool_count()); in TEST()
42 EXPECT_EQ(0, pool.put_count()); in TEST()
43 EXPECT_EQ(0, pool.allocated_count()); in TEST()
44 EXPECT_EQ(0, pool.evicted_count()); in TEST()
51 PoolAllocator pool( in TEST() local
57 new NoopRounder, "pool"); in TEST()
[all …]
/external/mesa3d/src/gallium/frontends/nine/
Dthreadpool.c26 struct threadpool *pool = data; in threadpool_worker() local
28 pthread_mutex_lock(&pool->m); in threadpool_worker()
30 while (!pool->shutdown) { in threadpool_worker()
34 while (!pool->workqueue && !pool->shutdown) in threadpool_worker()
35 pthread_cond_wait(&pool->new_work, &pool->m); in threadpool_worker()
37 if (pool->shutdown) in threadpool_worker()
44 task = pool->workqueue; in threadpool_worker()
45 pool->workqueue = task->next; in threadpool_worker()
48 pthread_mutex_unlock(&pool->m); in threadpool_worker()
50 pthread_mutex_lock(&pool->m); in threadpool_worker()
[all …]
/external/cronet/stable/third_party/apache-portable-runtime/src/memory/unix/
Dapr_pools.c175 apr_pool_t *pool) in apr_allocator_owner_set() argument
177 allocator->owner = pool; in apr_allocator_owner_set()
495 * pointer to the pointer referencing this pool.
515 apr_memnode_t *self; /* The node containing the pool itself */
519 apr_pool_t *joined; /* the caller has guaranteed that this pool
564 static void pool_destroy_debug(apr_pool_t *pool, const char *file_line);
668 APR_DECLARE(void *) apr_palloc(apr_pool_t *pool, apr_size_t in_size) in apr_palloc() argument
676 if (pool->abort_fn) in apr_palloc()
677 pool->abort_fn(APR_ENOMEM); in apr_palloc()
681 active = pool->active; in apr_palloc()
[all …]
/external/cronet/tot/third_party/apache-portable-runtime/src/memory/unix/
Dapr_pools.c175 apr_pool_t *pool) in apr_allocator_owner_set() argument
177 allocator->owner = pool; in apr_allocator_owner_set()
495 * pointer to the pointer referencing this pool.
515 apr_memnode_t *self; /* The node containing the pool itself */
519 apr_pool_t *joined; /* the caller has guaranteed that this pool
564 static void pool_destroy_debug(apr_pool_t *pool, const char *file_line);
668 APR_DECLARE(void *) apr_palloc(apr_pool_t *pool, apr_size_t in_size) in apr_palloc() argument
676 if (pool->abort_fn) in apr_palloc()
677 pool->abort_fn(APR_ENOMEM); in apr_palloc()
681 active = pool->active; in apr_palloc()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionPoolTest.java48 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/nouveau/vulkan/
Dnvk_cmd_pool.c13 nvk_cmd_mem_create(struct nvk_cmd_pool *pool, bool force_gart, struct nvk_cmd_mem **mem_out) in nvk_cmd_mem_create() argument
15 struct nvk_device *dev = nvk_cmd_pool_device(pool); in nvk_cmd_mem_create()
19 mem = vk_zalloc(&pool->vk.alloc, sizeof(*mem), 8, in nvk_cmd_mem_create()
22 return vk_error(pool, VK_ERROR_OUT_OF_HOST_MEMORY); in nvk_cmd_mem_create()
27 result = nvkmd_dev_alloc_mapped_mem(dev->nvkmd, &pool->vk.base, in nvk_cmd_mem_create()
32 vk_free(&pool->vk.alloc, mem); in nvk_cmd_mem_create()
41 nvk_cmd_mem_destroy(struct nvk_cmd_pool *pool, struct nvk_cmd_mem *mem) in nvk_cmd_mem_destroy() argument
44 vk_free(&pool->vk.alloc, mem); in nvk_cmd_mem_destroy()
54 struct nvk_cmd_pool *pool; in nvk_CreateCommandPool() local
56 pool = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*pool), 8, in nvk_CreateCommandPool()
[all …]
/external/wayland/src/
Dwayland-shm.c92 struct wl_shm_pool *pool; member
102 shm_pool_grow_mapping(struct wl_shm_pool *pool) in shm_pool_grow_mapping() argument
107 data = mremap(pool->data, pool->size, pool->new_size, MREMAP_MAYMOVE); in shm_pool_grow_mapping()
109 data = wl_os_mremap_maymove(pool->mmap_fd, pool->data, &pool->size, in shm_pool_grow_mapping()
110 pool->new_size, pool->mmap_prot, in shm_pool_grow_mapping()
111 pool->mmap_flags); in shm_pool_grow_mapping()
112 if (pool->size != 0 && pool->resource != NULL) { in shm_pool_grow_mapping()
113 wl_resource_post_error(pool->resource, in shm_pool_grow_mapping()
122 shm_pool_finish_resize(struct wl_shm_pool *pool) in shm_pool_finish_resize() argument
126 if (pool->size == pool->new_size) in shm_pool_finish_resize()
[all …]
/external/rust/android-crates-io/crates/sharded-slab/src/tests/
Dloom_pool.rs2 use crate::{clear::Clear, sync::alloc, Pack, Pool};
74 let pool: Pool<DontDropMe> = Pool::new(); in dont_drop() localVariable
76 test_println!("-> dont_drop: Inserting into pool {}", item1.id); in dont_drop()
77 let idx = pool in dont_drop()
84 pool.clear(idx); in dont_drop()
93 let pool: Arc<Pool<DontDropMe>> = Arc::new(Pool::new()); in concurrent_create_with_clear() localVariable
97 let idx1 = pool in concurrent_create_with_clear()
100 let p = pool.clone(); in concurrent_create_with_clear()
113 let guard = pool.get(idx1); in concurrent_create_with_clear()
122 assert!(pool.clear(idx1)); in concurrent_create_with_clear()
[all …]
/external/mesa3d/src/vulkan/runtime/
Dvk_command_pool.c51 destroy_free_command_buffers(struct vk_command_pool *pool) in destroy_free_command_buffers() argument
53 for (uint32_t i = 0; i < ARRAY_SIZE(pool->free_command_buffers); i++) { in destroy_free_command_buffers()
55 &pool->free_command_buffers[i], pool_link) { in destroy_free_command_buffers()
58 assert(list_is_empty(&pool->free_command_buffers[i])); in destroy_free_command_buffers()
64 struct vk_command_pool *pool, in vk_command_pool_init() argument
68 memset(pool, 0, sizeof(*pool)); in vk_command_pool_init()
69 vk_object_base_init(device, &pool->base, in vk_command_pool_init()
72 pool->flags = pCreateInfo->flags; in vk_command_pool_init()
73 pool->queue_family_index = pCreateInfo->queueFamilyIndex; in vk_command_pool_init()
74 pool->alloc = pAllocator ? *pAllocator : device->alloc; in vk_command_pool_init()
[all …]
/external/mesa3d/src/util/
Dslab.c48 * - a pointer to the child pool to which this element belongs, or
62 /* Next page in the same child pool. */
83 * pool has been destroyed). Mark the element as freed and free the whole page
99 * Create a parent pool for the allocation of same-sized objects.
123 * Create a child pool linked to the given parent.
125 void slab_create_child(struct slab_child_pool *pool, in slab_create_child() argument
128 pool->parent = parent; in slab_create_child()
129 pool->pages = NULL; in slab_create_child()
130 pool->free = NULL; in slab_create_child()
131 pool->migrated = NULL; in slab_create_child()
[all …]
/external/deqp/framework/delibs/depool/
DdeMemPool.c2 * 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/autotest/site_utils/
Dbalance_pools.py6 """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/iproute2/man/man8/
Ddevlink-sb.833 .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/linux-kselftest/tools/testing/selftests/drivers/net/mlxsw/
Dsharedbuffer_configuration.py16 objects, pool, tcbind and portpool. Provide an interface to get random
18 1. Pool:
22 - random pool number
30 for pool in pools:
31 self._pools.append(pool)
47 def _get_th(self, pool): argument
50 if pool["thtype"] == "dynamic":
58 for pool in self._pools:
59 if pool["type"] == "ingress":
60 ing_pools.append(pool)
[all …]
/external/boringssl/src/crypto/pool/
Dpool.cc15 #include <openssl/pool.h>
31 return (uint32_t)SIPHASH_24(buf->pool->hash_key, buf->data, buf->len); in CRYPTO_BUFFER_hash()
35 // Only |CRYPTO_BUFFER|s from the same pool have compatible hashes. in CRYPTO_BUFFER_cmp()
36 assert(a->pool != NULL); in CRYPTO_BUFFER_cmp()
37 assert(a->pool == b->pool); in CRYPTO_BUFFER_cmp()
45 CRYPTO_BUFFER_POOL *pool = reinterpret_cast<CRYPTO_BUFFER_POOL *>( in CRYPTO_BUFFER_POOL_new() local
47 if (pool == NULL) { in CRYPTO_BUFFER_POOL_new()
51 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); in CRYPTO_BUFFER_POOL_new()
52 if (pool->bufs == NULL) { in CRYPTO_BUFFER_POOL_new()
53 OPENSSL_free(pool); in CRYPTO_BUFFER_POOL_new()
[all …]
/external/cronet/stable/third_party/boringssl/src/crypto/pool/
Dpool.cc15 #include <openssl/pool.h>
31 return (uint32_t)SIPHASH_24(buf->pool->hash_key, buf->data, buf->len); in CRYPTO_BUFFER_hash()
35 // Only |CRYPTO_BUFFER|s from the same pool have compatible hashes. in CRYPTO_BUFFER_cmp()
36 assert(a->pool != NULL); in CRYPTO_BUFFER_cmp()
37 assert(a->pool == b->pool); in CRYPTO_BUFFER_cmp()
45 CRYPTO_BUFFER_POOL *pool = reinterpret_cast<CRYPTO_BUFFER_POOL *>( in CRYPTO_BUFFER_POOL_new() local
47 if (pool == NULL) { in CRYPTO_BUFFER_POOL_new()
51 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); in CRYPTO_BUFFER_POOL_new()
52 if (pool->bufs == NULL) { in CRYPTO_BUFFER_POOL_new()
53 OPENSSL_free(pool); in CRYPTO_BUFFER_POOL_new()
[all …]
/external/cronet/tot/third_party/boringssl/src/crypto/pool/
Dpool.cc15 #include <openssl/pool.h>
31 return (uint32_t)SIPHASH_24(buf->pool->hash_key, buf->data, buf->len); in CRYPTO_BUFFER_hash()
35 // Only |CRYPTO_BUFFER|s from the same pool have compatible hashes. in CRYPTO_BUFFER_cmp()
36 assert(a->pool != NULL); in CRYPTO_BUFFER_cmp()
37 assert(a->pool == b->pool); in CRYPTO_BUFFER_cmp()
45 CRYPTO_BUFFER_POOL *pool = reinterpret_cast<CRYPTO_BUFFER_POOL *>( in CRYPTO_BUFFER_POOL_new() local
47 if (pool == NULL) { in CRYPTO_BUFFER_POOL_new()
51 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); in CRYPTO_BUFFER_POOL_new()
52 if (pool->bufs == NULL) { in CRYPTO_BUFFER_POOL_new()
53 OPENSSL_free(pool); in CRYPTO_BUFFER_POOL_new()
[all …]
/external/cronet/tot/third_party/apache-portable-runtime/src/include/
Dapr_pools.h36 * Note that most operations on pools are not thread-safe: a single pool
38 * exception to this rule is creating a subpool of a given pool: one or more
40 * accesses the parent pool.
54 * @defgroup apr_pools Memory Pool Functions
59 /** The fundamental pool type */
89 * actually define the function. It assumes the field is named "pool".
94 { return the##type->pool; }
98 * Pool debug levels
113 * pool, check its lifetime. If the pool
119 * | | | | | x | | | | Pool owner checking. On each use of a
[all …]
/external/cronet/stable/third_party/apache-portable-runtime/src/include/
Dapr_pools.h36 * Note that most operations on pools are not thread-safe: a single pool
38 * exception to this rule is creating a subpool of a given pool: one or more
40 * accesses the parent pool.
54 * @defgroup apr_pools Memory Pool Functions
59 /** The fundamental pool type */
89 * actually define the function. It assumes the field is named "pool".
94 { return the##type->pool; }
98 * Pool debug levels
113 * pool, check its lifetime. If the pool
119 * | | | | | x | | | | Pool owner checking. On each use of a
[all …]
/external/virglrenderer/src/venus/
Dvkr_cs.c194 struct vkr_cs_decoder_temp_pool *pool = &dec->temp_pool; in vkr_cs_decoder_fini() local
195 for (uint32_t i = 0; i < pool->buffer_count; i++) in vkr_cs_decoder_fini()
196 free(pool->buffers[i]); in vkr_cs_decoder_fini()
197 if (pool->buffers) in vkr_cs_decoder_fini()
198 free(pool->buffers); in vkr_cs_decoder_fini()
204 const struct vkr_cs_decoder_temp_pool *pool = &dec->temp_pool; in vkr_cs_decoder_sanity_check() local
205 assert(pool->buffer_count <= pool->buffer_max); in vkr_cs_decoder_sanity_check()
206 if (pool->buffer_count) { in vkr_cs_decoder_sanity_check()
207 assert(pool->buffers[pool->buffer_count - 1] <= pool->reset_to); in vkr_cs_decoder_sanity_check()
208 assert(pool->reset_to <= pool->cur); in vkr_cs_decoder_sanity_check()
[all …]

12345678910>>...292