Lines Matching refs:zdev

25 	struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev,  in enable_slot()  local
29 if (zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot()
32 rc = sclp_pci_configure(zdev->fid); in enable_slot()
33 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, rc); in enable_slot()
36 zdev->state = ZPCI_FN_STATE_CONFIGURED; in enable_slot()
38 return zpci_scan_configured_device(zdev, zdev->fh); in enable_slot()
43 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in disable_slot() local
47 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) in disable_slot()
50 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot()
57 return zpci_deconfigure_device(zdev); in disable_slot()
62 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in reset_slot() local
65 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) in reset_slot()
80 return zpci_hot_reset_device(zdev); in reset_slot()
85 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in get_power_status() local
88 *value = zpci_is_device_configured(zdev) ? 1 : 0; in get_power_status()
107 int zpci_init_slot(struct zpci_dev *zdev) in zpci_init_slot() argument
110 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot()
112 zdev->hotplug_slot.ops = &s390_hotplug_slot_ops; in zpci_init_slot()
114 snprintf(name, SLOT_NAME_SIZE, "%08x", zdev->fid); in zpci_init_slot()
115 return pci_hp_register(&zdev->hotplug_slot, zbus->bus, in zpci_init_slot()
116 zdev->devfn, name); in zpci_init_slot()
119 void zpci_exit_slot(struct zpci_dev *zdev) in zpci_exit_slot() argument
121 pci_hp_deregister(&zdev->hotplug_slot); in zpci_exit_slot()