Lines Matching defs:bus

25  * Starting @pdev, walk up the bus calling @fn for each possible alias
26 * of @pdev at the root bus.
32 struct pci_bus *bus;
37 * requester is on another PCI bus.
53 ret = fn(pdev, PCI_DEVID(pdev->bus->number, devfn),
60 for (bus = pdev->bus; !pci_is_root_bus(bus); bus = bus->parent) {
64 if (!bus->self)
67 tmp = bus->self;
75 * devices using the subordinate bus number (PCI Express to
77 * where the upstream bus is PCI/X we alias to the bridge
116 static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr)
121 if (bus->number == busnr)
122 return bus;
124 list_for_each_entry(tmp, &bus->children, node) {
133 * pci_find_bus - locate PCI bus from a given domain and bus number
135 * @busnr: number of desired PCI bus
137 * Given a PCI bus number and domain number, the desired PCI bus is located
138 * in the global list of PCI buses. If the bus is found, a pointer to its
139 * data structure is returned. If no bus is found, %NULL is returned.
143 struct pci_bus *bus = NULL;
146 while ((bus = pci_find_next_bus(bus)) != NULL) {
147 if (pci_domain_nr(bus) != domain)
149 tmp_bus = pci_do_find_bus(bus, busnr);
158 * pci_find_next_bus - begin or continue searching for a PCI bus
159 * @from: Previous PCI bus found, or %NULL for new search.
183 * @bus: PCI bus on which desired PCI device resides
188 * Given a PCI bus and slot/function number, the desired PCI device
195 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn)
202 list_for_each_entry(dev, &bus->devices, bus_list) {
216 * pci_get_domain_bus_and_slot - locate PCI device for a given PCI domain (segment), bus, and slot
218 * @bus: PCI bus on which desired PCI device resides
223 * Given a PCI domain, bus, and slot/function number, the desired PCI
230 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus,
236 if (pci_domain_nr(dev->bus) == domain &&
237 (dev->bus->number == bus && dev->devfn == devfn))