Lines Matching defs:obj
39 static void quirk_add(struct drm_i915_gem_object *obj,
43 GEM_BUG_ON(i915_gem_object_has_tiling_quirk(obj));
44 i915_gem_object_set_tiling_quirk(obj);
45 list_add(&obj->st_link, objects);
50 struct drm_i915_gem_object *obj;
57 obj = i915_gem_object_create_internal(ggtt->vm.i915,
59 if (IS_ERR(obj))
60 return PTR_ERR(obj);
62 vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0, 0);
64 i915_gem_object_put(obj);
71 quirk_add(obj, objects);
90 if (i915_gem_object_has_tiling_quirk(vma->obj))
96 struct drm_i915_gem_object *obj, *on;
98 list_for_each_entry_safe(obj, on, list, st_link) {
99 GEM_BUG_ON(!i915_gem_object_has_tiling_quirk(obj));
100 i915_gem_object_set_tiling_quirk(obj);
101 i915_gem_object_put(obj);
157 struct drm_i915_gem_object *obj;
170 obj = i915_gem_object_create_internal(gt->i915, I915_GTT_PAGE_SIZE);
171 if (IS_ERR(obj)) {
172 err = PTR_ERR(obj);
176 quirk_add(obj, &objects);
178 vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0, 0);
251 struct drm_i915_gem_object *obj;
265 obj = i915_gem_object_create_internal(gt->i915, I915_GTT_PAGE_SIZE);
266 if (IS_ERR(obj)) {
267 err = PTR_ERR(obj);
270 i915_gem_object_set_cache_coherency(obj, I915_CACHE_LLC);
271 quirk_add(obj, &objects);
273 vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,
281 obj = i915_gem_object_create_internal(gt->i915, I915_GTT_PAGE_SIZE);
282 if (IS_ERR(obj)) {
283 err = PTR_ERR(obj);
286 i915_gem_object_set_cache_coherency(obj, I915_CACHE_LLC);
287 quirk_add(obj, &objects);
290 vma = i915_gem_object_ggtt_pin(obj, NULL, 0, 0,