Lines Matching refs:tree
339 struct node *tree, uint32_t boot_cpuid_phys) in build_boot_info() argument
345 bi->dt = tree; in build_boot_info()
380 struct property *get_property_by_label(struct node *tree, const char *label, in get_property_by_label() argument
386 *node = tree; in get_property_by_label()
388 for_each_property(tree, prop) { in get_property_by_label()
396 for_each_child(tree, c) { in get_property_by_label()
406 struct marker *get_marker_label(struct node *tree, const char *label, in get_marker_label() argument
413 *node = tree; in get_marker_label()
415 for_each_property(tree, p) { in get_marker_label()
423 for_each_child(tree, c) { in get_marker_label()
445 struct node *get_node_by_path(struct node *tree, const char *path) in get_node_by_path() argument
451 if (tree->deleted) in get_node_by_path()
453 return tree; in get_node_by_path()
461 for_each_child(tree, child) { in get_node_by_path()
471 struct node *get_node_by_label(struct node *tree, const char *label) in get_node_by_label() argument
478 for_each_label(tree->labels, l) in get_node_by_label()
480 return tree; in get_node_by_label()
482 for_each_child(tree, child) { in get_node_by_label()
491 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
497 if (tree->phandle == phandle) { in get_node_by_phandle()
498 if (tree->deleted) in get_node_by_phandle()
500 return tree; in get_node_by_phandle()
503 for_each_child(tree, child) { in get_node_by_phandle()
512 struct node *get_node_by_ref(struct node *tree, const char *ref) in get_node_by_ref() argument
515 return tree; in get_node_by_ref()
517 return get_node_by_path(tree, ref); in get_node_by_ref()
519 return get_node_by_label(tree, ref); in get_node_by_ref()
553 uint32_t guess_boot_cpuid(struct node *tree) in guess_boot_cpuid() argument
558 cpus = get_node_by_path(tree, "/cpus"); in guess_boot_cpuid()