Home
last modified time | relevance | path

Searched refs:zbus (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.10/arch/s390/pci/
Dpci_bus.c41 static int zpci_bus_scan(struct zpci_bus *zbus, int domain, struct pci_ops *ops) in zpci_bus_scan() argument
49 zbus->domain_nr = rc; in zpci_bus_scan()
51 bus = pci_scan_root_bus(NULL, ZPCI_BUS_NR, ops, zbus, &zbus->resources); in zpci_bus_scan()
53 zpci_free_domain(zbus->domain_nr); in zpci_bus_scan()
57 zbus->bus = bus; in zpci_bus_scan()
64 struct zpci_bus *zbus = container_of(kref, struct zpci_bus, kref); in zpci_bus_release() local
66 if (zbus->bus) { in zpci_bus_release()
68 pci_stop_root_bus(zbus->bus); in zpci_bus_release()
70 zpci_free_domain(zbus->domain_nr); in zpci_bus_release()
71 pci_free_resource_list(&zbus->resources); in zpci_bus_release()
[all …]
Dpci_event.c58 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
83 if (zdev && zdev->zbus && zdev->zbus->bus) in __zpci_event_availability()
84 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_availability()
105 if (!zdev->zbus->bus) in __zpci_event_availability()
108 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in __zpci_event_availability()
114 pci_bus_add_devices(zdev->zbus->bus); in __zpci_event_availability()
Dpci_iov.c63 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
71 if (!zbus->multifunction) in zpci_iov_setup_virtfn()
82 zdev = zbus->function[i]; in zpci_iov_setup_virtfn()
84 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_setup_virtfn()
Dpci_iov.h18 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
25 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
Dpci_bus.h27 struct zpci_bus *zbus = bus->sysdata; in get_zdev_by_bus() local
29 return (devfn >= ZPCI_FUNCTIONS_PER_BUS) ? NULL : zbus->function[devfn]; in get_zdev_by_bus()
Dpci.c687 struct zpci_bus *zbus = zdev->zbus; in zpci_remove_device() local
690 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_remove_device()
742 if (zdev->zbus->bus) in zpci_release_device()
Dpci_sysfs.c92 pci_rescan_bus(zdev->zbus->bus); in recover_store()
/Linux-v5.10/drivers/pci/hotplug/
Ds390_pci_hpc.c55 struct zpci_bus *zbus = zdev->zbus; in enable_slot() local
69 pci_scan_slot(zbus->bus, zdev->devfn); in enable_slot()
71 pci_bus_add_devices(zbus->bus); in enable_slot()
91 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot()
139 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot() local
144 return pci_hp_register(&zdev->hotplug_slot, zbus->bus, in zpci_init_slot()
/Linux-v5.10/arch/s390/include/asm/
Dpci.h118 struct zpci_bus *zbus; member
256 struct zpci_bus *zbus = pdev->sysdata; in to_zpci() local
258 return zbus->function[pdev->devfn]; in to_zpci()