Lines Matching refs:tree
106 oftree tree; in oftree_from_fdt() local
110 tree.fdt = fdt; in oftree_from_fdt()
112 tree.fdt = NULL; in oftree_from_fdt()
114 return tree; in oftree_from_fdt()
150 int oftree_to_fdt(oftree tree, struct abuf *buf);
191 static inline void *oftree_lookup_fdt(oftree tree) in oftree_lookup_fdt() argument
196 return tree.fdt; in oftree_lookup_fdt()
276 static inline bool oftree_valid(oftree tree) in oftree_valid() argument
279 return tree.np; in oftree_valid()
281 return tree.fdt; in oftree_valid()
292 oftree tree; in oftree_null() local
295 tree.np = NULL; in oftree_null()
297 tree.fdt = NULL; in oftree_null()
299 return tree; in oftree_null()
353 oftree tree; in oftree_default() local
356 tree.np = gd_of_root(); in oftree_default()
358 tree.fdt = (void *)gd->fdt_blob; in oftree_default()
360 return tree; in oftree_default()
371 oftree tree; in oftree_from_np() local
373 tree.np = root; in oftree_from_np()
375 return tree; in oftree_from_np()
386 void oftree_dispose(oftree tree);
729 ofnode oftree_get_by_phandle(oftree tree, uint phandle);
960 ofnode oftree_parse_phandle(oftree tree, ofnode node, const char *phandle_name,
1004 int oftree_parse_phandle_with_args(oftree tree, ofnode node, const char *list_name,
1026 int oftree_count_phandle_with_args(oftree tree, ofnode node, const char *list_name,
1046 ofnode oftree_path(oftree tree, const char *path);
1054 ofnode oftree_root(oftree tree);