Lines Matching refs:node
74 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev) in of_pci_parse_addrs() argument
84 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs()
124 struct pci_dev *of_create_pci_dev(struct device_node *node, in of_create_pci_dev() argument
133 type = of_get_property(node, "device_type", NULL); in of_create_pci_dev()
139 dev->dev.of_node = of_node_get(node); in of_create_pci_dev()
148 dev->vendor = get_int_prop(node, "vendor-id", 0xffff); in of_create_pci_dev()
149 dev->device = get_int_prop(node, "device-id", 0xffff); in of_create_pci_dev()
150 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); in of_create_pci_dev()
151 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); in of_create_pci_dev()
157 dev->class = get_int_prop(node, "class-code", 0); in of_create_pci_dev()
158 dev->revision = get_int_prop(node, "revision-id", 0); in of_create_pci_dev()
184 of_pci_parse_addrs(node, dev); in of_create_pci_dev()
204 struct device_node *node = dev->dev.of_node; in of_scan_pci_bridge() local
214 pr_debug("of_scan_pci_bridge(%s)\n", node->full_name); in of_scan_pci_bridge()
217 busrange = of_get_property(node, "bus-range", &len); in of_scan_pci_bridge()
220 node->full_name); in of_scan_pci_bridge()
223 ranges = of_get_property(node, "ranges", &len); in of_scan_pci_bridge()
226 node->full_name); in of_scan_pci_bridge()
237 node->full_name); in of_scan_pci_bridge()
265 " for bridge %s\n", node->full_name); in of_scan_pci_bridge()
271 " for bridge %s\n", node->full_name); in of_scan_pci_bridge()
294 of_scan_bus(node, bus); in of_scan_pci_bridge()
347 static void __of_scan_bus(struct device_node *node, struct pci_bus *bus, in __of_scan_bus() argument
354 node->full_name, bus->number); in __of_scan_bus()
357 for_each_child_of_node(node, child) { in __of_scan_bus()
384 void of_scan_bus(struct device_node *node, struct pci_bus *bus) in of_scan_bus() argument
386 __of_scan_bus(node, bus, 0); in of_scan_bus()
398 void of_rescan_bus(struct device_node *node, struct pci_bus *bus) in of_rescan_bus() argument
400 __of_scan_bus(node, bus, 1); in of_rescan_bus()