Lines Matching refs:root
387 int of_platform_bus_probe(struct device_node *root, in of_platform_bus_probe() argument
394 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_bus_probe()
395 if (!root) in of_platform_bus_probe()
399 pr_debug(" starting at: %s\n", root->full_name); in of_platform_bus_probe()
402 if (of_match_node(matches, root)) { in of_platform_bus_probe()
403 rc = of_platform_bus_create(root, matches, NULL, parent, false); in of_platform_bus_probe()
404 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
414 of_node_put(root); in of_platform_bus_probe()
438 int of_platform_populate(struct device_node *root, in of_platform_populate() argument
446 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_populate()
447 if (!root) in of_platform_populate()
450 for_each_child_of_node(root, child) { in of_platform_populate()
457 of_node_set_flag(root, OF_POPULATED_BUS); in of_platform_populate()
459 of_node_put(root); in of_platform_populate()
464 int of_platform_default_populate(struct device_node *root, in of_platform_default_populate() argument
468 return of_platform_populate(root, of_default_bus_match_table, lookup, in of_platform_default_populate()