| /external/dtc/libfdt/ |
| D | libfdt.h | 429 * @nodeoffset: structure block offset of the starting node 433 * device tree node at structure block offset nodeoffset. If lenp is 443 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE 449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 454 * @nodeoffset: structure block offset of a node 462 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag 469 int fdt_first_property_offset(const void *fdt, int nodeoffset); 483 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag 536 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag 550 * @nodeoffset: offset of the node whose property to find [all …]
|
| D | fdt_ro.c | 233 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 235 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name() 239 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) in fdt_get_name() 253 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 257 if ((offset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 317 int nodeoffset, in fdt_get_property() argument 320 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 324 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 329 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen() 349 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
| D | fdt_wip.c | 58 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument 66 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 78 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 84 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 91 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 104 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 109 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property() 128 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument 132 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_nop_node() 136 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node() [all …]
|
| D | fdt_rw.c | 203 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, in _fdt_resize_property() argument 209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property() 221 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, in _fdt_add_property() argument 229 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in _fdt_add_property() 249 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 257 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name() 272 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument 280 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop() 282 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop() 291 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument [all …]
|
| /external/arm-trusted-firmware/include/lib/libfdt/ |
| D | libfdt.h | 429 * @nodeoffset: structure block offset of the starting node 433 * device tree node at structure block offset nodeoffset. If lenp is 443 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE 449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 454 * @nodeoffset: structure block offset of a node 462 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag 469 int fdt_first_property_offset(const void *fdt, int nodeoffset); 483 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag 539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag 553 * @nodeoffset: offset of the node whose property to find [all …]
|
| /external/u-boot/scripts/dtc/libfdt/ |
| D | libfdt.h | 521 * @nodeoffset: structure block offset of the starting node 525 * device tree node at structure block offset nodeoffset. If lenp is 535 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE 541 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 546 * @nodeoffset: structure block offset of a node 554 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag 561 int fdt_first_property_offset(const void *fdt, int nodeoffset); 575 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag 631 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag 645 * @nodeoffset: offset of the node whose property to find [all …]
|
| D | fdt_wip.c | 13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument 21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property() 83 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument 87 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_nop_node() 91 fdt_nop_region_(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node() [all …]
|
| D | fdt_ro.c | 298 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 300 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 306 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0))) in fdt_get_name() 337 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 341 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 442 int nodeoffset, in fdt_get_property() argument 445 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 449 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 455 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() 500 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
| D | fdt_addresses.c | 14 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() argument 20 c = fdt_getprop(fdt, nodeoffset, name, &len); in fdt_cells() 34 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument 38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells() 46 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument 50 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells() 57 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument 99 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
|
| D | fdt_rw.c | 185 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument 191 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 203 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument 212 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_() 236 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 244 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name() 259 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 267 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 269 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 277 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument [all …]
|
| /external/u-boot/scripts/dtc/pylibfdt/ |
| D | libfdt.i_shipped | 152 def next_node(self, nodeoffset, depth, quiet=()): 156 nodeoffset: Node offset of previous node 157 depth: The depth of the node at nodeoffset. This is used to 169 return check_err(fdt_next_node(self._fdt, nodeoffset, depth), quiet) 171 def first_subnode(self, nodeoffset, quiet=()): 175 nodeoffset: Node offset of parent node 184 return check_err(fdt_first_subnode(self._fdt, nodeoffset), quiet) 186 def next_subnode(self, nodeoffset, quiet=()): 190 nodeoffset: Node offset of previous subnode 199 return check_err(fdt_next_subnode(self._fdt, nodeoffset), quiet) [all …]
|
| /external/u-boot/drivers/pci/ |
| D | pcie_layerscape_fixup.c | 77 int nodeoffset; in fdt_pcie_set_msi_map_entry() local 82 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", in fdt_pcie_set_msi_map_entry() 84 if (nodeoffset < 0) { in fdt_pcie_set_msi_map_entry() 94 nodeoffset = fdt_node_offset_by_compat_reg(blob, in fdt_pcie_set_msi_map_entry() 97 if (nodeoffset < 0) in fdt_pcie_set_msi_map_entry() 102 prop = (u32 *)fdt_getprop(blob, nodeoffset, "msi-parent", 0); in fdt_pcie_set_msi_map_entry() 111 fdt_appendprop_u32(blob, nodeoffset, "msi-map", devid); in fdt_pcie_set_msi_map_entry() 112 fdt_appendprop_u32(blob, nodeoffset, "msi-map", phandle); in fdt_pcie_set_msi_map_entry() 113 fdt_appendprop_u32(blob, nodeoffset, "msi-map", streamid); in fdt_pcie_set_msi_map_entry() 114 fdt_appendprop_u32(blob, nodeoffset, "msi-map", 1); in fdt_pcie_set_msi_map_entry() [all …]
|
| /external/u-boot/lib/libfdt/ |
| D | fdt_ro.c | 302 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 304 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 310 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0))) in fdt_get_name() 341 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 345 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 446 int nodeoffset, in fdt_get_property() argument 449 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 453 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 459 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() 504 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
| /external/dtc/pylibfdt/ |
| D | libfdt.i | 190 def first_property_offset(self, nodeoffset, quiet=()): 194 nodeoffset: Offset to the node to check 204 return check_err(fdt_first_property_offset(self._fdt, nodeoffset), 224 def get_name(self, nodeoffset): 228 nodeoffset: Offset of node to check 234 FdtException on error (e.g. nodeoffset is invalid) 236 return check_err_null(fdt_get_name(self._fdt, nodeoffset))[0] 258 def first_subnode(self, nodeoffset, quiet=()): 262 nodeoffset: Node offset of parent node 271 return check_err(fdt_first_subnode(self._fdt, nodeoffset), quiet) [all …]
|
| /external/dtc/tests/ |
| D | tests.h | 98 void check_property(void *fdt, int nodeoffset, const char *name, 100 #define check_property_cell(fdt, nodeoffset, name, val) \ argument 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) \ argument 112 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 114 #define check_getprop_64(fdt, nodeoffset, name, val) \ argument 117 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 119 #define check_getprop_string(fdt, nodeoffset, name, s) \ argument 120 check_getprop((fdt), (nodeoffset), (name), strlen(s)+1, (s))
|
| D | supernode_atdepth_offset.c | 74 int nodeoffset, supernodeoffset, superpathoffset, pathprefixlen; in check_supernode_atdepth() local 85 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_atdepth() 86 if (nodeoffset < 0) in check_supernode_atdepth() 87 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_atdepth() 93 supernodeoffset = fdt_supernode_atdepth_offset(fdt, nodeoffset, in check_supernode_atdepth() 111 int nodeoffset, err; in check_supernode_overdepth() local 113 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_overdepth() 114 if (nodeoffset < 0) in check_supernode_overdepth() 115 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_overdepth() 117 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, pdepth + 1, NULL); in check_supernode_overdepth()
|
| D | 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) in reverse_node() argument 106 const char *name = fdt_get_name(in, nodeoffset, NULL); in reverse_node() 112 CHECK(fdt_get_path(in, nodeoffset, path, sizeof(path))); in reverse_node() 113 verbose_printf("reverse_node(): nodeoffset=%d [%s]\n", in reverse_node() 114 nodeoffset, path); in reverse_node() 118 offset = fdt_first_property_offset(in, nodeoffset); in reverse_node() 124 offset = fdt_next_node(in, nodeoffset, &depth); in reverse_node()
|
| D | parent_offset.c | 45 int nodeoffset, parentoffset, parentpathoffset, pathparentlen; in check_path() local 54 nodeoffset = fdt_path_offset(fdt, path); in check_path() 55 if (nodeoffset < 0) in check_path() 56 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_path() 63 parentoffset = fdt_parent_offset(fdt, nodeoffset); in check_path()
|
| /external/swiftshader/third_party/llvm-7.0/llvm/test/ObjectYAML/MachO/ |
| D | export_trie.yaml | 144 NodeOffset: 0 152 NodeOffset: 5 160 NodeOffset: 33 167 NodeOffset: 37 177 #CHECK: NodeOffset: 0 181 #CHECK: NodeOffset: 5 185 #CHECK: NodeOffset: 33 189 #CHECK: NodeOffset: 37
|
| /external/llvm/test/ObjectYAML/MachO/ |
| D | export_trie.yaml | 144 NodeOffset: 0 152 NodeOffset: 5 160 NodeOffset: 33 167 NodeOffset: 37 177 #CHECK: NodeOffset: 0 181 #CHECK: NodeOffset: 5 185 #CHECK: NodeOffset: 33 189 #CHECK: NodeOffset: 37
|
| /external/u-boot/board/ti/ks2_evm/ |
| D | board.c | 160 int nodeoffset; in ft_board_setup_ex() local 165 nodeoffset = fdt_path_offset(blob, "/chosen"); in ft_board_setup_ex() 166 if (nodeoffset >= 0) { in ft_board_setup_ex() 167 prop1 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 169 prop2 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 181 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 186 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 191 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex() 198 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex()
|
| /external/u-boot/cmd/ |
| D | fdt.c | 258 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 270 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 271 if (nodeoffset < 0) { in do_fdt() 276 fdt_strerror(nodeoffset)); in do_fdt() 279 err = fdt_add_subnode(working_fdt, nodeoffset, nodep); in do_fdt() 292 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 307 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 308 if (nodeoffset < 0) { in do_fdt() 313 fdt_strerror(nodeoffset)); in do_fdt() 320 ptmp = fdt_getprop(working_fdt, nodeoffset, prop, &len); in do_fdt() [all …]
|
| /external/u-boot/common/ |
| D | fdt_support.c | 180 static inline int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, in fdt_setprop_uxx() argument 184 return fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx() 186 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); in fdt_setprop_uxx() 217 int nodeoffset; in fdt_initrd() local 227 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_initrd() 228 if (nodeoffset < 0) in fdt_initrd() 229 return nodeoffset; in fdt_initrd() 253 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in fdt_initrd() 262 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in fdt_initrd() 277 int nodeoffset; in fdt_chosen() local [all …]
|
| /external/u-boot/tools/ |
| D | fit_info.c | 45 int nodeoffset; /* node offset from libfdt */ in main() local 90 nodeoffset = fdt_path_offset(fit_blob, nodename); in main() 91 if (nodeoffset < 0) { in main() 95 nodep = fdt_getprop(fit_blob, nodeoffset, propertyname, &len); in main() 101 printf("NAME: %s\n", fit_get_name(fit_blob, nodeoffset, NULL)); in main()
|
| /external/arm-trusted-firmware/plat/arm/css/sgi/ |
| D | sgi_image_load.c | 28 int nodeoffset, err; in plat_sgi_append_config_node() local 45 nodeoffset = fdt_subnode_offset(fdt, 0, "system-id"); in plat_sgi_append_config_node() 46 if (nodeoffset < 0) { in plat_sgi_append_config_node() 52 err = fdt_setprop_u32(fdt, nodeoffset, "platform-id", platid); in plat_sgi_append_config_node() 59 err = fdt_setprop_u32(fdt, nodeoffset, "config-id", platcfg); in plat_sgi_append_config_node()
|