Lines Matching refs:vdev
864 g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT;
902 device_add_disk(&port->vio.vdev->dev, g, NULL);
934 struct vio_dev *vdev = to_vio_dev(dev);
939 if ((vdev->dev_no == port_data->dev_no) &&
940 (!(strcmp((char *)&vdev->type, port_data->type))) &&
960 static bool vdc_port_mpgroup_check(struct vio_dev *vdev)
965 port_data.dev_no = vdev->dev_no;
966 port_data.type = (char *)&vdev->type;
968 dev = device_find_child(vdev->dev.parent, &port_data,
977 static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id)
991 if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) {
993 vdev->dev_no);
998 if (vdc_port_mpgroup_check(vdev)) {
1001 dev_name(&vdev->dev));
1012 if (vdev->dev_no >= 26)
1015 'a' + ((int)vdev->dev_no / 26) - 1,
1016 'a' + ((int)vdev->dev_no % 26));
1019 VDCBLK_NAME "%c", 'a' + ((int)vdev->dev_no % 26));
1026 ldc_timeout = mdesc_get_property(hp, vdev->mp, "vdc-timeout", NULL);
1031 err = vio_driver_init(&port->vio, vdev, VDEV_DISK,
1056 dev_set_drvdata(&vdev->dev, port);
1076 static int vdc_port_remove(struct vio_dev *vdev)
1078 struct vdc_port *port = dev_get_drvdata(&vdev->dev);
1095 dev_set_drvdata(&vdev->dev, NULL);