Lines Matching defs:obj

21 	struct drm_i915_gem_object *obj;
24 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE);
25 if (IS_ERR(obj))
26 return PTR_ERR(obj);
28 dmabuf = i915_gem_prime_export(&obj->base, 0);
29 i915_gem_object_put(obj);
43 struct drm_i915_gem_object *obj, *import_obj;
48 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE);
49 if (IS_ERR(obj))
50 return PTR_ERR(obj);
52 dmabuf = i915_gem_prime_export(&obj->base, 0);
69 if (import != &obj->base) {
89 i915_gem_object_put(obj);
97 struct drm_i915_gem_object *obj;
107 obj = __i915_gem_object_create_user(i915, PAGE_SIZE, &lmem, 1);
108 if (IS_ERR(obj)) {
110 PTR_ERR(obj));
111 err = PTR_ERR(obj);
115 dmabuf = i915_gem_prime_export(&obj->base, 0);
142 i915_gem_object_put(obj);
223 struct drm_i915_gem_object *obj, *import_obj;
233 obj = __i915_gem_object_create_user(i915, SZ_8M,
235 if (IS_ERR(obj)) {
237 PTR_ERR(obj));
238 err = PTR_ERR(obj);
242 dmabuf = i915_gem_prime_export(&obj->base, 0);
259 if (import == &obj->base) {
278 if (obj->mm.region != i915->mm.regions[INTEL_REGION_SMEM]) {
285 err = verify_access(i915, obj, import_obj);
290 import_attach = dma_buf_attach(dmabuf, obj->base.dev->dev);
317 i915_gem_object_put(obj);
347 struct drm_i915_gem_object *obj;
358 obj = to_intel_bo(i915_gem_prime_import(&i915->drm, dmabuf));
359 if (IS_ERR(obj)) {
361 (int)PTR_ERR(obj));
362 err = PTR_ERR(obj);
366 if (obj->base.dev != &i915->drm) {
372 if (obj->base.size != PAGE_SIZE) {
374 (long long)obj->base.size, PAGE_SIZE);
388 obj_map = i915_gem_object_pin_map(obj, I915_MAP_WB);
400 i915_gem_object_unpin_map(obj);
410 i915_gem_object_unpin_map(obj);
415 i915_gem_object_unpin_map(obj);
422 i915_gem_object_put(obj);
431 struct drm_i915_gem_object *obj;
452 obj = to_intel_bo(i915_gem_prime_import(&i915->drm, dmabuf));
453 if (IS_ERR(obj)) {
455 (int)PTR_ERR(obj));
456 err = PTR_ERR(obj);
462 err = i915_gem_object_pin_pages_unlocked(obj);
469 i915_gem_object_unpin_pages(obj);
471 i915_gem_object_put(obj);
482 struct drm_i915_gem_object *obj;
488 obj = i915_gem_object_create_shmem(i915, PAGE_SIZE);
489 if (IS_ERR(obj))
490 return PTR_ERR(obj);
492 dmabuf = i915_gem_prime_export(&obj->base, 0);
499 i915_gem_object_put(obj);
524 i915_gem_object_put(obj);