Lines Matching refs:gobj

155 static void amdgpu_gem_object_free(struct drm_gem_object *gobj)  in amdgpu_gem_object_free()  argument
157 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
206 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
211 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
213 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
412 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
457 flags, ttm_bo_type_device, resv, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_create_ioctl()
474 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
483 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
485 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
501 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
527 0, ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_userptr_ioctl()
531 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
564 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
574 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
583 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
586 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
587 if (!gobj) in amdgpu_mode_dumb_mmap()
590 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
593 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
597 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
643 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
650 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
651 if (!gobj) in amdgpu_gem_wait_idle_ioctl()
654 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
668 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
676 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
681 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
682 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
684 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
720 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
831 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
892 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
893 if (gobj == NULL) in amdgpu_gem_va_ioctl()
895 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
897 gobj = NULL; in amdgpu_gem_va_ioctl()
911 if (gobj) { in amdgpu_gem_va_ioctl()
912 r = drm_exec_lock_obj(&exec, gobj); in amdgpu_gem_va_ioctl()
1003 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
1011 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
1021 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
1022 if (!gobj) in amdgpu_gem_op_ioctl()
1025 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
1030 r = drm_exec_lock_obj(&exec, gobj); in amdgpu_gem_op_ioctl()
1138 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
1142 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
1166 struct drm_gem_object *gobj; in amdgpu_gem_list_handles_ioctl() local
1172 idr_for_each_entry(&filp->object_idr, gobj, id) in amdgpu_gem_list_handles_ioctl()
1191 idr_for_each_entry(&filp->object_idr, gobj, id) { in amdgpu_gem_list_handles_ioctl()
1192 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_list_handles_ioctl()
1258 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
1281 ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_mode_dumb_create()
1285 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
1287 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
1309 struct drm_gem_object *gobj; in amdgpu_debugfs_gem_info_show() local
1327 idr_for_each_entry(&file->object_idr, gobj, id) { in amdgpu_debugfs_gem_info_show()
1328 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_info_show()