Searched refs:free_list (Results 1 - 12 of 12) sorted by relevance

/fuchsia/zircon/system/ulib/bitmap/
H A Drle-bitmap.cpp18 // Allocate a new bitmap element. If *free_list* is null, allocate one using
19 // new. If *free_list* is not null, take one from *free_list*.
20 fbl::unique_ptr<RleBitmapElement> AllocateElement(RleBitmap::FreeList* free_list) { argument
21 if (!free_list) {
29 return free_list->pop_front();
33 // Release the element *elem*. If *free_list* is null, release the element
34 // with delete. If *free_list* is not null, append it to *free_list*.
35 void ReleaseElement(RleBitmap::FreeList* free_list, fb argument
127 SetNoAlloc(size_t bitoff, size_t bitmax, FreeList* free_list) argument
139 ClearNoAlloc(size_t bitoff, size_t bitmax, FreeList* free_list) argument
147 SetInternal(size_t bitoff, size_t bitmax, FreeList* free_list) argument
210 ClearInternal(size_t bitoff, size_t bitmax, FreeList* free_list) argument
[all...]
/fuchsia/zircon/third_party/ulib/ngunwind/include/ngunwind/private/
H A Dmempool.h66 *free_list; member in struct:mempool
/fuchsia/zircon/system/ulib/bitmap/include/bitmap/
H A Drle-bitmap.h59 // *bitmax* < *bitoff* or if an allocation is needed and *free_list*
62 // *free_list* is a list of usable allocations. If an allocation is needed,
65 // to *free_list*.
66 zx_status_t SetNoAlloc(size_t bitoff, size_t bitmax, FreeList* free_list);
73 // *bitmax* < *bitoff* or if an allocation is needed and *free_list*
76 // *free_list* is a list of usable allocations. If an allocation is needed,
79 // to *free_list*.
80 zx_status_t ClearNoAlloc(size_t bitoff, size_t bitmax, FreeList* free_list);
93 zx_status_t SetInternal(size_t bitoff, size_t bitmax, FreeList* free_list);
94 zx_status_t ClearInternal(size_t bitoff, size_t bitmax, FreeList* free_list);
[all...]
/fuchsia/zircon/system/dev/bus/virtio/
H A Dring.cpp71 ring_.free_list = 0xffff;
90 ring_.desc[desc_index].next = ring_.free_list;
91 ring_.free_list = desc_index;
103 uint16_t i = ring_.free_list;
108 ring_.free_list = desc->next;
/fuchsia/zircon/third_party/ulib/ngunwind/src/mi/
H A Dmempool.c90 obj->next = pool->free_list;
91 pool->free_list = obj;
167 obj = pool->free_list;
168 pool->free_list = obj->next;
/fuchsia/zircon/system/ulib/virtio/include/virtio/
H A Dvirtio_ring.h99 uint16_t free_list; /* head of a free list of descriptors per ring. 0xffff is NULL */ member in struct:vring
152 vr->free_list = 0xffff;
/fuchsia/zircon/system/utest/bitmap/
H A Drle-bitmap-tests.cpp355 RleBitmap::FreeList free_list; local
356 EXPECT_EQ(bitmap.SetNoAlloc(0, 65536, &free_list), ZX_ERR_NO_MEMORY, "set bits with empty freelist");
359 free_list.push_back(fbl::unique_ptr<RleBitmapElement>(new (&ac) RleBitmapElement()));
361 EXPECT_EQ(bitmap.SetNoAlloc(0, 65536, &free_list), ZX_OK, "set bits");
363 EXPECT_EQ(free_list.size_slow(), 0U, "free list empty after alloc");
365 EXPECT_EQ(bitmap.ClearNoAlloc(1, 65535, &free_list), ZX_ERR_NO_MEMORY, "clear bits with empty freelist and alloc needed");
367 free_list.push_back(fbl::unique_ptr<RleBitmapElement>(new (&ac) RleBitmapElement()));
369 EXPECT_EQ(bitmap.ClearNoAlloc(1, 65535, &free_list), ZX_OK, "clear bits");
373 EXPECT_EQ(free_list.size_slow(), 0U, "free list empty after alloc");
375 free_list
[all...]
/fuchsia/zircon/kernel/vm/include/vm/
H A Dvm_object_physical.h41 zx_status_t GetPageLocked(uint64_t offset, uint pf_flags, list_node* free_list,
H A Dvm_object.h183 virtual zx_status_t GetPageLocked(uint64_t offset, uint pf_flags, list_node* free_list,
H A Dvm_object_paged.h84 zx_status_t GetPageLocked(uint64_t offset, uint pf_flags, list_node* free_list,
/fuchsia/zircon/kernel/vm/
H A Dvm_object_physical.cpp72 zx_status_t VmObjectPhysical::GetPageLocked(uint64_t offset, uint pf_flags, list_node* free_list, argument
H A Dvm_object_paged.cpp371 // |free_list|, if not NULL, is a list of allocated but unused vm_page_t that
373 // and will not fail if |free_list| is a non-empty list, faulting in was requested,
375 zx_status_t VmObjectPaged::GetPageLocked(uint64_t offset, uint pf_flags, list_node* free_list,
433 if (free_list) {
434 p_clone = list_remove_head_type(free_list, vm_page, queue_node);
493 if (free_list) {
494 p = list_remove_head_type(free_list, vm_page, queue_node);

Completed in 37 milliseconds