Searched refs:limit_pool (Results 1 – 3 of 3) sorted by relevance
| /linux/kernel/cgroup/ |
| H A D | dmem.c | 254 dmem_cgroup_calculate_protection(struct dmem_cgroup_pool_state *limit_pool, in dmem_cgroup_calculate_protection() argument 262 climit = &limit_pool->cnt; in dmem_cgroup_calculate_protection() 266 css_for_each_descendant_pre(css, &limit_pool->cs->css) { in dmem_cgroup_calculate_protection() 271 if (pool->region == limit_pool->region) { in dmem_cgroup_calculate_protection() 302 bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool, in dmem_cgroup_state_evict_valuable() argument 311 if (limit_pool == test_pool) in dmem_cgroup_state_evict_valuable() 314 if (limit_pool) { in dmem_cgroup_state_evict_valuable() 315 if (!parent_dmemcs(limit_pool->cs)) in dmem_cgroup_state_evict_valuable() 318 for (pool = test_pool; pool && limit_pool != pool; pool = pool_parent(pool)) in dmem_cgroup_state_evict_valuable() 328 for (limit_pool = test_pool; pool_parent(limit_pool); limit_pool = pool_parent(limit_pool)) in dmem_cgroup_state_evict_valuable() [all …]
|
| /linux/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/drivers/gpu/drm/ttm/ |
| H A D | ttm_bo.c | 509 struct dmem_cgroup_pool_state *limit_pool; member 522 if (!dmem_cgroup_state_evict_valuable(evict_walk->limit_pool, bo->resource->css, in ttm_bo_evict_cb() 565 struct dmem_cgroup_pool_state *limit_pool) in ttm_bo_evict_alloc() argument 578 .limit_pool = limit_pool, in ttm_bo_evict_alloc() 729 struct dmem_cgroup_pool_state *limit_pool = NULL; in ttm_bo_alloc_resource() local 742 ret = ttm_resource_alloc(bo, place, res, force_space ? &limit_pool : NULL); in ttm_bo_alloc_resource() 745 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource() 749 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource() 754 ticket, res, limit_pool); in ttm_bo_alloc_resource() 755 dmem_cgroup_pool_state_put(limit_pool); in ttm_bo_alloc_resource()
|