Lines Matching refs:tree

62  * oftree_from_fdt() - Returns an oftree from a flat device tree pointer
67 * @fdt: Device tree to use
76 * @other_node: Node in the same tree to use as a reference
106 oftree tree;
110 tree.fdt = fdt;
112 tree.fdt = NULL;
114 return tree;
132 * oftree_new() - Create a new, empty tree
134 * @treep: Returns a pointer to the tree, on success
143 * @tree: tree to flatten (if livetree) or copy (if not)
144 * @buf: Returns inited buffer containing the newly created flat tree. Note
145 * that for flat tree the buffer is not allocated. In either case the caller
150 int oftree_to_fdt(oftree tree, struct abuf *buf);
186 * This can only be called when flat tree is enabled
188 * @tree: Tree to look at
189 * @return FDT pointer from the tree
191 static inline void *oftree_lookup_fdt(oftree tree)
196 return tree.fdt;
235 * This function associated that if there is a valid live tree then all
236 * references will use it. This is because using the flat DT when the live tree
247 * Check our assumption that flat tree offsets are not used when a
248 * live tree is in use.
273 * @tree: Reference containing oftree
276 static inline bool oftree_valid(oftree tree)
279 return tree.np;
281 return tree.fdt;
287 * This returns an oftree which points to no tree. It works both with the flat
288 * tree and livetree.
292 oftree tree;
295 tree.np = NULL;
297 tree.fdt = NULL;
299 return tree;
306 * tree and livetree.
347 * oftree_default() - Returns the default device tree (U-Boot's control FDT)
353 oftree tree;
356 tree.np = gd_of_root();
358 tree.fdt = (void *)gd->fdt_blob;
360 return tree;
366 * @root: Root node of the tree
371 oftree tree;
373 tree.np = root;
375 return tree;
381 * This can be used to dispose of a tree that has been created (other than
384 * @tree: Tree to dispose
386 void oftree_dispose(oftree tree);
690 * This uses the default (control) device tree
700 * @tree: tree to use
704 ofnode oftree_get_by_phandle(oftree tree, uint phandle);
877 * @node: device tree node containing a list
901 * @node: device tree node containing a list
925 * @tree: Device tree to use
929 ofnode oftree_path(oftree tree, const char *path);
932 * oftree_root() - get the root node of a tree
934 * @tree: Device tree to use
937 ofnode oftree_root(oftree tree);
1021 * See doc/device-tree-bindings/video/display-timing.txt for binding
1205 * This walks back up the tree to find the closest #address-cells property
1216 * This walks back up the tree to find the closest #size-cells property
1247 * Device tree nodes can be marked as needing-to-be-bound in the loader stages
1248 * via special device tree properties.
1379 * ofnode_translate_address() - Translate a device-tree address
1381 * Translate an address from the device-tree into a CPU physical address. This
1382 * function walks up the tree and applies the various bus mappings along the
1385 * @node: Device tree node giving the context in which to translate the address
1392 * ofnode_translate_dma_address() - Translate a device-tree DMA address
1394 * Translate a DMA address from the device-tree into a CPU physical address.
1395 * This function walks up the tree and applies the various bus mappings along
1398 * @node: Device tree node giving the context in which to translate the
1411 * @node: Device tree node
1425 * @node: Device tree node for which compatible needs to be verified.
1444 * live tree, since flat tree handles this automatically. It allows a
1445 * node's value to be written to the tree, without requiring that the
1508 * ofnode_set_enabled() - Enable or disable a device tree node given by its
1556 * See doc/device-tree-bindings/config.txt for bindings
1568 * See doc/device-tree-bindings/config.txt for bindings
1583 * See doc/device-tree-bindings/config.txt for bindings
1680 * For livetree, properties are copied / allocated, so the source tree does not
1706 * Delete a node from the tree
1710 * node (wWhich cannot be removed), -EFAULT if the tree is broken (to_remove is