Home
last modified time | relevance | path

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

/third_party/mesa3d/src/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 …]
/third_party/libdrm/intel/
Dmm.c32 drm_private void mmDumpMemInfo(const struct mem_block *heap) in mmDumpMemInfo()
38 const struct mem_block *p; in mmDumpMemInfo()
58 drm_private struct mem_block *mmInit(int ofs, int size) in mmInit()
60 struct mem_block *heap, *block; in mmInit()
65 heap = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
69 block = (struct mem_block *)calloc(1, sizeof(struct mem_block)); in mmInit()
93 static struct mem_block *SliceBlock(struct mem_block *p, in SliceBlock()
97 struct mem_block *newblock; in SliceBlock()
102 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
127 (struct mem_block *)calloc(1, sizeof(struct mem_block)); in SliceBlock()
[all …]
Dmm.h34 struct mem_block { struct
35 struct mem_block *next, *prev; argument
36 struct mem_block *next_free, *prev_free; argument
37 struct mem_block *heap; argument
47 drm_private extern struct mem_block *mmInit(int ofs, int size); argument
59 drm_private extern struct mem_block *mmAllocMem(struct mem_block *heap,
68 drm_private extern int mmFreeMem(struct mem_block *b);
73 drm_private extern void mmDestroy(struct mem_block *mmInit);
78 drm_private extern void mmDumpMemInfo(const struct mem_block *mmInit);
Dintel_bufmgr_fake.c90 struct mem_block *mem; /* BM_MEM_AGP */
119 struct mem_block *heap;
/third_party/mesa3d/src/gallium/auxiliary/rtasm/
Drtasm_execmem.c68 static struct mem_block *exec_heap = NULL;
90 struct mem_block *block = NULL; in rtasm_exec_malloc()
121 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in rtasm_exec_free()
/third_party/mesa3d/src/broadcom/simulator/
Dv3d_simulator.c85 struct mem_block *heap;
86 struct mem_block *overflow;
118 struct mem_block *gmp;
130 struct mem_block *block;
858 struct mem_block *b = u_mmAllocMem(sim_state.heap, 4096, GMP_ALIGN2, 0); in v3d_simulator_init_global()
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_mm.c59 struct mem_block *heap;
82 struct mem_block *block;
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c70 struct mem_block *heap;
71 struct mem_block *overflow;
101 struct mem_block *block;
/third_party/toybox/toys/pending/
Dvi.c53 struct mem_block {
168 struct mem_block *b = xmalloc(sizeof(struct mem_block)); in insert_str()
/third_party/protobuf/php/ext/google/protobuf/
Dphp-upb.c2334 typedef struct mem_block { struct
2335 struct mem_block *next; argument
2339 } mem_block; argument
2362 mem_block *freelist, *freelist_tail;
2365 static const size_t memblock_reserve = UPB_ALIGN_UP(sizeof(mem_block), 16);
2379 mem_block *block = ptr; in upb_arena_addblock()
2399 mem_block *block = upb_malloc(a->block_alloc, block_size); in upb_arena_allocblock()
2478 mem_block *block = a->freelist; in arena_dofree()
2484 mem_block *next = block->next; in arena_dofree()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dupb.c2328 typedef struct mem_block { struct
2329 struct mem_block *next; argument
2332 } mem_block; argument
2342 mem_block *block = ptr; in upb_arena_addblock()
2352 a->start = (char*)block + _upb_arena_alignup(sizeof(mem_block)); in upb_arena_addblock()
2359 static mem_block *upb_arena_allocblock(upb_arena *a, size_t size) { in upb_arena_allocblock()
2360 size_t block_size = UPB_MAX(size, a->next_block_size) + sizeof(mem_block); in upb_arena_allocblock()
2361 mem_block *block = upb_malloc(a->block_alloc, block_size); in upb_arena_allocblock()
2374 mem_block *block = upb_arena_allocblock(a, size); in _upb_arena_slowmalloc()
2406 const size_t first_block_overhead = sizeof(upb_arena) + sizeof(mem_block); in upb_arena_init()
[all …]
/third_party/glib/patch/
Dbackport-openharmony-adapt.patch17241 g_free (mem_block);
17243 TRACE (GLIB_SLICE_FREE((void*)mem_block, mem_size));
17244 + DFX_TRACE(GMemFreeDfx((void *)mem_block));