Home
last modified time | relevance | path

Searched refs:pool (Results 151 - 175 of 1459) sorted by relevance

12345678910>>...59

/third_party/skia/tests/
H A DDiscardableMemoryPoolTest.cpp16 sk_sp<SkDiscardableMemoryPool> pool(SkDiscardableMemoryPool::Make(1)); in DEF_TEST()
17 pool->setRAMBudget(3); in DEF_TEST()
18 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST()
20 std::unique_ptr<SkDiscardableMemory> dm1(pool->create(100)); in DEF_TEST()
22 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); in DEF_TEST()
24 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST()
28 std::unique_ptr<SkDiscardableMemory> dm2(pool->create(200)); in DEF_TEST()
29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); in DEF_TEST()
30 pool->setRAMBudget(400); in DEF_TEST()
32 REPORTER_ASSERT(reporter, 200 == pool in DEF_TEST()
[all...]
H A DGrMemoryPoolTest.cpp176 // prealloc and min alloc sizes for the pool in DEF_TEST()
234 AutoPoolReleaser(GrMemoryPool& pool): fPool(pool) { in AutoPoolReleaser() argument
252 // Allocates memory until pool adds a new block (pool->size() changes). in DEF_TEST()
253 auto allocateMemory = [](GrMemoryPool& pool, AutoPoolReleaser& r) { in DEF_TEST()
254 size_t origPoolSize = pool.size(); in DEF_TEST()
255 while (pool.size() == origPoolSize) { in DEF_TEST()
256 r.add(pool.allocate(31)); in DEF_TEST()
262 auto pool in DEF_TEST() local
268 auto pool = GrMemoryPool::Make(kSmallestMinAllocSize, kSmallestMinAllocSize / 2); DEF_TEST() local
278 auto pool = GrMemoryPool::Make(kPreallocSize, 0); DEF_TEST() local
285 auto pool = GrMemoryPool::Make(0, kMinAllocSize); DEF_TEST() local
300 auto pool = GrMemoryPool::Make(kSmallestMinAllocSize, kMinAllocSize); DEF_TEST() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_resource.c1341 static void dcn32_resource_destruct(struct dcn32_resource_pool *pool) in dcn32_resource_destruct() argument
1345 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn32_resource_destruct()
1346 if (pool->base.stream_enc[i] != NULL) { in dcn32_resource_destruct()
1347 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn32_resource_destruct()
1348 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn32_resource_destruct()
1349 pool->base.stream_enc[i]->vpg = NULL; in dcn32_resource_destruct()
1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn32_resource_destruct()
1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn32_resource_destruct()
1353 pool->base.stream_enc[i]->afmt = NULL; in dcn32_resource_destruct()
1355 kfree(DCN10STRENC_FROM_STRENC(pool in dcn32_resource_destruct()
1495 dcn32_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn32_dwbc_create() argument
1524 dcn32_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn32_mmhubbub_create() argument
1578 dcn32_destroy_resource_pool(struct resource_pool **pool) dcn32_destroy_resource_pool() argument
1587 dcn32_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn32_acquire_post_bldn_3dlut() argument
1609 dcn32_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn32_release_post_bldn_3dlut() argument
2069 dcn32_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn32_resource_pool *pool) dcn32_resource_construct() argument
2474 struct dcn32_resource_pool *pool = dcn32_create_resource_pool() local
2530 find_optimal_free_pipe_as_secondary_dpp_pipe( const struct resource_context *cur_res_ctx, struct resource_context *new_res_ctx, const struct resource_pool *pool, const struct pipe_ctx *new_opp_head) find_optimal_free_pipe_as_secondary_dpp_pipe() argument
2567 find_idle_secondary_pipe_check_mpo( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) find_idle_secondary_pipe_check_mpo() argument
2629 dcn32_acquire_idle_pipe_for_head_pipe_in_layer( struct dc_state *state, const struct resource_pool *pool, struct dc_stream_state *stream, const struct pipe_ctx *head_pipe) dcn32_acquire_idle_pipe_for_head_pipe_in_layer() argument
2672 dcn32_acquire_free_pipe_as_secondary_dpp_pipe( const struct dc_state *cur_ctx, struct dc_state *new_ctx, const struct resource_pool *pool, const struct pipe_ctx *opp_head_pipe) dcn32_acquire_free_pipe_as_secondary_dpp_pipe() argument
[all...]
/foundation/communication/dhcp/test/fuzztest/dhcpaddresspool_fuzzer/
H A Ddhcpaddresspool_fuzzer.cpp42 DhcpAddressPool pool; in DhcpAddressPoolFuzzTest() local
43 strncpy_s(pool.ifname, IFACE_NAME_SIZE, "*", IFACE_NAME_SIZE - 1); in DhcpAddressPoolFuzzTest()
44 pool.netmask = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
45 pool.serverId = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
46 pool.gateway = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
47 pool.leaseTime = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
48 pool.renewalTime = static_cast<uint32_t>(data[0]); in DhcpAddressPoolFuzzTest()
57 InitAddressPool(&pool, ifname, &options); in DhcpAddressPoolFuzzTest()
58 FreeAddressPool(&pool); in DhcpAddressPoolFuzzTest()
59 IsReservedIp(&pool, ipAd in DhcpAddressPoolFuzzTest()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dmempool.h3 * memory buffer pool support
28 static inline bool mempool_initialized(mempool_t *pool) in mempool_initialized() argument
30 return pool->elements != NULL; in mempool_initialized()
33 static inline bool mempool_is_saturated(mempool_t *pool) in mempool_is_saturated() argument
35 return READ_ONCE(pool->curr_nr) >= pool->min_nr; in mempool_is_saturated()
38 void mempool_exit(mempool_t *pool);
39 int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
42 int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
51 extern int mempool_resize(mempool_t *pool, in
65 mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc) mempool_init_slab_pool() argument
85 mempool_init_kmalloc_pool(mempool_t *pool, int min_nr, size_t size) mempool_init_kmalloc_pool() argument
104 mempool_init_page_pool(mempool_t *pool, int min_nr, int order) mempool_init_page_pool() argument
[all...]
/kernel/linux/linux-6.6/drivers/tee/
H A Dtee_shm_pool.c12 static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_gen_alloc() argument
16 struct gen_pool *genpool = pool->private_data; in pool_op_gen_alloc()
30 * This is from a static shared memory pool so no need to register in pool_op_gen_alloc()
37 static void pool_op_gen_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_gen_free() argument
39 gen_pool_free(pool->private_data, (unsigned long)shm->kaddr, in pool_op_gen_free()
44 static void pool_op_gen_destroy_pool(struct tee_shm_pool *pool) in pool_op_gen_destroy_pool() argument
46 gen_pool_destroy(pool->private_data); in pool_op_gen_destroy_pool()
47 kfree(pool); in pool_op_gen_destroy_pool()
61 struct tee_shm_pool *pool; in tee_shm_pool_alloc_res_mem() local
68 pool in tee_shm_pool_alloc_res_mem()
[all...]
/third_party/node/deps/openssl/openssl/include/crypto/
H A Drand_pool.h23 * function chooses more modest values as default pool length, bounded
63 * The 'random pool' acts as a dumb container for collecting random
65 * the random pool, 2) pass it to the polling callbacks, 3) seed the RNG, and
66 * 4) cleanup the random pool again.
68 * The random pool contains no locking mechanism because its scope and
72 unsigned char *buffer; /* points to the beginning of the random pool */
73 size_t len; /* current number of random bytes contained in the pool */
75 int attached; /* true pool was attached to existing buffer */
89 void ossl_rand_pool_free(RAND_POOL *pool);
91 const unsigned char *ossl_rand_pool_buffer(RAND_POOL *pool);
[all...]
/third_party/openssl/include/crypto/
H A Drand_pool.h23 * function chooses more modest values as default pool length, bounded
63 * The 'random pool' acts as a dumb container for collecting random
65 * the random pool, 2) pass it to the polling callbacks, 3) seed the RNG, and
66 * 4) cleanup the random pool again.
68 * The random pool contains no locking mechanism because its scope and
72 unsigned char *buffer; /* points to the beginning of the random pool */
73 size_t len; /* current number of random bytes contained in the pool */
75 int attached; /* true pool was attached to existing buffer */
89 void ossl_rand_pool_free(RAND_POOL *pool);
91 const unsigned char *ossl_rand_pool_buffer(RAND_POOL *pool);
[all...]
/kernel/linux/linux-6.6/kernel/dma/
H A Dswiotlb.c145 * Adjust the default number of areas in a memory pool.
146 * The default size of the memory pool may also change to meet minimum area
165 * limit_nareas() - get the maximum number of areas for a given memory pool size
167 * @nslots: Total number of slots in the memory pool.
170 * a memory pool of the given size.
298 * add_mem_pool() - add a memory pool to the allocator
300 * @pool: Memory pool to be added.
302 static void add_mem_pool(struct io_tlb_mem *mem, struct io_tlb_pool *pool) in add_mem_pool() argument
306 list_add_rcu(&pool in add_mem_pool()
683 struct io_tlb_pool *pool; swiotlb_alloc_pool() local
734 struct io_tlb_pool *pool; swiotlb_dyn_alloc() local
752 struct io_tlb_pool *pool = container_of(rcu, struct io_tlb_pool, rcu); swiotlb_dyn_free() local
774 struct io_tlb_pool *pool; swiotlb_find_pool() local
797 swiotlb_del_pool(struct device *dev, struct io_tlb_pool *pool) swiotlb_del_pool() argument
975 swiotlb_area_find_slots(struct device *dev, struct io_tlb_pool *pool, int area_index, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask) swiotlb_area_find_slots() argument
1083 swiotlb_pool_find_slots(struct device *dev, struct io_tlb_pool *pool, phys_addr_t orig_addr, size_t alloc_size, unsigned int alloc_align_mask) swiotlb_pool_find_slots() argument
1123 struct io_tlb_pool *pool; swiotlb_find_slots() local
1228 mem_pool_used(struct io_tlb_pool *pool) mem_pool_used() argument
1250 struct io_tlb_pool *pool; mem_used() local
1273 struct io_tlb_pool *pool; swiotlb_tbl_map_single() local
1385 struct io_tlb_pool *pool; swiotlb_del_transient() local
1607 struct io_tlb_pool *pool; swiotlb_alloc() local
1655 struct io_tlb_pool *pool; rmem_swiotlb_device_init() local
[all...]
H A Dpool.c26 /* Dynamic background expansion when the atomic pool is near capacity */
79 static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, in atomic_pool_expand() argument
120 ret = gen_pool_add_virt(pool, (unsigned long)addr, page_to_phys(page), in atomic_pool_expand()
145 static void atomic_pool_resize(struct gen_pool *pool, gfp_t gfp) in atomic_pool_resize() argument
147 if (pool && gen_pool_avail(pool) < atomic_pool_size) in atomic_pool_resize()
148 atomic_pool_expand(pool, gen_pool_size(pool), gfp); in atomic_pool_resize()
165 struct gen_pool *pool; in __dma_atomic_pool_init() local
168 pool in __dma_atomic_pool_init()
240 __dma_alloc_from_pool(struct device *dev, size_t size, struct gen_pool *pool, void **cpu_addr, bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t)) __dma_alloc_from_pool() argument
269 struct gen_pool *pool = NULL; dma_alloc_from_pool() local
285 struct gen_pool *pool = NULL; dma_free_from_pool() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce112/
H A Ddce112_resource.c779 static void dce112_resource_destruct(struct dce110_resource_pool *pool) in dce112_resource_destruct() argument
783 for (i = 0; i < pool->base.pipe_count; i++) { in dce112_resource_destruct()
784 if (pool->base.opps[i] != NULL) in dce112_resource_destruct()
785 dce110_opp_destroy(&pool->base.opps[i]); in dce112_resource_destruct()
787 if (pool->base.transforms[i] != NULL) in dce112_resource_destruct()
788 dce112_transform_destroy(&pool->base.transforms[i]); in dce112_resource_destruct()
790 if (pool->base.ipps[i] != NULL) in dce112_resource_destruct()
791 dce_ipp_destroy(&pool->base.ipps[i]); in dce112_resource_destruct()
793 if (pool->base.mis[i] != NULL) { in dce112_resource_destruct()
794 kfree(TO_DCE_MEM_INPUT(pool in dce112_resource_destruct()
848 find_matching_pll( struct resource_context *res_ctx, const struct resource_pool *pool, const struct dc_stream_state *const stream) find_matching_pll() argument
1044 dce112_destroy_resource_pool(struct resource_pool **pool) dce112_destroy_resource_pool() argument
1222 dce112_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dce110_resource_pool *pool) dce112_resource_construct() argument
1416 struct dce110_resource_pool *pool = dce112_create_resource_pool() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce112/
H A Ddce112_resource.c777 static void dce112_resource_destruct(struct dce110_resource_pool *pool) in dce112_resource_destruct() argument
781 for (i = 0; i < pool->base.pipe_count; i++) { in dce112_resource_destruct()
782 if (pool->base.opps[i] != NULL) in dce112_resource_destruct()
783 dce110_opp_destroy(&pool->base.opps[i]); in dce112_resource_destruct()
785 if (pool->base.transforms[i] != NULL) in dce112_resource_destruct()
786 dce112_transform_destroy(&pool->base.transforms[i]); in dce112_resource_destruct()
788 if (pool->base.ipps[i] != NULL) in dce112_resource_destruct()
789 dce_ipp_destroy(&pool->base.ipps[i]); in dce112_resource_destruct()
791 if (pool->base.mis[i] != NULL) { in dce112_resource_destruct()
792 kfree(TO_DCE_MEM_INPUT(pool in dce112_resource_destruct()
846 find_matching_pll( struct resource_context *res_ctx, const struct resource_pool *pool, const struct dc_stream_state *const stream) find_matching_pll() argument
1044 dce112_destroy_resource_pool(struct resource_pool **pool) dce112_destroy_resource_pool() argument
1222 dce112_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dce110_resource_pool *pool) dce112_resource_construct() argument
1419 struct dce110_resource_pool *pool = dce112_create_resource_pool() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.c1085 static void dcn20_resource_destruct(struct dcn20_resource_pool *pool) in dcn20_resource_destruct() argument
1089 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn20_resource_destruct()
1090 if (pool->base.stream_enc[i] != NULL) { in dcn20_resource_destruct()
1091 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn20_resource_destruct()
1092 pool->base.stream_enc[i] = NULL; in dcn20_resource_destruct()
1096 for (i = 0; i < pool->base.res_cap->num_dsc; i++) { in dcn20_resource_destruct()
1097 if (pool->base.dscs[i] != NULL) in dcn20_resource_destruct()
1098 dcn20_dsc_destroy(&pool->base.dscs[i]); in dcn20_resource_destruct()
1101 if (pool->base.mpc != NULL) { in dcn20_resource_destruct()
1102 kfree(TO_DCN20_MPC(pool in dcn20_resource_destruct()
1315 const struct resource_pool *pool = dc->res_pool; dcn20_acquire_dsc() local
1344 dcn20_release_dsc(struct resource_context *res_ctx, const struct resource_pool *pool, struct display_stream_compressor **dsc) dcn20_release_dsc() argument
1469 const struct resource_pool *pool = dc->res_pool; dcn20_split_stream_for_odm() local
1546 dcn20_split_stream_for_mpc( struct resource_context *res_ctx, const struct resource_pool *pool, struct pipe_ctx *primary_pipe, struct pipe_ctx *secondary_pipe) dcn20_split_stream_for_mpc() argument
1693 dcn20_find_secondary_pipe(struct dc *dc, struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) dcn20_find_secondary_pipe() argument
2150 dcn20_acquire_free_pipe_for_layer( const struct dc_state *cur_ctx, struct dc_state *new_ctx, const struct resource_pool *pool, const struct pipe_ctx *opp_head) dcn20_acquire_free_pipe_for_layer() argument
2187 dcn20_destroy_resource_pool(struct resource_pool **pool) dcn20_destroy_resource_pool() argument
2230 dcn20_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn20_dwbc_create() argument
2253 dcn20_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn20_mmhubbub_create() argument
2331 init_soc_bounding_box(struct dc *dc, struct dcn20_resource_pool *pool) init_soc_bounding_box() argument
2385 dcn20_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn20_resource_pool *pool) dcn20_resource_construct() argument
2758 struct dcn20_resource_pool *pool = dcn20_create_resource_pool() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/
H A Dsgl.c49 * hisi_acc_create_sgl_pool() - Create a hw sgl pool.
50 * @dev: The device which hw sgl pool belongs to.
51 * @count: Count of hisi_acc_hw_sgl in pool.
54 * This function creates a hw sgl pool, after this user can get hw sgl memory
61 struct hisi_acc_sgl_pool *pool; in hisi_acc_create_sgl_pool() local
73 * the pool may allocate a block of memory of size PAGE_SIZE * 2^MAX_ORDER, in hisi_acc_create_sgl_pool()
86 pool = kzalloc(sizeof(*pool), GFP_KERNEL); in hisi_acc_create_sgl_pool()
87 if (!pool) in hisi_acc_create_sgl_pool()
89 block = pool in hisi_acc_create_sgl_pool()
140 hisi_acc_free_sgl_pool(struct device *dev, struct hisi_acc_sgl_pool *pool) hisi_acc_free_sgl_pool() argument
158 acc_get_sgl(struct hisi_acc_sgl_pool *pool, u32 index, dma_addr_t *hw_sgl_dma) acc_get_sgl() argument
220 hisi_acc_sg_buf_map_to_hw_sgl(struct device *dev, struct scatterlist *sgl, struct hisi_acc_sgl_pool *pool, u32 index, dma_addr_t *hw_sgl_dma) hisi_acc_sg_buf_map_to_hw_sgl() argument
[all...]
/foundation/systemabilitymgr/samgr_lite/samgr/source/
H A Dtask_manager.c70 int32 SAMGR_StartTaskPool(TaskPool *pool, const char *name) in SAMGR_StartTaskPool() argument
72 if (pool == NULL) { in SAMGR_StartTaskPool()
76 if (pool->top > 0) { in SAMGR_StartTaskPool()
80 ThreadAttr attr = {name, pool->stackSize, pool->priority, 0, 0}; in SAMGR_StartTaskPool()
81 while (pool->top < pool->size) { in SAMGR_StartTaskPool()
82 register ThreadId threadId = (ThreadId)THREAD_Create(TaskEntry, pool->queueId, &attr); in SAMGR_StartTaskPool()
84 HILOG_ERROR(HILOG_MODULE_SAMGR, "Start Task<%s, %hu, %hhu> failed!", name, pool->stackSize, pool in SAMGR_StartTaskPool()
93 SAMGR_ReleaseTaskPool(TaskPool *pool) SAMGR_ReleaseTaskPool() argument
109 SAMGR_ReferenceTaskPool(TaskPool *pool) SAMGR_ReferenceTaskPool() argument
[all...]
/foundation/multimedia/media_foundation/tests/unittest/avshared_memory_pool/
H A Davshared_memory_pool_test.cpp46 std::shared_ptr<AVSharedMemoryPool> pool = std::make_shared<AVSharedMemoryPool>("releaseMemory"); in HWTEST_F() local
48 pool->ReleaseMemory(memory); in HWTEST_F()
49 bool result = pool->DoAcquireMemory(size, &memory); in HWTEST_F()
61 std::shared_ptr<AVSharedMemoryPool> pool = std::make_shared<AVSharedMemoryPool>("doAcquireMemory"); in HWTEST_F() local
63 bool result = pool->DoAcquireMemory(size, &memory); in HWTEST_F()
74 std::shared_ptr<AVSharedMemoryPool> pool = std::make_shared<AVSharedMemoryPool>("checkSize"); in HWTEST_F() local
75 EXPECT_EQ(false, pool->CheckSize(-2)); in HWTEST_F()
76 EXPECT_EQ(false, pool->CheckSize(1)); in HWTEST_F()
77 EXPECT_TRUE(pool->CheckSize(-1)); in HWTEST_F()
89 std::shared_ptr<AVSharedMemoryPool> pool in HWTEST_F() local
[all...]
/kernel/liteos_m/kernel/include/
H A Dlos_memory.h70 * @param pool [IN] Starting address of memory.
79 extern VOID LOS_MemUsedNodeShow(VOID *pool);
92 * @param pool [IN] Starting address of memory.
102 extern UINT32 LOS_MemDeInit(VOID *pool);
113 * @retval #UINT32 The pool number.
133 * @param pool [IN] The memory pool address.
136 * @retval #OS_ERROR The memory pool is NULL or the task ID is invalid.
144 extern UINT32 LOS_MemFreeByTaskID(VOID *pool, UINT32 taskID);
159 * <li>This API is used to initialize multiple non-continuous memory regions. If the starting address of a pool i
538 VOID *pool; global() member
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/
H A Ddcn21_resource.c910 static void dcn21_resource_destruct(struct dcn21_resource_pool *pool) in dcn21_resource_destruct() argument
914 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn21_resource_destruct()
915 if (pool->base.stream_enc[i] != NULL) { in dcn21_resource_destruct()
916 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn21_resource_destruct()
917 pool->base.stream_enc[i] = NULL; in dcn21_resource_destruct()
921 for (i = 0; i < pool->base.res_cap->num_dsc; i++) { in dcn21_resource_destruct()
922 if (pool->base.dscs[i] != NULL) in dcn21_resource_destruct()
923 dcn20_dsc_destroy(&pool->base.dscs[i]); in dcn21_resource_destruct()
926 if (pool->base.mpc != NULL) { in dcn21_resource_destruct()
927 kfree(TO_DCN20_MPC(pool in dcn21_resource_destruct()
1242 dcn21_destroy_resource_pool(struct resource_pool **pool) dcn21_destroy_resource_pool() argument
1405 struct dcn21_resource_pool *pool = TO_DCN21_RES_POOL(dc->res_pool); update_bw_bounding_box() local
1794 dcn21_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn21_resource_pool *pool) dcn21_resource_construct() argument
2116 struct dcn21_resource_pool *pool = dcn21_create_resource_pool() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ipa/
H A Dgsi_trans.c88 int gsi_trans_pool_init(struct gsi_trans_pool *pool, size_t size, u32 count, in gsi_trans_pool_init() argument
102 /* By allocating a few extra entries in our pool (one less in gsi_trans_pool_init()
105 * ever worrying about straddling the end of the pool array. in gsi_trans_pool_init()
107 * we just allocate free entries from the beginning of the pool. in gsi_trans_pool_init()
113 pool->base = virt; in gsi_trans_pool_init()
115 pool->count = ksize(pool->base) / size; in gsi_trans_pool_init()
116 pool->free = 0; in gsi_trans_pool_init()
117 pool->max_alloc = max_alloc; in gsi_trans_pool_init()
118 pool in gsi_trans_pool_init()
124 gsi_trans_pool_exit(struct gsi_trans_pool *pool) gsi_trans_pool_exit() argument
136 gsi_trans_pool_init_dma(struct device *dev, struct gsi_trans_pool *pool, size_t size, u32 count, u32 max_alloc) gsi_trans_pool_init_dma() argument
178 gsi_trans_pool_exit_dma(struct device *dev, struct gsi_trans_pool *pool) gsi_trans_pool_exit_dma() argument
187 gsi_trans_pool_alloc_common(struct gsi_trans_pool *pool, u32 count) gsi_trans_pool_alloc_common() argument
206 gsi_trans_pool_alloc(struct gsi_trans_pool *pool, u32 count) gsi_trans_pool_alloc() argument
212 gsi_trans_pool_alloc_dma(struct gsi_trans_pool *pool, dma_addr_t *addr) gsi_trans_pool_alloc_dma() argument
224 gsi_trans_pool_next(struct gsi_trans_pool *pool, void *element) gsi_trans_pool_next() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce120/
H A Ddce120_resource.c604 static void dce120_resource_destruct(struct dce110_resource_pool *pool) in dce120_resource_destruct() argument
608 for (i = 0; i < pool->base.pipe_count; i++) { in dce120_resource_destruct()
609 if (pool->base.opps[i] != NULL) in dce120_resource_destruct()
610 dce110_opp_destroy(&pool->base.opps[i]); in dce120_resource_destruct()
612 if (pool->base.transforms[i] != NULL) in dce120_resource_destruct()
613 dce120_transform_destroy(&pool->base.transforms[i]); in dce120_resource_destruct()
615 if (pool->base.ipps[i] != NULL) in dce120_resource_destruct()
616 dce_ipp_destroy(&pool->base.ipps[i]); in dce120_resource_destruct()
618 if (pool->base.mis[i] != NULL) { in dce120_resource_destruct()
619 kfree(TO_DCE_MEM_INPUT(pool in dce120_resource_destruct()
902 dce120_destroy_resource_pool(struct resource_pool **pool) dce120_destroy_resource_pool() argument
1059 dce120_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dce110_resource_pool *pool) dce120_resource_construct() argument
1281 struct dce110_resource_pool *pool = dce120_create_resource_pool() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce120/
H A Ddce120_resource.c596 static void dce120_resource_destruct(struct dce110_resource_pool *pool) in dce120_resource_destruct() argument
600 for (i = 0; i < pool->base.pipe_count; i++) { in dce120_resource_destruct()
601 if (pool->base.opps[i] != NULL) in dce120_resource_destruct()
602 dce110_opp_destroy(&pool->base.opps[i]); in dce120_resource_destruct()
604 if (pool->base.transforms[i] != NULL) in dce120_resource_destruct()
605 dce120_transform_destroy(&pool->base.transforms[i]); in dce120_resource_destruct()
607 if (pool->base.ipps[i] != NULL) in dce120_resource_destruct()
608 dce_ipp_destroy(&pool->base.ipps[i]); in dce120_resource_destruct()
610 if (pool->base.mis[i] != NULL) { in dce120_resource_destruct()
611 kfree(TO_DCE_MEM_INPUT(pool in dce120_resource_destruct()
895 dce120_destroy_resource_pool(struct resource_pool **pool) dce120_destroy_resource_pool() argument
1052 dce120_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dce110_resource_pool *pool) dce120_resource_construct() argument
1276 struct dce110_resource_pool *pool = dce120_create_resource_pool() local
[all...]
/foundation/multimedia/media_foundation/test/unittest/
H A DTestBufferPool.cpp34 pool = std::make_shared<BufferPool<AVBuffer>>(DEFAULT_POOL_SIZE);
35 pool->Init();
42 std::shared_ptr<BufferPool<AVBuffer>> pool; member in OHOS::Media::Test::BufferPoolTest
47 EXPECT_EQ(DEFAULT_POOL_SIZE, pool->Size()); in HWTEST_F()
52 EXPECT_EQ(DEFAULT_POOL_SIZE, pool->Size()); in HWTEST_F()
53 auto buffPtr = pool->AllocateBuffer(); in HWTEST_F()
54 EXPECT_EQ(DEFAULT_POOL_SIZE - 1, pool->Size()); in HWTEST_F()
56 EXPECT_EQ(DEFAULT_POOL_SIZE, pool->Size()); in HWTEST_F()
61 EXPECT_EQ(DEFAULT_POOL_SIZE, pool->Size()); in HWTEST_F()
65 buffers.emplace_back(pool in HWTEST_F()
[all...]
/kernel/liteos_a/kernel/include/
H A Dlos_memory.h69 * The start address of exc interaction dynamic memory pool address, when the exc
76 * The start address of system dynamic memory pool address.
90 * @param pool [IN] Starting address of memory.
100 extern UINT32 LOS_MemDeInit(VOID *pool);
111 * @retval #UINT32 The pool number.
123 * Memory pool extern information structure
147 * 1) Be less than or equal to the Memory pool size;
151 * <li>The init area [pool, pool + size] should not conflict with other pools.</li>
154 * @param pool [I
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_resource.c1063 static void dcn30_resource_destruct(struct dcn30_resource_pool *pool) in dcn30_resource_destruct() argument
1067 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn30_resource_destruct()
1068 if (pool->base.stream_enc[i] != NULL) { in dcn30_resource_destruct()
1069 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn30_resource_destruct()
1070 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn30_resource_destruct()
1071 pool->base.stream_enc[i]->vpg = NULL; in dcn30_resource_destruct()
1073 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn30_resource_destruct()
1074 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn30_resource_destruct()
1075 pool->base.stream_enc[i]->afmt = NULL; in dcn30_resource_destruct()
1077 kfree(DCN10STRENC_FROM_STRENC(pool in dcn30_resource_destruct()
1213 dcn30_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) dcn30_dwbc_create() argument
1238 dcn30_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) dcn30_mmhubbub_create() argument
1284 dcn30_destroy_resource_pool(struct resource_pool **pool) dcn30_destroy_resource_pool() argument
1429 dcn30_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_acquire_post_bldn_3dlut() argument
1465 dcn30_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_release_post_bldn_3dlut() argument
1497 init_soc_bounding_box(struct dc *dc, struct dcn30_resource_pool *pool) init_soc_bounding_box() argument
1529 const struct resource_pool *pool = dc->res_pool; dcn30_split_stream_for_mpc_or_odm() local
2246 dcn30_resource_construct( uint8_t num_virtual_links, struct dc *dc, struct dcn30_resource_pool *pool) dcn30_resource_construct() argument
2595 struct dcn30_resource_pool *pool = dcn30_create_resource_pool() local
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A Dpool.c26 /* Dynamic background expansion when the atomic pool is near capacity */
82 static int atomic_pool_expand(struct gen_pool *pool, size_t pool_size, in atomic_pool_expand() argument
123 ret = gen_pool_add_virt(pool, (unsigned long)addr, page_to_phys(page), in atomic_pool_expand()
148 static void atomic_pool_resize(struct gen_pool *pool, gfp_t gfp) in atomic_pool_resize() argument
150 if (pool && gen_pool_avail(pool) < atomic_pool_size) in atomic_pool_resize()
151 atomic_pool_expand(pool, gen_pool_size(pool), gfp); in atomic_pool_resize()
168 struct gen_pool *pool; in __dma_atomic_pool_init() local
171 pool in __dma_atomic_pool_init()
243 __dma_alloc_from_pool(struct device *dev, size_t size, struct gen_pool *pool, void **cpu_addr, bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t)) __dma_alloc_from_pool() argument
272 struct gen_pool *pool = NULL; dma_alloc_from_pool() local
288 struct gen_pool *pool = NULL; dma_free_from_pool() local
[all...]

Completed in 19 milliseconds

12345678910>>...59