Home
last modified time | relevance | path

Searched full:phandle (Results 1 – 25 of 162) sorted by relevance

1234567

/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
44 FAIL("error looking for phandle %#x", checkhandle); in check_phandle_unique()
47 phandle = fdt_get_phandle(fdt, offset); in check_phandle_unique()
49 if (phandle == checkhandle) in check_phandle_unique()
50 FAIL("generated phandle already exists"); in check_phandle_unique()
56 uint32_t max, phandle; in main() local
[all …]
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>;
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>;
Dphandle_format.c4 * Testcase for phandle format options
49 FAIL("/node4 has bad phandle 0x%x\n", h4); in main()
52 check_getprop_cell(fdt, n4, "linux,phandle", h4); in main()
54 if (fdt_getprop(fdt, n4, "linux,phandle", NULL)) in main()
55 FAIL("linux,phandle property present in non-legacy mode"); in main()
58 check_getprop_cell(fdt, n4, "phandle", h4); in main()
60 if (fdt_getprop(fdt, n4, "phandle", NULL)) in main()
61 FAIL("phandle property present in legacy-only mode"); in main()
Dtype-preservation.dt.yaml16 a-phandle: [[!phandle 0x1]]
17 a-phandle-with-args: [[!phandle 0x1, 0x0, 0x1], [!phandle 0x1, 0x2, 0x3]]
20 phandle: [[0x1]]
Dreferences.c4 * Testcase for phandle references in dtc
98 FAIL("/node1 has wrong phandle, 0x%x instead of 0x%x", in main()
101 FAIL("/node2 has wrong phandle, 0x%x instead of 0x%x", in main()
104 FAIL("/node6 has wrong phandle, 0x%x instead of 0x%x", in main()
107 FAIL("/node4 has bad phandle, 0x%x", h4); in main()
110 FAIL("/node5 has bad phandle, 0x%x", h5); in main()
112 FAIL("/node5 has duplicate phandle, 0x%x", h5); in main()
115 * /node6 has phandle FDT_MAX_PHANDLE, so fdt_generate_phandle() is in main()
120 FAIL("generated invalid phandle 0x%x\n", hn); in main()
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>;
Doverlay.c137 "test-several-phandle", in fdt_overlay_local_phandle()
142 "test-several-phandle", in fdt_overlay_local_phandle()
168 "test-phandle", 0, &val)); in fdt_overlay_local_phandles()
172 "test-phandle", 1, &val)); in fdt_overlay_local_phandles()
215 * are only successful with a proper phandle support, and thus in main()
Doverlay_overlay.dts27 /* Test that we add a new node (by phandle) */
41 test-phandle = <&test>, <&local>;
45 test-several-phandle = <&local>, <&local>;
Dtype-preservation.dts19 a-phandle = <&subsub1>;
20 a-phandle-with-args = <&subsub1 0x00 0x01>, <&subsub1 0x02 0x03>;
24 phandle = <0x01>;
/external/dtc/libfdt/
Dfdt_overlay.c15 * overlay_get_target_phandle - retrieves the target phandle of a fragment
19 * overlay_get_target_phandle() retrieves the target phandle of an
20 * overlay fragment when that fragment uses a phandle (target
24 * the phandle pointed by the target property
25 * 0, if the phandle was not found
26 * -1, if the phandle was malformed
46 uint32_t phandle; in fdt_overlay_target_offset() local
50 /* Try first to do a phandle based lookup */ in fdt_overlay_target_offset()
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()
[all …]
Dfdt_ro.c114 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) in fdt_find_max_phandle() argument
136 if (phandle) in fdt_find_max_phandle()
137 *phandle = max; in fdt_find_max_phandle()
142 int fdt_generate_phandle(const void *fdt, uint32_t *phandle) in fdt_generate_phandle() argument
154 if (phandle) in fdt_generate_phandle()
155 *phandle = max + 1; in fdt_generate_phandle()
521 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle()
523 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); in fdt_get_phandle()
687 int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) in fdt_node_offset_by_phandle() argument
691 if ((phandle == 0) || (phandle == ~0U)) in fdt_node_offset_by_phandle()
[all …]
Dlibfdt.h42 /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle.
43 * This can be caused either by an invalid phandle property
44 * length, or the phandle value was either 0 or -1, which are
99 * phandle available anymore without causing an overflow */
370 * fdt_find_max_phandle - find and return the highest phandle in a tree
372 * @phandle: return location for the highest phandle value found in the tree
374 * fdt_find_max_phandle() finds the highest phandle value in the given device
375 * tree. The value returned in @phandle is only valid if the function returns
381 int fdt_find_max_phandle(const void *fdt, uint32_t *phandle);
384 * fdt_get_max_phandle - retrieves the highest phandle in a tree
[all …]
/external/dtc/
Dchecks.c491 cell_t phandle; in check_phandle_prop() local
507 /* "Set this node's phandle equal to some in check_phandle_prop()
508 * other node's phandle". That's nonsensical in check_phandle_prop()
513 /* But setting this node's phandle equal to its own in check_phandle_prop()
514 * phandle is allowed - that means allocate a unique in check_phandle_prop()
515 * phandle for this node, even if it's not otherwise in check_phandle_prop()
517 * we treat it as having no phandle data for now. */ in check_phandle_prop()
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()
[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 …]
Ddtc.c19 int phandle_format = PHANDLE_EPAPR; /* Use linux,phandle or phandle properties */
66 {"phandle", a_argument, NULL, 'H'},
100 "\n\tValid phandle formats are:\n"
101 "\t\tlegacy - \"linux,phandle\" properties only\n"
102 "\t\tepapr - \"phandle\" properties only\n"
103 "\t\tboth - Both \"linux,phandle\" and \"phandle\" properties",
/external/gfxstream-protocols/include/vulkan/include/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/external/skia/include/third_party/vulkan/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/external/mesa3d/include/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/external/swiftshader/include/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/external/angle/third_party/vulkan-deps/vulkan-headers/src/include/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/external/vulkan-headers/include/vulkan/
Dvulkan_win32.h82 …leKHR)(VkDevice device, const VkMemoryGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
89 HANDLE* pHandle);
154 …HR)(VkDevice device, const VkSemaphoreGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
164 HANDLE* pHandle);
197 …dleKHR)(VkDevice device, const VkFenceGetWin32HandleInfoKHR* pGetWin32HandleInfo, HANDLE* pHandle);
207 HANDLE* pHandle);
228 …vice device, VkDeviceMemory memory, VkExternalMemoryHandleTypeFlagsNV handleType, HANDLE* pHandle);
235 HANDLE* pHandle);
/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 …]
/external/dtc/fuzzing/
Dlibfdt_fuzzer.cpp18 uint32_t phandle = fdt_get_phandle(device_tree, parent_node); in walk_device_tree() local
19 if (phandle != 0) { in walk_device_tree()
20 assert(parent_node == fdt_node_offset_by_phandle(device_tree, phandle)); in walk_device_tree()

1234567