Lines Matching refs:gobj
88 static void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
90 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
141 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
146 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
148 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
288 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
341 flags, ttm_bo_type_device, resv, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_create_ioctl()
358 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
367 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
369 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
385 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
411 0, ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_gem_userptr_ioctl()
415 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
443 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
454 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
463 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
466 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
467 if (!gobj) in amdgpu_mode_dumb_mmap()
470 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
473 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
477 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
523 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
530 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
531 if (!gobj) in amdgpu_gem_wait_idle_ioctl()
534 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
548 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
556 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
561 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
562 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
564 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
591 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
675 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
732 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
733 if (gobj == NULL) in amdgpu_gem_va_ioctl()
735 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
737 gobj = NULL; in amdgpu_gem_va_ioctl()
744 if (gobj) { in amdgpu_gem_va_ioctl()
745 r = drm_exec_lock_obj(&exec, gobj); in amdgpu_gem_va_ioctl()
800 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
809 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
814 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
815 if (!gobj) in amdgpu_gem_op_ioctl()
818 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
877 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
913 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
936 ttm_bo_type_device, NULL, &gobj, fpriv->xcp_id + 1); in amdgpu_mode_dumb_create()
940 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
942 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
964 struct drm_gem_object *gobj; in amdgpu_debugfs_gem_info_show() local
980 idr_for_each_entry(&file->object_idr, gobj, id) { in amdgpu_debugfs_gem_info_show()
981 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_info_show()