Lines Matching refs:root
393 int of_platform_bus_probe(struct device_node *root, in of_platform_bus_probe() argument
400 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_bus_probe()
401 if (!root) in of_platform_bus_probe()
405 pr_debug(" starting at: %pOF\n", root); in of_platform_bus_probe()
408 if (of_match_node(matches, root)) { in of_platform_bus_probe()
409 rc = of_platform_bus_create(root, matches, NULL, parent, false); in of_platform_bus_probe()
410 } else for_each_child_of_node(root, child) { in of_platform_bus_probe()
420 of_node_put(root); in of_platform_bus_probe()
444 int of_platform_populate(struct device_node *root, in of_platform_populate() argument
451 root = root ? of_node_get(root) : of_find_node_by_path("/"); in of_platform_populate()
452 if (!root) in of_platform_populate()
456 pr_debug(" starting at: %pOF\n", root); in of_platform_populate()
459 for_each_child_of_node_scoped(root, child) { in of_platform_populate()
466 of_node_set_flag(root, OF_POPULATED_BUS); in of_platform_populate()
468 of_node_put(root); in of_platform_populate()
473 int of_platform_default_populate(struct device_node *root, in of_platform_default_populate() argument
487 return of_platform_populate(root, match_table, lookup, parent); in of_platform_default_populate()