Searched refs:limit_pool (Results 1 – 3 of 3) sorted by relevance
| /linux-6.15/kernel/cgroup/ |
| H A D | dmem.c | 219 dmem_cgroup_calculate_protection(struct dmem_cgroup_pool_state *limit_pool, in dmem_cgroup_calculate_protection() argument 227 climit = &limit_pool->cnt; in dmem_cgroup_calculate_protection() 231 css_for_each_descendant_pre(css, &limit_pool->cs->css) { in dmem_cgroup_calculate_protection() 236 if (pool->region == limit_pool->region) { in dmem_cgroup_calculate_protection() 267 bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, in dmem_cgroup_state_evict_valuable() argument 276 if (limit_pool == test_pool) in dmem_cgroup_state_evict_valuable() 279 if (limit_pool) { in dmem_cgroup_state_evict_valuable() 280 if (!parent_dmemcs(limit_pool->cs)) in dmem_cgroup_state_evict_valuable() 283 for (pool = test_pool; pool && limit_pool != pool; pool = pool_parent(pool)) in dmem_cgroup_state_evict_valuable() 293 for (limit_pool = test_pool; pool_parent(limit_pool); limit_pool = pool_parent(limit_pool)) in dmem_cgroup_state_evict_valuable() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | cgroup_dmem.h | 24 bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, 55 bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, in dmem_cgroup_state_evict_valuable() argument
|
| /linux-6.15/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo.c | 506 struct dmem_cgroup_pool_state *limit_pool; member 519 if (!dmem_cgroup_state_evict_valuable(evict_walk->limit_pool, bo->resource->css, in ttm_bo_evict_cb() 562 struct dmem_cgroup_pool_state *limit_pool) in ttm_bo_evict_alloc() argument 573 .limit_pool = limit_pool, in ttm_bo_evict_alloc() 723 struct dmem_cgroup_pool_state *limit_pool = NULL; in ttm_bo_alloc_resource() local 736 ret = ttm_resource_alloc(bo, place, res, force_space ? &limit_pool : NULL); in ttm_bo_alloc_resource() 739 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource() 743 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource() 748 ticket, res, limit_pool); in ttm_bo_alloc_resource() 749 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource()
|