/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/ |
H A D | memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) argument 40 memset(pool, 0, sizeof(struct memory_pool)); 44 void memory_pool_destroy(struct memory_pool * pool) argument 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) argument 55 unsigned int blocksize = pool->total_allocated; 62 newblock->next = pool->blocks; 63 pool 71 memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) argument [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) argument 40 memset(pool, 0, sizeof(struct memory_pool)); 44 void memory_pool_destroy(struct memory_pool * pool) argument 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) argument 55 unsigned int blocksize = pool->total_allocated; 62 newblock->next = pool->blocks; 63 pool 71 memory_pool_malloc(struct memory_pool * pool, unsigned int bytes) argument [all...] |
/external/chromium_org/native_client_sdk/src/libraries/xray/ |
H A D | stringpool.c | 6 /* XRay string pool */ 8 /* String pool holds a large pile of strings. */ 42 static int XRayStringPoolCurrentNodeSpaceAvail(struct XRayStringPool* pool) { argument 43 int i = pool->index; 48 /* Append a string to the string pool. */ 49 char* XRayStringPoolAppend(struct XRayStringPool* pool, const char* src) { argument 53 int a = XRayStringPoolCurrentNodeSpaceAvail(pool); 55 /* Don't accept strings larger than the pool node. */ 60 pool->current->next = XRayStringPoolAllocNode(); 61 pool 74 struct XRayStringPool* pool; local 83 XRayStringPoolFree(struct XRayStringPool* pool) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_slab.c | 46 util_slab_get_block(struct util_slab_mempool *pool, argument 51 (pool->block_size * index)); 54 static void util_slab_add_new_page(struct util_slab_mempool *pool) argument 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 81 util_slab_alloc_st(struct util_slab_mempool *pool) argument 95 util_slab_free_st(struct util_slab_mempool *pool, void *ptr) argument 106 util_slab_alloc_mt(struct util_slab_mempool *pool) argument 116 util_slab_free_mt(struct util_slab_mempool *pool, void *ptr) argument 123 util_slab_set_thread_safety(struct util_slab_mempool *pool, enum util_slab_threading threading) argument 137 util_slab_create(struct util_slab_mempool *pool, unsigned item_size, unsigned num_blocks, enum util_slab_threading threading) argument 159 util_slab_destroy(struct util_slab_mempool *pool) argument [all...] |
H A D | 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) [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_slab.c | 46 util_slab_get_block(struct util_slab_mempool *pool, argument 51 (pool->block_size * index)); 54 static void util_slab_add_new_page(struct util_slab_mempool *pool) argument 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 81 util_slab_alloc_st(struct util_slab_mempool *pool) argument 95 util_slab_free_st(struct util_slab_mempool *pool, void *ptr) argument 106 util_slab_alloc_mt(struct util_slab_mempool *pool) argument 116 util_slab_free_mt(struct util_slab_mempool *pool, void *ptr) argument 123 util_slab_set_thread_safety(struct util_slab_mempool *pool, enum util_slab_threading threading) argument 137 util_slab_create(struct util_slab_mempool *pool, unsigned item_size, unsigned num_blocks, enum util_slab_threading threading) argument 159 util_slab_destroy(struct util_slab_mempool *pool) argument [all...] |
H A D | 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) [all...] |
/external/chromium_org/third_party/skia/tests/ |
H A D | DiscardableMemoryPoolTest.cpp | 12 SkAutoTUnref<SkDiscardableMemoryPool> pool( 14 pool->setRAMBudget(3); 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 27 pool->setRAMBudget(400); 29 REPORTER_ASSERT(reporter, 200 == pool [all...] |
H A D | ObjectPoolTest.cpp | 22 const ObjectPoolType& pool, 25 if (available != pool.available()) { 27 stage, pool.available(), available); 30 if (blocks != pool.blocks()) { 32 stage, pool.blocks(), blocks); 40 ObjectPoolType pool; local 42 verifyPool(reporter, pool, "empty", 0, 0); 44 used.push(pool.acquire()); 47 if (!verifyPool(reporter, pool, "acquire", available, blocks)) { 51 int available = pool 21 verifyPool(skiatest::Reporter* reporter, const ObjectPoolType& pool, const char* stage, int available, int blocks) argument [all...] |
/external/skia/tests/ |
H A D | DiscardableMemoryPoolTest.cpp | 12 SkAutoTUnref<SkDiscardableMemoryPool> pool( 14 pool->setRAMBudget(3); 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 27 pool->setRAMBudget(400); 29 REPORTER_ASSERT(reporter, 200 == pool [all...] |
H A D | ObjectPoolTest.cpp | 22 const ObjectPoolType& pool, 25 if (available != pool.available()) { 27 stage, pool.available(), available); 30 if (blocks != pool.blocks()) { 32 stage, pool.blocks(), blocks); 40 ObjectPoolType pool; local 42 verifyPool(reporter, pool, "empty", 0, 0); 44 used.push(pool.acquire()); 47 if (!verifyPool(reporter, pool, "acquire", available, blocks)) { 51 int available = pool 21 verifyPool(skiatest::Reporter* reporter, const ObjectPoolType& pool, const char* stage, int available, int blocks) argument [all...] |
/external/llvm/unittests/Support/ |
H A D | 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");
|
/external/javassist/src/main/javassist/ |
H A D | Translator.java | 35 * @param pool the <code>ClassPool</code> that this translator 42 void start(ClassPool pool) argument 50 * pool.get(classname).toBytecode()</pre></ul> 60 * @param pool the <code>ClassPool</code> that this translator 68 void onLoad(ClassPool pool, String classname) argument
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/ |
H A D | 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 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/mesa3d/src/gallium/auxiliary/pipebuffer/ |
H A D | 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 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/ |
H A D | pool.s | 6 .global pool 7 .type pool,%function 8 pool: label 11 .pool 13 @ CHECK-LABEL: pool
|
/external/fio/ |
H A D | smalloc.c | 27 #define INITIAL_SIZE 8192*1024 /* new pool size */ 36 struct pool { struct 37 struct fio_mutex *lock; /* protects this pool */ 53 static struct pool mp[MAX_POOLS]; 58 static inline void pool_lock(struct pool *pool) argument 60 fio_mutex_down(pool->lock); 63 static inline void pool_unlock(struct pool *pool) argument 65 fio_mutex_up(pool 88 ptr_valid(struct pool *pool, void *ptr) argument 100 blocks_iter(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks, int (*func)(unsigned int *map, unsigned int mask)) argument 155 blocks_free(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument 161 set_blocks(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument 167 clear_blocks(struct pool *pool, unsigned int pool_idx, unsigned int idx, size_t nr_blocks) argument 180 add_pool(struct pool *pool, unsigned int alloc_size) argument 232 cleanup_pool(struct pool *pool) argument 301 sfree_pool(struct pool *pool, void *ptr) argument 331 struct pool *pool = NULL; local 352 __smalloc_pool(struct pool *pool, size_t size) argument 407 smalloc_pool(struct pool *pool, size_t size) argument [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | ConnectionPoolTest.java | 54 private ConnectionPool pool; field in class:ConnectionPoolTest 90 pool = new ConnectionPool(poolSize, KEEP_ALIVE_DURATION_MS); 91 httpA = new Connection(pool, httpRoute); 93 httpB = new Connection(pool, httpRoute); 95 httpC = new Connection(pool, httpRoute); 97 httpD = new Connection(pool, httpRoute); 99 httpE = new Connection(pool, httpRoute); 101 spdyA = new Connection(pool, spdyRoute); 131 Connection connection = pool.get(httpAddress); 135 pool, ne 449 assertPooled(ConnectionPool pool, Connection... connections) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r600/ |
H A D | 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, argument 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 108 compute_memory_pool_delete(struct compute_memory_pool* pool) argument 123 compute_memory_prealloc_chunk( struct compute_memory_pool* pool, int64_t size_in_dw) argument 157 compute_memory_postalloc_chunk( struct compute_memory_pool* pool, int64_t start_in_dw) argument 187 compute_memory_grow_pool(struct compute_memory_pool* pool, struct pipe_context * pipe, int new_size_in_dw) argument 228 compute_memory_shadow(struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host) argument 247 compute_memory_finalize_pending(struct compute_memory_pool* pool, struct pipe_context * pipe) argument 351 compute_memory_free(struct compute_memory_pool* pool, int64_t id) argument 387 compute_memory_alloc( struct compute_memory_pool* pool, int64_t size_in_dw) argument 421 compute_memory_transfer( struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host, struct compute_memory_item* chunk, void* data, int offset_in_chunk, int size) argument 470 compute_memory_transfer_direct( struct compute_memory_pool* pool, int chunk_to_data, struct compute_memory_item* chunk, struct r600_resource* data, int offset_in_chunk, int offset_in_data, int size) argument [all...] |
H A D | 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_ [all...] |
/external/mesa3d/src/gallium/drivers/r600/ |
H A D | 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, argument 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 108 compute_memory_pool_delete(struct compute_memory_pool* pool) argument 123 compute_memory_prealloc_chunk( struct compute_memory_pool* pool, int64_t size_in_dw) argument 157 compute_memory_postalloc_chunk( struct compute_memory_pool* pool, int64_t start_in_dw) argument 187 compute_memory_grow_pool(struct compute_memory_pool* pool, struct pipe_context * pipe, int new_size_in_dw) argument 228 compute_memory_shadow(struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host) argument 247 compute_memory_finalize_pending(struct compute_memory_pool* pool, struct pipe_context * pipe) argument 351 compute_memory_free(struct compute_memory_pool* pool, int64_t id) argument 387 compute_memory_alloc( struct compute_memory_pool* pool, int64_t size_in_dw) argument 421 compute_memory_transfer( struct compute_memory_pool* pool, struct pipe_context * pipe, int device_to_host, struct compute_memory_item* chunk, void* data, int offset_in_chunk, int size) argument 470 compute_memory_transfer_direct( struct compute_memory_pool* pool, int chunk_to_data, struct compute_memory_item* chunk, struct r600_resource* data, int offset_in_chunk, int offset_in_data, int size) argument [all...] |
/external/libunwind/src/mi/ |
H A D | mempool.c | 86 free_object (struct mempool *pool, void *object) argument 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) argument 101 free_object (pool, obj); 105 expand (struct mempool *pool) argument 110 size = pool->chunk_size; 114 size = UNW_ALIGN(pool->obj_size, pg_size); 119 size = pool 127 mempool_init(struct mempool *pool, size_t obj_size, size_t reserve) argument 154 mempool_alloc(struct mempool *pool) argument 175 mempool_free(struct mempool *pool, void *object) argument [all...] |
/external/deqp/framework/delibs/depool/ |
H A D | deMemPool.c | 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 i 171 deMemPool* pool; local 243 deMemPool* pool = createPoolInternal(DE_NULL); local 283 deMemPool* pool; local 298 deMemPool_destroy(deMemPool* pool) argument 378 deMemPool_getNumChildren(const deMemPool* pool) argument 390 deMemPool_getNumAllocatedBytes(const deMemPool* pool, deBool recurse) argument 408 deMemPool_getCapacity(const deMemPool* pool, deBool recurse) argument 426 deMemPool_allocInternal(deMemPool* pool, int numBytes, deUint32 alignBytes) argument 499 deMemPool_alloc(deMemPool* pool, int numBytes) argument 517 deMemPool_alignedAlloc(deMemPool* pool, int numBytes, deUint32 alignBytes) argument 536 deMemPool_memDup(deMemPool* pool, const void* ptr, int numBytes) argument 550 deMemPool_strDup(deMemPool* pool, const char* str) argument 566 deMemPool_strnDup(deMemPool* pool, const char* str, int maxLength) argument 580 deMemPool_getMaxNumAllocatedBytes(const deMemPool* pool) argument 586 deMemPool_getMaxCapacity(const deMemPool* pool) argument [all...] |
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
H A D | plarenas.h | 44 ** Allocate an arena pool as specified by the parameters. 59 ** Destroy an arena pool previously allocated by PL_AllocArenaPool(). 65 PR_EXTERN(PRStatus) PL_DestroyArenaPool(PLArenaPool *pool, PRBool checkEmpty); 70 ** Initialize an arena pool with the given name for debugging and metering, 74 PLArenaPool *pool, const char *name, PRUint32 size, PRUint32 align); 82 ** Free the arenas in pool. The user may continue to allocate from pool 84 ** again unless PL_FinishArenaPool(pool) has been called. 86 PR_EXTERN(void) PL_FreeArenaPool(PLArenaPool *pool); variable 89 ** Free the arenas in pool an 91 PR_EXTERN(void) PL_FinishArenaPool(PLArenaPool *pool); variable 96 PR_EXTERN(void) PL_CompactArenaPool(PLArenaPool *pool); variable [all...] |
/external/deqp/framework/platform/ios/ |
H A D | tcuIOSMain.m | 28 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 30 [pool release];
|