Lines Matching refs:tbo
60 static void virtio_gpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) in virtio_gpu_ttm_bo_destroy() argument
65 bo = container_of(tbo, struct virtio_gpu_object, tbo); in virtio_gpu_ttm_bo_destroy()
133 ret = ttm_bo_init(&vgdev->mman.bdev, &bo->tbo, params->size, in virtio_gpu_object_create()
154 mainbuf.bo = &bo->tbo; in virtio_gpu_object_create()
190 r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap); in virtio_gpu_object_kmap()
201 struct page **pages = bo->tbo.ttm->pages; in virtio_gpu_object_get_sg_table()
202 int nr_pages = bo->tbo.num_pages; in virtio_gpu_object_get_sg_table()
213 if (bo->tbo.ttm->state == tt_unpopulated) in virtio_gpu_object_get_sg_table()
214 bo->tbo.ttm->bdev->driver->ttm_tt_populate(bo->tbo.ttm, &ctx); in virtio_gpu_object_get_sg_table()
246 r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL); in virtio_gpu_object_wait()
249 r = ttm_bo_wait(&bo->tbo, true, no_wait); in virtio_gpu_object_wait()
250 ttm_bo_unreserve(&bo->tbo); in virtio_gpu_object_wait()