Lines Matching defs:tree
399 struct node *tree, uint32_t boot_cpuid_phys)
406 dti->dt = tree;
447 struct property *get_property_by_label(struct node *tree, const char *label,
453 *node = tree;
455 for_each_property(tree, prop) {
463 for_each_child(tree, c) {
473 struct marker *get_marker_label(struct node *tree, const char *label,
480 *node = tree;
482 for_each_property(tree, p) {
490 for_each_child(tree, c) {
512 struct node *get_node_by_path(struct node *tree, const char *path)
518 if (tree->deleted)
520 return tree;
528 for_each_child(tree, child) {
538 struct node *get_node_by_label(struct node *tree, const char *label)
545 for_each_label(tree->labels, l)
547 return tree;
549 for_each_child(tree, child) {
558 struct node *get_node_by_phandle(struct node *tree, cell_t phandle)
567 if (tree->phandle == phandle) {
568 if (tree->deleted)
570 return tree;
573 for_each_child(tree, child) {
582 struct node *get_node_by_ref(struct node *tree, const char *ref)
585 return tree;
587 return get_node_by_path(tree, ref);
589 return get_node_by_label(tree, ref);
623 uint32_t guess_boot_cpuid(struct node *tree)
628 cpus = get_node_by_path(tree, "/cpus");