Lines Matching refs:tbo
35 static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo) in qxl_ttm_bo_destroy() argument
40 bo = to_qxl_bo(tbo); in qxl_ttm_bo_destroy()
41 qdev = to_qxl(bo->tbo.base.dev); in qxl_ttm_bo_destroy()
48 drm_gem_object_release(&bo->tbo.base); in qxl_ttm_bo_destroy()
65 if (qbo->tbo.base.size <= PAGE_SIZE) in qxl_ttm_placement_from_domain()
128 r = drm_gem_object_init(&qdev->ddev, &bo->tbo.base, size); in qxl_bo_create()
133 bo->tbo.base.funcs = &qxl_object_funcs; in qxl_bo_create()
143 bo->tbo.priority = priority; in qxl_bo_create()
144 r = ttm_bo_init_reserved(&qdev->mman.bdev, &bo->tbo, size, type, in qxl_bo_create()
155 ttm_bo_pin(&bo->tbo); in qxl_bo_create()
156 ttm_bo_unreserve(&bo->tbo); in qxl_bo_create()
165 dma_resv_assert_held(bo->tbo.base.resv); in qxl_bo_vmap_locked()
171 r = ttm_bo_vmap(&bo->tbo, &bo->map); in qxl_bo_vmap_locked()
215 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page()
217 else if (bo->tbo.resource->mem_type == TTM_PL_PRIV) in qxl_bo_kmap_atomic_page()
222 offset = bo->tbo.resource->start << PAGE_SHIFT; in qxl_bo_kmap_atomic_page()
241 dma_resv_assert_held(bo->tbo.base.resv); in qxl_bo_vunmap_locked()
249 ttm_bo_vunmap(&bo->tbo, &bo->map); in qxl_bo_vunmap_locked()
269 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page()
270 (bo->tbo.resource->mem_type != TTM_PL_PRIV)) in qxl_bo_kunmap_atomic_page()
284 drm_gem_object_put(&(*bo)->tbo.base); in qxl_bo_unref()
290 drm_gem_object_get(&bo->tbo.base); in qxl_bo_ref()
297 struct drm_device *ddev = bo->tbo.base.dev; in __qxl_bo_pin()
300 if (bo->tbo.pin_count) { in __qxl_bo_pin()
301 ttm_bo_pin(&bo->tbo); in __qxl_bo_pin()
305 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_pin()
307 ttm_bo_pin(&bo->tbo); in __qxl_bo_pin()
315 ttm_bo_unpin(&bo->tbo); in __qxl_bo_unpin()
363 &bo->tbo.base, bo, (unsigned long)bo->tbo.base.size, in qxl_bo_force_delete()
364 *((unsigned long *)&bo->tbo.base.refcount)); in qxl_bo_force_delete()
369 drm_gem_object_put(&bo->tbo.base); in qxl_bo_force_delete()