Lines Matching refs:shrink
41 unsigned long shrink, bool trylock_vm)
46 if (shrink & I915_SHRINK_ACTIVE)
48 if (!(shrink & I915_SHRINK_BOUND))
61 if (obj->ops->shrink) {
70 return obj->ops->shrink(obj, shrink_flags);
82 * @shrink: control flags for selecting cache types
92 * Therefore code that needs to explicitly shrink buffer objects caches (e.g. to
107 unsigned int shrink)
129 trace_i915_gem_shrink(i915, target, shrink);
136 if (shrink & I915_SHRINK_BOUND) {
139 shrink &= ~I915_SHRINK_BOUND;
146 * shrink the contexts, we must wait until the gpu is idle and
152 if (shrink & I915_SHRINK_ACTIVE) {
182 if ((shrink & phase->bit) == 0)
191 * to be able to shrink their pages, so they remain on
201 if (shrink & I915_SHRINK_VMAPS &&
205 if (!(shrink & I915_SHRINK_ACTIVE) &&
227 if (drop_pages(obj, shrink, trylock_vm) &&
229 !try_to_writeback(obj, shrink))
249 if (shrink & I915_SHRINK_BOUND)
264 * This is a simple wraper around i915_gem_shrink() to aggressively shrink all