Lines Matching refs:vdev
103 struct virtio_device *vdev; member
142 struct cfv_info *cfv = vq_tx->vdev->priv; in cfv_release_cb()
162 struct cfv_info *cfv = vq_tx->vdev->priv; in cfv_release_used_buf()
350 static void cfv_recv(struct virtio_device *vdev, struct vringh *vr_rx) in cfv_recv() argument
352 struct cfv_info *cfv = vdev->priv; in cfv_recv()
362 dma_free_coherent(cfv->vdev->dev.parent->parent, in cfv_destroy_genpool()
396 cfv->vdev->dev.parent->parent, in cfv_create_genpool()
651 static int cfv_probe(struct virtio_device *vdev) in cfv_probe() argument
667 cfv->vdev = vdev; in cfv_probe()
674 if (!vdev->vringh_config || !vdev->vringh_config->find_vrhs) in cfv_probe()
677 err = vdev->vringh_config->find_vrhs(vdev, 1, &cfv->vr_rx, &vrh_cbs); in cfv_probe()
682 err = vdev->config->find_vqs(vdev, 1, &cfv->vq_tx, &vq_cbs, &names); in cfv_probe()
687 if (vdev->config->get) { in cfv_probe()
688 virtio_cread(vdev, struct virtio_caif_transf_config, headroom, in cfv_probe()
690 virtio_cread(vdev, struct virtio_caif_transf_config, headroom, in cfv_probe()
692 virtio_cread(vdev, struct virtio_caif_transf_config, tailroom, in cfv_probe()
694 virtio_cread(vdev, struct virtio_caif_transf_config, tailroom, in cfv_probe()
696 virtio_cread(vdev, struct virtio_caif_transf_config, mtu, in cfv_probe()
698 virtio_cread(vdev, struct virtio_caif_transf_config, mtu, in cfv_probe()
716 vdev->priv = cfv; in cfv_probe()
733 dev_err(&vdev->dev, "Unable to register netdev (%d)\n", err); in cfv_probe()
744 vdev->vringh_config->del_vrhs(cfv->vdev); in cfv_probe()
745 if (cfv->vdev) in cfv_probe()
746 vdev->config->del_vqs(cfv->vdev); in cfv_probe()
751 static void cfv_remove(struct virtio_device *vdev) in cfv_remove() argument
753 struct cfv_info *cfv = vdev->priv; in cfv_remove()
763 vdev->config->reset(vdev); in cfv_remove()
764 vdev->vringh_config->del_vrhs(cfv->vdev); in cfv_remove()
766 vdev->config->del_vqs(cfv->vdev); in cfv_remove()