Lines Matching refs:ents
152 struct virtio_gpu_mem_entry **ents, in virtio_gpu_object_shmem_init() argument
186 *ents = kvmalloc_array(*nents, in virtio_gpu_object_shmem_init()
189 if (!(*ents)) { in virtio_gpu_object_shmem_init()
196 (*ents)[si].addr = cpu_to_le64(sg_dma_address(sg)); in virtio_gpu_object_shmem_init()
197 (*ents)[si].length = cpu_to_le32(sg_dma_len(sg)); in virtio_gpu_object_shmem_init()
198 (*ents)[si].padding = 0; in virtio_gpu_object_shmem_init()
202 (*ents)[si].addr = cpu_to_le64(sg_phys(sg)); in virtio_gpu_object_shmem_init()
203 (*ents)[si].length = cpu_to_le32(sg->length); in virtio_gpu_object_shmem_init()
204 (*ents)[si].padding = 0; in virtio_gpu_object_shmem_init()
219 struct virtio_gpu_mem_entry *ents; in virtio_gpu_object_create() local
249 ret = virtio_gpu_object_shmem_init(vgdev, bo, &ents, &nents); in virtio_gpu_object_create()
261 ents, nents); in virtio_gpu_object_create()
265 virtio_gpu_object_attach(vgdev, bo, ents, nents); in virtio_gpu_object_create()
269 virtio_gpu_object_attach(vgdev, bo, ents, nents); in virtio_gpu_object_create()