Lines Matching refs:ents
141 struct virtio_gpu_mem_entry **ents, in virtio_gpu_object_shmem_init() argument
175 *ents = kvmalloc_array(*nents, in virtio_gpu_object_shmem_init()
178 if (!(*ents)) { in virtio_gpu_object_shmem_init()
185 (*ents)[si].addr = cpu_to_le64(sg_dma_address(sg)); in virtio_gpu_object_shmem_init()
186 (*ents)[si].length = cpu_to_le32(sg_dma_len(sg)); in virtio_gpu_object_shmem_init()
187 (*ents)[si].padding = 0; in virtio_gpu_object_shmem_init()
191 (*ents)[si].addr = cpu_to_le64(sg_phys(sg)); in virtio_gpu_object_shmem_init()
192 (*ents)[si].length = cpu_to_le32(sg->length); in virtio_gpu_object_shmem_init()
193 (*ents)[si].padding = 0; in virtio_gpu_object_shmem_init()
208 struct virtio_gpu_mem_entry *ents; in virtio_gpu_object_create() local
246 ret = virtio_gpu_object_shmem_init(vgdev, bo, &ents, &nents); in virtio_gpu_object_create()
252 virtio_gpu_object_attach(vgdev, bo, ents, nents); in virtio_gpu_object_create()