Lines Matching refs:bus
22 if (!dev->bus->dev.of_node) in pci_set_of_node()
24 dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, in pci_set_of_node()
34 void pci_set_bus_of_node(struct pci_bus *bus) in pci_set_bus_of_node() argument
36 if (bus->self == NULL) in pci_set_bus_of_node()
37 bus->dev.of_node = pcibios_get_phb_of_node(bus); in pci_set_bus_of_node()
39 bus->dev.of_node = of_node_get(bus->self->dev.of_node); in pci_set_bus_of_node()
42 void pci_release_bus_of_node(struct pci_bus *bus) in pci_release_bus_of_node() argument
44 of_node_put(bus->dev.of_node); in pci_release_bus_of_node()
45 bus->dev.of_node = NULL; in pci_release_bus_of_node()
48 struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus) in pcibios_get_phb_of_node() argument
51 if (WARN_ON(bus->self || bus->parent)) in pcibios_get_phb_of_node()
58 if (bus->bridge->of_node) in pcibios_get_phb_of_node()
59 return of_node_get(bus->bridge->of_node); in pcibios_get_phb_of_node()
60 if (bus->bridge->parent && bus->bridge->parent->of_node) in pcibios_get_phb_of_node()
61 return of_node_get(bus->bridge->parent->of_node); in pcibios_get_phb_of_node()
65 struct irq_domain *pci_host_bridge_of_msi_domain(struct pci_bus *bus) in pci_host_bridge_of_msi_domain() argument
70 if (!bus->dev.of_node) in pci_host_bridge_of_msi_domain()
74 d = of_msi_get_domain(&bus->dev, bus->dev.of_node, DOMAIN_BUS_PCI_MSI); in pci_host_bridge_of_msi_domain()
82 d = irq_find_matching_host(bus->dev.of_node, DOMAIN_BUS_PCI_MSI); in pci_host_bridge_of_msi_domain()
86 return irq_find_host(bus->dev.of_node); in pci_host_bridge_of_msi_domain()