Lines Matching refs:vdev
297 static int hvc_vio_probe(struct vio_dev *vdev, in hvc_vio_probe() argument
307 if (!vdev || !id) in hvc_vio_probe()
310 if (of_device_is_compatible(vdev->dev.of_node, "hvterm1")) { in hvc_vio_probe()
313 } else if (of_device_is_compatible(vdev->dev.of_node, "hvterm-protocol")) { in hvc_vio_probe()
317 pr_err("hvc_vio: Unknown protocol for %s\n", vdev->dev.of_node->full_name); in hvc_vio_probe()
322 vdev->dev.of_node->full_name, in hvc_vio_probe()
327 vdev->unit_address == hvterm_priv0.termno) { in hvc_vio_probe()
343 pv->termno = vdev->unit_address; in hvc_vio_probe()
351 hp = hvc_alloc(termno, vdev->irq, ops, MAX_VIO_PUT_CHARS); in hvc_vio_probe()
354 dev_set_drvdata(&vdev->dev, hp); in hvc_vio_probe()
366 static int hvc_vio_remove(struct vio_dev *vdev) in hvc_vio_remove() argument
368 struct hvc_struct *hp = dev_get_drvdata(&vdev->dev); in hvc_vio_remove()