Lines Matching refs:shrinker
35 msm_gem_shrinker_count(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_count() argument
38 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_count()
101 msm_gem_shrinker_scan(struct shrinker *shrinker, struct shrink_control *sc) in msm_gem_shrinker_scan() argument
104 container_of(shrinker, struct msm_drm_private, shrinker); in msm_gem_shrinker_scan()
149 ret = msm_gem_shrinker_scan(&priv->shrinker, &sc); in msm_gem_shrinker_shrink()
209 priv->shrinker.count_objects = msm_gem_shrinker_count; in msm_gem_shrinker_init()
210 priv->shrinker.scan_objects = msm_gem_shrinker_scan; in msm_gem_shrinker_init()
211 priv->shrinker.seeks = DEFAULT_SEEKS; in msm_gem_shrinker_init()
212 WARN_ON(register_shrinker(&priv->shrinker, "drm-msm_gem")); in msm_gem_shrinker_init()
228 if (priv->shrinker.nr_deferred) { in msm_gem_shrinker_cleanup()
230 unregister_shrinker(&priv->shrinker); in msm_gem_shrinker_cleanup()