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 *aobj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
138 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
143 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
145 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
320 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
377 flags, ttm_bo_type_device, resv, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_create_ioctl()
394 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
403 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
405 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
421 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
447 0, ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_userptr_ioctl()
451 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
479 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
490 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
499 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
502 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
503 if (!gobj) in amdgpu_mode_dumb_mmap()
506 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
509 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
513 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
559 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
566 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
567 if (!gobj) in amdgpu_gem_wait_idle_ioctl()
570 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
584 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
592 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
597 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
598 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
600 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
627 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
711 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
768 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
769 if (gobj == NULL) in amdgpu_gem_va_ioctl()
771 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
773 gobj = NULL; in amdgpu_gem_va_ioctl()
780 if (gobj) { in amdgpu_gem_va_ioctl()
781 r = drm_exec_lock_obj(&exec, gobj); in amdgpu_gem_va_ioctl()
836 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()