Lines Matching refs:gobj

40 void amdgpu_gem_object_free(struct drm_gem_object *gobj)  in amdgpu_gem_object_free()  argument
42 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
101 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
106 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
108 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_force_release()
219 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
260 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
263 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
272 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
274 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_create_ioctl()
289 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
314 0, ttm_bo_type_device, NULL, &gobj); in amdgpu_gem_userptr_ioctl()
318 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
347 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
358 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_userptr_ioctl()
367 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
370 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
371 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
374 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
377 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_mmap()
381 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_mmap()
426 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
433 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
434 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
437 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
451 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_wait_idle_ioctl()
459 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
464 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
465 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
467 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
494 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_metadata_ioctl()
547 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
599 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
600 if (gobj == NULL) in amdgpu_gem_va_ioctl()
602 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
610 gobj = NULL; in amdgpu_gem_va_ioctl()
665 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_va_ioctl()
674 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
679 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
680 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
683 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
741 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_op_ioctl()
750 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
772 ttm_bo_type_device, NULL, &gobj); in amdgpu_mode_dumb_create()
776 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
778 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_create()
795 struct drm_gem_object *gobj = ptr; in amdgpu_debugfs_gem_bo_info() local
796 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_bo_info()