Lines Matching refs:vgdev
37 struct virtio_gpu_device *vgdev = dev->dev_private; in virtio_gpu_gem_create() local
42 ret = virtio_gpu_object_create(vgdev, params, &obj, NULL); in virtio_gpu_gem_create()
67 struct virtio_gpu_device *vgdev = dev->dev_private; in virtio_gpu_mode_dumb_create() local
84 if (vgdev->has_resource_blob && !vgdev->has_virgl_3d) { in virtio_gpu_mode_dumb_create()
120 struct virtio_gpu_device *vgdev = obj->dev->dev_private; in virtio_gpu_gem_object_open() local
124 if (!vgdev->has_virgl_3d) in virtio_gpu_gem_object_open()
137 virtio_gpu_cmd_context_attach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_open()
140 virtio_gpu_notify(vgdev); in virtio_gpu_gem_object_open()
147 struct virtio_gpu_device *vgdev = obj->dev->dev_private; in virtio_gpu_gem_object_close() local
151 if (!vgdev->has_virgl_3d) in virtio_gpu_gem_object_close()
159 virtio_gpu_cmd_context_detach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_close()
161 virtio_gpu_notify(vgdev); in virtio_gpu_gem_object_close()
271 void virtio_gpu_array_put_free_delayed(struct virtio_gpu_device *vgdev, in virtio_gpu_array_put_free_delayed() argument
274 spin_lock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_delayed()
275 list_add_tail(&objs->next, &vgdev->obj_free_list); in virtio_gpu_array_put_free_delayed()
276 spin_unlock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_delayed()
277 schedule_work(&vgdev->obj_free_work); in virtio_gpu_array_put_free_delayed()
282 struct virtio_gpu_device *vgdev = in virtio_gpu_array_put_free_work() local
286 spin_lock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_work()
287 while (!list_empty(&vgdev->obj_free_list)) { in virtio_gpu_array_put_free_work()
288 objs = list_first_entry(&vgdev->obj_free_list, in virtio_gpu_array_put_free_work()
291 spin_unlock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_work()
293 spin_lock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_work()
295 spin_unlock(&vgdev->obj_free_lock); in virtio_gpu_array_put_free_work()