Lines Matching refs:vdev
83 struct virtio_device *vdev; member
145 struct virtio_chan *chan = vq->vdev->priv; in req_done()
501 struct virtio_device *vdev; in p9_mount_tag_show() local
503 vdev = dev_to_virtio(dev); in p9_mount_tag_show()
504 chan = vdev->priv; in p9_mount_tag_show()
519 static int p9_virtio_probe(struct virtio_device *vdev) in p9_virtio_probe() argument
533 chan->vdev = vdev; in p9_virtio_probe()
536 chan->vq = virtio_find_single_vq(vdev, req_done, "requests"); in p9_virtio_probe()
541 chan->vq->vdev->priv = chan; in p9_virtio_probe()
547 if (virtio_has_feature(vdev, VIRTIO_9P_MOUNT_TAG)) { in p9_virtio_probe()
548 virtio_cread(vdev, struct virtio_9p_config, tag_len, &tag_len); in p9_virtio_probe()
559 virtio_cread_bytes(vdev, offsetof(struct virtio_9p_config, tag), in p9_virtio_probe()
563 err = sysfs_create_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_probe()
577 virtio_device_ready(vdev); in p9_virtio_probe()
584 kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); in p9_virtio_probe()
591 vdev->config->del_vqs(vdev); in p9_virtio_probe()
651 static void p9_virtio_remove(struct virtio_device *vdev) in p9_virtio_remove() argument
653 struct virtio_chan *chan = vdev->priv; in p9_virtio_remove()
657 vdev->config->del_vqs(vdev); in p9_virtio_remove()
662 sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); in p9_virtio_remove()
663 kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); in p9_virtio_remove()