Home
last modified time | relevance | path

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

12345678910>>...481

/aosp_15_r20/external/skia/tests/
H A 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 …]
/aosp_15_r20/hardware/google/gfxstream/host/vulkan/
DVkDecoderSnapshot.h62 android::base::BumpPool* pool, VkResult input_result,
66 android::base::BumpPool* pool, VkInstance instance,
69 android::base::BumpPool* pool, VkResult input_result,
73 android::base::BumpPool* pool, VkPhysicalDevice physicalDevice,
77 android::base::BumpPool* pool,
81 const uint8_t* snapshotTraceBegin, size_t snapshotTraceBytes, android::base::BumpPool* pool,
86 android::base::BumpPool* pool,
91 android::base::BumpPool* pool,
97 android::base::BumpPool* pool,
101 android::base::BumpPool* pool, PFN_vkVoidFunction input_result,
[all …]
DVkDecoderSnapshot.cpp62 android::base::BumpPool* pool, VkResult input_result, in vkCreateInstance() argument
78 android::base::BumpPool* pool, VkInstance instance, in vkDestroyInstance() argument
85 android::base::BumpPool* pool, VkResult input_result, in vkEnumeratePhysicalDevices() argument
108 android::base::BumpPool* pool, VkPhysicalDevice physicalDevice, in vkGetPhysicalDeviceFeatures() argument
112 android::base::BumpPool* pool, in vkGetPhysicalDeviceFormatProperties() argument
116 const uint8_t* snapshotTraceBegin, size_t snapshotTraceBytes, android::base::BumpPool* pool, in vkGetPhysicalDeviceImageFormatProperties() argument
121 android::base::BumpPool* pool, in vkGetPhysicalDeviceProperties() argument
126 android::base::BumpPool* pool, in vkGetPhysicalDeviceQueueFamilyProperties() argument
133 android::base::BumpPool* pool, in vkGetPhysicalDeviceMemoryProperties() argument
137 android::base::BumpPool* pool, PFN_vkVoidFunction input_result, in vkGetInstanceProcAddr() argument
[all …]
DVkDecoderGlobalState.h112 VkResult on_vkEnumerateInstanceVersion(android::base::BumpPool* pool, uint32_t* pApiVersion);
121 VkResult on_vkCreateInstance(android::base::BumpPool* pool,
125 void on_vkDestroyInstance(android::base::BumpPool* pool, VkInstance instance,
128 VkResult on_vkEnumeratePhysicalDevices(android::base::BumpPool* pool, VkInstance instance,
133 void on_vkGetPhysicalDeviceFeatures(android::base::BumpPool* pool,
136 void on_vkGetPhysicalDeviceFeatures2(android::base::BumpPool* pool,
139 void on_vkGetPhysicalDeviceFeatures2KHR(android::base::BumpPool* pool,
145 android::base::BumpPool* pool, VkPhysicalDevice physicalDevice, VkFormat format,
149 android::base::BumpPool* pool, VkPhysicalDevice physicalDevice,
153 android::base::BumpPool* pool, VkPhysicalDevice physicalDevice,
[all …]
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/memory/unix/
H A 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 …]
/aosp_15_r20/external/mesa3d/src/intel/vulkan_hasvk/
H A Danv_allocator.c84 * At the next level we can use various sub-allocators. The state pool is a
85 * pool of smaller, fixed size objects, which operates much like the block
86 * pool. It uses a free list for freeing objects, but when it runs out of
87 * space it just allocates a new block from the block pool. This allocator is
192 /* Assert that we only ever grow the pool */ in anv_state_table_expand_range()
205 /* Just leak the old map until we destroy the pool. We can't munmap it in anv_state_table_expand_range()
235 /* The block pool is always initialized to a nonzero size and this function in anv_state_table_grow()
296 /* We allocated the first block outside the pool so we have to grow in anv_state_table_add()
297 * the pool. pool_state->next acts a mutex: threads who try to in anv_state_table_add()
363 anv_block_pool_expand_range(struct anv_block_pool *pool,
[all …]
H A DgenX_query.c54 anv_query_address(struct anv_query_pool *pool, uint32_t query) in anv_query_address() argument
57 .bo = pool->bo, in anv_query_address()
58 .offset = query * pool->stride, in anv_query_address()
82 /* Query pool slots are made up of some number of 64-bit values packed in genX()
94 VK_MULTIALLOC_DECL(&ma, struct anv_query_pool, pool, 1); in genX()
174 pool->type = pCreateInfo->queryType; in genX()
175 pool->pipeline_statistics = pipeline_statistics; in genX()
176 pool->stride = uint64s_per_slot * sizeof(uint64_t); in genX()
177 pool->slots = pCreateInfo->queryCount; in genX()
179 if (pool->type == VK_QUERY_TYPE_PERFORMANCE_QUERY_INTEL) { in genX()
[all …]
/aosp_15_r20/external/mesa3d/src/intel/vulkan/
H A Danv_allocator.c85 * At the next level we can use various sub-allocators. The state pool is a
86 * pool of smaller, fixed size objects, which operates much like the block
87 * pool. It uses a free list for freeing objects, but when it runs out of
88 * space it just allocates a new block from the block pool. This allocator is
175 /* Assert that we only ever grow the pool */ in anv_state_table_expand_range()
188 /* Just leak the old map until we destroy the pool. We can't munmap it in anv_state_table_expand_range()
219 /* The block pool is always initialized to a nonzero size and this function in anv_state_table_grow()
280 /* We allocated the first block outside the pool so we have to grow in anv_state_table_add()
281 * the pool. pool_state->next acts a mutex: threads who try to in anv_state_table_add()
347 anv_block_pool_expand_range(struct anv_block_pool *pool, uint32_t size);
[all …]
H A DgenX_query.c55 anv_query_address(struct anv_query_pool *pool, uint32_t query) in anv_query_address() argument
58 .bo = pool->bo, in anv_query_address()
59 .offset = query * pool->stride, in anv_query_address()
93 /* Query pool slots are made up of some number of 64-bit values packed in genX()
105 VK_MULTIALLOC_DECL(&ma, struct anv_query_pool, pool, 1); in genX()
212 vk_query_pool_init(&device->vk, &pool->vk, pCreateInfo); in genX()
213 pool->stride = uint64s_per_slot * sizeof(uint64_t); in genX()
215 if (pool->vk.query_type == VK_QUERY_TYPE_PERFORMANCE_QUERY_INTEL) { in genX()
216 pool->data_offset = data_offset; in genX()
217 pool->snapshot_size = (pool->stride - data_offset) / 2; in genX()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/sharded-slab/src/
Dpool.rs1 //! A lock-free concurrent object pool.
3 //! See the [`Pool` type's documentation][pool] for details on the object pool API and how
6 //! [pool]: ../struct.Pool.html
18 /// A lock-free concurrent object pool.
22 /// object is freed when the object is removed from the slab. With a pool, we can instead reuse
23 /// this memory for objects being added to the pool in the future, therefore reducing memory
26 /// This type implements a lock-free concurrent pool, indexed by `usize`s. The items stored in this
29 /// The `Pool` type shares similar semantics to [`Slab`] when it comes to sharing across threads
31 /// [`Slab::take`] analouges for the `Pool` type. Instead new items are added to the pool by using
32 /// the [`Pool::create`] method, and marked for clearing by the [`Pool::clear`] method.
[all …]
/aosp_15_r20/external/mesa3d/src/gallium/drivers/r600/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/deqp/framework/delibs/depool/
H A 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 …]
/aosp_15_r20/external/mesa3d/src/broadcom/vulkan/
H A Dv3dv_query.c31 struct v3dv_query_pool *pool, in kperfmon_create() argument
34 for (uint32_t i = 0; i < pool->perfmon.nperfmons; i++) { in kperfmon_create()
35 assert(i * DRM_V3D_MAX_PERF_COUNTERS < pool->perfmon.ncounters); in kperfmon_create()
38 .ncounters = MIN2(pool->perfmon.ncounters - in kperfmon_create()
43 &pool->perfmon.counters[i * DRM_V3D_MAX_PERF_COUNTERS], in kperfmon_create()
53 pool->queries[query].perf.kperfmon_ids[i] = req.id; in kperfmon_create()
59 struct v3dv_query_pool *pool, in kperfmon_destroy() argument
63 if (!pool->queries[query].perf.kperfmon_ids[0]) in kperfmon_destroy()
66 for (uint32_t i = 0; i < pool->perfmon.nperfmons; i++) { in kperfmon_destroy()
68 .id = pool->queries[query].perf.kperfmon_ids[i] in kperfmon_destroy()
[all …]
/aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/include/
H A 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 …]
/aosp_15_r20/external/wayland/src/
H A 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 …]
/aosp_15_r20/external/cronet/third_party/protobuf/python/google/protobuf/internal/
H A Ddescriptor_pool_test.py68 file_desc1 = self.pool.FindFileByName(name1)
75 file_desc2 = self.pool.FindFileByName(name2)
83 self.pool.FindFileByName('Does not exist')
86 file_desc1 = self.pool.FindFileContainingSymbol(
94 file_desc2 = self.pool.FindFileContainingSymbol(
103 file_desc3 = self.pool.FindFileContainingSymbol(
110 file_desc4 = self.pool.FindFileContainingSymbol(
116 file_desc5 = self.pool.FindFileContainingSymbol(
121 # Tests the generated pool.
130 file_desc6 = self.pool.FindFileContainingSymbol(
[all …]
/aosp_15_r20/external/protobuf/python/google/protobuf/internal/
H A Ddescriptor_pool_test.py68 file_desc1 = self.pool.FindFileByName(name1)
75 file_desc2 = self.pool.FindFileByName(name2)
83 self.pool.FindFileByName('Does not exist')
86 file_desc1 = self.pool.FindFileContainingSymbol(
94 file_desc2 = self.pool.FindFileContainingSymbol(
103 file_desc3 = self.pool.FindFileContainingSymbol(
110 file_desc4 = self.pool.FindFileContainingSymbol(
116 file_desc5 = self.pool.FindFileContainingSymbol(
121 # Tests the generated pool.
130 file_desc6 = self.pool.FindFileContainingSymbol(
[all …]
/aosp_15_r20/external/mesa3d/src/freedreno/vulkan/
H A Dtu_query_pool.cc96 * in a given slot of a query pool. */
97 #define query_iova(type, pool, query, field) \ argument
98 pool->bo->iova + pool->query_stride * (query) + offsetof(type, field)
99 #define query_addr(type, pool, query, field) \ argument
100 (uint64_t *) ((char *) pool->bo->map + pool->query_stride * (query) + \
103 #define occlusion_query_iova(pool, query, field) \ argument
104 query_iova(struct occlusion_query_slot, pool, query, field)
105 #define occlusion_query_addr(pool, query, field) \ argument
106 query_addr(struct occlusion_query_slot, pool, query, field)
108 #define pipeline_stat_query_iova(pool, query, field, idx) \ argument
[all …]
/aosp_15_r20/external/autotest/site_utils/
H A 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 …]
/aosp_15_r20/external/tensorflow/tensorflow/core/common_runtime/gpu/
H A 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 …]
/aosp_15_r20/external/mesa3d/src/asahi/vulkan/
H A Dhk_query_pool.c40 hk_pool_oq_index_ptr(const struct hk_query_pool *pool) in hk_pool_oq_index_ptr() argument
42 return (uint16_t *)(pool->bo->map + pool->query_start); in hk_pool_oq_index_ptr()
46 hk_reports_per_query(struct hk_query_pool *pool) in hk_reports_per_query() argument
48 switch (pool->vk.query_type) { in hk_reports_per_query()
54 return util_bitcount(pool->vk.pipeline_statistics); in hk_reports_per_query()
69 struct hk_query_pool *pool; in hk_CreateQueryPool() local
74 pool = in hk_CreateQueryPool()
75 vk_query_pool_create(&dev->vk, pCreateInfo, pAllocator, sizeof(*pool)); in hk_CreateQueryPool()
76 if (!pool) in hk_CreateQueryPool()
80 pool->query_start = align(pool->vk.query_count * sizeof(uint32_t), in hk_CreateQueryPool()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/regex-automata-0.4.6/src/util/
H A Dpool.rs1 // This module provides a relatively simple thread-safe pool of reusable
4 // costly, in the case where a pool is accessed by the first thread that tried
9 // easy to reproduce because some rely on older implementations of Pool that
11 // enterprising individual should feel encouraged to re-litigate the way Pool
20 // using the 'thread_local' crate to implement the pool below.
22 // (2) represents a naive pool implemented completely via Mutex<Vec<T>>. There
26 // fast because a Box<T> is much smaller than the T we use with a Pool in this
44 // have used a regex, where as the pool below scales to the number of threads
46 // since we own the pool data structure below, we can add contraction if a
52 // threads. In contrast, the pool below scales with the total number of threads
[all …]
/aosp_15_r20/external/mesa3d/src/panfrost/vulkan/
H A 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 …]
/aosp_15_r20/external/rust/android-crates-io/crates/threadpool/src/
Dlib.rs11 //! A thread pool used to execute functions in parallel.
13 //! Spawns a specified number of worker threads and replenishes the pool if any worker threads
28 //! let pool = ThreadPool::new(n_workers);
33 //! pool.execute(move|| {
34 //! tx.send(1).expect("channel will be there waiting for the pool");
43 //! Keep in mind, if a barrier synchronizes more jobs than you have workers in the pool,
56 //! let pool = ThreadPool::new(n_workers);
67 //! pool.execute(move|| {
152 /// let pool = threadpool::Builder::new()
193 /// No more than eight threads will be alive simultaneously for this pool:
[all …]

12345678910>>...481