Lines Matching refs:zdev
24 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \
26 return sprintf(buf, fmt, zdev->member); \
46 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev));
48 return sprintf(buf, zpci_use_mio(zdev) ? "1\n" : "0\n");
52 static int _do_recover(struct pci_dev *pdev, struct zpci_dev *zdev)
58 if (zdev_enabled(zdev)) {
59 ret = zpci_disable_device(zdev);
72 ret = zpci_enable_device(zdev);
76 if (zdev->dma_table) {
77 ret = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma,
78 virt_to_phys(zdev->dma_table), &status);
80 zpci_disable_device(zdev);
90 struct zpci_dev *zdev = to_zpci(pdev);
107 mutex_lock(&zdev->state_lock);
108 if (zdev->state != ZPCI_FN_STATE_CONFIGURED)
123 ret = _do_recover(pdev, zdev);
125 pci_rescan_bus(zdev->zbus->bus);
129 mutex_unlock(&zdev->state_lock);
142 struct zpci_dev *zdev = to_zpci(pdev);
144 return memory_read_from_buffer(buf, count, &off, zdev->util_str,
145 sizeof(zdev->util_str));
156 struct zpci_dev *zdev = to_zpci(pdev);
162 ret = sclp_pci_report(report, zdev->fh, zdev->fid);
179 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev));
183 index = zdev->uid;