Home
last modified time | relevance | path

Searched refs:mem_block (Results 1 – 12 of 12) sorted by relevance

/external/mesa3d/src/mesa/main/
Dmm.h35 struct mem_block { struct
36 struct mem_block *next, *prev; argument
37 struct mem_block *next_free, *prev_free; argument
38 struct mem_block *heap; argument
51 extern struct mem_block *mmInit(unsigned ofs, unsigned size); argument
63 extern struct mem_block *mmAllocMem(struct mem_block *heap, unsigned size,
71 extern int mmFreeMem(struct mem_block *b);
78 extern struct mem_block *mmFindBlock(struct mem_block *heap, unsigned start);
83 extern void mmDestroy(struct mem_block *mmInit);
88 extern void mmDumpMemInfo(const struct mem_block *mmInit);
Dmm.c34 mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
40 const struct mem_block *p; in mmDumpMemInfo()
60 struct mem_block *
63 struct mem_block *heap, *block; in mmInit()
68 heap = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
72 block = (struct mem_block *) calloc(1, sizeof(struct mem_block)); in mmInit()
97 static struct mem_block *
98 SliceBlock(struct mem_block *p, in SliceBlock()
102 struct mem_block *newblock; in SliceBlock()
106 newblock = (struct mem_block*) calloc(1, sizeof(struct mem_block)); in SliceBlock()
[all …]
Dexecmem.c64 static struct mem_block *exec_heap = NULL;
93 struct mem_block *block = NULL; in _mesa_exec_malloc()
124 struct mem_block *block = mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in _mesa_exec_free()
/external/mesa3d/src/gallium/auxiliary/util/
Du_mm.h37 struct mem_block { struct
38 struct mem_block *next, *prev; argument
39 struct mem_block *next_free, *prev_free; argument
40 struct mem_block *heap; argument
52 extern struct mem_block *u_mmInit(int ofs, int size); argument
64 extern struct mem_block *u_mmAllocMem(struct mem_block *heap, int size, int align2,
72 extern int u_mmFreeMem(struct mem_block *b);
79 extern struct mem_block *u_mmFindBlock(struct mem_block *heap, int start);
84 extern void u_mmDestroy(struct mem_block *mmInit);
89 extern void u_mmDumpMemInfo(const struct mem_block *mmInit);
Du_mm.c34 u_mmDumpMemInfo(const struct mem_block *heap) in u_mmDumpMemInfo()
41 const struct mem_block *p; in u_mmDumpMemInfo()
69 struct mem_block *
72 struct mem_block *heap, *block; in u_mmInit()
77 heap = CALLOC_STRUCT(mem_block); in u_mmInit()
81 block = CALLOC_STRUCT(mem_block); in u_mmInit()
106 static struct mem_block *
107 SliceBlock(struct mem_block *p, in SliceBlock()
111 struct mem_block *newblock; in SliceBlock()
115 newblock = CALLOC_STRUCT(mem_block); in SliceBlock()
[all …]
/external/libdrm/intel/
Dmm.c36 drm_private void mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
42 const struct mem_block *p; in mmDumpMemInfo()
62 drm_private struct mem_block *mmInit(int ofs, int size) in mmInit()
64 struct mem_block *heap, *block; in mmInit()
69 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
73 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
97 static struct mem_block *SliceBlock(struct mem_block *p, in SliceBlock()
101 struct mem_block *newblock; in SliceBlock()
106 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
131 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
[all …]
Dmm.h38 struct mem_block { struct
39 struct mem_block *next, *prev; argument
40 struct mem_block *next_free, *prev_free; argument
41 struct mem_block *heap; argument
51 drm_private extern struct mem_block *mmInit(int ofs, int size); argument
63 drm_private extern struct mem_block *mmAllocMem(struct mem_block *heap,
72 drm_private extern int mmFreeMem(struct mem_block *b);
77 drm_private extern void mmDestroy(struct mem_block *mmInit);
82 drm_private extern void mmDumpMemInfo(const struct mem_block *mmInit);
Dintel_bufmgr_fake.c94 struct mem_block *mem; /* BM_MEM_AGP */
123 struct mem_block *heap;
/external/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_execmem.c67 static struct mem_block *exec_heap = NULL;
87 struct mem_block *block = NULL; in rtasm_exec_malloc()
116 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in rtasm_exec_free()
/external/webrtc/webrtc/system_wrappers/source/
Daligned_malloc.cc87 void AlignedFree(void* mem_block) { in AlignedFree() argument
88 if (mem_block == NULL) { in AlignedFree()
91 uintptr_t aligned_pos = reinterpret_cast<uintptr_t>(mem_block); in AlignedFree()
/external/webrtc/webrtc/system_wrappers/include/
Daligned_malloc.h35 void AlignedFree(void* mem_block);
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_mm.c59 struct mem_block *heap;
82 struct mem_block *block;