Home
last modified time | relevance | path

Searched refs:mem_block (Results 1 – 13 of 13) 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.c31 void mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
37 const struct mem_block *p; in mmDumpMemInfo()
57 struct mem_block *mmInit(int ofs, int size) in mmInit()
59 struct mem_block *heap, *block; in mmInit()
64 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
68 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
92 static struct mem_block *SliceBlock(struct mem_block *p, in SliceBlock()
96 struct mem_block *newblock; in SliceBlock()
101 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
126 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
[all …]
Dmm.h32 struct mem_block { struct
33 struct mem_block *next, *prev; argument
34 struct mem_block *next_free, *prev_free; argument
35 struct mem_block *heap; argument
55 extern struct mem_block *mmInit(int ofs, int size); argument
67 extern struct mem_block *mmAllocMem(struct mem_block *heap, int size,
75 extern int mmFreeMem(struct mem_block *b);
82 extern struct mem_block *mmFindBlock(struct mem_block *heap, int start);
87 extern void mmDestroy(struct mem_block *mmInit);
92 extern void mmDumpMemInfo(const struct mem_block *mmInit);
Dintel_bufmgr_fake.c98 struct mem_block *mem; /* BM_MEM_AGP */
127 struct mem_block *heap;
/external/libvpx/libvpx/vpx_mem/
Dvpx_mem_tracker.c86 static struct mem_block *memory_tracker_find(size_t addr);
98 struct mem_block *head,
160 if ((memtrack.head = (struct mem_block *) in vpx_memory_tracker_init()
161 MEM_TRACK_MALLOC(sizeof(struct mem_block)))) { in vpx_memory_tracker_init()
164 MEM_TRACK_MEMSET(memtrack.head, 0, sizeof(struct mem_block)); in vpx_memory_tracker_init()
215 struct mem_block *p = memtrack.head, in vpx_memory_tracker_destroy()
279 struct mem_block *vpx_memory_tracker_find(size_t addr) { in vpx_memory_tracker_find()
280 struct mem_block *p = NULL; in vpx_memory_tracker_find()
442 struct mem_block *p = (memtrack.head ? memtrack.head->next : NULL); in memory_tracker_dump()
488 struct mem_block *p = memtrack.head->next; in memory_tracker_check_integrity()
[all …]
Dvpx_mem.c274 struct mem_block *p = NULL; in xvpx_realloc()
/external/libvpx/libvpx/vpx_mem/include/
Dvpx_mem_tracker.h26 struct mem_block { struct
31 struct mem_block *prev, argument
100 struct mem_block *vpx_memory_tracker_find(size_t addr);
/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/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_mm.c59 struct mem_block *heap;
82 struct mem_block *block;