Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/u-boot/test/py/tests/
A Dtest_bind.py32 tree = u_boot_console.run_command('dm tree')
41 tree = u_boot_console.run_command('dm tree')
47 tree = u_boot_console.run_command('dm tree')
49 assert 'bind-test-child1' not in tree
66 assert 'bind-test-child2' not in tree
81 assert 'bind-test' not in tree
82 assert 'bind-test-child1' not in tree
83 assert 'bind-test-child2' not in tree
89 assert 'not-a-valid-node' not in tree
95 assert 'bind-test' not in tree
[all …]
/u-boot/fs/btrfs/
A Dextent-cache.h25 void cache_tree_init(struct cache_tree *tree);
27 struct cache_extent *first_cache_extent(struct cache_tree *tree);
28 struct cache_extent *last_cache_extent(struct cache_tree *tree);
44 struct cache_extent *lookup_cache_extent(struct cache_tree *tree,
52 int add_cache_extent(struct cache_tree *tree, u64 start, u64 size);
60 static inline int cache_tree_empty(struct cache_tree *tree) in cache_tree_empty() argument
62 return RB_EMPTY_ROOT(&tree->root); in cache_tree_empty()
67 void cache_tree_free_extents(struct cache_tree *tree,
71 static void free_##name##_tree(struct cache_tree *tree) \
73 cache_tree_free_extents(tree, free_func); \
[all …]
A Dextent-cache.c83 void cache_tree_init(struct cache_tree *tree) in cache_tree_init() argument
85 tree->root = RB_ROOT; in cache_tree_init()
109 ret = insert_cache_extent(tree, pe); in add_cache_extent()
239 rb_erase(&pe->rb_node, &tree->root); in remove_cache_extent()
247 while ((ce = first_cache_extent(tree))) { in cache_tree_free_extents()
248 remove_cache_extent(tree, ce); in cache_tree_free_extents()
272 if (cache_tree_empty(tree)) in add_merge_cache_extent()
275 cache = search_cache_extent(tree, start); in add_merge_cache_extent()
282 prev = last_cache_extent(tree); in add_merge_cache_extent()
308 remove_cache_extent(tree, prev); in add_merge_cache_extent()
[all …]
A Dextent-io.c19 cache_tree_init(&tree->state); in extent_io_tree_init()
20 cache_tree_init(&tree->cache); in extent_io_tree_init()
21 tree->cache_size = 0; in extent_io_tree_init()
125 merge_state(tree, state); in insert_state()
162 merge_state(tree, state); in clear_state_bit()
359 merge_state(tree, state); in set_extent_bits()
390 merge_state(tree, state); in set_extent_bits()
431 merge_state(tree, prealloc); in set_extent_bits()
611 BUG_ON(tree->cache_size < eb->len); in free_extent_buffer_final()
612 tree->cache_size -= eb->len; in free_extent_buffer_final()
[all …]
A Dextent-io.h96 void extent_io_tree_init(struct extent_io_tree *tree);
97 void extent_io_tree_cleanup(struct extent_io_tree *tree);
98 int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, int bits);
100 int find_first_extent_bit(struct extent_io_tree *tree, u64 start,
102 int test_range_bit(struct extent_io_tree *tree, u64 start, u64 end,
104 int set_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end);
105 int clear_extent_dirty(struct extent_io_tree *tree, u64 start, u64 end);
127 int set_state_private(struct extent_io_tree *tree, u64 start, u64 xprivate);
128 int get_state_private(struct extent_io_tree *tree, u64 start, u64 *xprivate);
129 struct extent_buffer *find_extent_buffer(struct extent_io_tree *tree,
[all …]
/u-boot/scripts/dtc/
A Dfstree.c31 struct node *tree; in read_fstree() local
37 tree = build_node(NULL, NULL); in read_fstree()
64 add_property(tree, prop); in read_fstree()
72 add_child(tree, newchild); in read_fstree()
79 return tree; in read_fstree()
84 struct node *tree; in dt_from_fs() local
86 tree = read_fstree(dirname); in dt_from_fs()
87 tree = name_node(tree, ""); in dt_from_fs()
89 return build_dt_info(DTSF_V1, NULL, tree, guess_boot_cpuid(tree)); in dt_from_fs()
A Ddtc.c44 static void fill_fullpaths(struct node *tree, const char *prefix) in fill_fullpaths() argument
49 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
51 unit = strchr(tree->name, '@'); in fill_fullpaths()
53 tree->basenamelen = unit - tree->name; in fill_fullpaths()
55 tree->basenamelen = strlen(tree->name); in fill_fullpaths()
57 for_each_child(tree, child) in fill_fullpaths()
58 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
A Dlivetree.c407 dti->dt = tree; in build_dt_info()
454 *node = tree; in get_property_by_label()
464 for_each_child(tree, c) { in get_property_by_label()
481 *node = tree; in get_marker_label()
491 for_each_child(tree, c) { in get_marker_label()
519 if (tree->deleted) in get_node_by_path()
521 return tree; in get_node_by_path()
549 return tree; in get_node_by_label()
570 if (tree->deleted) in get_node_by_phandle()
572 return tree; in get_node_by_phandle()
[all …]
A Ddtc.h226 struct property *get_property_by_label(struct node *tree, const char *label,
228 struct marker *get_marker_label(struct node *tree, const char *label,
231 struct node *get_node_by_path(struct node *tree, const char *path);
232 struct node *get_node_by_label(struct node *tree, const char *label);
233 struct node *get_node_by_phandle(struct node *tree, cell_t phandle);
234 struct node *get_node_by_ref(struct node *tree, const char *ref);
237 uint32_t guess_boot_cpuid(struct node *tree);
270 struct node *tree, uint32_t boot_cpuid_phys);
/u-boot/drivers/clk/mediatek/
A Dclk-mtk.c301 rate = priv->tree->xtal_rate; in mtk_topckgen_get_factor_rate()
319 rate = priv->tree->xtal_rate; in mtk_infrasys_get_factor_rate()
353 return priv->tree->xtal_rate; in mtk_topckgen_get_mux_rate()
391 priv->tree->fdivs_offs); in mtk_topckgen_get_rate()
394 priv->tree->muxes_offs); in mtk_topckgen_get_rate()
410 priv->tree->muxes_offs); in mtk_infrasys_get_rate()
425 mux = &priv->tree->muxes[clk->id - priv->tree->muxes_offs]; in mtk_clk_mux_enable()
458 mux = &priv->tree->muxes[clk->id - priv->tree->muxes_offs]; in mtk_clk_mux_disable()
483 &priv->tree->muxes[clk->id - priv->tree->muxes_offs]); in mtk_common_clk_set_parent()
597 priv->tree = tree; in mtk_common_clk_init()
[all …]
/u-boot/lib/zlib/
A Dtrees.c169 # define send_code(s, c, tree) send_bits(s, tree[c].Code, tree[c].Len) argument
175 send_bits(s, tree[c].Code, tree[c].Len); }
451 (tree[n].Freq < tree[m].Freq || \
452 (tree[n].Freq == tree[m].Freq && depth[n] <= depth[m]))
521 bits = tree[tree[n].Dad].Len + 1;
531 f = tree[n].Freq;
646 tree[n].Len = 0;
657 tree[node].Freq = 1;
681 tree[node].Freq = tree[n].Freq + tree[m].Freq;
684 tree[n].Dad = tree[m].Dad = (ush)node;
[all …]
/u-boot/doc/develop/driver-model/
A Dlivetree.rst35 The overall tree has a fixed maximum size so sometimes the tree must be
42 avoids the worst of the flat tree's limitations. But if the tree is to be
44 is necessary, parsing the tree once and using a live tree from then on
53 tree node regardless of whether it is in the flat tree or livetree.
147 tree.
155 code to work with a flat tree also.
229 properties in the flat tree, thus affecting the live tree. Generally this does
230 not matter, since when we fire up the live tree we don't ever use the flat tree
234 tree either present or absent. This is to make sure that the flat tree functions
236 device tree, then the live tree can become invalid. Any live tree tests that run
[all …]
A Dfdt-fixup.rst4 Pre-relocation device tree manipulation
28 device tree overlay mechanism: There exists one "base" device tree, which
42 device tree starts cropping up in U-Boot itself as well.
45 and the current mechanisms don't allow easy manipulation of the device tree
72 be used to manipulate the device tree using e.g. functions from
86 | WARNING: The actual manipulation of the device tree has |
89 | changes made to the device tree either, its references |
90 | into the device tree will be invalid after manipulating |
107 /* Do device tree manipulation using the values previously collected */
123 subsequently deactivated in the device tree if they are not present.
[all …]
/u-boot/doc/usage/
A Dfdt_overlays.rst10 Device-tree overlays require a slightly different syntax compared to traditional
11 device-trees. Please refer to dt-object-internal.txt in the device-tree compiler
19 device-tree or device-tree overlay has defined. It requires both the base
20 device-tree and all the overlays to be compiled with the *-@* command line
21 switch of the device-tree compiler so that symbol information is included.
28 Building a binary device-tree overlay follows the same process as building a
29 traditional binary device-tree. For example:
85 1. Figure out where to place both the base device tree blob and the
86 overlay. Make sure you have enough space to grow the base tree without
94 2. Load the base binary device-tree and the binary device-tree overlay.
[all …]
/u-boot/include/dm/
A Dofnode.h104 oftree tree; in oftree_from_fdt() local
108 tree.fdt = fdt; in oftree_from_fdt()
110 tree.fdt = NULL; in oftree_from_fdt()
112 return tree; in oftree_from_fdt()
269 oftree tree; in oftree_null() local
276 return tree; in oftree_null()
330 oftree tree; in oftree_default() local
337 return tree; in oftree_default()
348 oftree tree; in oftree_from_np() local
350 tree.np = root; in oftree_from_np()
[all …]
/u-boot/test/boot/
A Dvbe_fixup.c25 oftree tree; in vbe_test_fixup_norun() local
28 tree = oftree_from_fdt(working_fdt); in vbe_test_fixup_norun()
29 ut_assert(oftree_valid(tree)); in vbe_test_fixup_norun()
31 chosen = oftree_path(tree, "/chosen"); in vbe_test_fixup_norun()
A Dvbe_simple.c57 fixup.tree = oftree_from_np(np); in vbe_simple_test_base()
59 fixup.tree = oftree_from_fdt(fdt_buf); in vbe_simple_test_base()
74 node = oftree_path(fixup.tree, "/chosen/fwupd/firmware0"); in vbe_simple_test_base()
/u-boot/doc/device-tree-bindings/w1/
A Dw1-gpio.txt5 Child nodes are required in device tree. The driver will detect
6 the devices serial number and then search in the child nodes in the device tree
9 Also check doc/device-tree-bindings/w1-eeprom for possible child nodes drivers
14 Software w1 device-tree node properties:
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/doc/
A DREADME.falcon16 An important part of falcon boot is to prepare the device tree. A normal U-Boot
31 image with embedded static device tree to multiple boards.
34 the stored sectors to. Normally this is the static device tree. The second
39 is no longer used. The static device tree is copied into this location. So
40 this macro is passed as the location of device tree when booting Linux.
42 Steps to prepare static device tree
44 To prepare the static device tree for Layerscape boards, it is important to
47 microcode (if used) is embedded in the device tree. Kernel command line and
58 stops before "bootm go". There we have the fixed-up device tree in memory.
59 We can check the device tree header by these commands
[all …]
/u-boot/dts/
A DKconfig28 via a flattened device tree.
78 bool "Enable use of a live tree"
85 enables a live tree which is available after relocation,
104 Boards in the mainline U-Boot tree should not use it.
142 bool "Omit the device tree output when building"
157 $ make DEVICE_TREE=<device-tree-name>
177 device tree files (without the directory or .dtb suffix)
284 device tree files (without the directory or .dtb suffix)
356 string "List of device tree properties to drop for SPL"
371 bool "Enable removal of device tree properties"
[all …]
/u-boot/drivers/pinctrl/nxp/
A DKconfig16 i.MX53. This feature depends on device tree
30 i.MX6DQ/SL/SX/UL/DQP. This feature depends on device tree
44 i.MX7D. This feature depends on device tree
58 This feature depends on device tree configuration. This driver
72 This feature depends on device tree configuration. This driver
87 This feature depends on device tree configuration. This driver
100 This feature depends on device tree configuration. This driver
113 This feature depends on device tree configuration. This driver
125 familiy, e.g. i.MX28. This feature depends on device tree
137 This feature depends on device tree configuration. This driver
[all …]
/u-boot/doc/
A DREADME.marvell11 # sudo apt-get install device-tree-compiler
32 5. Configure the device-tree and build the U-Boot image:
34 For the Armada-70x0/80x0 DB board compile u-boot and set the required device-tree using:
41 By default, u-boot is compiled with armada-8040-db device-tree.
42 Using A80x0 device-tree on A70x0 might break the device.
43 In order to prevent this, the required device-tree MUST be set during compilation.
44 All device-tree files are located in ./arch/arm/dts/ folder.
47 just default device-tree from defconfig using:
98 U-Boot will inject it into kernel's device-tree.
/u-boot/doc/board/st/
A Dst-dt.rst4 U-Boot device tree bindings
8 doc/device-tree-bindings
11 - :download:`clock/st,stm32mp1.txt <../../device-tree-bindings/clock/st,stm32mp1.txt>`
13 …- :download:`memory-controllers/st,stm32mp1-ddr.txt <../../device-tree-bindings/memory-controllers…
15 All the other device tree bindings used in U-Boot are specified in Linux
/u-boot/arch/arm/dts/
A Dfsl-ls1028a-rdb-u-boot.dtsi5 * u-boot will enable the device in the linux device tree in place. Because
6 * we are using the linux device tree, we have to enable the PCI controller
/u-boot/scripts/dtc/pylibfdt/
A Dlibfdt.i_shipped129 """Class for a read-only device-tree
133 device tree.
149 const void * for the device tree.
217 Total tree size in bytes
396 tree format)
537 This adjusts the tree in place.
697 reference the device tree, so if anything changes in the device tree,
737 tree is complete, call as_fdt() to obtain a device tree ready to be used.
757 are added to the tree.
787 tree.
[all …]

Completed in 50 milliseconds

12345678910>>...29