Home
last modified time | relevance | path

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

/linux/arch/s390/pci/
H A Dpci_bus.c58 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res); in zpci_bus_prepare_device()
81 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
103 struct zpci_bus *zbus = zdev->zbus; in zpci_bus_remove_device() local
106 if (!zdev->zbus->bus) in zpci_bus_remove_device()
109 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_bus_remove_device()
134 int zpci_bus_scan_bus(struct zpci_bus *zbus) in zpci_bus_scan_bus() argument
140 zdev = zbus->function[devfn]; in zpci_bus_scan_bus()
149 pci_scan_child_bus(zbus->bus); in zpci_bus_scan_bus()
150 pci_bus_add_devices(zbus->bus); in zpci_bus_scan_bus()
172 static int zpci_bus_create_pci_bus(struct zpci_bus *zbus, struct zpci_dev *fr, struct pci_ops *ops) in zpci_bus_create_pci_bus() argument
[all …]
H A Dpci_iov.c76 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument
81 if (!zbus->multifunction) in zpci_iov_find_parent_pf()
98 zdev = zbus->function[i]; in zpci_iov_find_parent_pf()
100 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_find_parent_pf()
113 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
119 pdev_pf = zpci_iov_find_parent_pf(zbus, zdev); in zpci_iov_setup_virtfn()
H A Dpci_iov.h20 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn);
22 struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev);
29 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
34 static inline struct pci_dev *zpci_iov_find_parent_pf(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_iov_find_parent_pf() argument
H A Dpci_irq.c410 struct zpci_bus *zbus = zdev->zbus; in zpci_msi_domain_alloc() local
429 (unsigned long)zbus->msi_parent_domain); in zpci_msi_domain_alloc()
434 (unsigned long)zbus->msi_parent_domain); in zpci_msi_domain_alloc()
504 int zpci_create_parent_msi_domain(struct zpci_bus *zbus) in zpci_create_parent_msi_domain() argument
508 snprintf(fwnode_name, sizeof(fwnode_name), "ZPCI_MSI_DOM_%04x", zbus->domain_nr); in zpci_create_parent_msi_domain()
522 zbus->msi_parent_domain = msi_create_parent_irq_domain(&info, &zpci_msi_parent_ops); in zpci_create_parent_msi_domain()
523 if (!zbus->msi_parent_domain) { in zpci_create_parent_msi_domain()
532 void zpci_remove_parent_msi_domain(struct zpci_bus *zbus) in zpci_remove_parent_msi_domain() argument
536 fn = zbus->msi_parent_domain->fwnode; in zpci_remove_parent_msi_domain()
537 irq_domain_remove(zbus->msi_parent_domain); in zpci_remove_parent_msi_domain()
H A Dpci_bus.h17 int zpci_bus_scan_bus(struct zpci_bus *zbus);
52 struct zpci_bus *zbus = bus->sysdata; in zdev_from_bus() local
54 return (devfn >= ZPCI_FUNCTIONS_PER_BUS) ? NULL : zbus->function[devfn]; in zdev_from_bus()
H A Dpci_report.c114 if (!zdev || !zdev->zbus) in zpci_report_status()
124 if (zdev->zbus->bus) in zpci_report_status()
125 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in zpci_report_status()
H A Dpci.c596 pci_bus_remove_resource(zdev->zbus->bus, res); in zpci_cleanup_bus_resources()
936 if (zdev->zbus->bus) in zpci_deconfigure_device()
1166 struct zpci_bus *zbus; in zpci_scan_devices() local
1175 zpci_bus_for_each(zbus) { in zpci_scan_devices()
1176 zpci_bus_scan_bus(zbus); in zpci_scan_devices()
H A Dpci_event.c316 if (zdev->zbus->bus) in __zpci_event_error()
317 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
H A Dpci_sysfs.c119 pci_rescan_bus(zdev->zbus->bus); in recover_store()
/linux/drivers/pci/hotplug/
H A Ds390_pci_hpc.c59 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot()
129 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot() local
134 return pci_hp_register(&zdev->hotplug_slot, zbus->bus, in zpci_init_slot()
/linux/arch/s390/include/asm/
H A Dpci.h123 struct zpci_bus *zbus; member
294 struct zpci_bus *zbus = pdev->sysdata; in to_zpci() local
296 return zbus->function[pdev->devfn]; in to_zpci()
316 int zpci_create_parent_msi_domain(struct zpci_bus *zbus);
317 void zpci_remove_parent_msi_domain(struct zpci_bus *zbus);