Lines Matching refs:pages
72 if (shmem->pages) { in virtio_gpu_cleanup_object()
75 shmem->pages, DMA_TO_DEVICE, 0); in virtio_gpu_cleanup_object()
79 sg_free_table(shmem->pages); in virtio_gpu_cleanup_object()
80 kfree(shmem->pages); in virtio_gpu_cleanup_object()
81 shmem->pages = NULL; in virtio_gpu_cleanup_object()
169 shmem->pages = drm_gem_shmem_get_sg_table(&bo->base); in virtio_gpu_object_shmem_init()
170 if (IS_ERR(shmem->pages)) { in virtio_gpu_object_shmem_init()
172 ret = PTR_ERR(shmem->pages); in virtio_gpu_object_shmem_init()
173 shmem->pages = NULL; in virtio_gpu_object_shmem_init()
179 shmem->pages, DMA_TO_DEVICE, 0); in virtio_gpu_object_shmem_init()
182 *nents = shmem->mapped = shmem->pages->nents; in virtio_gpu_object_shmem_init()
184 *nents = shmem->pages->orig_nents; in virtio_gpu_object_shmem_init()
196 for_each_sgtable_dma_sg(shmem->pages, sg, si) { in virtio_gpu_object_shmem_init()
202 for_each_sgtable_sg(shmem->pages, sg, si) { in virtio_gpu_object_shmem_init()