Lines Matching refs:gobj
85 static void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
87 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
137 struct drm_gem_object *gobj; in amdgpu_gem_force_release() local
142 idr_for_each_entry(&file->object_idr, gobj, handle) { in amdgpu_gem_force_release()
144 drm_gem_object_put(gobj); in amdgpu_gem_force_release()
288 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
337 flags, ttm_bo_type_device, resv, &gobj); in amdgpu_gem_create_ioctl()
354 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
363 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
365 drm_gem_object_put(gobj); in amdgpu_gem_create_ioctl()
380 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
406 0, ttm_bo_type_device, NULL, &gobj); in amdgpu_gem_userptr_ioctl()
410 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
438 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
449 drm_gem_object_put(gobj); in amdgpu_gem_userptr_ioctl()
458 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
461 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_mode_dumb_mmap()
462 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
465 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
468 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
472 drm_gem_object_put(gobj); in amdgpu_mode_dumb_mmap()
517 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
524 gobj = drm_gem_object_lookup(filp, handle); in amdgpu_gem_wait_idle_ioctl()
525 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
528 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
542 drm_gem_object_put(gobj); in amdgpu_gem_wait_idle_ioctl()
550 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
555 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_metadata_ioctl()
556 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
558 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
585 drm_gem_object_put(gobj); in amdgpu_gem_metadata_ioctl()
669 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
731 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_va_ioctl()
732 if (gobj == NULL) in amdgpu_gem_va_ioctl()
734 abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
742 gobj = NULL; in amdgpu_gem_va_ioctl()
797 drm_gem_object_put(gobj); in amdgpu_gem_va_ioctl()
806 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
811 gobj = drm_gem_object_lookup(filp, args->handle); in amdgpu_gem_op_ioctl()
812 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
815 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
874 drm_gem_object_put(gobj); in amdgpu_gem_op_ioctl()
909 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
932 ttm_bo_type_device, NULL, &gobj); in amdgpu_mode_dumb_create()
936 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
938 drm_gem_object_put(gobj); in amdgpu_mode_dumb_create()
960 struct drm_gem_object *gobj; in amdgpu_debugfs_gem_info_show() local
976 idr_for_each_entry(&file->object_idr, gobj, id) { in amdgpu_debugfs_gem_info_show()
977 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_debugfs_gem_info_show()