Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 92) sorted by relevance

1234

/external/dbus/dbus/
Ddbus-mempool.c139 DBusMemPool *pool; in _dbus_mem_pool_new() local
141 pool = dbus_new0 (DBusMemPool, 1); in _dbus_mem_pool_new()
142 if (pool == NULL) in _dbus_mem_pool_new()
158 pool->element_size = _DBUS_ALIGN_VALUE (element_size, sizeof (void *)); in _dbus_mem_pool_new()
160 pool->zero_elements = zero_elements != FALSE; in _dbus_mem_pool_new()
162 pool->allocated_elements = 0; in _dbus_mem_pool_new()
169 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new()
171 _dbus_assert ((pool->block_size % in _dbus_mem_pool_new()
172 pool->element_size) == 0); in _dbus_mem_pool_new()
174 return pool; in _dbus_mem_pool_new()
[all …]
Ddbus-mempool.h37 void _dbus_mem_pool_free (DBusMemPool *pool);
38 void* _dbus_mem_pool_alloc (DBusMemPool *pool);
39 dbus_bool_t _dbus_mem_pool_dealloc (DBusMemPool *pool,
/external/webkit/WebCore/platform/
DArena.cpp93 void InitArenaPool(ArenaPool* pool, const char*, unsigned size, unsigned align) in InitArenaPool() argument
97 pool->mask = BITMASK(CeilingLog2(align)); in InitArenaPool()
98 pool->first.next = NULL; in InitArenaPool()
99 pool->first.base = pool->first.avail = pool->first.limit = in InitArenaPool()
100 (uword)ARENA_ALIGN(pool, &pool->first + 1); in InitArenaPool()
101 pool->current = &pool->first; in InitArenaPool()
102 pool->arenasize = size; in InitArenaPool()
125 void* ArenaAllocate(ArenaPool *pool, unsigned int nb) in ArenaAllocate() argument
130 ASSERT((nb & pool->mask) == 0); in ArenaAllocate()
132 nb = (uword)ARENA_ALIGN(pool, nb); /* force alignment */ in ArenaAllocate()
[all …]
DArena.h63 void InitArenaPool(ArenaPool *pool, const char *name,
65 void FinishArenaPool(ArenaPool *pool);
66 void FreeArenaPool(ArenaPool *pool);
67 void* ArenaAllocate(ArenaPool *pool, unsigned int nb);
69 #define ARENA_ALIGN(pool, n) (((uword)(n) + ARENA_ALIGN_MASK) & ~ARENA_ALIGN_MASK) argument
70 #define INIT_ARENA_POOL(pool, name, size) \ argument
71 InitArenaPool(pool, name, size, ARENA_ALIGN_MASK + 1)
73 #define ARENA_ALLOCATE(p, pool, nb) \ argument
74 Arena *_a = (pool)->current; \
75 unsigned int _nb = ARENA_ALIGN(pool, nb); \
[all …]
/external/libxml2/
Ddict.c159 xmlDictStringsPtr pool; in xmlDictAddString() local
166 pool = dict->strings; in xmlDictAddString()
167 while (pool != NULL) { in xmlDictAddString()
168 if (pool->end - pool->free > namelen) in xmlDictAddString()
170 if (pool->size > size) size = pool->size; in xmlDictAddString()
171 pool = pool->next; in xmlDictAddString()
176 if (pool == NULL) { in xmlDictAddString()
181 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString()
182 if (pool == NULL) in xmlDictAddString()
184 pool->size = size; in xmlDictAddString()
[all …]
/external/expat/lib/
Dxmlparse.c261 STRING_POOL pool; member
409 poolAppend(STRING_POOL *pool, const ENCODING *enc,
412 poolStoreString(STRING_POOL *pool, const ENCODING *enc,
414 static XML_Bool FASTCALL poolGrow(STRING_POOL *pool);
416 poolCopyString(STRING_POOL *pool, const XML_Char *s);
418 poolCopyStringN(STRING_POOL *pool, const XML_Char *s, int n);
420 poolAppendString(STRING_POOL *pool, const XML_Char *s);
436 #define poolStart(pool) ((pool)->start) argument
437 #define poolEnd(pool) ((pool)->ptr) argument
438 #define poolLength(pool) ((pool)->ptr - (pool)->start) argument
[all …]
/external/bluetooth/glib/glib/
Dgthreadpool.h67 void g_thread_pool_push (GThreadPool *pool,
74 void g_thread_pool_set_max_threads (GThreadPool *pool,
77 gint g_thread_pool_get_max_threads (GThreadPool *pool);
81 guint g_thread_pool_get_num_threads (GThreadPool *pool);
84 guint g_thread_pool_unprocessed (GThreadPool *pool);
90 void g_thread_pool_free (GThreadPool *pool,
104 void g_thread_pool_set_sort_function (GThreadPool *pool,
/external/bluetooth/glib/gobject/
Dgparam.c897 GParamSpecPool *pool = g_new (GParamSpecPool, 1); in g_param_spec_pool_new() local
899 memcpy (&pool->smutex, &init_smutex, sizeof (init_smutex)); in g_param_spec_pool_new()
900 pool->type_prefixing = type_prefixing != FALSE; in g_param_spec_pool_new()
901 pool->hash_table = g_hash_table_new (param_spec_pool_hash, param_spec_pool_equals); in g_param_spec_pool_new()
903 return pool; in g_param_spec_pool_new()
915 g_param_spec_pool_insert (GParamSpecPool *pool, in g_param_spec_pool_insert() argument
921 if (pool && pspec && owner_type > 0 && pspec->owner_type == 0) in g_param_spec_pool_insert()
923 G_SLOCK (&pool->smutex); in g_param_spec_pool_insert()
929 G_SUNLOCK (&pool->smutex); in g_param_spec_pool_insert()
936 g_hash_table_insert (pool->hash_table, pspec, pspec); in g_param_spec_pool_insert()
[all …]
Dgparam.h375 void g_param_spec_pool_insert (GParamSpecPool *pool,
378 void g_param_spec_pool_remove (GParamSpecPool *pool,
380 GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool,
384 GList* g_param_spec_pool_list_owned (GParamSpecPool *pool,
386 GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
/external/openssl/crypto/bn/
Dbn_ctx.c142 BN_POOL pool; member
159 BN_POOL_ITEM *item = ctx->pool.head; in ctxdbg()
206 BN_POOL_reset(&ctx->pool); in BN_CTX_init()
223 BN_POOL_init(&ret->pool); in BN_CTX_new()
237 BN_POOL_ITEM *pool = ctx->pool.head; in BN_CTX_free() local
239 ctx->stack.size, ctx->pool.size); in BN_CTX_free()
241 while(pool) { in BN_CTX_free()
244 fprintf(stderr,"%02x ", pool->vals[loop++].dmax); in BN_CTX_free()
245 pool = pool->next; in BN_CTX_free()
251 BN_POOL_finish(&ctx->pool); in BN_CTX_free()
[all …]
/external/bluetooth/glib/tests/
Dthreadpool-test.c104 GThreadPool *pool; in test_thread_stop_unused() local
110 pool = g_thread_pool_new ((GFunc) g_usleep, NULL, -1, FALSE, NULL); in test_thread_stop_unused()
113 g_thread_pool_push (pool, GUINT_TO_POINTER (1000), NULL); in test_thread_stop_unused()
142 g_thread_pool_free (pool, FALSE, TRUE); in test_thread_stop_unused()
258 GThreadPool *pool; in test_thread_sort() local
279 pool = g_thread_pool_new (test_thread_sort_entry_func, in test_thread_sort()
288 g_thread_pool_set_sort_function (pool, in test_thread_sort()
297 g_thread_pool_push (pool, GUINT_TO_POINTER (id), NULL); in test_thread_sort()
302 g_thread_pool_get_num_threads (pool), in test_thread_sort()
303 g_thread_pool_unprocessed (pool))); in test_thread_sort()
[all …]
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DWaitingThread.java57 private final RouteSpecificPool pool; field in WaitingThread
73 public WaitingThread(Condition cond, RouteSpecificPool pool) { in WaitingThread() argument
80 this.pool = pool; in WaitingThread()
103 return this.pool; in getPool()
/external/jpeg/
Djcomapi.c31 int pool; in jpeg_abort() local
40 for (pool = JPOOL_NUMPOOLS-1; pool > JPOOL_PERMANENT; pool--) { in jpeg_abort()
41 (*cinfo->mem->free_pool) (cinfo, pool); in jpeg_abort()
Djmemmgr.c1004 int pool; in self_destruct() local
1010 for (pool = JPOOL_NUMPOOLS-1; pool >= JPOOL_PERMANENT; pool--) { in self_destruct()
1011 free_pool(cinfo, pool); in self_destruct()
1032 int pool; in jinit_memory_mgr() local
1085 for (pool = JPOOL_NUMPOOLS-1; pool >= JPOOL_PERMANENT; pool--) { in jinit_memory_mgr()
1086 mem->small_list[pool] = NULL; in jinit_memory_mgr()
1087 mem->large_list[pool] = NULL; in jinit_memory_mgr()
/external/dropbear/libtomcrypt/notes/
Dtech0004.txt16 Yarrow is by far the simplest of the PRNGs. It gathers bits of entropy by hashing the pool state
17 plus the additional bits storing the message digest back in the pool. E.g.
19 pool = hash(pool || newbits)
23 of the pool and can control future events can control the PRNG. This requires an active attacker b…
26 The pool is then used as a key for a cipher that is used in CTR mode.
35 operates on a more defensive level than Yarrow. Instead of 1 entropy pool it has 32 and the new en…
38 That is, each call to fortuna_add_entropy() puts the bits in the next [in the sequenece] pool of en…
39 Effective bits are added to the pool by sending them through a hash [but not terminating the hash].…
42 …ertain pools are used. More precisely the i'th pool is used every 2**i'th reseeding. For example…
43 is always used. pool[1] is used every second reseeding, pool[2] every fourth.
[all …]
/external/dropbear/libtomcrypt/src/prngs/
Dfortuna.c84 if ((err = sha256_done(&prng->fortuna.pool[x], tmp)) != CRYPT_OK) { in fortuna_reseed()
94 if ((err = sha256_init(&prng->fortuna.pool[x])) != CRYPT_OK) { in fortuna_reseed()
139 if ((err = sha256_init(&prng->fortuna.pool[x])) != CRYPT_OK) { in fortuna_start()
141 sha256_done(&prng->fortuna.pool[y], tmp); in fortuna_start()
153 sha256_done(&prng->fortuna.pool[x], tmp); in fortuna_start()
190 if ((err = sha256_process(&prng->fortuna.pool[prng->fortuna.pool_idx], tmp, 2)) != CRYPT_OK) { in fortuna_add_entropy()
194 if ((err = sha256_process(&prng->fortuna.pool[prng->fortuna.pool_idx], in, inlen)) != CRYPT_OK) { in fortuna_add_entropy()
294 if ((err = sha256_done(&(prng->fortuna.pool[x]), tmp)) != CRYPT_OK) { in fortuna_done()
345 XMEMCPY(md, &(prng->fortuna.pool[x]), sizeof(*md)); in fortuna_export()
Dyarrow.c122 zeromem(prng->yarrow.pool, sizeof(prng->yarrow.pool)); in yarrow_start()
157 if ((err = hash_descriptor[prng->yarrow.hash].process(&md, prng->yarrow.pool, in yarrow_add_entropy()
170 if ((err = hash_descriptor[prng->yarrow.hash].done(&md, prng->yarrow.pool)) != CRYPT_OK) { in yarrow_add_entropy()
209 prng->yarrow.pool, /* IV */ in yarrow_ready()
210 prng->yarrow.pool, ks, /* KEY and key size */ in yarrow_ready()
/external/clearsilver/mod_ecs/
Dmod_ecs.c73 char** ecs_create_argv(pool*,char*,char*,char*,char*,const char*);
384 void *create_ecs_config (pool *p, server_rec *dummy) in create_ecs_config()
400 env = ap_create_environment(r->pool,r->subprocess_env); in e_setup_cgi_env()
421 ap_register_cleanup (cls->deplibs->pool, dlhandle, slib_cleanup, slib_cleanup); in set_dep_lib()
424 entry->libpath = ap_pstrdup(cls->deplibs->pool, arg); in set_dep_lib()
500 entry->libpath = ap_pstrdup(cls->handlers->pool, arg); in set_pre_lib()
502 return load_library (cls->handlers->pool, entry, 1, "Pre"); in set_pre_lib()
556 my_handler.libpath = ap_pstrdup(sconf->handlers->pool, r->filename); in run_dl_cgi()
557 err = load_library(sconf->handlers->pool, &my_handler, 1, ""); in run_dl_cgi()
595 err = load_library(sconf->handlers->pool, handler, 0, "Re"); in run_dl_cgi()
[all …]
/external/webkit/WebKit/mac/WebCoreSupport/
DWebIconDatabaseClient.mm38 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
40 [pool drain];
46 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
48 [pool drain];
54 // Therefore we let WebCore handle autorelease by draining its pool "from time to time"
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_voicemgt.c198 EAS_INT pool; in IncVoicePoolCount() local
207 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in IncVoicePoolCount()
212 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in IncVoicePoolCount()
215 pSynth->poolCount[pool]++; in IncVoicePoolCount()
231 EAS_INT pool; in DecVoicePoolCount() local
240 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in DecVoicePoolCount()
245 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in DecVoicePoolCount()
248 pSynth->poolCount[pool]--; in DecVoicePoolCount()
512 pChannel->pool = 0; in VMInitializeAllChannels()
674 pSynth->channels[i].pool = 0; in VMInitMIPTable()
[all …]
/external/sonivox/arm-wt-22k/lib_src/
Deas_voicemgt.c198 EAS_INT pool; in IncVoicePoolCount() local
207 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in IncVoicePoolCount()
212 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in IncVoicePoolCount()
215 pSynth->poolCount[pool]++; in IncVoicePoolCount()
231 EAS_INT pool; in DecVoicePoolCount() local
240 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in DecVoicePoolCount()
245 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in DecVoicePoolCount()
248 pSynth->poolCount[pool]--; in DecVoicePoolCount()
512 pChannel->pool = 0; in VMInitializeAllChannels()
674 pSynth->channels[i].pool = 0; in VMInitMIPTable()
[all …]
/external/sonivox/arm-fm-22k/lib_src/
Deas_voicemgt.c198 EAS_INT pool; in IncVoicePoolCount() local
207 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in IncVoicePoolCount()
212 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in IncVoicePoolCount()
215 pSynth->poolCount[pool]++; in IncVoicePoolCount()
231 EAS_INT pool; in DecVoicePoolCount() local
240 pool = pSynth->channels[GET_CHANNEL(pVoice->nextChannel)].pool; in DecVoicePoolCount()
245 pool = pSynth->channels[GET_CHANNEL(pVoice->channel)].pool; in DecVoicePoolCount()
248 pSynth->poolCount[pool]--; in DecVoicePoolCount()
512 pChannel->pool = 0; in VMInitializeAllChannels()
674 pSynth->channels[i].pool = 0; in VMInitMIPTable()
[all …]
/external/webkit/JavaScriptCore/wrec/
DWREC.cpp43 …gned* numSubpatterns_ptr, const char** error_ptr, RefPtr<ExecutablePool>& pool, bool ignoreCase, b… in compileRegExp() argument
80 pool = globalData->executableAllocator.poolForSize(generator.size()); in compileRegExp()
81 return reinterpret_cast<CompiledRegExp>(generator.copyCode(pool.get())); in compileRegExp()
/external/webkit/JavaScriptCore/jit/
DExecutableAllocator.h150 RefPtr<ExecutablePool> pool = ExecutablePool::create(JIT_ALLOCATOR_LARGE_ALLOC_SIZE); in poolForSize() local
154 if ((pool->available() - n) > m_smallAllocationPool->available()) in poolForSize()
155 m_smallAllocationPool = pool; in poolForSize()
156 return pool.release(); in poolForSize()
/external/webkit/JavaScriptCore/wtf/
DListHashSet.h127 : m_freeList(pool()) in ListHashSetNodeAllocator()
130 memset(m_pool.pool, 0, sizeof(m_pool.pool)); in ListHashSetNodeAllocator()
174 Node* pool() { return reinterpret_cast<Node*>(m_pool.pool); } in pool() function
175 Node* pastPool() { return pool() + m_poolSize; } in pastPool()
179 return node >= pool() && node < pastPool(); in inPool()
186 char pool[sizeof(Node) * m_poolSize]; member

1234