/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...] |
H A D | memory_pool.h | 29 * Provides a pool of memory that can quickly be allocated from, at the 31 * Instead, the entire pool can be freed at once. 45 void memory_pool_init(struct memory_pool * pool); 46 void memory_pool_destroy(struct memory_pool * pool); 47 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes); 58 * memory_pool_array_reserve(pool, type, Array, Size, Reserved, k); 66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \ 73 newarray = memory_pool_malloc((pool), newreserve * sizeof(type)); \
|
/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...] |
H A D | memory_pool.h | 29 * Provides a pool of memory that can quickly be allocated from, at the 31 * Instead, the entire pool can be freed at once. 45 void memory_pool_init(struct memory_pool * pool); 46 void memory_pool_destroy(struct memory_pool * pool); 47 void * memory_pool_malloc(struct memory_pool * pool, unsigned int bytes); 58 * memory_pool_array_reserve(pool, type, Array, Size, Reserved, k); 66 #define memory_pool_array_reserve(pool, type, array, size, reserved, num) do { \ 73 newarray = memory_pool_malloc((pool), newreserve * sizeof(type)); \
|
/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/skia/tests/ |
H A D | DiscardableMemoryPool.cpp | 13 SkAutoTUnref<SkDiscardableMemoryPool> pool( 15 pool->setRAMBudget(3); 16 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 18 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); 20 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); 22 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); 26 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); 27 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); 28 pool->setRAMBudget(400); 30 REPORTER_ASSERT(reporter, 200 == pool [all...] |
/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/okhttp/src/test/java/com/squareup/okhttp/ |
H A D | ConnectionPoolTest.java | 118 ConnectionPool pool = new ConnectionPool(1, KEEP_ALIVE_DURATION_MS); 119 Connection connection = pool.get(httpAddress); 124 assertEquals(0, pool.getConnectionCount()); 125 pool.recycle(connection); 126 assertEquals(1, pool.getConnectionCount()); 127 assertEquals(1, pool.getHttpConnectionCount()); 128 assertEquals(0, pool.getSpdyConnectionCount()); 130 Connection recycledConnection = pool.get(httpAddress); 134 recycledConnection = pool.get(httpAddress); 139 ConnectionPool pool 405 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...] |
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/chromium_org/third_party/skia/src/utils/ |
H A D | SkThreadPool.cpp | 63 SkThreadPool* pool = static_cast<SkThreadPool*>(arg); local 67 pool->fReady.lock(); 68 while(pool->fQueue.isEmpty()) { 71 if (kWaiting_State == pool->fState && pool->fBusyThreads == 0) { 72 pool->fState = kHalting_State; 73 pool->fReady.broadcast(); 76 if (kHalting_State == pool->fState) { 77 pool->fReady.unlock(); 81 pool [all...] |
/external/skia/src/utils/ |
H A D | SkThreadPool.cpp | 63 SkThreadPool* pool = static_cast<SkThreadPool*>(arg); local 67 pool->fReady.lock(); 68 while(pool->fQueue.isEmpty()) { 71 if (kWaiting_State == pool->fState && pool->fBusyThreads == 0) { 72 pool->fState = kHalting_State; 73 pool->fReady.broadcast(); 76 if (kHalting_State == pool->fState) { 77 pool->fReady.unlock(); 81 pool [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...] |
H A D | plarena.h | 68 PRUint32 narenas; /* number of arenas in pool */ 84 PLArena first; /* first arena in pool list */ 99 #define PL_ARENA_ALIGN(pool, n) (((PRUword)(n) + PL_ARENA_CONST_ALIGN_MASK) \ 102 #define PL_INIT_ARENA_POOL(pool, name, size) \ 103 PL_InitArenaPool(pool, name, size, PL_ARENA_CONST_ALIGN_MASK + 1) 105 #define PL_ARENA_ALIGN(pool, n) (((PRUword)(n) + (pool)->mask) & ~(pool)->mask) 108 #define PL_ARENA_ALLOCATE(p, pool, nb) \ 110 PLArena *_a = (pool) [all...] |
/external/chromium/net/http/ |
H A D | http_network_session_peer.cc | 23 TransportClientSocketPool* pool) { 24 session_->socket_pool_manager_.transport_socket_pool_.reset(pool); 29 SOCKSClientSocketPool* pool) { 36 socket_pool_manager->socks_socket_pools_[socks_proxy] = pool; 41 HttpProxyClientSocketPool* pool) { 48 socket_pool_manager->http_proxy_socket_pools_[http_proxy] = pool; 51 void HttpNetworkSessionPeer::SetSSLSocketPool(SSLClientSocketPool* pool) { argument 52 session_->socket_pool_manager_.ssl_socket_pool_.reset(pool); 57 SSLClientSocketPool* pool) { 64 socket_pool_manager->ssl_socket_pools_for_proxies_[proxy_host] = pool; 22 SetTransportSocketPool( TransportClientSocketPool* pool) argument 27 SetSocketPoolForSOCKSProxy( const HostPortPair& socks_proxy, SOCKSClientSocketPool* pool) argument 39 SetSocketPoolForHTTPProxy( const HostPortPair& http_proxy, HttpProxyClientSocketPool* pool) argument 55 SetSocketPoolForSSLWithProxy( const HostPortPair& proxy_host, SSLClientSocketPool* pool) argument [all...] |
/external/chromium_org/net/socket/ |
H A D | mock_client_socket_pool_manager.cc | 18 TransportClientSocketPool* pool) { 19 transport_socket_pool_.reset(pool); 23 SSLClientSocketPool* pool) { 24 ssl_socket_pool_.reset(pool); 29 SOCKSClientSocketPool* pool) { 30 socks_socket_pools_[socks_proxy] = pool; 35 HttpProxyClientSocketPool* pool) { 36 http_proxy_socket_pools_[http_proxy] = pool; 41 SSLClientSocketPool* pool) { 42 ssl_socket_pools_for_proxies_[proxy_server] = pool; 17 SetTransportSocketPool( TransportClientSocketPool* pool) argument 22 SetSSLSocketPool( SSLClientSocketPool* pool) argument 27 SetSocketPoolForSOCKSProxy( const HostPortPair& socks_proxy, SOCKSClientSocketPool* pool) argument 33 SetSocketPoolForHTTPProxy( const HostPortPair& http_proxy, HttpProxyClientSocketPool* pool) argument 39 SetSocketPoolForSSLWithProxy( const HostPortPair& proxy_server, SSLClientSocketPool* pool) argument [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | InternersTest.java | 37 Interner<String> pool = Interners.newStrongInterner(); 38 assertSame(canonical, pool.intern(canonical)); 39 assertSame(canonical, pool.intern(not)); 43 Interner<String> pool = Interners.newStrongInterner(); 45 pool.intern(null); 54 Interner<String> pool = Interners.newWeakInterner(); 55 assertSame(canonical, pool.intern(canonical)); 56 assertSame(canonical, pool.intern(not)); 60 Interner<String> pool = Interners.newWeakInterner(); 62 pool [all...] |