Lines Matching refs:vdpa
33 static struct snet *vdpa_to_snet(struct vdpa_device *vdpa)
35 return container_of(vdpa, struct snet, vdpa);
1005 /* Allocate vdpa device */
1006 snet = vdpa_alloc_device(struct snet, vdpa, &pdev->dev, &snet_config_ops, 1, 1, NULL,
1009 SNET_ERR(pdev, "Failed to allocate a vdpa device\n");
1051 snet->vdpa.dma_dev = &pdev->dev;
1054 ret = vdpa_register_device(&snet->vdpa, snet->cfg->vq_num);
1056 SNET_ERR(pdev, "Failed to register vdpa device\n");
1065 put_device(&snet->vdpa.dev);
1098 vdpa_unregister_device(&snet->vdpa);
1122 .name = "snet-vdpa-driver",