Lines Matching defs:vdev
227 struct vio_dev *vdev,
259 SET_NETDEV_DEV(dev, &vdev->dev);
279 static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id)
296 rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
304 port_id = mdesc_get_property(hp, vdev->mp, id_prop, NULL);
313 vp = vsw_get_vnet(hp, vdev->mp, &handle);
323 dev = vsw_alloc_netdev(vsw_port_hwaddr, vdev, handle, *port_id);
351 err = vio_driver_init(&port->vio, vdev, VDEV_NETWORK,
361 dev_set_drvdata(&vdev->dev, port);
402 dev_set_drvdata(&vdev->dev, NULL);
410 static int vsw_port_remove(struct vio_dev *vdev)
412 struct vnet_port *port = dev_get_drvdata(&vdev->dev);
432 dev_set_drvdata(&vdev->dev, NULL);