Lines Matching refs:tbo
28 static void virtio_gpu_ttm_bo_destroy(struct ttm_buffer_object *tbo) in virtio_gpu_ttm_bo_destroy() argument
33 bo = container_of(tbo, struct virtio_gpu_object, tbo); in virtio_gpu_ttm_bo_destroy()
89 ret = ttm_bo_init(&vgdev->mman.bdev, &bo->tbo, size, type, in virtio_gpu_object_create()
110 r = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, &bo->kmap); in virtio_gpu_object_kmap()
123 struct page **pages = bo->tbo.ttm->pages; in virtio_gpu_object_get_sg_table()
124 int nr_pages = bo->tbo.num_pages; in virtio_gpu_object_get_sg_table()
130 if (bo->tbo.ttm->state == tt_unpopulated) in virtio_gpu_object_get_sg_table()
131 bo->tbo.ttm->bdev->driver->ttm_tt_populate(bo->tbo.ttm); in virtio_gpu_object_get_sg_table()
158 r = ttm_bo_reserve(&bo->tbo, true, no_wait, false, NULL); in virtio_gpu_object_wait()
161 r = ttm_bo_wait(&bo->tbo, true, true, no_wait); in virtio_gpu_object_wait()
162 ttm_bo_unreserve(&bo->tbo); in virtio_gpu_object_wait()