Lines Matching refs:gobj

87 static void amdgpu_gem_object_free(struct drm_gem_object *gobj)  in amdgpu_gem_object_free()  argument
89 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
139 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
144 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
146 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
290 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
339 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
356 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
365 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
367 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
382 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
408 0, ttm_bo_type_device, NULL, &gobj); in amdgpu_gem_userptr_ioctl()
412 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
440 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
451 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
460 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
463 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
464 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
467 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
470 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
474 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
519 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
526 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
527 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
530 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
544 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
552 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
557 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
558 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
560 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
587 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
671 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
733 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
734 if (gobj == NULL) in amdgpu_gem_va_ioctl()
736 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
744 gobj = NULL; in amdgpu_gem_va_ioctl()
799 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
808 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
813 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
814 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
817 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
876 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
911 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
934 ttm_bo_type_device, NULL, &gobj); in amdgpu_mode_dumb_create()
938 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
940 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
962 struct drm_gem_object *gobj; in amdgpu_debugfs_gem_info_show() local
978 idr_for_each_entry(&file->object_idr, gobj, id) { in amdgpu_debugfs_gem_info_show()
979 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_info_show()