Lines Matching refs:zdev
40 struct zpci_dev *zdev; member
45 int ret = sclp_pci_configure(slot->zdev->fid); in slot_configure()
47 zpci_dbg(3, "conf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_configure()
49 slot->zdev->state = ZPCI_FN_STATE_CONFIGURED; in slot_configure()
56 int ret = sclp_pci_deconfigure(slot->zdev->fid); in slot_deconfigure()
58 zpci_dbg(3, "deconf fid:%x, rc:%d\n", slot->zdev->fid, ret); in slot_deconfigure()
60 slot->zdev->state = ZPCI_FN_STATE_STANDBY; in slot_deconfigure()
70 if (slot->zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot()
77 rc = zpci_enable_device(slot->zdev); in enable_slot()
81 pci_scan_slot(slot->zdev->bus, ZPCI_DEVFN); in enable_slot()
83 pci_bus_add_devices(slot->zdev->bus); in enable_slot()
98 if (!zpci_fn_configured(slot->zdev->state)) in disable_slot()
101 if (slot->zdev->pdev) in disable_slot()
102 pci_stop_and_remove_bus_device_locked(slot->zdev->pdev); in disable_slot()
104 rc = zpci_disable_device(slot->zdev); in disable_slot()
115 switch (slot->zdev->state) { in get_power_status()
149 int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
157 if (!zdev) in zpci_init_slot()
170 slot->zdev = zdev; in zpci_init_slot()
183 snprintf(name, SLOT_NAME_SIZE, "%08x", zdev->fid); in zpci_init_slot()
184 rc = pci_hp_register(slot->hotplug_slot, zdev->bus, in zpci_init_slot()
202 void zpci_exit_slot(struct zpci_dev *zdev) in zpci_exit_slot() argument
209 if (slot->zdev != zdev) in zpci_exit_slot()