Lines Matching refs:tree
399 struct node *tree, uint32_t boot_cpuid_phys) in build_dt_info() argument
406 dti->dt = tree; in build_dt_info()
447 struct property *get_property_by_label(struct node *tree, const char *label, in get_property_by_label() argument
453 *node = tree; in get_property_by_label()
455 for_each_property(tree, prop) { in get_property_by_label()
463 for_each_child(tree, c) { in get_property_by_label()
473 struct marker *get_marker_label(struct node *tree, const char *label, in get_marker_label() argument
480 *node = tree; in get_marker_label()
482 for_each_property(tree, p) { in get_marker_label()
490 for_each_child(tree, c) { in get_marker_label()
512 struct node *get_node_by_path(struct node *tree, const char *path) in get_node_by_path() argument
518 if (tree->deleted) in get_node_by_path()
520 return tree; in get_node_by_path()
528 for_each_child(tree, child) { in get_node_by_path()
539 struct node *get_node_by_label(struct node *tree, const char *label) in get_node_by_label() argument
546 for_each_label(tree->labels, l) in get_node_by_label()
548 return tree; in get_node_by_label()
550 for_each_child(tree, child) { in get_node_by_label()
559 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
568 if (tree->phandle == phandle) { in get_node_by_phandle()
569 if (tree->deleted) in get_node_by_phandle()
571 return tree; in get_node_by_phandle()
574 for_each_child(tree, child) { in get_node_by_phandle()
583 struct node *get_node_by_ref(struct node *tree, const char *ref) in get_node_by_ref() argument
586 return tree; in get_node_by_ref()
588 return get_node_by_path(tree, ref); in get_node_by_ref()
590 return get_node_by_label(tree, ref); in get_node_by_ref()
624 uint32_t guess_boot_cpuid(struct node *tree) in guess_boot_cpuid() argument
629 cpus = get_node_by_path(tree, "/cpus"); in guess_boot_cpuid()