• Home
  • Raw
  • Download

Lines Matching refs:robj

40 	struct radeon_bo *robj = gem_to_radeon_bo(gobj);  in radeon_gem_object_free()  local
42 if (robj) { in radeon_gem_object_free()
43 radeon_mn_unregister(robj); in radeon_gem_object_free()
44 radeon_bo_unref(&robj); in radeon_gem_object_free()
53 struct radeon_bo *robj; in radeon_gem_object_create() local
75 flags, NULL, NULL, &robj); in radeon_gem_object_create()
87 *obj = &robj->tbo.base; in radeon_gem_object_create()
88 robj->pid = task_pid_nr(current); in radeon_gem_object_create()
91 list_add_tail(&robj->list, &rdev->gem.objects); in radeon_gem_object_create()
100 struct radeon_bo *robj; in radeon_gem_set_domain() local
105 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain()
118 r = dma_resv_wait_timeout_rcu(robj->tbo.base.resv, true, true, 30 * HZ); in radeon_gem_set_domain()
127 if (domain == RADEON_GEM_DOMAIN_VRAM && robj->prime_shared_count) { in radeon_gem_set_domain()
388 struct radeon_bo *robj; in radeon_gem_set_domain_ioctl() local
401 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_domain_ioctl()
407 r = radeon_gem_handle_lockup(robj->rdev, r); in radeon_gem_set_domain_ioctl()
416 struct radeon_bo *robj; in radeon_mode_dumb_mmap() local
422 robj = gem_to_radeon_bo(gobj); in radeon_mode_dumb_mmap()
423 if (radeon_ttm_tt_has_userptr(robj->rdev, robj->tbo.ttm)) { in radeon_mode_dumb_mmap()
427 *offset_p = radeon_bo_mmap_offset(robj); in radeon_mode_dumb_mmap()
445 struct radeon_bo *robj; in radeon_gem_busy_ioctl() local
453 robj = gem_to_radeon_bo(gobj); in radeon_gem_busy_ioctl()
455 r = dma_resv_test_signaled_rcu(robj->tbo.base.resv, true); in radeon_gem_busy_ioctl()
461 cur_placement = READ_ONCE(robj->tbo.mem.mem_type); in radeon_gem_busy_ioctl()
473 struct radeon_bo *robj; in radeon_gem_wait_idle_ioctl() local
482 robj = gem_to_radeon_bo(gobj); in radeon_gem_wait_idle_ioctl()
484 ret = dma_resv_wait_timeout_rcu(robj->tbo.base.resv, true, true, 30 * HZ); in radeon_gem_wait_idle_ioctl()
491 cur_placement = READ_ONCE(robj->tbo.mem.mem_type); in radeon_gem_wait_idle_ioctl()
494 robj->rdev->asic->mmio_hdp_flush(rdev); in radeon_gem_wait_idle_ioctl()
505 struct radeon_bo *robj; in radeon_gem_set_tiling_ioctl() local
512 robj = gem_to_radeon_bo(gobj); in radeon_gem_set_tiling_ioctl()
513 r = radeon_bo_set_tiling_flags(robj, args->tiling_flags, args->pitch); in radeon_gem_set_tiling_ioctl()
714 struct radeon_bo *robj; in radeon_gem_op_ioctl() local
721 robj = gem_to_radeon_bo(gobj); in radeon_gem_op_ioctl()
724 if (radeon_ttm_tt_has_userptr(robj->rdev, robj->tbo.ttm)) in radeon_gem_op_ioctl()
727 r = radeon_bo_reserve(robj, false); in radeon_gem_op_ioctl()
733 args->value = robj->initial_domain; in radeon_gem_op_ioctl()
736 robj->initial_domain = args->value & (RADEON_GEM_DOMAIN_VRAM | in radeon_gem_op_ioctl()
744 radeon_bo_unreserve(robj); in radeon_gem_op_ioctl()