Home
last modified time | relevance | path

Searched refs:free_list (Results 1 – 25 of 38) sorted by relevance

12

/external/python/cpython2/Modules/_ctypes/
Dmalloc_closure.c30 static ITEM *free_list; variable
83 item->next = free_list; in more_core()
84 free_list = item; in more_core()
95 item->next = free_list; in ffi_closure_free()
96 free_list = item; in ffi_closure_free()
103 if (!free_list) in ffi_closure_alloc()
105 if (!free_list) in ffi_closure_alloc()
107 item = free_list; in ffi_closure_alloc()
108 free_list = item->next; in ffi_closure_alloc()
/external/fio/
Dfilelock.c31 struct flist_head free_list; member
37 flist_add(&ff->list, &fld->free_list); in put_filelock()
44 if (flist_empty(&fld->free_list)) in __get_filelock()
47 ff = flist_first_entry(&fld->free_list, struct fio_filelock, list); in __get_filelock()
79 INIT_FLIST_HEAD(&fld->free_list); in fio_filelock_init()
89 flist_add_tail(&ff->list, &fld->free_list); in fio_filelock_init()
106 while (!flist_empty(&fld->free_list)) { in fio_filelock_exit()
109 ff = flist_first_entry(&fld->free_list, struct fio_filelock, list); in fio_filelock_exit()
/external/squashfs-tools/squashfs-tools/
Dcaches-queues-lists.c295 cache->free_list = NULL; in INSERT_LIST()
350 remove_free_list(&cache->free_list, entry); in cache_lookup()
364 struct file_buffer *entry = cache->free_list; in cache_freelist()
366 remove_free_list(&cache->free_list, entry); in cache_freelist()
402 if(cache->first_freelist && cache->free_list) in _cache_get()
407 } else if(!cache->first_freelist && cache->free_list) in _cache_get()
492 insert_free_list(&cache->free_list, entry); in cache_block_put()
515 cache->free_list ? "Free buffers" : "No free buffers"); in dump_cache()
540 if(cache->first_freelist && cache->free_list) in cache_get_nowait()
545 } else if(!cache->first_freelist && cache->free_list) in cache_get_nowait()
[all …]
Dunsquashfs.c278 if(cache->free_list) { in insert_free_list()
279 entry->free_next = cache->free_list; in insert_free_list()
280 entry->free_prev = cache->free_list->free_prev; in insert_free_list()
281 cache->free_list->free_prev->free_next = entry; in insert_free_list()
282 cache->free_list->free_prev = entry; in insert_free_list()
284 cache->free_list = entry; in insert_free_list()
298 cache->free_list = NULL; in remove_free_list()
303 if(cache->free_list == entry) in remove_free_list()
304 cache->free_list = entry->free_next; in remove_free_list()
322 cache->free_list = NULL; in cache_init()
[all …]
Dunsquashfs.h137 struct cache_entry *free_list; member
/external/python/cpython2/Objects/
Dmethodobject.c10 static PyCFunctionObject *free_list = NULL; variable
20 op = free_list; in PyCFunction_NewEx()
22 free_list = (PyCFunctionObject *)(op->m_self); in PyCFunction_NewEx()
137 m->m_self = (PyObject *)free_list; in meth_dealloc()
138 free_list = m; in meth_dealloc()
399 while (free_list) { in PyCFunction_ClearFreeList()
400 PyCFunctionObject *v = free_list; in PyCFunction_ClearFreeList()
401 free_list = (PyCFunctionObject *)(v->m_self); in PyCFunction_ClearFreeList()
Dframeobject.c442 static PyFrameObject *free_list = NULL; variable
480 f->f_back = free_list; in frame_dealloc()
481 free_list = f; in frame_dealloc()
679 if (free_list == NULL) { in PyFrame_New()
690 f = free_list; in PyFrame_New()
691 free_list = free_list->f_back; in PyFrame_New()
965 while (free_list != NULL) { in PyFrame_ClearFreeList()
966 PyFrameObject *f = free_list; in PyFrame_ClearFreeList()
967 free_list = free_list->f_back; in PyFrame_ClearFreeList()
Dtupleobject.c18 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE]; variable
58 if (size == 0 && free_list[0]) { in PyTuple_New()
59 op = free_list[0]; in PyTuple_New()
66 if (size < PyTuple_MAXSAVESIZE && (op = free_list[size]) != NULL) { in PyTuple_New()
67 free_list[size] = (PyTupleObject *) op->ob_item[0]; in PyTuple_New()
98 free_list[0] = op; in PyTuple_New()
228 op->ob_item[0] = (PyObject *) free_list[len]; in tupledealloc()
230 free_list[len] = op; in tupledealloc()
898 p = free_list[i]; in PyTuple_ClearFreeList()
900 free_list[i] = NULL; in PyTuple_ClearFreeList()
[all …]
Dintobject.c45 static PyIntObject *free_list = NULL; variable
103 if (free_list == NULL) { in PyInt_FromLong()
104 if ((free_list = fill_free_list()) == NULL) in PyInt_FromLong()
108 v = free_list; in PyInt_FromLong()
109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong()
135 Py_TYPE(v) = (struct _typeobject *)free_list; in int_dealloc()
136 free_list = v; in int_dealloc()
1456 if (!free_list && (free_list = fill_free_list()) == NULL) in _PyInt_Init()
1459 v = free_list; in _PyInt_Init()
1460 free_list = (PyIntObject *)Py_TYPE(v); in _PyInt_Init()
[all …]
Dfloatobject.c36 static PyFloatObject *free_list = NULL; variable
145 if (free_list == NULL) { in PyFloat_FromDouble()
146 if ((free_list = fill_free_list()) == NULL) in PyFloat_FromDouble()
150 op = free_list; in PyFloat_FromDouble()
151 free_list = (PyFloatObject *)Py_TYPE(op); in PyFloat_FromDouble()
252 Py_TYPE(op) = (struct _typeobject *)free_list; in float_dealloc()
253 free_list = op; in float_dealloc()
2225 free_list = NULL; in PyFloat_ClearFreeList()
2244 free_list; in PyFloat_ClearFreeList()
2245 free_list = p; in PyFloat_ClearFreeList()
Dclassobject.c10 static PyMethodObject *free_list; variable
2256 im = free_list; in PyMethod_New()
2258 free_list = (PyMethodObject *)(im->im_self); in PyMethod_New()
2391 im->im_self = (PyObject *)free_list; in instancemethod_dealloc()
2392 free_list = im; in instancemethod_dealloc()
2682 while (free_list) { in PyMethod_ClearFreeList()
2683 PyMethodObject *im = free_list; in PyMethod_ClearFreeList()
2684 free_list = (PyMethodObject *)(im->im_self); in PyMethod_ClearFreeList()
/external/libunwind/src/mi/
Dmempool.c90 obj->next = pool->free_list; in free_object()
91 pool->free_list = obj; in free_object()
167 obj = pool->free_list; in mempool_alloc()
168 pool->free_list = obj->next; in mempool_alloc()
/external/mesa3d/src/intel/vulkan/
Danv_allocator.c260 pool->free_list = ANV_FREE_LIST_EMPTY; in anv_block_pool_init()
537 if (anv_free_list_pop(&pool->free_list, &pool->map, &offset)) { in anv_block_pool_alloc()
584 anv_free_list_push(&pool->free_list, pool->map, offset); in anv_block_pool_free()
596 pool->free_list = ANV_FREE_LIST_EMPTY; in anv_fixed_size_state_pool_init()
609 if (anv_free_list_pop(&pool->free_list, &block_pool->map, &offset)) { in anv_fixed_size_state_pool_alloc()
640 anv_free_list_push(&pool->free_list, block_pool->map, offset); in anv_fixed_size_state_pool_free()
808 memset(pool->free_list, 0, sizeof(pool->free_list)); in anv_bo_pool_init()
816 for (unsigned i = 0; i < ARRAY_SIZE(pool->free_list); i++) { in anv_bo_pool_finish()
817 struct bo_pool_bo_link *link = PFL_PTR(pool->free_list[i]); in anv_bo_pool_finish()
838 assert(bucket < ARRAY_SIZE(pool->free_list)); in anv_bo_pool_alloc()
[all …]
Danv_descriptor_set.c345 pool->free_list = EMPTY; in anv_CreateDescriptorPool()
380 pool->free_list = EMPTY; in anv_ResetDescriptorPool()
423 uint32_t *link = &pool->free_list; in anv_descriptor_set_create()
424 for (uint32_t f = pool->free_list; f != EMPTY; f = entry->next) { in anv_descriptor_set_create()
510 entry->next = pool->free_list; in anv_descriptor_set_destroy()
512 pool->free_list = (char *) entry - pool->data; in anv_descriptor_set_destroy()
/external/toybox/toys/pending/
Dlast.c36 static void free_list()
130 free_list(); in last_main()
135 free_list(); in last_main()
192 free_list(); in last_main()
/external/python/cpython2/Modules/_ctypes/libffi/src/arm/
Dffi.c559 ffi_trampoline_table_entry *free_list; member
648 table->free_list = table->free_list_pool; in ffi_trampoline_table_alloc()
666 if (table == NULL || table->free_list == NULL) { in ffi_closure_alloc()
682 ffi_trampoline_table_entry *entry = ffi_trampoline_tables->free_list; in ffi_closure_alloc()
683 ffi_trampoline_tables->free_list = entry->next; in ffi_closure_alloc()
709 entry->next = table->free_list; in ffi_closure_free()
710 table->free_list = entry; in ffi_closure_free()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator.h357 Batch *b = region->free_list.Pop(); in AllocateBatch()
367 region->free_list.Push(b); in DeallocateBatch()
513 LFStack<Batch> free_list; member
541 Batch *b = region->free_list.Pop(); in PopulateFreeList()
593 region->free_list.Push(b); in PopulateFreeList()
756 if (sci->free_list.empty()) in AllocateBatch()
758 CHECK(!sci->free_list.empty()); in AllocateBatch()
759 Batch *b = sci->free_list.front(); in AllocateBatch()
760 sci->free_list.pop_front(); in AllocateBatch()
769 sci->free_list.push_front(b); in DeallocateBatch()
[all …]
/external/elfutils/tests/
Drun-readelf-vmcoreinfo.sh92 OFFSET(free_area.free_list)=0
101 LENGTH(free_area.free_list)=5
/external/mesa3d/src/amd/vulkan/
Dradv_descriptor_set.c286 int entry = pool->free_list, prev_entry = -1; in radv_descriptor_set_create()
293 pool->free_list = pool->free_nodes[entry].next; in radv_descriptor_set_create()
361 pool->free_nodes[pool->full_list].next = pool->free_list; in radv_descriptor_set_destroy()
364 pool->free_list = pool->full_list; in radv_descriptor_set_destroy()
417 pool->free_list = -1; in radv_CreateDescriptorPool()
501 pool->free_list = -1; in radv_ResetDescriptorPool()
/external/v8/src/heap/
Dspaces-inl.h266 DCHECK_EQ(free_list(), category->owner()); in UnlinkFreeListCategories()
267 free_list()->RemoveCategory(category); in UnlinkFreeListCategories()
299 reinterpret_cast<PagedSpace*>(owner())->free_list()->EvictFreeListItems(this); in MarkNeverAllocateForTesting()
307 reinterpret_cast<PagedSpace*>(owner())->free_list()->EvictFreeListItems(this); in MarkEvacuationCandidate()
366 ->free_list(); in owner()
/external/libnetfilter_conntrack/src/conntrack/
Dlabels.c134 static void free_list(struct labelmap_bucket *b) in free_list() function
155 free_list(b); in __labelmap_destroy()
/external/libunwind/include/
Dmempool.h72 *free_list; member
/external/syslinux/gpxe/src/crypto/axtls/
Dbigint_impl.h70 bigint *free_list; /**< Bigints not used. */ member
Dbigint.c114 for (p = ctx->free_list; p != NULL; p = pn) in bi_terminate()
196 bi->next = ctx->free_list; in bi_free()
197 ctx->free_list = bi; in bi_free()
1044 if (ctx->free_list != NULL) in alloc()
1046 biR = ctx->free_list; in alloc()
1047 ctx->free_list = biR->next; in alloc()
/external/kmod/tools/
Ddepmod.c1540 struct kmod_list *free_list = NULL; /* struct vertex */ in depmod_report_cycles_from_root() local
1555 l = kmod_list_append(free_list, root); in depmod_report_cycles_from_root()
1560 free_list = l; in depmod_report_cycles_from_root()
1606 l = kmod_list_append(free_list, v); in depmod_report_cycles_from_root()
1611 free_list = l; in depmod_report_cycles_from_root()
1615 while (free_list) { in depmod_report_cycles_from_root()
1616 v = free_list->data; in depmod_report_cycles_from_root()
1617 l = kmod_list_remove(free_list); in depmod_report_cycles_from_root()
1618 free_list = l; in depmod_report_cycles_from_root()

12