Lines Matching refs:gobj
40 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
84 static void radeon_gem_object_free(struct drm_gem_object *gobj) in radeon_gem_object_free() argument
86 struct radeon_bo *robj = gem_to_radeon_bo(gobj); in radeon_gem_object_free()
144 static int radeon_gem_set_domain(struct drm_gem_object *gobj, in radeon_gem_set_domain() argument
152 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain()
335 struct drm_gem_object *gobj; in radeon_gem_create_ioctl() local
344 false, &gobj); in radeon_gem_create_ioctl()
350 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_create_ioctl()
352 drm_gem_object_put(gobj); in radeon_gem_create_ioctl()
369 struct drm_gem_object *gobj; in radeon_gem_userptr_ioctl() local
403 false, &gobj); in radeon_gem_userptr_ioctl()
407 bo = gem_to_radeon_bo(gobj); in radeon_gem_userptr_ioctl()
434 r = drm_gem_handle_create(filp, gobj, &handle); in radeon_gem_userptr_ioctl()
436 drm_gem_object_put(gobj); in radeon_gem_userptr_ioctl()
445 drm_gem_object_put(gobj); in radeon_gem_userptr_ioctl()
461 struct drm_gem_object *gobj; in radeon_gem_set_domain_ioctl() local
470 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_set_domain_ioctl()
471 if (gobj == NULL) { in radeon_gem_set_domain_ioctl()
475 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain_ioctl()
477 r = radeon_gem_set_domain(gobj, args->read_domains, args->write_domain); in radeon_gem_set_domain_ioctl()
479 drm_gem_object_put(gobj); in radeon_gem_set_domain_ioctl()
489 struct drm_gem_object *gobj; in radeon_mode_dumb_mmap() local
492 gobj = drm_gem_object_lookup(filp, handle); in radeon_mode_dumb_mmap()
493 if (gobj == NULL) { in radeon_mode_dumb_mmap()
496 robj = gem_to_radeon_bo(gobj); in radeon_mode_dumb_mmap()
498 drm_gem_object_put(gobj); in radeon_mode_dumb_mmap()
502 drm_gem_object_put(gobj); in radeon_mode_dumb_mmap()
518 struct drm_gem_object *gobj; in radeon_gem_busy_ioctl() local
523 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_busy_ioctl()
524 if (gobj == NULL) { in radeon_gem_busy_ioctl()
527 robj = gem_to_radeon_bo(gobj); in radeon_gem_busy_ioctl()
537 drm_gem_object_put(gobj); in radeon_gem_busy_ioctl()
546 struct drm_gem_object *gobj; in radeon_gem_wait_idle_ioctl() local
552 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_wait_idle_ioctl()
553 if (gobj == NULL) { in radeon_gem_wait_idle_ioctl()
556 robj = gem_to_radeon_bo(gobj); in radeon_gem_wait_idle_ioctl()
570 drm_gem_object_put(gobj); in radeon_gem_wait_idle_ioctl()
579 struct drm_gem_object *gobj; in radeon_gem_set_tiling_ioctl() local
584 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_set_tiling_ioctl()
585 if (gobj == NULL) in radeon_gem_set_tiling_ioctl()
587 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_tiling_ioctl()
589 drm_gem_object_put(gobj); in radeon_gem_set_tiling_ioctl()
597 struct drm_gem_object *gobj; in radeon_gem_get_tiling_ioctl() local
602 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_get_tiling_ioctl()
603 if (gobj == NULL) in radeon_gem_get_tiling_ioctl()
605 rbo = gem_to_radeon_bo(gobj); in radeon_gem_get_tiling_ioctl()
612 drm_gem_object_put(gobj); in radeon_gem_get_tiling_ioctl()
682 struct drm_gem_object *gobj; in radeon_gem_va_ioctl() local
737 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_va_ioctl()
738 if (gobj == NULL) { in radeon_gem_va_ioctl()
742 rbo = gem_to_radeon_bo(gobj); in radeon_gem_va_ioctl()
746 drm_gem_object_put(gobj); in radeon_gem_va_ioctl()
753 drm_gem_object_put(gobj); in radeon_gem_va_ioctl()
780 drm_gem_object_put(gobj); in radeon_gem_va_ioctl()
788 struct drm_gem_object *gobj; in radeon_gem_op_ioctl() local
792 gobj = drm_gem_object_lookup(filp, args->handle); in radeon_gem_op_ioctl()
793 if (gobj == NULL) { in radeon_gem_op_ioctl()
796 robj = gem_to_radeon_bo(gobj); in radeon_gem_op_ioctl()
821 drm_gem_object_put(gobj); in radeon_gem_op_ioctl()
830 struct drm_gem_object *gobj; in radeon_mode_dumb_create() local
841 false, &gobj); in radeon_mode_dumb_create()
845 r = drm_gem_handle_create(file_priv, gobj, &handle); in radeon_mode_dumb_create()
847 drm_gem_object_put(gobj); in radeon_mode_dumb_create()