Home
last modified time | relevance | path

Searched refs:phandle (Results 1 – 25 of 76) sorted by relevance

1234

/external/dtc/tests/
Dget_phandle.c21 uint32_t phandle; in check_phandle() local
27 phandle = fdt_get_phandle(fdt, offset); in check_phandle()
28 if (phandle != checkhandle) in check_phandle()
30 path, phandle, checkhandle); in check_phandle()
35 uint32_t phandle; in check_phandle_unique() local
47 phandle = fdt_get_phandle(fdt, offset); in check_phandle_unique()
49 if (phandle == checkhandle) in check_phandle_unique()
56 uint32_t max, phandle; in main() local
80 err = fdt_generate_phandle(fdt, &phandle); in main()
84 check_phandle_unique(fdt, phandle); in main()
Dreferences.dts8 linux,phandle = <0x2000>;
13 phandle = <0x1>;
26 /* Explicit phandle with implicit value */
28 * a phandle (perhaps for reference by nodes that will be dynamically
29 * added) without explicitly allocating it a phandle.
33 linux,phandle = <&n5>;
34 phandle = <&n5>;
38 linux,phandle = <0xfffffffe>;
39 phandle = <0xfffffffe>;
Dmultilabel.dts12 linux,phandle = <0x2000>;
17 p2: py: phandle = <0x1>;
31 /* Explicit phandle with implicit value */
33 * a phandle (perhaps for reference by nodes that will be dynamically
34 * added) without explicitly allocating it a phandle.
38 linux,phandle = <&n5>;
39 phandle = <&nz>;
46 linux,phandle = <0xfffffffe>;
47 phandle = <0xfffffffe>;
Dmultilabel_merge.dts10 linux,phandle = <0x2000>;
15 phandle = <0x1>;
29 /* Explicit phandle with implicit value */
31 * a phandle (perhaps for reference by nodes that will be dynamically
32 * added) without explicitly allocating it a phandle.
36 linux,phandle = <&n5>;
37 phandle = <&nz>;
44 linux,phandle = <0xfffffffe>;
45 phandle = <0xfffffffe>;
58 p2: py: phandle = <0x1>;
Doverlay_overlay_manual_fixups.dts42 /* Test that we add a new node (by phandle) */
67 test-phandle = <0xffffffff /*&test*/>, <&local>;
75 test-several-phandle = <&local>, <&local>;
96 "/fragment@5/__overlay__:test-phandle:0",
103 test-phandle = <4>;
108 test-several-phandle = <0 4>;
Dnode_offset_by_phandle.c18 static void check_search(void *fdt, uint32_t phandle, int target) in check_search() argument
22 offset = fdt_node_offset_by_phandle(fdt, phandle); in check_search()
26 "instead of %d", phandle, offset, target); in check_search()
Dtype-preservation.dts19 a-phandle = <&subsub1>;
20 a-phandle-with-args = <&subsub1 0x00 0x01>, <&subsub1 0x02 0x03>;
24 phandle = <0x01>;
Doverlay_overlay.dts27 /* Test that we add a new node (by phandle) */
41 test-phandle = <&test>, <&local>;
45 test-several-phandle = <&local>, <&local>;
Doverlay_overlay_nosugar.dts40 /* Test that we add a new node (by phandle) */
65 test-phandle = <&test>, <&local>;
73 test-several-phandle = <&local>, <&local>;
Ddup-phandle.dts5 linux,phandle = <1>;
8 linux,phandle = <1>;
Doverlay_base_manual_symbols.dts12 phandle = <&test>; /* Force phandle generation */
Dtest_tree1_wrong3.dts28 linux,phandle = <0x2000>;
35 phandle = <0x2001>;
Dtest_tree1_wrong2.dts28 linux,phandle = <0x2000>;
35 phandle = <0x2001>;
Dtest_tree1_wrong1.dts28 linux,phandle = <0x2000>;
35 phandle = <0x2001>;
Dinclude1.dts18 linux,phandle = <0x2000>;
24 phandle = <0x2001>;
Dtest_tree1_wrong5.dts29 linux,phandle = <0x2000>;
36 phandle = <0x2001>;
Dtest_tree1_wrong4.dts29 linux,phandle = <0x2000>;
36 phandle = <0x2001>;
Dtest_tree1_wrong8.dts28 linux,phandle = <0x2000>;
36 phandle = <0x2001>;
/external/dtc/fuzzing/
Dlibfdt_fuzzer.c58 static bool phandle_is_valid(uint32_t phandle) { in phandle_is_valid() argument
59 return phandle != 0 && phandle != UINT32_MAX; in phandle_is_valid()
87 uint32_t phandle = fdt_get_phandle(device_tree, parent_node); in walk_device_tree() local
88 if (phandle_is_valid(phandle)) { in walk_device_tree()
89 int node = fdt_node_offset_by_phandle(device_tree, phandle); in walk_device_tree()
155 uint32_t phandle; in LLVMFuzzerTestOneInput() local
156 fdt_generate_phandle(data, &phandle); in LLVMFuzzerTestOneInput()
/external/dtc/
Dchecks.c491 cell_t phandle; in check_phandle_prop() local
521 phandle = propval_cell(prop); in check_phandle_prop()
523 if (!phandle_is_valid(phandle)) { in check_phandle_prop()
525 phandle, prop->name); in check_phandle_prop()
529 return phandle; in check_phandle_prop()
537 cell_t phandle, linux_phandle; in check_explicit_phandles() local
540 assert(!node->phandle); in check_explicit_phandles()
542 phandle = check_phandle_prop(c, dti, node, "phandle"); in check_explicit_phandles()
546 if (!phandle && !linux_phandle) in check_explicit_phandles()
550 if (linux_phandle && phandle && (phandle != linux_phandle)) in check_explicit_phandles()
[all …]
Dlivetree.c558 struct node *get_node_by_phandle(struct node *tree, cell_t phandle) in get_node_by_phandle() argument
562 if (!phandle_is_valid(phandle)) { in get_node_by_phandle()
567 if (tree->phandle == phandle) { in get_node_by_phandle()
574 node = get_node_by_phandle(child, phandle); in get_node_by_phandle()
621 static cell_t phandle = 1; /* FIXME: ick, static local */ in get_node_phandle() local
624 if (phandle_is_valid(node->phandle)) in get_node_phandle()
625 return node->phandle; in get_node_phandle()
627 while (get_node_by_phandle(root, phandle)) in get_node_phandle()
628 phandle++; in get_node_phandle()
630 node->phandle = phandle; in get_node_phandle()
[all …]
/external/dtc/libfdt/
Dfdt_overlay.c46 uint32_t phandle; in fdt_overlay_target_offset() local
51 phandle = overlay_get_target_phandle(fdto, fragment_offset); in fdt_overlay_target_offset()
52 if (phandle == (uint32_t)-1) in fdt_overlay_target_offset()
56 if (!phandle) { in fdt_overlay_target_offset()
64 ret = fdt_node_offset_by_phandle(fdt, phandle); in fdt_overlay_target_offset()
360 uint32_t phandle; in overlay_fixup_one_phandle() local
377 phandle = fdt_get_phandle(fdt, symbol_off); in overlay_fixup_one_phandle()
378 if (!phandle) in overlay_fixup_one_phandle()
387 phandle_prop = cpu_to_fdt32(phandle); in overlay_fixup_one_phandle()
Dfdt_ro.c122 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) in fdt_find_max_phandle() argument
144 if (phandle) in fdt_find_max_phandle()
145 *phandle = max; in fdt_find_max_phandle()
150 int fdt_generate_phandle(const void *fdt, uint32_t *phandle) in fdt_generate_phandle() argument
162 if (phandle) in fdt_generate_phandle()
163 *phandle = max + 1; in fdt_generate_phandle()
709 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
713 if ((phandle == 0) || (phandle == ~0U)) in fdt_node_offset_by_phandle()
727 if (fdt_get_phandle(fdt, offset) == phandle) in fdt_node_offset_by_phandle()
/external/arm-trusted-firmware/lib/fconf/
Dfconf_cot_getter.c191 uint32_t phandle; in get_oid() local
194 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid()
199 node = fdt_node_offset_by_phandle(dtb, phandle); in get_oid()
288 uint32_t phandle; in get_parent_img_id() local
291 err = fdt_read_uint32(dtb, node, "parent", &phandle); in get_parent_img_id()
298 node = fdt_node_offset_by_phandle(dtb, phandle); in get_parent_img_id()
/external/dtc/Documentation/
Ddt-object-internal.txt123 The basic unit of addressing in Device Tree is the phandle. Turns out it's
126 to phandle values. This is a valid assumption as long as the author uses
127 reference syntax and does not assign phandle values manually (which might
145 phandle = <0x00000001>;
150 phandle = <0x00000002>;
217 Note that the target's ocp label is undefined, so the phandle
220 the label lookup should store the runtime phandle value of the ocp node.
232 phandle value is located.
275 phandle = <0x00000001>;
307 the run time loader must apply an offset to each phandle in every dynamic
[all …]

1234