Lines Matching refs:node
117 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev) in of_pci_parse_addrs() argument
128 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs()
130 addrs = of_get_property(node, "reg", &proplen); in of_pci_parse_addrs()
175 struct pci_dev *of_create_pci_dev(struct device_node *node, in of_create_pci_dev() argument
185 of_node_get_device_type(node)); in of_create_pci_dev()
187 dev->dev.of_node = of_node_get(node); in of_create_pci_dev()
196 dev->vendor = get_int_prop(node, "vendor-id", 0xffff); in of_create_pci_dev()
197 dev->device = get_int_prop(node, "device-id", 0xffff); in of_create_pci_dev()
198 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); in of_create_pci_dev()
199 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); in of_create_pci_dev()
205 dev->class = get_int_prop(node, "class-code", 0); in of_create_pci_dev()
206 dev->revision = get_int_prop(node, "revision-id", 0); in of_create_pci_dev()
218 if (of_node_is_type(node, "pci") || of_node_is_type(node, "pciex")) { in of_create_pci_dev()
223 } else if (of_node_is_type(node, "cardbus")) { in of_create_pci_dev()
232 of_pci_parse_addrs(node, dev); in of_create_pci_dev()
252 struct device_node *node = dev->dev.of_node; in of_scan_pci_bridge() local
262 pr_debug("of_scan_pci_bridge(%pOF)\n", node); in of_scan_pci_bridge()
265 busrange = of_get_property(node, "bus-range", &len); in of_scan_pci_bridge()
268 node); in of_scan_pci_bridge()
271 ranges = of_get_property(node, "ranges", &len); in of_scan_pci_bridge()
274 node); in of_scan_pci_bridge()
285 node); in of_scan_pci_bridge()
313 " for bridge %pOF\n", node); in of_scan_pci_bridge()
319 " for bridge %pOF\n", node); in of_scan_pci_bridge()
342 of_scan_bus(node, bus); in of_scan_pci_bridge()
395 static void __of_scan_bus(struct device_node *node, struct pci_bus *bus, in __of_scan_bus() argument
402 node, bus->number); in __of_scan_bus()
405 for_each_child_of_node(node, child) { in __of_scan_bus()
428 void of_scan_bus(struct device_node *node, struct pci_bus *bus) in of_scan_bus() argument
430 __of_scan_bus(node, bus, 0); in of_scan_bus()
442 void of_rescan_bus(struct device_node *node, struct pci_bus *bus) in of_rescan_bus() argument
444 __of_scan_bus(node, bus, 1); in of_rescan_bus()