Lines Matching refs:gobj
33 void amdgpu_gem_object_free(struct drm_gem_object *gobj) in amdgpu_gem_object_free() argument
35 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
175 struct drm_gem_object *gobj; in amdgpu_gem_create_ioctl() local
200 kernel, &gobj); in amdgpu_gem_create_ioctl()
204 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_create_ioctl()
206 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_create_ioctl()
224 struct drm_gem_object *gobj; in amdgpu_gem_userptr_ioctl() local
250 0, &gobj); in amdgpu_gem_userptr_ioctl()
254 bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_userptr_ioctl()
281 r = drm_gem_handle_create(filp, gobj, &handle); in amdgpu_gem_userptr_ioctl()
283 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_userptr_ioctl()
291 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_userptr_ioctl()
303 struct drm_gem_object *gobj; in amdgpu_mode_dumb_mmap() local
306 gobj = drm_gem_object_lookup(dev, filp, handle); in amdgpu_mode_dumb_mmap()
307 if (gobj == NULL) { in amdgpu_mode_dumb_mmap()
310 robj = gem_to_amdgpu_bo(gobj); in amdgpu_mode_dumb_mmap()
313 drm_gem_object_unreference_unlocked(gobj); in amdgpu_mode_dumb_mmap()
317 drm_gem_object_unreference_unlocked(gobj); in amdgpu_mode_dumb_mmap()
363 struct drm_gem_object *gobj; in amdgpu_gem_wait_idle_ioctl() local
370 gobj = drm_gem_object_lookup(dev, filp, handle); in amdgpu_gem_wait_idle_ioctl()
371 if (gobj == NULL) { in amdgpu_gem_wait_idle_ioctl()
374 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_wait_idle_ioctl()
390 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_wait_idle_ioctl()
399 struct drm_gem_object *gobj; in amdgpu_gem_metadata_ioctl() local
404 gobj = drm_gem_object_lookup(dev, filp, args->handle); in amdgpu_gem_metadata_ioctl()
405 if (gobj == NULL) in amdgpu_gem_metadata_ioctl()
407 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_metadata_ioctl()
434 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_metadata_ioctl()
515 struct drm_gem_object *gobj; in amdgpu_gem_va_ioctl() local
555 gobj = drm_gem_object_lookup(dev, filp, args->handle); in amdgpu_gem_va_ioctl()
556 if (gobj == NULL) in amdgpu_gem_va_ioctl()
558 rbo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_va_ioctl()
572 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_va_ioctl()
579 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_va_ioctl()
605 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_va_ioctl()
613 struct drm_gem_object *gobj; in amdgpu_gem_op_ioctl() local
617 gobj = drm_gem_object_lookup(dev, filp, args->handle); in amdgpu_gem_op_ioctl()
618 if (gobj == NULL) { in amdgpu_gem_op_ioctl()
621 robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_op_ioctl()
658 drm_gem_object_unreference_unlocked(gobj); in amdgpu_gem_op_ioctl()
667 struct drm_gem_object *gobj; in amdgpu_mode_dumb_create() local
679 &gobj); in amdgpu_mode_dumb_create()
683 r = drm_gem_handle_create(file_priv, gobj, &handle); in amdgpu_mode_dumb_create()
685 drm_gem_object_unreference_unlocked(gobj); in amdgpu_mode_dumb_create()