Lines Matching refs:gobj

35 void amdgpu_gem_object_free(struct drm_gem_object *gobj)  in amdgpu_gem_object_free()  argument
37 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
100 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
105 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
107 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_force_release()
218 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
268 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
271 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
280 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
282 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_create_ioctl()
297 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
320 0, ttm_bo_type_device, NULL, &gobj); in amdgpu_gem_userptr_ioctl()
324 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
354 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
356 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_userptr_ioctl()
367 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_userptr_ioctl()
376 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
379 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
380 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
383 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
386 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_mmap()
390 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_mmap()
435 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
442 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
443 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
446 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
460 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_wait_idle_ioctl()
468 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
473 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
474 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
476 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
503 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_metadata_ioctl()
556 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
608 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
609 if (gobj == NULL) in amdgpu_gem_va_ioctl()
611 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
616 gobj = NULL; in amdgpu_gem_va_ioctl()
681 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_va_ioctl()
690 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
694 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
695 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
698 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
747 drm_gem_object_put_unlocked(gobj); in amdgpu_gem_op_ioctl()
756 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
769 ttm_bo_type_device, NULL, &gobj); in amdgpu_mode_dumb_create()
773 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
775 drm_gem_object_put_unlocked(gobj); in amdgpu_mode_dumb_create()
792 struct drm_gem_object *gobj = ptr; in amdgpu_debugfs_gem_bo_info() local
793 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_bo_info()