Lines Matching refs:freed
70 unsigned freed = 0; in scan() local
77 while (freed < nr_to_scan) { in scan()
111 freed += msm_obj->base.size >> PAGE_SHIFT; in scan()
123 return freed; in scan()
131 unsigned long freed; in msm_gem_shrinker_scan() local
133 freed = scan(priv, sc->nr_to_scan, &priv->inactive_dontneed, purge); in msm_gem_shrinker_scan()
135 if (freed > 0) in msm_gem_shrinker_scan()
136 trace_msm_gem_purge(freed << PAGE_SHIFT); in msm_gem_shrinker_scan()
138 if (can_swap() && freed < sc->nr_to_scan) { in msm_gem_shrinker_scan()
139 int evicted = scan(priv, sc->nr_to_scan - freed, in msm_gem_shrinker_scan()
145 freed += evicted; in msm_gem_shrinker_scan()
148 return (freed > 0) ? freed : SHRINK_STOP; in msm_gem_shrinker_scan()