Lines Matching full:tree
13 is attached to the live tree dynamically, independent of the machine's
23 from the unflattened device tree data structure. This interface is used by
51 The Device Tree Source file (drivers/of/unittest-data/testcases.dts) contains
57 for the Device Tree Source Include files (.dtsi) included in testcases.dts.
81 Un-flattened device tree structure:
83 Un-flattened device tree consists of connected device_node(s) in form of a tree
86 // following struct members are used to construct the tree
95 Figure 1, describes a generic structure of machine's un-flattened device tree
97 ``*parent``, that is used to traverse the tree in the reverse direction. So, at
124 Figure 1: Generic structure of un-flattened device tree
128 machine's device tree (if present). So, when selftest_data_add() is called,
129 at first it reads the flattened device tree data linked into the kernel image
136 blob. And finally, if the machine's device tree (i.e live tree) is present,
137 then it attaches the unflattened test data tree to the live tree, else it
138 attaches itself as a live device tree.
141 live tree as explained below. To explain the same, the test data tree described
142 in Figure 2 is attached to the live tree described in Figure 1::
153 Figure 2: Example test data tree to be attached to live tree.
155 According to the scenario above, the live tree is already present so it isn't
160 given parent in live tree. But, if parent already has a child then the new node
162 data node is attached to the live tree above (Figure 1), the final structure is
198 Figure 3: Live device tree structure after attaching the testcase-data.
208 already present in the live tree), then the node isn't attached rather its
209 properties are updated to the live tree's node by calling the function
219 whole tree). selftest_data_remove() calls detach_node_and_children() that uses
220 of_detach_node() to detach the nodes from the live device tree.