Home
last modified time | relevance | path

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

/external/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 …]
/external/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;
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dupb.int.h7 struct mem_block;
8 typedef struct mem_block mem_block; typedef
26 mem_block *freelist, *freelist_tail;
Dupb.c76 struct mem_block { struct
77 struct mem_block *next; argument
88 static const size_t memblock_reserve = UPB_ALIGN_UP(sizeof(mem_block), 16); argument
103 mem_block *block = ptr; in upb_arena_addblock()
123 mem_block *block = upb_malloc(root->block_alloc, block_size); in upb_arena_allocblock()
196 mem_block *block = a->freelist; in arena_dofree()
202 mem_block *next = block->next; in arena_dofree()
/external/mesa3d/src/mesa/main/
Dexecmem.c65 static struct mem_block *exec_heap = NULL;
94 struct mem_block *block = NULL; in _mesa_exec_malloc()
125 struct mem_block *block = u_mmFindBlock(exec_heap, (unsigned char *)addr - exec_mem); in _mesa_exec_free()
/external/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()
/external/webrtc/rtc_base/memory/
Daligned_malloc.cc85 void AlignedFree(void* mem_block) { in AlignedFree() argument
86 if (mem_block == NULL) { in AlignedFree()
89 uintptr_t aligned_pos = reinterpret_cast<uintptr_t>(mem_block); in AlignedFree()
Daligned_malloc.h35 void AlignedFree(void* mem_block);
/external/mesa3d/src/broadcom/simulator/
Dv3d_simulator.c84 struct mem_block *heap;
85 struct mem_block *overflow;
103 struct mem_block *gmp;
115 struct mem_block *block;
617 struct mem_block *b = u_mmAllocMem(sim_state.heap, 4096, GMP_ALIGN2, 0); in v3d_simulator_init_global()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_mm.c59 struct mem_block *heap;
82 struct mem_block *block;
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c70 struct mem_block *heap;
71 struct mem_block *overflow;
101 struct mem_block *block;
/external/toybox/toys/pending/
Dvi.c53 struct mem_block {
168 struct mem_block *b = xmalloc(sizeof(struct mem_block)); in insert_str()
/external/toybox/android/linux/generated/
Dglobals.h1087 struct mem_block { struct
/external/toybox/android/device/generated/
Dglobals.h1087 struct mem_block { struct
/external/toybox/android/mac/generated/
Dglobals.h1087 struct mem_block { struct
/external/protobuf/php/ext/google/protobuf/
Dupb.c5643 typedef struct mem_block { struct
5644 struct mem_block *next; argument
5649 } mem_block; typedef
5659 mem_block *block = ptr; in upb_arena_addblock()
5663 block->used = align_up_max(sizeof(mem_block)); in upb_arena_addblock()
5671 static mem_block *upb_arena_allocblock(upb_arena *a, size_t size) { in upb_arena_allocblock()
5672 size_t block_size = UPB_MAX(size, a->next_block_size) + sizeof(mem_block); in upb_arena_allocblock()
5673 mem_block *block = upb_malloc(a->block_alloc, block_size); in upb_arena_allocblock()
5688 mem_block *block = a->block_head; in upb_arena_doalloc()
5726 const size_t first_block_overhead = sizeof(upb_arena) + sizeof(mem_block); in upb_arena_init()
[all …]
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c7443 typedef struct mem_block { struct
7444 struct mem_block *next; argument
7449 } mem_block; typedef
7459 mem_block *block = ptr; in upb_arena_addblock()
7463 block->used = align_up_max(sizeof(mem_block)); in upb_arena_addblock()
7472 static mem_block *upb_arena_allocblock(upb_arena *a, size_t size) { in upb_arena_allocblock()
7473 size_t block_size = UPB_MAX(size, a->next_block_size) + sizeof(mem_block); in upb_arena_allocblock()
7474 mem_block *block = upb_malloc(a->block_alloc, block_size); in upb_arena_allocblock()
7489 mem_block *block = a->block_head; in upb_arena_doalloc()
7537 if (size > sizeof(mem_block)) { in upb_arena_init2()
[all …]