Lines Matching defs:ggtt
148 static void vgt_deballoon_space(struct i915_ggtt *ggtt,
151 struct drm_i915_private *dev_priv = ggtt->vm.i915;
161 ggtt->vm.reserved -= node->size;
167 * @ggtt: the global GGTT from which we reserved earlier
172 void intel_vgt_deballoon(struct i915_ggtt *ggtt)
174 struct drm_i915_private *dev_priv = ggtt->vm.i915;
177 if (!intel_vgpu_active(ggtt->vm.i915))
183 vgt_deballoon_space(ggtt, &bl_info.space[i]);
186 static int vgt_balloon_space(struct i915_ggtt *ggtt,
190 struct drm_i915_private *dev_priv = ggtt->vm.i915;
200 ret = i915_gem_gtt_reserve(&ggtt->vm, NULL, node,
204 ggtt->vm.reserved += size;
211 * @ggtt: the global GGTT from which to reserve
253 int intel_vgt_balloon(struct i915_ggtt *ggtt)
255 struct drm_i915_private *dev_priv = ggtt->vm.i915;
257 unsigned long ggtt_end = ggtt->vm.total;
263 if (!intel_vgpu_active(ggtt->vm.i915))
286 if (mappable_end > ggtt->mappable_end ||
287 unmappable_base < ggtt->mappable_end ||
294 if (unmappable_base > ggtt->mappable_end) {
295 ret = vgt_balloon_space(ggtt, &bl_info.space[2],
296 ggtt->mappable_end, unmappable_base);
303 ret = vgt_balloon_space(ggtt, &bl_info.space[3],
311 ret = vgt_balloon_space(ggtt, &bl_info.space[0],
318 if (mappable_end < ggtt->mappable_end) {
319 ret = vgt_balloon_space(ggtt, &bl_info.space[1],
320 mappable_end, ggtt->mappable_end);
330 vgt_deballoon_space(ggtt, &bl_info.space[0]);
332 vgt_deballoon_space(ggtt, &bl_info.space[3]);
334 vgt_deballoon_space(ggtt, &bl_info.space[2]);