/kernel/linux/linux-6.6/include/linux/ |
H A D | tee_drv.h | 26 #define TEE_SHM_POOL BIT(2) /* Memory allocated from pool */ 136 * @pool: Shared memory pool, NULL if not used 146 struct tee_shm_pool *pool, 203 * This pool is only supposed to be accessed directly from the TEE 204 * subsystem and from drivers that implements their own shm pool manager. 221 * struct tee_shm_pool - shared memory pool 231 * struct tee_shm_pool_ops - shared memory pool operations 234 * @destroy_pool: called when destroying the pool 237 int (*alloc)(struct tee_shm_pool *pool, struc 262 tee_shm_pool_free(struct tee_shm_pool *pool) tee_shm_pool_free() argument [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/rands/ |
H A D | seed_src.c | 98 RAND_POOL *pool; in seed_src_generate() local 107 pool = ossl_rand_pool_new(strength, 1, outlen, outlen); in seed_src_generate() 108 if (pool == NULL) { in seed_src_generate() 114 entropy_available = ossl_pool_acquire_entropy(pool); in seed_src_generate() 117 memcpy(out, ossl_rand_pool_buffer(pool), ossl_rand_pool_length(pool)); in seed_src_generate() 119 ossl_rand_pool_free(pool); in seed_src_generate()
|
/third_party/openssl/providers/implementations/rands/ |
H A D | seed_src.c | 98 RAND_POOL *pool; in seed_src_generate() local 107 pool = ossl_rand_pool_new(strength, 1, outlen, outlen); in seed_src_generate() 108 if (pool == NULL) { in seed_src_generate() 114 entropy_available = ossl_pool_acquire_entropy(pool); in seed_src_generate() 117 memcpy(out, ossl_rand_pool_buffer(pool), ossl_rand_pool_length(pool)); in seed_src_generate() 119 ossl_rand_pool_free(pool); in seed_src_generate()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | resource9.c | 106 This->pool = Pool; in NineResource9_ctor() 138 return This->pool; in NineResource9_GetPool() 148 if (This->pool != D3DPOOL_MANAGED || This->type == D3DRTYPE_SURFACE) in NineResource9_SetPriority() 159 if (This->pool != D3DPOOL_MANAGED || This->type == D3DRTYPE_SURFACE) in NineResource9_GetPriority() 169 if (This->pool != D3DPOOL_MANAGED) in NineResource9_PreLoad()
|
H A D | threadpool.h | 54 void _mesa_threadpool_destroy(struct NineSwapChain9 *swapchain, struct threadpool *pool); 55 struct threadpool_task *_mesa_threadpool_queue_task(struct threadpool *pool, 58 void _mesa_threadpool_wait_for_task(struct threadpool *pool,
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | memchunk.c | 35 pa_mempool *pool; in pa_memchunk_make_writable() local 50 pool = pa_memblock_get_pool(c->memblock); in pa_memchunk_make_writable() 51 n = pa_memblock_new(pool, l); in pa_memchunk_make_writable() 52 pa_mempool_unref(pool), pool = NULL; in pa_memchunk_make_writable() local
|
H A D | sample-util.c | 180 static pa_memblock *silence_memblock_new(pa_mempool *pool, uint8_t c) { in silence_memblock_new() argument 185 pa_assert(pool); in silence_memblock_new() 187 length = PA_MIN(pa_mempool_block_size_max(pool), PA_SILENCE_MAX); in silence_memblock_new() 189 b = pa_memblock_new(pool, length); in silence_memblock_new() 217 pa_memchunk* pa_silence_memchunk_get(pa_silence_cache *cache, pa_mempool *pool, pa_memchunk* ret, const pa_sample_spec *spec, size_t length) { in pa_silence_memchunk_get() argument 228 cache->blocks[PA_SAMPLE_U8] = b = silence_memblock_new(pool, 0x80); in pa_silence_memchunk_get() 240 cache->blocks[PA_SAMPLE_S16LE] = b = silence_memblock_new(pool, 0); in pa_silence_memchunk_get() 252 cache->blocks[PA_SAMPLE_ALAW] = b = silence_memblock_new(pool, 0xd5); in pa_silence_memchunk_get() 255 cache->blocks[PA_SAMPLE_ULAW] = b = silence_memblock_new(pool, 0xff); in pa_silence_memchunk_get() 373 void pa_memchunk_sine(pa_memchunk *c, pa_mempool *pool, unsigne argument [all...] |
/third_party/skia/src/gpu/vk/ |
H A D | GrVkCommandPool.cpp | 28 VkCommandPool pool; in Create() local 29 GR_VK_CALL_RESULT(gpu, result, CreateCommandPool(gpu->device(), &cmdPoolInfo, nullptr, &pool)); in Create() 34 GrVkPrimaryCommandBuffer* primaryCmdBuffer = GrVkPrimaryCommandBuffer::Create(gpu, pool); in Create() 36 GR_VK_CALL(gpu->vkInterface(), DestroyCommandPool(gpu->device(), pool, nullptr)); in Create() 40 return new GrVkCommandPool(gpu, pool, primaryCmdBuffer); in Create()
|
/third_party/skia/tools/ |
H A D | check-headers-self-sufficient | 81 # ...Except use a multiprocessing pool. 86 pool = multiprocessing.Pool() 91 pool.terminate() 94 pool.apply_async(compile_header, args=(path, ), callback=print_and_exit_if) 95 pool.close() 96 pool.join()
|
/third_party/protobuf/python/google/protobuf/ |
H A D | message_factory.py | 57 """Factory for creating Proto2 messages from descriptors in a pool.""" 59 def __init__(self, pool=None): 61 self.pool = pool or descriptor_pool.DescriptorPool() 104 pool cannot satisfy them. 116 file_desc = self.pool.FindFileByName(file_name) 120 # While the extension FieldDescriptors are created by the descriptor pool, 159 _FACTORY.pool.Add(file_proto)
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
H A D | type_info_test_helper.cc | 58 const DescriptorPool* pool = descriptors[0]->file()->pool(); in ResetTypeInfo() local 60 GOOGLE_CHECK(pool == descriptors[i]->file()->pool()) in ResetTypeInfo() 64 NewTypeResolverForDescriptorPool(kTypeServiceBaseUrl, pool)); in ResetTypeInfo()
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
H A D | dePoolHash.c | 21 * \brief Memory pool hash class. 39 deMemPool* pool = deMemPool_createRoot(DE_NULL, 0); in dePoolHash_selfTest() local 40 deTestHash* hash = deTestHash_create(pool); in dePoolHash_selfTest() 115 deTestInt16Array* keyArray = deTestInt16Array_create(pool); in dePoolHash_selfTest() 116 deTestIntArray* valueArray = deTestIntArray_create(pool); in dePoolHash_selfTest() 147 deMemPool_destroy(pool); in dePoolHash_selfTest()
|
H A D | dePoolHashSet.c | 21 * \brief Memory pool hash-set class. 33 deMemPool* pool = deMemPool_createRoot(DE_NULL, 0); in dePoolHashSet_selfTest() local 34 deTestHashSet* hashSet = deTestHashSet_create(pool); in dePoolHashSet_selfTest() 125 deTestInt16Array* keyArray = deTestInt16Array_create(pool); in dePoolHashSet_selfTest() 126 deTestIntArray* valueArray = deTestIntArray_create(pool); in dePoolHashSet_selfTest() 153 deMemPool_destroy(pool); in dePoolHashSet_selfTest()
|
/kernel/linux/linux-6.6/drivers/tee/optee/ |
H A D | ffa_abi.c | 27 * 4. Dynamic shared memory pool based on alloc_pages() 368 * 4. Dynamic shared memory pool based on alloc_pages() 370 * Implements an OP-TEE specific shared memory pool. 374 static int pool_ffa_op_alloc(struct tee_shm_pool *pool, in pool_ffa_op_alloc() argument 377 return optee_pool_op_alloc_helper(pool, shm, size, align, in pool_ffa_op_alloc() 381 static void pool_ffa_op_free(struct tee_shm_pool *pool, in pool_ffa_op_free() argument 384 optee_pool_op_free_helper(pool, shm, optee_ffa_shm_unregister); in pool_ffa_op_free() 387 static void pool_ffa_op_destroy_pool(struct tee_shm_pool *pool) in pool_ffa_op_destroy_pool() argument 389 kfree(pool); in pool_ffa_op_destroy_pool() 399 * optee_ffa_shm_pool_alloc_pages() - create page-based allocator pool 406 struct tee_shm_pool *pool = kzalloc(sizeof(*pool), GFP_KERNEL); optee_ffa_shm_pool_alloc_pages() local 791 struct tee_shm_pool *pool; optee_ffa_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/soc/fsl/qbman/ |
H A D | bman.c | 241 * This object type refers to a pool, it isn't *the* pool. There may be 242 * more than one such object per BMan buffer pool, eg. if different users of the 243 * pool are operating via different portals. 246 /* index of the buffer pool to encapsulate (0-63) */ 697 struct bman_pool *pool = NULL; in bman_new_pool() local 703 pool = kmalloc(sizeof(*pool), GFP_KERNEL); in bman_new_pool() 704 if (!pool) in bman_new_pool() 707 pool in bman_new_pool() 716 bman_free_pool(struct bman_pool *pool) bman_free_pool() argument 724 bman_get_bpid(const struct bman_pool *pool) bman_get_bpid() argument 738 bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num) bman_release() argument 786 bman_acquire(struct bman_pool *pool, struct bm_buffer *bufs, u8 num) bman_acquire() argument [all...] |
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | sram-exec.c | 38 "SRAM pool marked with 'protect-exec' is not page aligned and will not be created.\n"); in sram_check_protect_exec() 57 * @pool: struct gen_pool retrieved that is part of this sram 58 * @dst: Destination address for the copy, that must be inside pool 60 * @size: Size of copy to perform, which starting from dst, must reside in pool 81 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, in sram_exec_copy() argument 92 if (p->pool == pool) in sram_exec_copy() 100 if (!gen_pool_has_addr(pool, (unsigned long)dst, size)) in sram_exec_copy()
|
H A D | sram.h | 11 struct gen_pool *pool; member 21 struct gen_pool *pool; member 33 bool pool; member
|
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | sram-exec.c | 30 "SRAM pool marked with 'protect-exec' is not page aligned and will not be created.\n"); in sram_check_protect_exec() 49 * @pool: struct gen_pool retrieved that is part of this sram 50 * @dst: Destination address for the copy, that must be inside pool 52 * @size: Size of copy to perform, which starting from dst, must reside in pool 73 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, in sram_exec_copy() argument 84 if (p->pool == pool) in sram_exec_copy() 92 if (!gen_pool_has_addr(pool, (unsigned long)dst, size)) in sram_exec_copy()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_resource.h | 31 #define TO_DCN30_RES_POOL(pool)\ 32 container_of(pool, struct dcn30_resource_pool, base) 85 const struct resource_pool *pool, 92 const struct resource_pool *pool,
|
/third_party/skia/src/sksl/ |
H A D | SkSLPool.cpp | 28 SkDEBUGFAIL("SkSL pool is being destroyed while it is still attached to the thread"); in ~Pool() 39 auto pool = std::unique_ptr<Pool>(new Pool); in Create() local 40 pool->fMemPool = MemoryPool::Make(/*preallocSize=*/65536, /*minAllocSize=*/32768); in Create() 41 VLOG("CREATE Pool:0x%016llX\n", (uint64_t)pool->fMemPool.get()); in Create() 42 return pool; in Create() 64 // Is a pool attached? in AllocMemory() 72 // There's no pool attached. Allocate memory using the system allocator. in AllocMemory() 79 // Is a pool attached? in FreeMemory() 87 // There's no pool attached. Free it using the system allocator. in FreeMemory()
|
/kernel/linux/linux-6.6/drivers/firmware/tegra/ |
H A D | bpmp-tegra186.c | 22 struct gen_pool *pool; member 126 if (priv->rx.pool) { in tegra186_bpmp_channel_init() 186 if (priv->tx.pool) { in tegra186_bpmp_teardown_channels() 187 gen_pool_free(priv->tx.pool, (unsigned long)priv->tx.sram, 4096); in tegra186_bpmp_teardown_channels() 188 gen_pool_free(priv->rx.pool, (unsigned long)priv->rx.sram, 4096); in tegra186_bpmp_teardown_channels() 238 priv->tx.pool = of_gen_pool_get(bpmp->dev->of_node, "shmem", 0); in tegra186_bpmp_sram_init() 239 if (!priv->tx.pool) { in tegra186_bpmp_sram_init() 240 dev_err(bpmp->dev, "TX shmem pool not found\n"); in tegra186_bpmp_sram_init() 244 priv->tx.sram = (void __iomem *)gen_pool_dma_alloc(priv->tx.pool, 4096, in tegra186_bpmp_sram_init() 247 dev_err(bpmp->dev, "failed to allocate from TX pool\ in tegra186_bpmp_sram_init() [all...] |
/kernel/liteos_a/kernel/include/ |
H A D | los_trace.h | 393 #define MEM_ALLOC_PARAMS(pool, ptr, size) pool, ptr, size 394 #define MEM_ALLOC_ALIGN_PARAMS(pool, ptr, size, boundary) pool, ptr, size, boundary 395 #define MEM_REALLOC_PARAMS(pool, ptr, size) pool, ptr, size 396 #define MEM_FREE_PARAMS(pool, ptr) pool, ptr 397 #define MEM_INFO_REQ_PARAMS(pool) pool [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | map_test_util.h | 127 const DescriptorPool* pool = base_descriptor->file()->pool(); in MapReflectionTester() local 130 map_enum_foo_ = pool->FindEnumValueByName(package + ".MAP_ENUM_FOO"); in MapReflectionTester() 131 map_enum_bar_ = pool->FindEnumValueByName(package + ".MAP_ENUM_BAR"); in MapReflectionTester() 132 map_enum_baz_ = pool->FindEnumValueByName(package + ".MAP_ENUM_BAZ"); in MapReflectionTester() 134 foreign_c_ = pool->FindFieldByName(package + ".ForeignMessage.c"); in MapReflectionTester() 136 pool->FindFieldByName(package + ".TestMap.MapInt32Int32Entry.key"); in MapReflectionTester() 138 pool->FindFieldByName(package + ".TestMap.MapInt32Int32Entry.value"); in MapReflectionTester() 140 pool->FindFieldByName(package + ".TestMap.MapInt64Int64Entry.key"); in MapReflectionTester() 142 pool in MapReflectionTester() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | pci_irq.h | 32 static inline bool mlx5_irq_pool_is_sf_pool(struct mlx5_irq_pool *pool) in mlx5_irq_pool_is_sf_pool() argument 34 return !strncmp("mlx5_sf", pool->name, strlen("mlx5_sf")); in mlx5_irq_pool_is_sf_pool() 37 struct mlx5_irq *mlx5_irq_alloc(struct mlx5_irq_pool *pool, int i,
|
/third_party/libunwind/libunwind/include/ |
H A D | mempool.h | 76 pool model. A limited amount of memory is available in this 84 extern void mempool_init (struct mempool *pool, 86 extern void *mempool_alloc (struct mempool *pool); 87 extern void mempool_free (struct mempool *pool, void *object);
|