Lines Matching refs:zdev
24 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \
26 return sysfs_emit(buf, fmt, zdev->member); \
47 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in mio_enabled_show() local
49 return sysfs_emit(buf, zpci_use_mio(zdev) ? "1\n" : "0\n"); in mio_enabled_show()
53 static int _do_recover(struct pci_dev *pdev, struct zpci_dev *zdev) in _do_recover() argument
58 if (zdev_enabled(zdev)) { in _do_recover()
59 ret = zpci_disable_device(zdev); in _do_recover()
72 ret = zpci_reenable_device(zdev); in _do_recover()
82 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local
99 mutex_lock(&zdev->state_lock); in recover_store()
100 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) in recover_store()
115 ret = _do_recover(pdev, zdev); in recover_store()
117 pci_rescan_bus(zdev->zbus->bus); in recover_store()
121 mutex_unlock(&zdev->state_lock); in recover_store()
134 struct zpci_dev *zdev = to_zpci(pdev); in util_string_read() local
136 return memory_read_from_buffer(buf, count, &off, zdev->util_str, in util_string_read()
137 sizeof(zdev->util_str)); in util_string_read()
148 struct zpci_dev *zdev = to_zpci(pdev); in report_error_write() local
154 ret = sclp_pci_report(report, zdev->fh, zdev->fid); in report_error_write()
171 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in index_show() local
175 index = zdev->uid; in index_show()