/external/dtc/libfdt/ |
fdt_wip.c | 58 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, 66 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, 78 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, 84 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); 91 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, 104 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) 109 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); 128 int fdt_nop_node(void *fdt, int nodeoffset) 132 endoffset = _fdt_node_end_offset(fdt, nodeoffset); 136 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0) [all...] |
fdt_addresses.c | 58 int fdt_address_cells(const void *fdt, int nodeoffset) 64 ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len); 78 int fdt_size_cells(const void *fdt, int nodeoffset) 84 sc = fdt_getprop(fdt, nodeoffset, "#size-cells", &len);
|
libfdt.h | 424 * @nodeoffset: structure block offset of the starting node 428 * device tree node at structure block offset nodeoffset. If lenp is 438 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE 444 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 449 * @nodeoffset: structure block offset of a node 457 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag 464 int fdt_first_property_offset(const void *fdt, int nodeoffset); 478 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag 531 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag 545 * @nodeoffset: offset of the node whose property to fin [all...] |
fdt_ro.c | 233 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) 235 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); 239 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) 253 int fdt_first_property_offset(const void *fdt, int nodeoffset) 257 if ((offset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) 317 int nodeoffset, 320 return fdt_get_property_namelen(fdt, nodeoffset, name, 324 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 329 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); 349 const void *fdt_getprop(const void *fdt, int nodeoffset, [all...] |
fdt_rw.c | 203 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, 209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); 221 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, 229 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) 249 int fdt_set_name(void *fdt, int nodeoffset, const char *name) 257 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); 272 int fdt_setprop(void *fdt, int nodeoffset, const char *name, 280 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); 282 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); 290 int fdt_appendprop(void *fdt, int nodeoffset, const char *name [all...] |
libfdt_internal.h | 68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/ |
libfdt.h | 347 * @nodeoffset: structure block offset of the starting node
351 * device tree node at structure block offset nodeoffset. If lenp is
360 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
365 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
370 * @nodeoffset: structure block offset of a node
378 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
385 int fdt_first_property_offset(const void *fdt, int nodeoffset);
399 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
425 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
439 * @nodeoffset: offset of the node whose property to find [all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/FdtLib/ |
fdt_wip.c | 58 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
64 propval = fdt_getprop_w(fdt, nodeoffset, name, &proplen);
83 int fdt_nop_property(void *fdt, int nodeoffset, const char *name)
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
107 int fdt_nop_node(void *fdt, int nodeoffset)
111 endoffset = _fdt_node_end_offset(fdt, nodeoffset);
115 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0),
116 endoffset - nodeoffset);
|
fdt_ro.c | 201 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len)
203 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset);
207 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0))
221 int fdt_first_property_offset(const void *fdt, int nodeoffset)
225 if ((offset = _fdt_check_node_offset(fdt, nodeoffset)) < 0)
286 int nodeoffset,
289 return fdt_get_property_namelen(fdt, nodeoffset, name,
293 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
298 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp);
318 const void *fdt_getprop(const void *fdt, int nodeoffset,
[all...] |
fdt_rw.c | 207 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name,
213 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
226 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name,
234 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0)
254 int fdt_set_name(void *fdt, int nodeoffset, const char *name)
262 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen);
277 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
285 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop);
287 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop);
295 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, [all...] |
libfdt_internal.h | 68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
|
/external/dtc/tests/ |
supernode_atdepth_offset.c | 74 int nodeoffset, supernodeoffset, superpathoffset, pathprefixlen; local 85 nodeoffset = fdt_path_offset(fdt, path); 86 if (nodeoffset < 0) 87 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); 93 supernodeoffset = fdt_supernode_atdepth_offset(fdt, nodeoffset, 111 int nodeoffset, err; local 113 nodeoffset = fdt_path_offset(fdt, path); 114 if (nodeoffset < 0) 115 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); 117 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, pdepth + 1, NULL) [all...] |
tests.h | 98 void check_property(void *fdt, int nodeoffset, const char *name, 100 #define check_property_cell(fdt, nodeoffset, name, val) \ 103 check_property(fdt, nodeoffset, name, sizeof(x), &x); \ 107 const void *check_getprop(void *fdt, int nodeoffset, const char *name, 109 #define check_getprop_cell(fdt, nodeoffset, name, val) \ 112 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 114 #define check_getprop_64(fdt, nodeoffset, name, val) \ 117 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 119 #define check_getprop_string(fdt, nodeoffset, name, s) \ 120 check_getprop((fdt), (nodeoffset), (name), strlen(s)+1, (s) [all...] |
parent_offset.c | 45 int nodeoffset, parentoffset, parentpathoffset, pathparentlen; local 54 nodeoffset = fdt_path_offset(fdt, path); 55 if (nodeoffset < 0) 56 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); 63 parentoffset = fdt_parent_offset(fdt, nodeoffset);
|
dtb_reverse.c | 80 static void reverse_node(void *in, void *out, int nodeoffset); 104 static void reverse_node(void *in, void *out, int nodeoffset) 106 const char *name = fdt_get_name(in, nodeoffset, NULL); 112 CHECK(fdt_get_path(in, nodeoffset, path, sizeof(path))); 113 verbose_printf("reverse_node(): nodeoffset=%d [%s]\n", 114 nodeoffset, path); 118 offset = fdt_first_property_offset(in, nodeoffset); 124 offset = fdt_next_node(in, nodeoffset, &depth);
|
testutils.c | 87 void check_property(void *fdt, int nodeoffset, const char *name, 96 prop = fdt_get_property(fdt, nodeoffset, name, &retlen); 124 const void *check_getprop(void *fdt, int nodeoffset, const char *name, 130 propval = fdt_getprop(fdt, nodeoffset, name, &proplen);
|
/external/dtc/ |
fdtput.c | 150 static char *realloc_property(char *fdt, int nodeoffset, 156 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen))
|