Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/openbsd-src/gnu/usr.bin/gcc/gcc/f/
H A Dmalloc.h107 mallocArea_ malloc_find_inpool_ (mallocPool pool, void *ptr);
109 void malloc_kill_inpool_ (mallocPool pool, mallocType_ type, void *ptr,
112 void *malloc_new_inpool_ (mallocPool pool, mallocType_ type, const char *name,
114 void *malloc_new_zinpool_ (mallocPool pool, mallocType_ type, const char *name,
122 void *malloc_resize_inpool_ (mallocPool pool, mallocType_ type, void *ptr,
124 void malloc_verify_inpool_ (mallocPool pool, mallocType_ type, void *ptr,
129 #define malloc_new_ks(pool,name,size) \ argument
130 malloc_new_inpool_ (pool,MALLOC_typeKS_,name,size)
131 #define malloc_new_ksr(pool,name,size) \ argument
132 malloc_new_inpool_ (pool,MALLOC_typeKSR_,name,size)
[all …]
H A Dmalloc.c79 static void malloc_kill_area_ (mallocPool pool, mallocArea_ a);
81 static void malloc_verify_area_ (mallocPool pool, mallocArea_ a);
99 malloc_kill_area_ (mallocPool pool UNUSED, mallocArea_ a) in malloc_kill_area_()
108 pool->freed += a->size; in malloc_kill_area_()
109 pool->frees++; in malloc_kill_area_()
124 malloc_verify_area_ (mallocPool pool UNUSED, mallocArea_ a UNUSED) in malloc_verify_area_()
272 malloc_pool_use (mallocPool pool) in malloc_pool_use() argument
274 ++pool->uses; in malloc_pool_use()
275 return pool; in malloc_pool_use()
304 malloc_find_inpool_ (mallocPool pool, void *ptr) in malloc_find_inpool_() argument
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dalloc-pool.c122 alloc_pool pool; in create_alloc_pool() local
149 pool = xmalloc (pool_size); in create_alloc_pool()
152 pool->name = /*xstrdup (name)*/name; in create_alloc_pool()
157 pool->elt_size = size; in create_alloc_pool()
158 pool->elts_per_block = num; in create_alloc_pool()
163 pool->block_size = (size * num) + header_size; in create_alloc_pool()
164 pool->free_list = NULL; in create_alloc_pool()
165 pool->elts_allocated = 0; in create_alloc_pool()
166 pool->elts_free = 0; in create_alloc_pool()
167 pool->blocks_allocated = 0; in create_alloc_pool()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce80/
H A Ddce80_resource.c804 static void dce80_resource_destruct(struct dce110_resource_pool *pool) in dce80_resource_destruct() argument
808 for (i = 0; i < pool->base.pipe_count; i++) { in dce80_resource_destruct()
809 if (pool->base.opps[i] != NULL) in dce80_resource_destruct()
810 dce110_opp_destroy(&pool->base.opps[i]); in dce80_resource_destruct()
812 if (pool->base.transforms[i] != NULL) in dce80_resource_destruct()
813 dce80_transform_destroy(&pool->base.transforms[i]); in dce80_resource_destruct()
815 if (pool->base.ipps[i] != NULL) in dce80_resource_destruct()
816 dce_ipp_destroy(&pool->base.ipps[i]); in dce80_resource_destruct()
818 if (pool->base.mis[i] != NULL) { in dce80_resource_destruct()
819 kfree(TO_DCE_MEM_INPUT(pool->base.mis[i])); in dce80_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce60/
H A Ddce60_resource.c797 static void dce60_resource_destruct(struct dce110_resource_pool *pool) in dce60_resource_destruct() argument
801 for (i = 0; i < pool->base.pipe_count; i++) { in dce60_resource_destruct()
802 if (pool->base.opps[i] != NULL) in dce60_resource_destruct()
803 dce110_opp_destroy(&pool->base.opps[i]); in dce60_resource_destruct()
805 if (pool->base.transforms[i] != NULL) in dce60_resource_destruct()
806 dce60_transform_destroy(&pool->base.transforms[i]); in dce60_resource_destruct()
808 if (pool->base.ipps[i] != NULL) in dce60_resource_destruct()
809 dce_ipp_destroy(&pool->base.ipps[i]); in dce60_resource_destruct()
811 if (pool->base.mis[i] != NULL) { in dce60_resource_destruct()
812 kfree(TO_DCE_MEM_INPUT(pool->base.mis[i])); in dce60_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dintel_gt_buffer_pool.c14 bucket_for_size(struct intel_gt_buffer_pool *pool, size_t sz) in bucket_for_size() argument
24 if (n >= ARRAY_SIZE(pool->cache_list)) in bucket_for_size()
25 n = ARRAY_SIZE(pool->cache_list) - 1; in bucket_for_size()
27 return &pool->cache_list[n]; in bucket_for_size()
37 static bool pool_free_older_than(struct intel_gt_buffer_pool *pool, long keep) in pool_free_older_than() argument
44 for (n = 0; n < ARRAY_SIZE(pool->cache_list); n++) { in pool_free_older_than()
45 struct list_head *list = &pool->cache_list[n]; in pool_free_older_than()
50 if (spin_trylock_irq(&pool->lock)) { in pool_free_older_than()
73 spin_unlock_irq(&pool->lock); in pool_free_older_than()
89 struct intel_gt_buffer_pool *pool = in pool_free_work() local
[all …]
/openbsd-src/sys/dev/pci/drm/ttm/tests/
H A Dttm_pool_test.c79 struct ttm_pool *pool; in ttm_pool_pre_populated() local
87 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_pre_populated()
88 KUNIT_ASSERT_NOT_NULL(test, pool); in ttm_pool_pre_populated()
90 ttm_pool_init(pool, devs->dev, NUMA_NO_NODE, true, false); in ttm_pool_pre_populated()
92 err = ttm_pool_alloc(pool, tt, &simple_ctx); in ttm_pool_pre_populated()
95 ttm_pool_free(pool, tt); in ttm_pool_pre_populated()
98 return pool; in ttm_pool_pre_populated()
141 struct ttm_pool *pool; in ttm_pool_alloc_basic() local
151 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_alloc_basic()
152 KUNIT_ASSERT_NOT_NULL(test, pool); in ttm_pool_alloc_basic()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn302/
H A Ddcn302_resource.c705 static bool dcn302_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) in dcn302_dwbc_create() argument
708 uint32_t pipe_count = pool->res_cap->num_dwb; in dcn302_dwbc_create()
720 pool->dwbc[i] = &dwbc30->base; in dcn302_dwbc_create()
740 static bool dcn302_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) in dcn302_mmhubbub_create() argument
743 uint32_t pipe_count = pool->res_cap->num_dwb; in dcn302_mmhubbub_create()
755 pool->mcif_wb[i] = &mcif_wb30->base; in dcn302_mmhubbub_create()
951 static bool init_soc_bounding_box(struct dc *dc, struct resource_pool *pool) in init_soc_bounding_box() argument
963 loaded_ip->max_num_otg = pool->pipe_count; in init_soc_bounding_box()
964 loaded_ip->max_num_dpp = pool->pipe_count; in init_soc_bounding_box()
985 static void dcn302_resource_destruct(struct resource_pool *pool) in dcn302_resource_destruct() argument
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn303/
H A Ddcn303_resource.c648 static bool dcn303_dwbc_create(struct dc_context *ctx, struct resource_pool *pool) in dcn303_dwbc_create() argument
651 uint32_t pipe_count = pool->res_cap->num_dwb; in dcn303_dwbc_create()
663 pool->dwbc[i] = &dwbc30->base; in dcn303_dwbc_create()
683 static bool dcn303_mmhubbub_create(struct dc_context *ctx, struct resource_pool *pool) in dcn303_mmhubbub_create() argument
686 uint32_t pipe_count = pool->res_cap->num_dwb; in dcn303_mmhubbub_create()
698 pool->mcif_wb[i] = &mcif_wb30->base; in dcn303_mmhubbub_create()
878 static bool init_soc_bounding_box(struct dc *dc, struct resource_pool *pool) in init_soc_bounding_box() argument
890 loaded_ip->max_num_otg = pool->pipe_count; in init_soc_bounding_box()
891 loaded_ip->max_num_dpp = pool->pipe_count; in init_soc_bounding_box()
911 static void dcn303_resource_destruct(struct resource_pool *pool) in dcn303_resource_destruct() argument
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce100/
H A Ddce100_resource.c756 static void dce100_resource_destruct(struct dce110_resource_pool *pool) in dce100_resource_destruct() argument
760 for (i = 0; i < pool->base.pipe_count; i++) { in dce100_resource_destruct()
761 if (pool->base.opps[i] != NULL) in dce100_resource_destruct()
762 dce110_opp_destroy(&pool->base.opps[i]); in dce100_resource_destruct()
764 if (pool->base.transforms[i] != NULL) in dce100_resource_destruct()
765 dce100_transform_destroy(&pool->base.transforms[i]); in dce100_resource_destruct()
767 if (pool->base.ipps[i] != NULL) in dce100_resource_destruct()
768 dce_ipp_destroy(&pool->base.ipps[i]); in dce100_resource_destruct()
770 if (pool->base.mis[i] != NULL) { in dce100_resource_destruct()
771 kfree(TO_DCE_MEM_INPUT(pool->base.mis[i])); in dce100_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn301/
H A Ddcn301_resource.c92 #define TO_DCN301_RES_POOL(pool)\ argument
93 container_of(pool, struct dcn301_resource_pool, base)
1033 static void dcn301_destruct(struct dcn301_resource_pool *pool) in dcn301_destruct() argument
1037 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn301_destruct()
1038 if (pool->base.stream_enc[i] != NULL) { in dcn301_destruct()
1039 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn301_destruct()
1040 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn301_destruct()
1041 pool->base.stream_enc[i]->vpg = NULL; in dcn301_destruct()
1043 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct()
1044 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn316/
H A Ddcn316_resource.c1341 static void dcn316_resource_destruct(struct dcn316_resource_pool *pool) in dcn316_resource_destruct()
1345 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn316_resource_destruct()
1346 if (pool->base.stream_enc[i] != NULL) { in dcn316_resource_destruct()
1347 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn316_resource_destruct()
1348 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn316_resource_destruct()
1349 pool->base.stream_enc[i]->vpg = NULL; in dcn316_resource_destruct()
1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct()
1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct()
1353 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct()
1355 kfree(DCN10STRENC_FROM_STRENC(pool in dcn316_resource_destruct()
1339 dcn316_resource_destruct(struct dcn316_resource_pool * pool) dcn316_resource_destruct() argument
1505 dcn31_dwbc_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_dwbc_create() argument
1530 dcn31_mmhubbub_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_mmhubbub_create() argument
1570 dcn316_destroy_resource_pool(struct resource_pool ** pool) dcn316_destroy_resource_pool() argument
1725 dcn316_resource_construct(uint8_t num_virtual_links,struct dc * dc,struct dcn316_resource_pool * pool) dcn316_resource_construct() argument
2024 struct dcn316_resource_pool *pool = dcn316_create_resource_pool() local
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn21/
H A Ddcn21_resource.c679 static void dcn21_resource_destruct(struct dcn21_resource_pool *pool) in dcn21_resource_destruct() argument
683 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn21_resource_destruct()
684 if (pool->base.stream_enc[i] != NULL) { in dcn21_resource_destruct()
685 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn21_resource_destruct()
686 pool->base.stream_enc[i] = NULL; in dcn21_resource_destruct()
690 for (i = 0; i < pool->base.res_cap->num_dsc; i++) { in dcn21_resource_destruct()
691 if (pool->base.dscs[i] != NULL) in dcn21_resource_destruct()
692 dcn20_dsc_destroy(&pool->base.dscs[i]); in dcn21_resource_destruct()
695 if (pool->base.mpc != NULL) { in dcn21_resource_destruct()
696 kfree(TO_DCN20_MPC(pool->base.mpc)); in dcn21_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn10/
H A Ddcn10_resource.c907 static void dcn10_resource_destruct(struct dcn10_resource_pool *pool) in dcn10_resource_destruct() argument
911 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn10_resource_destruct()
912 if (pool->base.stream_enc[i] != NULL) { in dcn10_resource_destruct()
913 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn10_resource_destruct()
914 pool->base.stream_enc[i] = NULL; in dcn10_resource_destruct()
918 if (pool->base.mpc != NULL) { in dcn10_resource_destruct()
919 kfree(TO_DCN10_MPC(pool->base.mpc)); in dcn10_resource_destruct()
920 pool->base.mpc = NULL; in dcn10_resource_destruct()
923 kfree(pool->base.hubbub); in dcn10_resource_destruct()
924 pool->base.hubbub = NULL; in dcn10_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn314/
H A Ddcn314_resource.c1416 static void dcn314_resource_destruct(struct dcn314_resource_pool *pool) in dcn314_resource_destruct()
1420 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn314_resource_destruct()
1421 if (pool->base.stream_enc[i] != NULL) { in dcn314_resource_destruct()
1422 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn314_resource_destruct()
1423 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn314_resource_destruct()
1424 pool->base.stream_enc[i]->vpg = NULL; in dcn314_resource_destruct()
1426 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct()
1427 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct()
1428 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct()
1430 kfree(DCN10STRENC_FROM_STRENC(pool in dcn314_resource_destruct()
1414 dcn314_resource_destruct(struct dcn314_resource_pool * pool) dcn314_resource_destruct() argument
1582 dcn31_dwbc_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_dwbc_create() argument
1607 dcn31_mmhubbub_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_mmhubbub_create() argument
1647 dcn314_destroy_resource_pool(struct resource_pool ** pool) dcn314_destroy_resource_pool() argument
1840 dcn314_resource_construct(uint8_t num_virtual_links,struct dc * dc,struct dcn314_resource_pool * pool) dcn314_resource_construct() argument
2162 struct dcn314_resource_pool *pool = dcn314_create_resource_pool() local
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn321/
H A Ddcn321_resource.c1329 static void dcn321_resource_destruct(struct dcn321_resource_pool *pool) in dcn321_resource_destruct()
1333 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn321_resource_destruct()
1334 if (pool->base.stream_enc[i] != NULL) { in dcn321_resource_destruct()
1335 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn321_resource_destruct()
1336 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn321_resource_destruct()
1337 pool->base.stream_enc[i]->vpg = NULL; in dcn321_resource_destruct()
1339 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct()
1340 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct()
1341 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct()
1343 kfree(DCN10STRENC_FROM_STRENC(pool in dcn321_resource_destruct()
1327 dcn321_resource_destruct(struct dcn321_resource_pool * pool) dcn321_resource_destruct() argument
1480 dcn321_dwbc_create(struct dc_context * ctx,struct resource_pool * pool) dcn321_dwbc_create() argument
1509 dcn321_mmhubbub_create(struct dc_context * ctx,struct resource_pool * pool) dcn321_mmhubbub_create() argument
1563 dcn321_destroy_resource_pool(struct resource_pool ** pool) dcn321_destroy_resource_pool() argument
1622 dcn321_resource_construct(uint8_t num_virtual_links,struct dc * dc,struct dcn321_resource_pool * pool) dcn321_resource_construct() argument
2003 struct dcn321_resource_pool *pool = dcn321_create_resource_pool() local
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn201/
H A Ddcn201_resource.c906 static void dcn201_resource_destruct(struct dcn201_resource_pool *pool) in dcn201_resource_destruct() argument
910 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn201_resource_destruct()
911 if (pool->base.stream_enc[i] != NULL) { in dcn201_resource_destruct()
912 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn201_resource_destruct()
913 pool->base.stream_enc[i] = NULL; in dcn201_resource_destruct()
918 if (pool->base.mpc != NULL) { in dcn201_resource_destruct()
919 kfree(TO_DCN201_MPC(pool->base.mpc)); in dcn201_resource_destruct()
920 pool->base.mpc = NULL; in dcn201_resource_destruct()
923 if (pool->base.hubbub != NULL) { in dcn201_resource_destruct()
924 kfree(pool->base.hubbub); in dcn201_resource_destruct()
[all …]
/openbsd-src/sys/sys/
H A Dpool.h1 /* $OpenBSD: pool.h,v 1.80 2025/01/04 09:26:01 mvs Exp $ */
2 /* $NetBSD: pool.h,v 1.27 2001/06/06 22:00:17 rafal Exp $ */
39 * kern.pool.npools
40 * kern.pool.name.<number>
41 * kern.pool.pool.<number>
46 #define KERN_POOL_CACHE 4 /* global pool cache info */
50 unsigned int pr_size; /* size of a pool item */
60 unsigned int pr_nitems; /* # items in the pool */
67 unsigned int pr_hiwat; /* max # of pages in pool */
151 struct pool { global() struct
152 pr_lockpool global() argument
155 pr_lock_opspool global() argument
172 pr_nitemspool global() argument
176 pr_serialpool global() argument
179 pr_pgmaskpool global() argument
192 pr_iplpool global() argument
197 pr_cache_lockpool global() argument
221 pr_hardlimit_warning_lastpool global() argument
223 pr_requests_lockpool global() argument
236 pr_hiwatpool global() argument
253 pr_crangepool global() argument
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn315/
H A Ddcn315_resource.c1343 static void dcn315_resource_destruct(struct dcn315_resource_pool *pool) in dcn315_resource_destruct()
1347 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn315_resource_destruct()
1348 if (pool->base.stream_enc[i] != NULL) { in dcn315_resource_destruct()
1349 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn315_resource_destruct()
1350 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn315_resource_destruct()
1351 pool->base.stream_enc[i]->vpg = NULL; in dcn315_resource_destruct()
1353 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct()
1354 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct()
1355 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct()
1357 kfree(DCN10STRENC_FROM_STRENC(pool in dcn315_resource_destruct()
1341 dcn315_resource_destruct(struct dcn315_resource_pool * pool) dcn315_resource_destruct() argument
1507 dcn31_dwbc_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_dwbc_create() argument
1532 dcn31_mmhubbub_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_mmhubbub_create() argument
1572 dcn315_destroy_resource_pool(struct resource_pool ** pool) dcn315_destroy_resource_pool() argument
1838 dcn315_resource_construct(uint8_t num_virtual_links,struct dc * dc,struct dcn315_resource_pool * pool) dcn315_resource_construct() argument
2137 struct dcn315_resource_pool *pool = dcn315_create_resource_pool() local
[all...]
/openbsd-src/sys/dev/pci/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->base.mis[i])); in dce120_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn31/
H A Ddcn31_resource.c1343 static void dcn31_resource_destruct(struct dcn31_resource_pool *pool) in dcn31_resource_destruct()
1347 for (i = 0; i < pool->base.stream_enc_count; i++) { in dcn31_resource_destruct()
1348 if (pool->base.stream_enc[i] != NULL) { in dcn31_resource_destruct()
1349 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn31_resource_destruct()
1350 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn31_resource_destruct()
1351 pool->base.stream_enc[i]->vpg = NULL; in dcn31_resource_destruct()
1353 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct()
1354 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct()
1355 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct()
1357 kfree(DCN10STRENC_FROM_STRENC(pool in dcn31_resource_destruct()
1341 dcn31_resource_destruct(struct dcn31_resource_pool * pool) dcn31_resource_destruct() argument
1510 dcn31_dwbc_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_dwbc_create() argument
1535 dcn31_mmhubbub_create(struct dc_context * ctx,struct resource_pool * pool) dcn31_mmhubbub_create() argument
1575 dcn31_destroy_resource_pool(struct resource_pool ** pool) dcn31_destroy_resource_pool() argument
1866 dcn31_resource_construct(uint8_t num_virtual_links,struct dc * dc,struct dcn31_resource_pool * pool) dcn31_resource_construct() argument
2202 struct dcn31_resource_pool *pool = dcn31_create_resource_pool() local
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce110/
H A Ddce110_resource.c812 static void dce110_resource_destruct(struct dce110_resource_pool *pool) in dce110_resource_destruct() argument
816 for (i = 0; i < pool->base.pipe_count; i++) { in dce110_resource_destruct()
817 if (pool->base.opps[i] != NULL) in dce110_resource_destruct()
818 dce110_opp_destroy(&pool->base.opps[i]); in dce110_resource_destruct()
820 if (pool->base.transforms[i] != NULL) in dce110_resource_destruct()
821 dce110_transform_destroy(&pool->base.transforms[i]); in dce110_resource_destruct()
823 if (pool->base.ipps[i] != NULL) in dce110_resource_destruct()
824 dce_ipp_destroy(&pool->base.ipps[i]); in dce110_resource_destruct()
826 if (pool->base.mis[i] != NULL) { in dce110_resource_destruct()
827 kfree(TO_DCE_MEM_INPUT(pool->base.mis[i])); in dce110_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/drm/ttm/
H A Dttm_pool.c86 static struct page *ttm_pool_alloc_page(struct ttm_pool *pool, gfp_t gfp_flags, in ttm_pool_alloc_page() argument
102 if (!pool->use_dma_alloc) { in ttm_pool_alloc_page()
103 p = alloc_pages_node(pool->nid, gfp_flags, order); in ttm_pool_alloc_page()
117 vaddr = dma_alloc_attrs(pool->dev, (1ULL << order) * PAGE_SIZE, in ttm_pool_alloc_page()
140 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching, in ttm_pool_free_page() argument
155 if (!pool || !pool->use_dma_alloc) { in ttm_pool_free_page()
165 dma_free_attrs(pool->dev, (1UL << order) * PAGE_SIZE, vaddr, dma->addr, in ttm_pool_free_page()
172 static struct vm_page *ttm_pool_alloc_page(struct ttm_pool *pool, in ttm_pool_alloc_page() argument
183 if (pool->use_dma32) { in ttm_pool_alloc_page()
232 static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching, in ttm_pool_free_page() argument
[all …]
/openbsd-src/sys/dev/pci/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->base.mis[i])); in dce112_resource_destruct()
[all …]
/openbsd-src/sys/dev/pci/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
1431 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
1467 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
1498 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
2249 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...]

12345678910>>...22