Home
last modified time | relevance | path

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

12345678910>>...22

/openbsd/gnu/usr.bin/gcc/gcc/f/
H A Dmalloc.h129 #define malloc_new_ks(pool,name,size) \ argument
131 #define malloc_new_ksr(pool,name,size) \ argument
133 #define malloc_new_kp(pool,name,size) \ argument
135 #define malloc_new_kpr(pool,name,size) \ argument
137 #define malloc_new_us(pool,name,size) \ argument
139 #define malloc_new_usr(pool,name,size) \ argument
153 #define malloc_kill_ks(pool,ptr,size) \ argument
157 #define malloc_kill_us(pool,ptr) \ argument
159 #define malloc_kill_usr(pool,ptr) \ argument
176 #define malloc_verify_us(pool,ptr) \ argument
[all …]
H A Dmalloc.c109 pool->frees++; in malloc_kill_area_()
274 ++pool->uses; in malloc_pool_use()
275 return pool; in malloc_pool_use()
310 for (a = pool->first; a != (mallocArea_) &pool->first; a = a->next) in malloc_find_inpool_()
336 if (pool == NULL) in malloc_kill_inpool_()
392 if (pool == NULL) in malloc_new_inpool_()
426 pool->allocations++; in malloc_new_inpool_()
463 if ((p == pool) || malloc_pool_find_ (pool, p)) in malloc_pool_find_()
481 if (pool == NULL) in malloc_resize_inpool_()
503 pool->resizes++; in malloc_resize_inpool_()
[all …]
/openbsd/gnu/gcc/gcc/
H A Dalloc-pool.c122 alloc_pool pool; in create_alloc_pool() local
180 return (pool); in create_alloc_pool()
192 gcc_assert (pool); in free_alloc_pool()
204 memset (pool, 0xaf, sizeof (*pool)); in free_alloc_pool()
207 free (pool); in free_alloc_pool()
214 if ((*pool)->elts_free == (*pool)->elts_allocated) in free_alloc_pool_if_empty()
217 *pool = NULL; in free_alloc_pool_if_empty()
233 gcc_assert (pool); in pool_alloc()
268 pool->elts_allocated += pool->elts_per_block; in pool_alloc()
269 pool->elts_free += pool->elts_per_block; in pool_alloc()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce80/
H A Ddce80_resource.c934 *pool = NULL; in dce80_destroy_resource_pool()
1045 if (!pool->base.irqs) in dce80_construct()
1139 if (!pool) in dce80_create_resource_pool()
1143 return &pool->base; in dce80_create_resource_pool()
1145 kfree(pool); in dce80_create_resource_pool()
1245 if (!pool->base.irqs) in dce81_construct()
1339 if (!pool) in dce81_create_resource_pool()
1343 return &pool->base; in dce81_create_resource_pool()
1345 kfree(pool); in dce81_create_resource_pool()
1536 if (!pool) in dce83_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce60/
H A Ddce60_resource.c927 *pool = NULL; in dce60_destroy_resource_pool()
1031 if (!pool->base.irqs) in dce60_construct()
1125 if (!pool) in dce60_create_resource_pool()
1129 return &pool->base; in dce60_create_resource_pool()
1131 kfree(pool); in dce60_create_resource_pool()
1323 if (!pool) in dce61_create_resource_pool()
1327 return &pool->base; in dce61_create_resource_pool()
1329 kfree(pool); in dce61_create_resource_pool()
1517 if (!pool) in dce64_create_resource_pool()
1521 return &pool->base; in dce64_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/i915/gt/
H A Dintel_gt_buffer_pool.c24 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()
73 spin_unlock_irq(&pool->lock); in pool_free_older_than()
89 struct intel_gt_buffer_pool *pool = in pool_free_work() local
93 if (pool_free_older_than(pool, HZ)) in pool_free_work()
102 struct intel_gt_buffer_pool *pool = node->pool; in pool_retire() local
152 node->pool = pool; in node_create()
197 spin_lock_irq(&pool->lock); in intel_gt_get_buffer_pool()
199 spin_unlock_irq(&pool->lock); in intel_gt_get_buffer_pool()
[all …]
/openbsd/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()
98 return pool; in ttm_pool_pre_populated()
151 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_alloc_basic()
193 ttm_pool_fini(pool); in ttm_pool_alloc_basic()
219 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_alloc_basic_dma_addr()
236 ttm_pool_fini(pool); in ttm_pool_alloc_basic_dma_addr()
264 ttm_pool_fini(pool); in ttm_pool_alloc_order_caching_match()
298 ttm_pool_fini(pool); in ttm_pool_alloc_caching_mismatch()
349 pool = kunit_kzalloc(test, sizeof(*pool), GFP_KERNEL); in ttm_pool_free_dma_alloc()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn302/
H A Ddcn302_resource.c1011 pool->mpc = NULL; in dcn302_resource_destruct()
1049 pool->opps[i]->funcs->opp_destroy(&pool->opps[i]); in dcn302_resource_destruct()
1115 kfree(*pool); in dcn302_destroy_resource_pool()
1116 *pool = NULL; in dcn302_destroy_resource_pool()
1213 pool->pipe_count = pool->res_cap->num_timing_generator; in dcn302_resource_construct()
1214 pool->mpcc_count = pool->res_cap->num_timing_generator; in dcn302_resource_construct()
1354 if (!pool->irqs) in dcn302_resource_construct()
1420 pool->mpc = dcn302_mpc_create(ctx, pool->mpcc_count, pool->res_cap->num_mpc_3dlut); in dcn302_resource_construct()
1505 if (!pool) in dcn302_create_resource_pool()
1509 return pool; in dcn302_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn303/
H A Ddcn303_resource.c937 pool->mpc = NULL; in dcn303_resource_destruct()
975 pool->opps[i]->funcs->opp_destroy(&pool->opps[i]); in dcn303_resource_destruct()
1041 kfree(*pool); in dcn303_destroy_resource_pool()
1042 *pool = NULL; in dcn303_destroy_resource_pool()
1136 pool->pipe_count = pool->res_cap->num_timing_generator; in dcn303_resource_construct()
1137 pool->mpcc_count = pool->res_cap->num_timing_generator; in dcn303_resource_construct()
1266 if (!pool->irqs) in dcn303_resource_construct()
1332 pool->mpc = dcn303_mpc_create(ctx, pool->mpcc_count, pool->res_cap->num_mpc_3dlut); in dcn303_resource_construct()
1417 if (!pool) in dcn303_create_resource_pool()
1421 return pool; in dcn303_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce100/
H A Ddce100_resource.c772 pool->base.mis[i] = NULL; in dce100_resource_destruct()
812 if (pool->base.abm != NULL) in dce100_resource_destruct()
815 if (pool->base.dmcu != NULL) in dce100_resource_destruct()
818 if (pool->base.irqs != NULL) in dce100_resource_destruct()
918 *pool = NULL; in dce100_destroy_resource_pool()
941 pool->stream_enc[i]) { in dce100_find_first_free_match_stream_enc_for_link()
1060 if (!pool->base.irqs) in dce100_resource_construct()
1069 pool->base.timing_generator_count = pool->base.res_cap->num_timing_generator; in dce100_resource_construct()
1169 if (!pool) in dce100_create_resource_pool()
1173 return &pool->base; in dce100_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn301/
H A Ddcn301_resource.c1070 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn301_destruct()
1097 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn301_destruct()
1244 *pool = NULL; in dcn301_destroy_resource_pool()
1420 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn301_resource_construct()
1421 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn301_resource_construct()
1562 if (!pool->base.irqs) in dcn301_resource_construct()
1636 pool->base.mpc = dcn301_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn301_resource_construct()
1703 dcn301_destruct(pool); in dcn301_resource_construct()
1715 if (!pool) in dcn301_create_resource_pool()
1719 return &pool->base; in dcn301_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn316/
H A Ddcn316_resource.c1387 pool->base.mpc = NULL; in dcn316_resource_destruct()
1398 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn316_resource_destruct()
1425 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn316_resource_destruct()
1576 *pool = NULL; in dcn316_destroy_resource_pool()
1741 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn316_resource_construct()
1742 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn316_resource_construct()
1873 if (!pool->base.irqs) in dcn316_resource_construct()
1946 pool->base.mpc = dcn31_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn316_resource_construct()
2027 if (!pool) in dcn316_create_resource_pool()
2031 return &pool->base; in dcn316_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn21/
H A Ddcn21_resource.c697 pool->base.mpc = NULL; in dcn21_resource_destruct()
700 kfree(pool->base.hubbub); in dcn21_resource_destruct()
701 pool->base.hubbub = NULL; in dcn21_resource_destruct()
708 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn21_resource_destruct()
735 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn21_resource_destruct()
968 *pool = NULL; in dcn21_destroy_resource_pool()
1428 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn21_resource_construct()
1587 if (!pool->base.irqs) in dcn21_resource_construct()
1726 if (!pool) in dcn21_create_resource_pool()
1730 return &pool->base; in dcn21_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn10/
H A Ddcn10_resource.c920 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()
928 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn10_resource_destruct()
934 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn10_resource_destruct()
1133 *pool = NULL; in dcn10_destroy_resource_pool()
1338 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn10_resource_construct()
1549 if (!pool->base.irqs) in dcn10_resource_construct()
1676 if (!pool) in dcn10_create_resource_pool()
1680 return &pool->base; in dcn10_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn314/
H A Ddcn314_resource.c1462 pool->base.mpc = NULL; in dcn314_resource_destruct()
1473 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn314_resource_destruct()
1499 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn314_resource_destruct()
1653 *pool = NULL; in dcn314_destroy_resource_pool()
1855 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn314_resource_construct()
1856 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn314_resource_construct()
2000 if (!pool->base.irqs) in dcn314_resource_construct()
2081 pool->base.mpc = dcn31_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn314_resource_construct()
2165 if (!pool) in dcn314_create_resource_pool()
2169 return &pool->base; in dcn314_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn321/
H A Ddcn321_resource.c1375 pool->base.mpc = NULL; in dcn321_resource_destruct()
1379 pool->base.hubbub = NULL; in dcn321_resource_destruct()
1386 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn321_resource_destruct()
1412 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn321_resource_destruct()
1434 if (pool->base.audios[i]) in dcn321_resource_destruct()
1569 *pool = NULL; in dcn321_destroy_resource_pool()
1839 if (!pool->base.irqs) in dcn321_resource_construct()
1914pool->base.mpc = dcn321_mpc_create(ctx, pool->base.res_cap->num_timing_generator, pool->base.res_… in dcn321_resource_construct()
2006 if (!pool) in dcn321_create_resource_pool()
2010 return &pool->base; in dcn321_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn201/
H A Ddcn201_resource.c920 pool->base.mpc = NULL; in dcn201_resource_destruct()
924 kfree(pool->base.hubbub); in dcn201_resource_destruct()
925 pool->base.hubbub = NULL; in dcn201_resource_destruct()
933 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn201_resource_destruct()
947 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn201_resource_destruct()
1048 *pool = NULL; in dcn201_destroy_resource_pool()
1193 if (!pool->base.irqs) in dcn201_resource_construct()
1257 pool->base.mpc = dcn201_mpc_create(ctx, pool->base.mpcc_count); in dcn201_resource_construct()
1298 if (!pool) in dcn201_create_resource_pool()
1302 return &pool->base; in dcn201_create_resource_pool()
[all …]
/openbsd/sys/sys/
H A Dpool.h103 struct pool;
151 struct pool { struct
155 SIMPLEQ_ENTRY(pool) argument
260 void pool_cache_init(struct pool *);
261 void pool_destroy(struct pool *);
262 void pool_setlowat(struct pool *, int);
263 void pool_sethiwat(struct pool *, int);
273 void pool_put(struct pool *, void *);
274 void pool_wakeup(struct pool *);
275 int pool_reclaim(struct pool *);
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn315/
H A Ddcn315_resource.c1389 pool->base.mpc = NULL; in dcn315_resource_destruct()
1400 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn315_resource_destruct()
1427 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn315_resource_destruct()
1578 *pool = NULL; in dcn315_destroy_resource_pool()
1854 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn315_resource_construct()
1855 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn315_resource_construct()
1986 if (!pool->base.irqs) in dcn315_resource_construct()
2059 pool->base.mpc = dcn31_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn315_resource_construct()
2140 if (!pool) in dcn315_create_resource_pool()
2144 return &pool->base; in dcn315_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce120/
H A Ddce120_resource.c612 pool->base.mis[i] = NULL; in dce120_resource_destruct()
639 if (pool->base.audios[i]) in dce120_resource_destruct()
657 if (pool->base.abm != NULL) in dce120_resource_destruct()
660 if (pool->base.dmcu != NULL) in dce120_resource_destruct()
901 *pool = NULL; in dce120_destroy_resource_pool()
1072 pool->base.timing_generator_count = pool->base.res_cap->num_timing_generator; in dce120_resource_construct()
1151 if (!pool->base.irqs) in dce120_resource_construct()
1236 pool->base.pipe_count = j; in dce120_resource_construct()
1279 if (!pool) in dce120_create_resource_pool()
1283 return &pool->base; in dce120_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn31/
H A Ddcn31_resource.c1389 pool->base.mpc = NULL; in dcn31_resource_destruct()
1400 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn31_resource_destruct()
1427 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn31_resource_destruct()
1581 *pool = NULL; in dcn31_destroy_resource_pool()
1882 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn31_resource_construct()
1883 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn31_resource_construct()
2034 if (!pool->base.irqs) in dcn31_resource_construct()
2115 pool->base.mpc = dcn31_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn31_resource_construct()
2205 if (!pool) in dcn31_create_resource_pool()
2209 return &pool->base; in dcn31_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce110/
H A Ddce110_resource.c1196 *pool = NULL; in dce110_destroy_resource_pool()
1269 pool->opps[pool->pipe_count] = &dce110_oppv->base; in underlay_create()
1270 pool->timing_generators[pool->pipe_count] = &dce110_tgv->base; in underlay_create()
1271 pool->mis[pool->pipe_count] = &dce110_miv->base; in underlay_create()
1272 pool->transforms[pool->pipe_count] = &dce110_xfmv->base; in underlay_create()
1273 pool->pipe_count++; in underlay_create()
1367 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dce110_resource_construct()
1368 pool->base.underlay_pipe_index = pool->base.pipe_count; in dce110_resource_construct()
1542 if (!pool) in dce110_create_resource_pool()
1546 return &pool->base; in dce110_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/ttm/
H A Dttm_pool.c102 if (!pool->use_dma_alloc) { in ttm_pool_alloc_page()
155 if (!pool || !pool->use_dma_alloc) { in ttm_pool_free_page()
183 if (pool->use_dma32) { in ttm_pool_alloc_page()
310 if (pool->use_dma_alloc) in ttm_pool_unmap()
390 pt->pool = pool; in ttm_pool_type_init()
427 if (pool->use_dma_alloc) in ttm_pool_select_type()
436 if (pool->use_dma32) in ttm_pool_select_type()
444 if (pool->use_dma32) in ttm_pool_select_type()
595 if (pool->use_dma32) in ttm_pool_alloc()
714 pool->dev = dev; in ttm_pool_init()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dce112/
H A Ddce112_resource.c793 pool->base.mis[i] = NULL; in dce112_resource_destruct()
835 if (pool->base.abm != NULL) in dce112_resource_destruct()
838 if (pool->base.dmcu != NULL) in dce112_resource_destruct()
1050 *pool = NULL; in dce112_destroy_resource_pool()
1239 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dce112_resource_construct()
1240 pool->base.timing_generator_count = pool->base.res_cap->num_timing_generator; in dce112_resource_construct()
1313 if (pool->base.abm == NULL) { in dce112_resource_construct()
1323 if (!pool->base.irqs) in dce112_resource_construct()
1422 if (!pool) in dce112_create_resource_pool()
1426 return &pool->base; in dce112_create_resource_pool()
[all …]
/openbsd/sys/dev/pci/drm/amd/display/dc/dcn30/
H A Ddcn30_resource.c1100 pool->base.ipps[i]->funcs->ipp_destroy(&pool->base.ipps[i]); in dcn30_resource_destruct()
1127 pool->base.opps[i]->funcs->opp_destroy(&pool->base.opps[i]); in dcn30_resource_destruct()
1290 *pool = NULL; in dcn30_destroy_resource_pool()
1475 if (pool->mpc_lut[i] == *lut && pool->mpc_shaper[i] == *shaper) { in dcn30_release_post_bldn_3dlut()
2277 pool->base.pipe_count = pool->base.res_cap->num_timing_generator; in dcn30_resource_construct()
2278 pool->base.mpcc_count = pool->base.res_cap->num_timing_generator; in dcn30_resource_construct()
2433 if (!pool->base.irqs) in dcn30_resource_construct()
2505 pool->base.mpc = dcn30_mpc_create(ctx, pool->base.mpcc_count, pool->base.res_cap->num_mpc_3dlut); in dcn30_resource_construct()
2598 if (!pool) in dcn30_create_resource_pool()
2602 return &pool->base; in dcn30_create_resource_pool()
[all …]

12345678910>>...22