/external/dtc/tests/ |
D | get_phandle.c | 21 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()
|
D | references.dts | 8 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>;
|
D | multilabel.dts | 12 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>;
|
D | multilabel_merge.dts | 10 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>;
|
D | overlay_overlay_manual_fixups.dts | 42 /* 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>;
|
D | node_offset_by_phandle.c | 18 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()
|
D | type-preservation.dts | 19 a-phandle = <&subsub1>; 20 a-phandle-with-args = <&subsub1 0x00 0x01>, <&subsub1 0x02 0x03>; 24 phandle = <0x01>;
|
D | overlay_overlay.dts | 27 /* Test that we add a new node (by phandle) */ 41 test-phandle = <&test>, <&local>; 45 test-several-phandle = <&local>, <&local>;
|
D | overlay_overlay_nosugar.dts | 40 /* Test that we add a new node (by phandle) */ 65 test-phandle = <&test>, <&local>; 73 test-several-phandle = <&local>, <&local>;
|
D | dup-phandle.dts | 5 linux,phandle = <1>; 8 linux,phandle = <1>;
|
D | overlay_base_manual_symbols.dts | 12 phandle = <&test>; /* Force phandle generation */
|
D | test_tree1_wrong3.dts | 28 linux,phandle = <0x2000>; 35 phandle = <0x2001>;
|
D | test_tree1_wrong2.dts | 28 linux,phandle = <0x2000>; 35 phandle = <0x2001>;
|
D | test_tree1_wrong1.dts | 28 linux,phandle = <0x2000>; 35 phandle = <0x2001>;
|
D | include1.dts | 18 linux,phandle = <0x2000>; 24 phandle = <0x2001>;
|
D | test_tree1_wrong5.dts | 29 linux,phandle = <0x2000>; 36 phandle = <0x2001>;
|
D | test_tree1_wrong4.dts | 29 linux,phandle = <0x2000>; 36 phandle = <0x2001>;
|
D | test_tree1_wrong8.dts | 28 linux,phandle = <0x2000>; 36 phandle = <0x2001>;
|
/external/dtc/fuzzing/ |
D | libfdt_fuzzer.c | 58 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/ |
D | checks.c | 491 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 …]
|
D | livetree.c | 558 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/ |
D | fdt_overlay.c | 46 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()
|
D | fdt_ro.c | 122 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/ |
D | fconf_cot_getter.c | 191 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/ |
D | dt-object-internal.txt | 123 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 …]
|