Lines Matching defs:node
66 * of_pci_parse_addrs - Parse PCI addresses assigned in the device tree node
67 * @node: device tree node for the PCI device
71 * device tree node and writes them into the associated pci_dev structure.
73 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev)
82 addrs = of_get_property(node, "assigned-addresses", &proplen);
116 * of_create_pci_dev - Given a device tree node on a pci bus, create a pci_dev
117 * @node: device tree node pointer
121 struct pci_dev *of_create_pci_dev(struct device_node *node,
131 type = of_get_property(node, "device_type", NULL);
138 dev->sysdata = node;
150 dev->vendor = get_int_prop(node, "vendor-id", 0xffff);
151 dev->device = get_int_prop(node, "device-id", 0xffff);
152 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0);
153 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0);
159 dev->class = get_int_prop(node, "class-code", 0);
160 dev->revision = get_int_prop(node, "revision-id", 0);
186 of_pci_parse_addrs(node, dev);
198 * @node: device tree node of bridge
205 void __devinit of_scan_pci_bridge(struct device_node *node,
215 pr_debug("of_scan_pci_bridge(%s)\n", node->full_name);
218 busrange = of_get_property(node, "bus-range", &len);
221 node->full_name);
224 ranges = of_get_property(node, "ranges", &len);
227 node->full_name);
234 node->full_name);
241 bus->sysdata = node;
261 " for bridge %s\n", node->full_name);
267 " for bridge %s\n", node->full_name);
287 of_scan_bus(node, bus);
294 * __of_scan_bus - given a PCI bus node, setup bus and scan for child devices
295 * @node: device tree node for the PCI bus
299 static void __devinit __of_scan_bus(struct device_node *node,
308 node->full_name, bus->number);
311 for_each_child_of_node(node, child) {
346 * of_scan_bus - given a PCI bus node, setup bus and scan for child devices
347 * @node: device tree node for the PCI bus
350 void __devinit of_scan_bus(struct device_node *node,
353 __of_scan_bus(node, bus, 0);
358 * of_rescan_bus - given a PCI bus node, scan for child devices
359 * @node: device tree node for the PCI bus
365 void __devinit of_rescan_bus(struct device_node *node,
368 __of_scan_bus(node, bus, 1);