Home | History | Annotate | Download | only in i915

Lines Matching refs:ggtt

167 static void vgt_deballoon_space(struct i915_ggtt *ggtt,
178 ggtt->vm.reserved -= node->size;
184 * @ggtt: the global GGTT from which we reserved earlier
189 void intel_vgt_deballoon(struct i915_ggtt *ggtt)
193 if (!intel_vgpu_active(ggtt->vm.i915))
199 vgt_deballoon_space(ggtt, &bl_info.space[i]);
202 static int vgt_balloon_space(struct i915_ggtt *ggtt,
214 ret = i915_gem_gtt_reserve(&ggtt->vm, node,
218 ggtt->vm.reserved += size;
225 * @ggtt: the global GGTT from which to reserve
267 int intel_vgt_balloon(struct i915_ggtt *ggtt)
269 struct intel_uncore *uncore = &ggtt->vm.i915->uncore;
270 unsigned long ggtt_end = ggtt->vm.total;
276 if (!intel_vgpu_active(ggtt->vm.i915))
297 if (mappable_end > ggtt->mappable_end ||
298 unmappable_base < ggtt->mappable_end ||
305 if (unmappable_base > ggtt->mappable_end) {
306 ret = vgt_balloon_space(ggtt, &bl_info.space[2],
307 ggtt->mappable_end, unmappable_base);
314 ret = vgt_balloon_space(ggtt, &bl_info.space[3],
322 ret = vgt_balloon_space(ggtt, &bl_info.space[0],
329 if (mappable_end < ggtt->mappable_end) {
330 ret = vgt_balloon_space(ggtt, &bl_info.space[1],
331 mappable_end, ggtt->mappable_end);
341 vgt_deballoon_space(ggtt, &bl_info.space[0]);
343 vgt_deballoon_space(ggtt, &bl_info.space[3]);
345 vgt_deballoon_space(ggtt, &bl_info.space[2]);