/external/mesa3d/src/gallium/drivers/r300/compiler/ |
memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) 40 memset(pool, 0, sizeof(struct memory_pool)); 44 void memory_pool_destroy(struct memory_pool * pool) 46 while(pool->blocks) { 47 struct memory_block * block = pool->blocks; 48 pool->blocks = block->next; 53 static void refill_pool(struct memory_pool * pool) 55 unsigned int blocksize = pool->total_allocated; 62 newblock->next = pool->blocks; 63 pool->blocks = newblock [all...] |
/external/libmicrohttpd/src/microhttpd/ |
memorypool.c | 22 * @brief memory pool 47 * Handle for a memory pool. Pools are not reentrant and must not be 54 * Pointer to the pool's memory 59 * Size of the pool. 74 * #MHD_NO if pool was malloc'ed, #MHD_YES if mmapped (VirtualAlloc'ed for W32). 81 * Create a memory pool. 83 * @param max maximum size of the pool 89 struct MemoryPool *pool; local 91 pool = malloc (sizeof (struct MemoryPool)); 92 if (NULL == pool) [all...] |
memorypool.h | 22 * @brief memory pool; mostly used for efficient (de)allocation 34 * Opaque handle for a memory pool. 42 * Create a memory pool. 44 * @param max maximum size of the pool 52 * Destroy a memory pool. 54 * @param pool memory pool to destroy 57 MHD_pool_destroy (struct MemoryPool *pool); 61 * Allocate size bytes from the pool. 63 * @param pool memory pool to use for the operatio [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_slab.c | 46 util_slab_get_block(struct util_slab_mempool *pool, 51 (pool->block_size * index)); 54 static void util_slab_add_new_page(struct util_slab_mempool *pool) 60 page = MALLOC(pool->page_size); 61 insert_at_tail(&pool->list, page); 64 for (i = 0; i < pool->num_blocks-1; i++) { 65 block = util_slab_get_block(pool, page, i); 66 block->next_free = util_slab_get_block(pool, page, i+1); 70 block = util_slab_get_block(pool, page, pool->num_blocks-1) [all...] |
u_slab.h | 57 void *(*alloc)(struct util_slab_mempool *pool); 58 void (*free)(struct util_slab_mempool *pool, void *ptr); 74 void util_slab_create(struct util_slab_mempool *pool, 79 void util_slab_destroy(struct util_slab_mempool *pool); 81 void util_slab_set_thread_safety(struct util_slab_mempool *pool, 84 #define util_slab_alloc(pool) (pool)->alloc(pool) 85 #define util_slab_free(pool, ptr) (pool)->free(pool, ptr [all...] |
/external/volley/src/test/java/com/android/volley/toolbox/ |
PoolingByteArrayOutputStreamTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32768); local 29 writeOneBuffer(pool); 30 writeOneBuffer(pool); 31 writeOneBuffer(pool); 35 ByteArrayPool pool = new ByteArrayPool(32768); local 36 writeBytesIndividually(pool); 37 writeBytesIndividually(pool); 38 writeBytesIndividually(pool); 42 ByteArrayPool pool = new ByteArrayPool(0); local 43 writeOneBuffer(pool); 49 ByteArrayPool pool = new ByteArrayPool(0); local [all...] |
ByteArrayPoolTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32); local 30 byte[] buf1 = pool.getBuf(16); 31 byte[] buf2 = pool.getBuf(16); 33 pool.returnBuf(buf1); 34 pool.returnBuf(buf2); 36 byte[] buf3 = pool.getBuf(16); 37 byte[] buf4 = pool.getBuf(16); 44 ByteArrayPool pool = new ByteArrayPool(32); local 46 byte[] buf1 = pool.getBuf(16); 47 byte[] buf2 = pool.getBuf(16) 65 ByteArrayPool pool = new ByteArrayPool(32); local [all...] |
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/glslang/glslang/MachineIndependent/preprocessor/ |
PpMemory.cpp | 109 MemoryPool *pool = (MemoryPool*)malloc(chunksize); 110 if (! pool) 113 pool->next = 0; 114 pool->chunksize = chunksize; 115 pool->alignmask = (uintptr_t)(align) - 1; 116 pool->free = ((uintptr_t)(pool + 1) + pool->alignmask) & ~pool->alignmask; 117 pool->end = (uintptr_t)pool + chunksize [all...] |
/external/skia/tests/ |
DiscardableMemoryPoolTest.cpp | 12 sk_sp<SkDiscardableMemoryPool> pool( 14 pool->setRAMBudget(3); 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 17 std::unique_ptr<SkDiscardableMemory> dm1(pool->create(100)); 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 25 std::unique_ptr<SkDiscardableMemory> dm2(pool->create(200)); 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 27 pool->setRAMBudget(400); 29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()) [all...] |
/external/llvm/unittests/Support/ |
StringPool.cpp | 18 StringPool pool; local 19 const PooledStringPtr a = pool.intern("a"); 20 const PooledStringPtr b = pool.intern("b"); 25 StringPool pool; local 26 const PooledStringPtr a = pool.intern("a"); 27 const PooledStringPtr b = pool.intern("b");
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
RecycledViewPoolTest.java | 47 RecyclerView.RecycledViewPool pool = new RecyclerView.RecycledViewPool(); local 48 assertEquals(0, pool.getRecycledViewCount(0)); 49 assertEquals(0, pool.size()); 60 RecyclerView.RecycledViewPool pool = new RecyclerView.RecycledViewPool(); local 61 pool.putRecycledView(makeHolder(0)); 62 pool.putRecycledView(makeHolder(1)); 63 pool.putRecycledView(makeHolder(2)); 64 pool.putRecycledView(makeHolder(2)); 66 assertEquals(1, pool.getRecycledViewCount(0)); 67 assertEquals(1, pool.getRecycledViewCount(1)) 75 RecyclerView.RecycledViewPool pool = new RecyclerView.RecycledViewPool(); local [all...] |
/external/javassist/src/main/javassist/ |
Translator.java | 35 * @param pool the <code>ClassPool</code> that this translator 42 void start(ClassPool pool) 50 * pool.get(classname).toBytecode()</pre></ul> 60 * @param pool the <code>ClassPool</code> that this translator 68 void onLoad(ClassPool pool, String classname)
|
/external/protobuf/php/ext/google/protobuf/ |
test.php | 6 $pool = get_generated_pool(); variable 7 $pool->addMessage("TestMessage")
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_pool.c | 31 * Batch buffer pool management. 109 struct pool_pb_manager *pool = pool_buf->mgr; local 113 pipe_mutex_lock(pool->mutex); 114 LIST_ADD(&pool_buf->head, &pool->free); 115 pool->numFree++; 116 pipe_mutex_unlock(pool->mutex); 124 struct pool_pb_manager *pool = pool_buf->mgr; local 129 pipe_mutex_lock(pool->mutex); 130 map = (unsigned char *) pool->map + pool_buf->start; 131 pipe_mutex_unlock(pool->mutex) 149 struct pool_pb_manager *pool = pool_buf->mgr; local 159 struct pool_pb_manager *pool = pool_buf->mgr; local 170 struct pool_pb_manager *pool = pool_buf->mgr; local 192 struct pool_pb_manager *pool = pool_pb_manager(mgr); local 240 struct pool_pb_manager *pool = pool_pb_manager(mgr); local 260 struct pool_pb_manager *pool; local [all...] |
/external/llvm/test/MC/ARM/ |
pool.s | 6 .global pool 7 .type pool,%function 8 pool: label 11 .pool 13 @ CHECK-LABEL: pool
|
/external/fio/ |
smalloc.c | 28 #define INITIAL_SIZE 16*1024*1024 /* new pool size */ 37 struct pool { struct 38 struct fio_mutex *lock; /* protects this pool */ 54 static struct pool mp[MAX_POOLS]; 59 static inline void pool_lock(struct pool *pool) 61 fio_mutex_down(pool->lock); 64 static inline void pool_unlock(struct pool *pool) 66 fio_mutex_up(pool->lock) 349 struct pool *pool = NULL; local [all...] |
/external/boringssl/src/crypto/pool/ |
pool.c | 15 #include <openssl/pool.h> 41 CRYPTO_BUFFER_POOL *pool = OPENSSL_malloc(sizeof(CRYPTO_BUFFER_POOL)); local 42 if (pool == NULL) { 46 OPENSSL_memset(pool, 0, sizeof(CRYPTO_BUFFER_POOL)); 47 pool->bufs = lh_CRYPTO_BUFFER_new(CRYPTO_BUFFER_hash, CRYPTO_BUFFER_cmp); 48 if (pool->bufs == NULL) { 49 OPENSSL_free(pool); 53 CRYPTO_MUTEX_init(&pool->lock); 55 return pool; 58 void CRYPTO_BUFFER_POOL_free(CRYPTO_BUFFER_POOL *pool) { 147 CRYPTO_BUFFER_POOL *const pool = buf->pool; local [all...] |
/hardware/intel/common/libwsbm/src/ |
wsbm_mallocpool.c | 56 pool_create(struct _WsbmBufferPool *pool, 64 wsbmBufStorageInit(&mBuf->buf, pool); 156 pool_takedown(struct _WsbmBufferPool *pool) 158 free(pool); 164 struct _WsbmBufferPool *pool; local 166 pool = (struct _WsbmBufferPool *)calloc(1, sizeof(*pool)); 167 if (!pool) 170 pool->fd = -1; 171 pool->map = &pool_map [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
ConnectionPoolTest.java | 48 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 49 pool.setCleanupRunnableForTest(emptyRunnable); 51 RealConnection c1 = newConnection(pool, routeA1, 50L); 53 // Running at time 50, the pool returns that nothing can be evicted until time 150. 54 assertEquals(100L, pool.cleanup(50L)); 55 assertEquals(1, pool.getConnectionCount()); 58 // Running at time 60, the pool returns that nothing can be evicted until time 150. 59 assertEquals(90L, pool.cleanup(60L)); 60 assertEquals(1, pool.getConnectionCount()); 63 // Running at time 149, the pool returns that nothing can be evicted until time 150 80 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 104 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); local 136 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); local 160 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); local [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
compute_memory_pool.c | 74 * Creates a new pool 79 struct compute_memory_pool* pool = (struct compute_memory_pool*) local 84 pool->screen = rscreen; 85 return pool; 88 static void compute_memory_pool_init(struct compute_memory_pool * pool, 95 /* XXX: pool->shadow is used when the buffer needs to be resized, but 97 * pool->shadow = (uint32_t*)CALLOC(4, pool->size_in_dw); 99 pool->next_id = 1; 100 pool->size_in_dw = initial_size_in_dw [all...] |
compute_memory_pool.h | 38 int64_t start_in_dw; ///Start pointer in dwords relative in the pool bo 41 struct compute_memory_pool* pool; member in struct:compute_memory_item 50 int64_t size_in_dw; ///Size of the pool in dwords 52 struct r600_resource *bo; ///The pool buffer object resource 56 uint32_t *shadow; ///host copy of the pool, used for defragmentation 60 struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen); ///Creates a new pool 61 void compute_memory_pool_delete(struct compute_memory_pool* pool); ///Frees all stuff in the pool and the pool struct itself too 63 int64_t compute_memory_prealloc_chunk(struct compute_memory_pool* pool, int64_t size_in_dw); ///searches for an empty space in the pool, return with the pointer to the a (…) [all...] |
/external/libunwind/src/mi/ |
mempool.c | 86 free_object (struct mempool *pool, void *object) 90 obj->next = pool->free_list; 91 pool->free_list = obj; 92 ++pool->num_free; 96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) 101 free_object (pool, obj); 105 expand (struct mempool *pool) 110 size = pool->chunk_size; 114 size = UNW_ALIGN(pool->obj_size, pg_size); 119 size = pool->obj_size [all...] |
/external/deqp/framework/delibs/depool/ |
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 171 deMemPool* pool; local 243 deMemPool* pool = createPoolInternal(DE_NULL); local 283 deMemPool* pool; local [all...] |
/hardware/intel/common/libmix/mix_video/src/ |
mixbuffer_private.h | 20 MixBufferPool *pool; member in struct:_MixBufferPrivate 36 mix_buffer_set_pool (MixBuffer *obj, MixBufferPool *pool);
|
/external/deqp/framework/platform/ios/ |
tcuIOSMain.m | 28 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 30 [pool release];
|