Lines Matching refs:gobj

86 static void amdgpu_gem_object_free(struct drm_gem_object *gobj)  in amdgpu_gem_object_free()  argument
88 struct amdgpu_bo *aobj = 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()
319 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
376 flags, ttm_bo_type_device, resv, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_create_ioctl()
393 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
402 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
404 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
420 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
446 0, ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_userptr_ioctl()
450 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
478 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
489 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
498 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
501 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
502 if (!gobj) in amdgpu_mode_dumb_mmap()
505 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
508 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
512 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
558 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
565 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
566 if (!gobj) in amdgpu_gem_wait_idle_ioctl()
569 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
583 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
591 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
596 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
597 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
599 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
626 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
710 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
767 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
768 if (gobj == NULL) in amdgpu_gem_va_ioctl()
770 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
772 gobj = NULL; in amdgpu_gem_va_ioctl()
779 if (gobj) { in amdgpu_gem_va_ioctl()
780 r = drm_exec_lock_obj(&exec, gobj); in amdgpu_gem_va_ioctl()
835 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
844 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
849 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
850 if (!gobj) in amdgpu_gem_op_ioctl()
853 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
912 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
948 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
971 ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_mode_dumb_create()
975 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
977 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
999 struct drm_gem_object *gobj; in amdgpu_debugfs_gem_info_show() local
1017 idr_for_each_entry(&file->object_idr, gobj, id) { in amdgpu_debugfs_gem_info_show()
1018 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_info_show()