Lines Matching refs:node

41  * of_find_device_by_node - Find the platform_device associated with a node
42 * @np: Pointer to device tree node
61 * each applicable node.
68 * of_device_make_bus_id - Use the device node data to assign a unique name
69 * @dev: pointer to device structure that is linked to a device tree node
77 struct device_node *node = dev->of_node;
82 while (node->parent) {
87 reg = of_get_property(node, "reg", NULL);
88 if (reg && (addr = of_translate_address(node, reg)) != OF_BAD_ADDR) {
90 addr, node, dev_name(dev));
96 kbasename(node->full_name), dev_name(dev));
97 node = node->parent;
103 * @np: device node to assign to device
158 * @np: pointer to node to create device for
203 * @np: pointer to node to create device for
219 static struct amba_device *of_amba_device_create(struct device_node *node,
228 pr_debug("Creating amba device %pOF\n", node);
230 if (!of_device_is_available(node) ||
231 of_node_test_and_set_flag(node, OF_POPULATED))
243 dev->dev.of_node = of_node_get(node);
244 dev->dev.fwnode = &node->fwnode;
253 prop = of_get_property(node, "arm,primecell-periphid", NULL);
259 dev->irq[i] = irq_of_parse_and_map(node, i);
261 ret = of_address_to_resource(node, 0, &dev->res);
264 ret, node);
271 ret, node);
280 of_node_clear_flag(node, OF_POPULATED);
284 static struct amba_device *of_amba_device_create(struct device_node *node,
294 * of_dev_lookup() - Given a device node, lookup the preferred Linux name
336 * of_platform_bus_create() - Create a device for a node and its children.
337 * @bus: device node of the bus to instantiate
367 pr_debug("%s() - skipping %pOF node\n", __func__, bus);
460 * node (of_platform_bus_probe will only create children of the root which
519 struct device_node *node;
528 * platform_devices for every node in /reserved-memory with a
531 for_each_matching_node(node, reserved_mem_matches)
532 of_platform_device_create(node, NULL, NULL);
534 node = of_find_node_by_path("/firmware");
535 if (node) {
536 of_platform_populate(node, NULL, NULL, NULL);
537 of_node_put(node);
708 /* find our device by node */