Lines Matching refs:vdev
70 struct virtio_device *vdev; member
130 struct virtio_chan *chan = vq->vdev->priv; in req_done()
570 struct virtio_device *vdev; in p9_mount_tag_show() local
573 vdev = dev_to_virtio(dev); in p9_mount_tag_show()
574 chan = vdev->priv; in p9_mount_tag_show()
592 static int p9_virtio_probe(struct virtio_device *vdev) in p9_virtio_probe() argument
599 if (!vdev->config->get) { in p9_virtio_probe()
600 dev_err(&vdev->dev, "%s failure: config access disabled\n", in p9_virtio_probe()
612 chan->vdev = vdev; in p9_virtio_probe()
615 chan->vq = virtio_find_single_vq(vdev, req_done, "requests"); in p9_virtio_probe()
620 chan->vq->vdev->priv = chan; in p9_virtio_probe()
626 if (virtio_has_feature(vdev, VIRTIO_9P_MOUNT_TAG)) { in p9_virtio_probe()
627 virtio_cread(vdev, struct virtio_9p_config, tag_len, &tag_len); in p9_virtio_probe()
638 virtio_cread_bytes(vdev, offsetof(struct virtio_9p_config, tag), in p9_virtio_probe()
641 err = sysfs_create_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_probe()
655 virtio_device_ready(vdev); in p9_virtio_probe()
662 kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); in p9_virtio_probe()
667 sysfs_remove_file(&vdev->dev.kobj, &dev_attr_mount_tag.attr); in p9_virtio_probe()
671 vdev->config->del_vqs(vdev); in p9_virtio_probe()
734 static void p9_virtio_remove(struct virtio_device *vdev) in p9_virtio_remove() argument
736 struct virtio_chan *chan = vdev->priv; in p9_virtio_remove()
750 dev_emerg(&vdev->dev, in p9_virtio_remove()
759 virtio_reset_device(vdev); in p9_virtio_remove()
760 vdev->config->del_vqs(vdev); in p9_virtio_remove()
762 sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_remove()
763 kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); in p9_virtio_remove()