/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nouveau/ |
nouveau_mm.c | 46 mm_slab_alloc(struct mm_slab *slab) 50 if (slab->free == 0) 53 for (i = 0; i < (slab->count + 31) / 32; ++i) { 54 b = ffs(slab->bits[i]) - 1; 57 assert(n < slab->count); 58 slab->free--; 59 slab->bits[i] &= ~(1 << b); 67 mm_slab_free(struct mm_slab *slab, int i) 69 assert(i < slab->count); 70 slab->bits[i / 32] |= 1 << (i % 32) 116 struct mm_slab *slab; local 161 struct mm_slab *slab; local 212 struct mm_slab *slab = (struct mm_slab *)alloc->priv; local 262 struct mm_slab *slab, *next; local [all...] |
/external/mesa3d/src/gallium/drivers/nouveau/ |
nouveau_mm.c | 46 mm_slab_alloc(struct mm_slab *slab) 50 if (slab->free == 0) 53 for (i = 0; i < (slab->count + 31) / 32; ++i) { 54 b = ffs(slab->bits[i]) - 1; 57 assert(n < slab->count); 58 slab->free--; 59 slab->bits[i] &= ~(1 << b); 67 mm_slab_free(struct mm_slab *slab, int i) 69 assert(i < slab->count); 70 slab->bits[i / 32] |= 1 << (i % 32) 116 struct mm_slab *slab; local 161 struct mm_slab *slab; local 212 struct mm_slab *slab = (struct mm_slab *)alloc->priv; local 262 struct mm_slab *slab, *next; local [all...] |
/external/llvm/lib/Support/ |
Allocator.cpp | 45 /// StartNewSlab - Allocate a new slab and move the bump pointers over into 46 /// the new slab. Modifies CurPtr and End. 49 // to allocate more. Increase slab size to reduce mallocs and possibly memory 63 void BumpPtrAllocator::DeallocateSlabs(MemSlab *Slab) { 64 while (Slab) { 65 MemSlab *NextSlab = Slab->NextPtr; 69 sys::Memory::setRangeWritable(Slab + 1, Slab->Size - sizeof(MemSlab)); 70 memset(Slab + 1, 0xCD, Slab->Size - sizeof(MemSlab)) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_slab.c | 55 * Buffer in a slab. 63 struct pb_slab *slab; member in struct:pb_slab_buffer 69 /** Offset relative to the start of the slab buffer. */ 79 * Slab -- a contiguous piece of memory. 116 * Alignment, usage to be used to allocate the slab buffers. 139 * This buffer manager just dispatches buffer allocations to the appropriate slab 140 * manager, according to the requested buffer size, or by passes the slab 191 * Delete a buffer from the slab delayed list and put 192 * it on the slab FREE list. 198 struct pb_slab *slab = buf->slab local 302 struct pb_slab *slab; local 379 struct pb_slab *slab; local [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
pb_bufmgr_slab.c | 55 * Buffer in a slab. 63 struct pb_slab *slab; member in struct:pb_slab_buffer 69 /** Offset relative to the start of the slab buffer. */ 79 * Slab -- a contiguous piece of memory. 116 * Alignment, usage to be used to allocate the slab buffers. 139 * This buffer manager just dispatches buffer allocations to the appropriate slab 140 * manager, according to the requested buffer size, or by passes the slab 191 * Delete a buffer from the slab delayed list and put 192 * it on the slab FREE list. 198 struct pb_slab *slab = buf->slab local 302 struct pb_slab *slab; local 379 struct pb_slab *slab; local [all...] |
/external/llvm/unittests/Support/ |
AllocatorTest.cpp | 81 // Test allocating just over the slab size. This tests a bug where before the 86 // Fill the slab right up until the end pointer. 90 // If we don't allocate a new slab, then we will have overflowed. 95 // Test allocating with a size larger than the initial slab size. 103 // Mock slab allocator that returns slabs aligned on 4096 bytes. There is no 112 // Allocate space for the alignment, the slab, and a void* that goes right 113 // before the slab. 117 // Make the slab. 118 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & 120 Slab->Size = Size [all...] |
/external/llvm/include/llvm/Support/ |
Allocator.h | 51 /// MemSlab - This structure lives at the beginning of every slab allocated by 68 virtual void Deallocate(MemSlab *Slab) = 0; 71 /// MallocSlabAllocator - The default slab allocator for the bump allocator 83 virtual void Deallocate(MemSlab *Slab) LLVM_OVERRIDE; 99 /// allocate a separate slab. 107 /// CurSlab - The slab that we are currently allocating into. 111 /// CurPtr - The current pointer into the current slab. This points to the 112 /// next free byte in the slab. 115 /// End - The end of the current slab. 128 /// StartNewSlab - Allocate a new slab and move the bump pointers over int [all...] |
/development/ndk/platforms/android-3/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-3/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-3/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-4/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-4/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-5/arch-arm/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|
/prebuilts/ndk/7/platforms/android-5/arch-x86/usr/include/linux/ |
percpu.h | 15 #include <linux/slab.h>
|