Lines Matching refs:gobj
41 void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
43 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
88 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
93 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
95 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
213 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
262 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
282 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
291 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
293 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
308 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
333 0, ttm_bo_type_device, NULL, &gobj); in amdgpu_gem_userptr_ioctl()
337 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
366 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
377 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
386 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
389 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
390 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
393 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
396 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
400 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
445 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
452 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
453 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
456 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
470 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
478 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
483 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
484 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
486 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
513 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
594 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
656 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
657 if (gobj == NULL) in amdgpu_gem_va_ioctl()
659 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
667 gobj = NULL; in amdgpu_gem_va_ioctl()
722 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
731 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
736 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
737 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
740 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
798 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
807 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
829 ttm_bo_type_device, NULL, &gobj); in amdgpu_mode_dumb_create()
833 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
835 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
852 struct drm_gem_object *gobj = ptr; in amdgpu_debugfs_gem_bo_info() local
853 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_bo_info()