Lines Matching full:shrink
23 * @shrink: Pointer to the mm shrinker.
31 struct shrinker *shrink; member
35 static struct xe_shrinker *to_xe_shrinker(struct shrinker *shrink) in to_xe_shrinker() argument
37 return shrink->private_data; in to_xe_shrinker()
139 xe_shrinker_count(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_count() argument
141 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_count()
201 static unsigned long xe_shrinker_scan(struct shrinker *shrink, struct shrink_control *sc) in xe_shrinker_scan() argument
203 struct xe_shrinker *shrinker = to_xe_shrinker(shrink); in xe_shrinker_scan()
272 shrinker_free(shrinker->shrink); in xe_shrinker_fini()
290 shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique); in xe_shrinker_create()
291 if (!shrinker->shrink) { in xe_shrinker_create()
299 shrinker->shrink->count_objects = xe_shrinker_count; in xe_shrinker_create()
300 shrinker->shrink->scan_objects = xe_shrinker_scan; in xe_shrinker_create()
301 shrinker->shrink->private_data = shrinker; in xe_shrinker_create()
302 shrinker_register(shrinker->shrink); in xe_shrinker_create()