Lines Matching refs:pdrvdata
69 static struct ports_driver_data pdrvdata;
75 /* We'll place all consoles in a list in the pdrvdata struct */
212 list_for_each_entry(cons, &pdrvdata.consoles, list) {
873 port->cons.vtermno = pdrvdata.next_vtermno;
884 pdrvdata.next_vtermno++;
885 list_add_tail(&port->cons.list, &pdrvdata.consoles);
1044 port->dev = device_create(pdrvdata.class, &port->portdev->vdev->dev,
1087 if (pdrvdata.debugfs_dir) {
1095 pdrvdata.debugfs_dir,
1105 device_destroy(pdrvdata.class, port->dev->devt);
1138 device_destroy(pdrvdata.class, port->dev->devt);
1521 portdev->drv_index = pdrvdata.index++;
1652 pdrvdata.class = class_create(THIS_MODULE, "virtio-ports");
1653 if (IS_ERR(pdrvdata.class)) {
1654 err = PTR_ERR(pdrvdata.class);
1659 pdrvdata.debugfs_dir = debugfs_create_dir("virtio-ports", NULL);
1660 if (!pdrvdata.debugfs_dir) {
1662 PTR_ERR(pdrvdata.debugfs_dir));
1664 INIT_LIST_HEAD(&pdrvdata.consoles);
1673 class_destroy(pdrvdata.class);
1674 if (pdrvdata.debugfs_dir)
1675 debugfs_remove_recursive(pdrvdata.debugfs_dir);