Lines Matching refs:root
386 int of_platform_bus_probe(struct device_node *root, in of_platform_bus_probe() argument
393 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_bus_probe()
394 if (!root) in of_platform_bus_probe()
398 pr_debug(" starting at: %s\n", root->full_name); in of_platform_bus_probe()
401 if (of_match_node(matches, root)) { in of_platform_bus_probe()
402 rc = of_platform_bus_create(root, matches, NULL, parent, false); in of_platform_bus_probe()
403 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
411 of_node_put(root); in of_platform_bus_probe()
435 int of_platform_populate(struct device_node *root, in of_platform_populate() argument
443 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_populate()
444 if (!root) in of_platform_populate()
447 for_each_child_of_node(root, child) { in of_platform_populate()
452 of_node_set_flag(root, OF_POPULATED_BUS); in of_platform_populate()
454 of_node_put(root); in of_platform_populate()