• Home
  • Raw
  • Download

Lines Matching refs:vdev

43 	container_of(_vdev, struct virtio_uml_device, vdev)
46 struct virtio_device vdev; member
326 virtio_config_changed(&vu_dev->vdev); in vu_req_interrupt()
694 static void vu_get(struct virtio_device *vdev, unsigned offset, in vu_get() argument
697 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_get()
702 static void vu_set(struct virtio_device *vdev, unsigned offset, in vu_set() argument
705 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_set()
710 static u8 vu_get_status(struct virtio_device *vdev) in vu_get_status() argument
712 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_get_status()
717 static void vu_set_status(struct virtio_device *vdev, u8 status) in vu_set_status() argument
719 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_set_status()
724 static void vu_reset(struct virtio_device *vdev) in vu_reset() argument
726 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_reset()
744 static void vu_del_vqs(struct virtio_device *vdev) in vu_del_vqs() argument
746 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_del_vqs()
751 list_for_each_entry_reverse(vq, &vdev->vqs, list) in vu_del_vqs()
757 list_for_each_entry_safe(vq, n, &vdev->vqs, list) in vu_del_vqs()
796 static struct virtqueue *vu_setup_vq(struct virtio_device *vdev, in vu_setup_vq() argument
800 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_setup_vq()
815 vq = vring_create_virtqueue(index, num, PAGE_SIZE, vdev, true, true, in vu_setup_vq()
864 static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, in vu_find_vqs() argument
869 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_find_vqs()
883 vqs[i] = vu_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vu_find_vqs()
891 list_for_each_entry(vq, &vdev->vqs, list) { in vu_find_vqs()
907 vu_del_vqs(vdev); in vu_find_vqs()
911 static u64 vu_get_features(struct virtio_device *vdev) in vu_get_features() argument
913 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_get_features()
918 static int vu_finalize_features(struct virtio_device *vdev) in vu_finalize_features() argument
920 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_finalize_features()
921 u64 supported = vdev->features & VHOST_USER_SUPPORTED_F; in vu_finalize_features()
923 vring_transport_features(vdev); in vu_finalize_features()
924 vu_dev->features = vdev->features | supported; in vu_finalize_features()
929 static const char *vu_bus_name(struct virtio_device *vdev) in vu_bus_name() argument
931 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in vu_bus_name()
951 struct virtio_device *vdev = in virtio_uml_release_dev() local
953 struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); in virtio_uml_release_dev()
985 vu_dev->vdev.dev.parent = &pdev->dev; in virtio_uml_probe()
986 vu_dev->vdev.dev.release = virtio_uml_release_dev; in virtio_uml_probe()
987 vu_dev->vdev.config = &virtio_uml_config_ops; in virtio_uml_probe()
988 vu_dev->vdev.id.device = pdata->virtio_device_id; in virtio_uml_probe()
989 vu_dev->vdev.id.vendor = VIRTIO_DEV_ANY_ID; in virtio_uml_probe()
1006 rc = register_virtio_device(&vu_dev->vdev); in virtio_uml_probe()
1008 put_device(&vu_dev->vdev.dev); in virtio_uml_probe()
1022 unregister_virtio_device(&vu_dev->vdev); in virtio_uml_remove()