Lines Matching refs:tbo

73 static void radeon_ttm_bo_destroy(struct ttm_buffer_object *tbo)  in radeon_ttm_bo_destroy()  argument
77 bo = container_of(tbo, struct radeon_bo, tbo); in radeon_ttm_bo_destroy()
84 if (bo->tbo.base.import_attach) in radeon_ttm_bo_destroy()
85 drm_prime_gem_destroy(&bo->tbo.base, bo->tbo.sg); in radeon_ttm_bo_destroy()
86 drm_gem_object_release(&bo->tbo.base); in radeon_ttm_bo_destroy()
176 drm_gem_private_object_init(rdev->ddev, &bo->tbo.base, size); in radeon_bo_create()
226 r = ttm_bo_init(&rdev->mman.bdev, &bo->tbo, size, type, in radeon_bo_create()
251 r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.resource->num_pages, &bo->kmap); in radeon_bo_kmap()
277 ttm_bo_get(&bo->tbo); in radeon_bo_ref()
283 struct ttm_buffer_object *tbo; in radeon_bo_unref() local
287 tbo = &((*bo)->tbo); in radeon_bo_unref()
288 ttm_bo_put(tbo); in radeon_bo_unref()
298 if (radeon_ttm_tt_has_userptr(bo->rdev, bo->tbo.ttm)) in radeon_bo_pin_restricted()
301 if (bo->tbo.pin_count) { in radeon_bo_pin_restricted()
302 ttm_bo_pin(&bo->tbo); in radeon_bo_pin_restricted()
336 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted()
338 ttm_bo_pin(&bo->tbo); in radeon_bo_pin_restricted()
358 ttm_bo_unpin(&bo->tbo); in radeon_bo_unpin()
359 if (!bo->tbo.pin_count) { in radeon_bo_unpin()
360 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
396 &bo->tbo.base, bo, (unsigned long)bo->tbo.base.size, in radeon_bo_force_delete()
397 *((unsigned long *)&bo->tbo.base.refcount)); in radeon_bo_force_delete()
402 drm_gem_object_put(&bo->tbo.base); in radeon_bo_force_delete()
503 if (!bo->tbo.pin_count) { in radeon_bo_list_validate()
507 radeon_mem_type_to_domain(bo->tbo.resource->mem_type); in radeon_bo_list_validate()
530 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate()
564 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_get_surface_reg()
583 if (old_object->tbo.pin_count == 0) in radeon_bo_get_surface_reg()
596 ttm_bo_unmap_virtual(&old_object->tbo); in radeon_bo_get_surface_reg()
606 bo->tbo.resource->start << PAGE_SHIFT, in radeon_bo_get_surface_reg()
607 bo->tbo.base.size); in radeon_bo_get_surface_reg()
690 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_get_tiling_flags()
702 dma_resv_assert_held(bo->tbo.base.resv); in radeon_bo_check_tiling()
712 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
740 rbo = container_of(bo, struct radeon_bo, tbo); in radeon_bo_move_notify()
755 rbo = container_of(bo, struct radeon_bo, tbo); in radeon_bo_fault_reserve_notify()
767 if (rbo->tbo.pin_count > 0) in radeon_bo_fault_reserve_notify()
810 struct dma_resv *resv = bo->tbo.base.resv; in radeon_bo_fence()