Home
last modified time | relevance | path

Searched refs:mem_pool (Results 1 – 11 of 11) sorted by relevance

/external/coreboot/src/commonlib/include/commonlib/
Dmem_pool.h23 struct mem_pool { struct
42 static inline void mem_pool_reset(struct mem_pool *mp) in mem_pool_reset() argument
50 static inline void mem_pool_init(struct mem_pool *mp, void *buf, size_t sz, in mem_pool_init()
63 void *mem_pool_alloc(struct mem_pool *mp, size_t sz);
66 void mem_pool_free(struct mem_pool *mp, void *alloc);
Dregion.h215 struct mem_pool *pool;
/external/mesa3d/src/gallium/frontends/nine/
Dnine_queue.c48 void *mem_pool; member
113 return cmdbuf->mem_pool + offset; in nine_queue_get()
187 return cmdbuf->mem_pool + offset; in nine_queue_alloc()
221 ctx->pool[i].mem_pool = MALLOC(NINE_QUEUE_SIZE); in nine_queue_create()
222 if (!ctx->pool[i].mem_pool) in nine_queue_create()
239 if (ctx->pool[i].mem_pool) in nine_queue_create()
240 FREE(ctx->pool[i].mem_pool); in nine_queue_create()
259 FREE(ctx->pool[i].mem_pool); in nine_queue_delete()
/external/coreboot/src/commonlib/
DMakefile.mk5 bootblock-y += mem_pool.c
6 verstage-y += mem_pool.c
7 romstage-y += mem_pool.c
8 ramstage-y += mem_pool.c
9 postcar-y += mem_pool.c
10 smm-y += mem_pool.c
Dmem_pool.c6 void *mem_pool_alloc(struct mem_pool *mp, size_t sz) in mem_pool_alloc()
29 void mem_pool_free(struct mem_pool *mp, void *p) in mem_pool_free()
/external/executorch/runtime/core/test/
Dmemory_allocator_test.cpp43 uint8_t mem_pool[mem_size]; in TEST_F() local
44 MemoryAllocator allocator(mem_size, mem_pool); in TEST_F()
50 ASSERT_EQ(mem_pool, allocator.allocate(0)); in TEST_F()
68 uint8_t mem_pool[mem_size]; in TEST_F() local
69 MemoryAllocator allocator = MemoryAllocator(mem_size, mem_pool); in TEST_F()
80 uint8_t mem_pool[mem_size]; in TEST_F() local
81 MemoryAllocator allocator(mem_size, mem_pool); in TEST_F()
91 uint8_t mem_pool[kPoolSize]; in TEST_F() local
92 MemoryAllocator allocator(kPoolSize, mem_pool); in TEST_F()
/external/coreboot/src/lib/
Dcbfs.c24 struct mem_pool cbfs_cache = MEM_POOL_INIT(NULL, 0, 0);
27 struct mem_pool cbfs_cache =
30 struct mem_pool cbfs_cache =
/external/coreboot/tests/lib/
Dcbfs-lookup-test.c99 extern void *__real_mem_pool_alloc(struct mem_pool *mp, size_t sz);
101 void *mem_pool_alloc(struct mem_pool *mp, size_t sz) in mem_pool_alloc()
108 extern void __real_mem_pool_free(struct mem_pool *mp, void *p);
110 void mem_pool_free(struct mem_pool *mp, void *p) in mem_pool_free()
/external/coreboot/src/include/
Dcbfs.h159 extern struct mem_pool cbfs_cache;
/external/pytorch/torch/_inductor/
Dcudagraph_trees.py531 device: int, mem_pool: Tuple[int, int], stream: torch.cuda.Stream
543 torch._C._cuda_beginAllocateCurrentStreamToPool(device, mem_pool)
547 torch._C._cuda_endAllocateCurrentStreamToPool(device, mem_pool)
548 torch._C._cuda_releasePool(device, mem_pool)
1593 mem_pool=self.cuda_graphs_pool,
/external/pytorch/test/
Dtest_cuda.py4241 def _use_cuda_memory_pool_manager(device, mem_pool): argument
4252 torch._C._cuda_beginAllocateCurrentStreamToPool(device, mem_pool)
4256 torch._C._cuda_endAllocateCurrentStreamToPool(device, mem_pool)
4257 torch._C._cuda_releasePool(device, mem_pool)