Home
last modified time | relevance | path

Searched refs:zbus (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/arch/s390/pci/
H A Dpci_bus.c34 * @zbus: the zbus holding the zdevices
41 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 in zpci_bus_release()
83 zpci_bus_put(struct zpci_bus *zbus) zpci_bus_put() argument
90 struct zpci_bus *zbus; zpci_bus_get() local
107 struct zpci_bus *zbus; zpci_bus_alloc() local
144 zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) zpci_bus_add_device() argument
180 zpci_bus_add_devices(struct zpci_bus *zbus) zpci_bus_add_devices() argument
195 struct zpci_bus *zbus = NULL; zpci_bus_device_register() local
270 struct zpci_bus *zbus = zdev->zbus; zpci_bus_device_unregister() local
[all...]
H A 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()
75 * instance, it must be on the same zbus. 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()
H A Dpci_event.c58 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
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()
H A 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
H A Dpci_bus.h33 struct zpci_bus *zbus = bus->sysdata; in get_zdev_by_bus() local
35 return (devfn >= ZPCI_FUNCTIONS_PER_BUS) ? NULL : zbus->function[devfn]; in get_zdev_by_bus()
H A Dpci.c704 struct zpci_bus *zbus = zdev->zbus; in zpci_remove_device() local
707 if (!zdev->zbus->bus) in zpci_remove_device()
710 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_remove_device()
727 * zpci_create_device() - Create a new zpci_dev and add it to the zbus
732 * Creates a new zpci device and adds it to its, possibly newly created, zbus
828 if (zdev->zbus->bus) in zpci_release_device()
H A Dpci_sysfs.c92 pci_rescan_bus(zdev->zbus->bus); in recover_store()
/kernel/linux/linux-6.6/arch/s390/pci/
H A Dpci_bus.c36 * The PCI resources for the function are set up and added to its zbus and the
37 * function is enabled. The function must be added to a zbus which must have
61 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0); in zpci_bus_prepare_device()
84 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
106 struct zpci_bus *zbus = zdev->zbus; in zpci_bus_remove_device() local
109 if (!zdev->zbus->bus) in zpci_bus_remove_device()
112 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_bus_remove_device()
129 * @zbus: the zbus t
137 zpci_bus_scan_bus(struct zpci_bus *zbus) zpci_bus_scan_bus() argument
166 struct zpci_bus *zbus = NULL; zpci_bus_scan_busses() local
186 zpci_bus_create_pci_bus(struct zpci_bus *zbus, struct zpci_dev *fr, struct pci_ops *ops) zpci_bus_create_pci_bus() argument
216 struct zpci_bus *zbus = container_of(kref, struct zpci_bus, kref); zpci_bus_release() local
235 zpci_bus_put(struct zpci_bus *zbus) zpci_bus_put() argument
242 struct zpci_bus *zbus; zpci_bus_get() local
259 struct zpci_bus *zbus; zpci_bus_alloc() local
296 zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) zpci_bus_add_device() argument
329 struct zpci_bus *zbus = NULL; zpci_bus_device_register() local
374 struct zpci_bus *zbus = zdev->zbus; zpci_bus_device_unregister() local
[all...]
H A 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()
75 * instance, it must be on the same zbus. 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()
H A Dpci_bus.h13 int zpci_bus_scan_bus(struct zpci_bus *zbus);
38 struct zpci_bus *zbus = bus->sysdata; in zdev_from_bus() local
40 return (devfn >= ZPCI_FUNCTIONS_PER_BUS) ? NULL : zbus->function[devfn]; in zdev_from_bus()
H A 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
H A Dpci_event.c264 if (zdev->zbus->bus) in __zpci_event_error()
265 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error()
H A Dpci.c564 pci_bus_remove_resource(zdev->zbus->bus, res); in zpci_cleanup_bus_resources()
770 * zpci_create_device() - Create a new zpci_dev and add it to the zbus
775 * Creates a new zpci device and adds it to its, possibly newly created, zbus
865 if (zdev->zbus->bus) in zpci_deconfigure_device()
918 if (zdev->zbus->bus) in zpci_release_device()
H A Dpci_sysfs.c113 pci_rescan_bus(zdev->zbus->bus); in recover_store()
/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A 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()
133 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot() local
138 return pci_hp_register(&zdev->hotplug_slot, zbus->bus, in zpci_init_slot()
/kernel/linux/linux-6.6/drivers/pci/hotplug/
H A Ds390_pci_hpc.c50 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in disable_slot()
110 struct zpci_bus *zbus = zdev->zbus; in zpci_init_slot() local
115 return pci_hp_register(&zdev->hotplug_slot, zbus->bus, in zpci_init_slot()
/kernel/linux/linux-5.10/arch/s390/include/asm/
H A Dpci.h118 struct zpci_bus *zbus; member
259 struct zpci_bus *zbus = pdev->sysdata; in to_zpci() local
261 return zbus->function[pdev->devfn]; in to_zpci()
/kernel/linux/linux-6.6/arch/s390/include/asm/
H A Dpci.h118 struct zpci_bus *zbus; member
274 struct zpci_bus *zbus = pdev->sysdata; in to_zpci() local
276 return zbus->function[pdev->devfn]; in to_zpci()

Completed in 9 milliseconds