/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_wip.c | 13 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, argument 21 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, 33 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, argument 39 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); 46 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, 59 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) argument 64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); 83 int fdt_nop_node(void *fdt, int nodeoffset) argument 87 endoffset = fdt_node_end_offset_(fdt, nodeoffset); 91 fdt_nop_region_(fdt_offset_ptr_w(fdt, nodeoffset, [all...] |
H A D | libfdt.h | 490 * @nodeoffset: structure block offset of the starting node 494 * device tree node at structure block offset nodeoffset. If lenp is 504 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE 510 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 515 * @nodeoffset: structure block offset of a node 523 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag 530 int fdt_first_property_offset(const void *fdt, int nodeoffset); 544 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag 600 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag 614 * @nodeoffset 659 fdt_get_property_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument 717 fdt_getprop_namelen_w(void *fdt, int nodeoffset, const char *name, int namelen, int *lenp) argument 756 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument 1254 fdt_setprop_inplace_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 1289 fdt_setprop_inplace_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument 1301 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 1615 fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 1650 fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument 1662 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 1787 fdt_appendprop_u32(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 1822 fdt_appendprop_u64(void *fdt, int nodeoffset, const char *name, uint64_t val) argument 1834 fdt_appendprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument [all...] |
H A D | fdt_addresses.c | 14 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) argument 20 c = fdt_getprop(fdt, nodeoffset, name, &len); 34 int fdt_address_cells(const void *fdt, int nodeoffset) argument 38 val = fdt_cells(fdt, nodeoffset, "#address-cells"); 46 int fdt_size_cells(const void *fdt, int nodeoffset) argument 50 val = fdt_cells(fdt, nodeoffset, "#size-cells"); 57 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, argument 99 return fdt_appendprop(fdt, nodeoffset, name, data,
|
H A D | fdt_ro.c | 300 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) argument 302 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); 308 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0))) 339 int fdt_first_property_offset(const void *fdt, int nodeoffset) argument 343 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) 444 int nodeoffset, 447 return fdt_get_property_namelen(fdt, nodeoffset, name, 451 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, argument 457 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, 502 const void *fdt_getprop(const void *fdt, int nodeoffset, argument 443 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument 508 fdt_get_phandle(const void *fdt, int nodeoffset) argument 542 fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) argument 594 fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth) argument 632 fdt_node_depth(const void *fdt, int nodeoffset) argument 643 fdt_parent_offset(const void *fdt, int nodeoffset) argument 722 fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property) argument 747 fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, const char *string) argument 777 fdt_stringlist_get(const void *fdt, int nodeoffset, const char *property, int idx, int *lenp) argument 822 fdt_node_check_compatible(const void *fdt, int nodeoffset, const char *compatible) argument [all...] |
H A D | fdt_rw.c | 185 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, argument 191 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); 203 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, argument 212 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) 236 int fdt_set_name(void *fdt, int nodeoffset, const char *name) argument 244 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); 259 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, argument 267 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); 269 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); 277 int fdt_setprop(void *fdt, int nodeoffset, cons argument 292 fdt_appendprop(void *fdt, int nodeoffset, const char *name, const void *val, int len) argument 319 fdt_delprop(void *fdt, int nodeoffset, const char *name) argument 380 fdt_del_node(void *fdt, int nodeoffset) argument [all...] |
H A D | libfdt_internal.h | 27 int fdt_node_end_offset_(void *fdt, int nodeoffset);
|
/u-boot/tools/ |
H A D | fit_info.c | 45 int nodeoffset; /* node offset from libfdt */ local 90 nodeoffset = fdt_path_offset(fit_blob, nodename); 91 if (nodeoffset < 0) { 95 nodep = fdt_getprop(fit_blob, nodeoffset, propertyname, &len); 101 printf("NAME: %s\n", fit_get_name(fit_blob, nodeoffset, NULL));
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
H A D | pci.c | 33 int nodeoffset; local 40 nodeoffset = fdt_path_offset(blob, "/aliases"); 41 if (nodeoffset >= 0) { 42 path = fdt_getprop(blob, nodeoffset, "pci0", NULL); 57 path = fdt_getprop(blob, nodeoffset, "pci1", NULL);
|
H A D | fdt.c | 61 int nodeoffset, path; local 64 nodeoffset = fdt_path_offset(blob, "/aliases"); 65 if (nodeoffset >= 0) { 66 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); 77 prop = fdt_getprop(blob, nodeoffset, "ethernet1", NULL);
|
/u-boot/cmd/ |
H A D | pstore.c | 488 int nodeoffset; /* node offset from libfdt */ local 494 nodeoffset = fdt_path_offset(blob, "/"); 495 if (nodeoffset < 0) { 497 log_err("fdt_path_offset() returned %s\n", fdt_strerror(nodeoffset)); 500 addr_cells_root = fdt_getprop_u32_default_node(blob, nodeoffset, 0, "#address-cells", 2); 501 size_cells_root = fdt_getprop_u32_default_node(blob, nodeoffset, 0, "#size-cells", 2); 503 nodeoffset = fdt_find_or_add_subnode(blob, nodeoffset, "reserved-memory"); 504 if (nodeoffset < 0) { 506 fdt_strerror(nodeoffset)); [all...] |
H A D | kaslrseed.c | 22 int nodeoffset; local 54 nodeoffset = fdt_find_or_add_subnode(working_fdt, 0, "chosen"); 55 if (nodeoffset < 0) { 60 ret = fdt_setprop(working_fdt, nodeoffset, "kaslr-seed", buf, sizeof(buf));
|
H A D | fdt.c | 308 int nodeoffset; /* node offset from libfdt */ local 320 nodeoffset = fdt_path_offset (working_fdt, pathp); 321 if (nodeoffset < 0) { 326 fdt_strerror(nodeoffset)); 329 err = fdt_add_subnode(working_fdt, nodeoffset, nodep); 342 int nodeoffset; /* node offset from libfdt */ local 357 nodeoffset = fdt_path_offset (working_fdt, pathp); 358 if (nodeoffset < 0) { 363 fdt_strerror(nodeoffset)); 370 ptmp = fdt_getprop(working_fdt, nodeoffset, pro 398 int nodeoffset; /* node offset from libfdt */ local 538 int nodeoffset; /* node offset from libfdt */ local 1004 int nodeoffset; /* node offset from libfdt */ local [all...] |
/u-boot/drivers/pci/ |
H A D | pcie_layerscape_fixup.c | 31 int nodeoffset; local 36 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", 38 if (nodeoffset < 0) { 48 nodeoffset = 54 return nodeoffset; 105 int nodeoffset; local 111 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", 113 if (nodeoffset < 0) { 123 nodeoffset = fdt_node_offset_by_compat_reg(blob, 126 if (nodeoffset < 160 int nodeoffset; local 231 get_extra_iommu_ents(void *blob, int nodeoffset, phys_addr_t addr, int *cnt) argument 505 int i, cnt, nodeoffset; local [all...] |
/u-boot/board/ti/ks2_evm/ |
H A D | board.c | 164 int nodeoffset; local 169 nodeoffset = fdt_path_offset(blob, "/chosen"); 170 if (nodeoffset >= 0) { 171 prop1 = (u64 *)fdt_getprop(blob, nodeoffset, 173 prop2 = (u64 *)fdt_getprop(blob, nodeoffset, 185 err = fdt_delprop(blob, nodeoffset, 190 err = fdt_delprop(blob, nodeoffset, 195 err = fdt_setprop(blob, nodeoffset, 202 err = fdt_setprop(blob, nodeoffset,
|
/u-boot/board/BuR/common/ |
H A D | common.c | 27 int nodeoffset; local 29 nodeoffset = fdt_path_offset(blob, "/factory-settings"); 30 if (nodeoffset < 0) { 33 nodeoffset = fdt_path_offset(blob, "/fset"); 34 if (nodeoffset < 0) { 40 if (fdt_setprop(blob, nodeoffset, "bl-version",
|
/u-boot/arch/arm/mach-meson/ |
H A D | sm.c | 111 int nodeoffset; local 116 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, 118 if (nodeoffset < 0) { 125 node = offset_to_ofnode(nodeoffset);
|
H A D | board-info.c | 132 int nodeoffset, ret; local 137 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, 139 if (nodeoffset < 0) 143 if (!fdt_getprop(gd->fdt_blob, nodeoffset, "amlogic,has-chip-id", NULL)) 147 node = offset_to_ofnode(nodeoffset);
|
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | ls1028_ids.c | 84 static int fdt_setprop_inplace_idx_u32(void *fdt, int nodeoffset, argument 88 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, 94 static int fdt_getprop_len(void *fdt, int nodeoffset, const char *name) argument 98 if (fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), &len))
|
/u-boot/include/ |
H A D | fdt_support.h | 337 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle); 338 unsigned int fdt_create_phandle(void *fdt, int nodeoffset); 355 int fdt_set_node_status(void *fdt, int nodeoffset, enum fdt_status status); 356 static inline int fdt_status_okay(void *fdt, int nodeoffset) argument 358 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY); 360 static inline int fdt_status_disabled(void *fdt, int nodeoffset) argument 362 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED); 364 static inline int fdt_status_fail(void *fdt, int nodeoffset) argument 366 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL);
|
/u-boot/arch/mips/mach-octeon/include/mach/ |
H A D | octeon_fdt.h | 132 * @param nodeoffset offset of the tree node 139 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag 145 int octeon_fdt_compat_vendor(const void *fdt, int nodeoffset, const char *vendor); 151 * @param nodeoffset node offset to get OCX node for 155 int octeon_fdt_get_soc_node(const void *fdt, int nodeoffset);
|
/u-boot/lib/efi_loader/ |
H A D | efi_dt_fixup.c | 88 int nodeoffset, subnode; local 100 nodeoffset = fdt_subnode_offset(fdt, 0, "reserved-memory"); 101 if (nodeoffset >= 0) { 102 subnode = fdt_first_subnode(fdt, nodeoffset); 109 fdt, nodeoffset, subnode,
|
/u-boot/arch/arm/mach-k3/ |
H A D | common_fdt.c | 119 int nodeoffset, subnode; local 123 nodeoffset = fdt_subnode_offset(blob, 0, "reserved-memory"); 124 if (nodeoffset < 0) { 130 fdt_for_each_subnode(subnode, blob, nodeoffset) {
|
/u-boot/boot/ |
H A D | fdt_support.c | 182 static inline int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, argument 186 return fdt_setprop_u64(fdt, nodeoffset, name, val); 188 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); 219 int nodeoffset; local 229 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); 230 if (nodeoffset < 0) 231 return nodeoffset; 255 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", 264 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", 289 int nodeoffset; local 468 int err, nodeoffset; local 521 int err, nodeoffset; local 1625 fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle) argument 1656 fdt_create_phandle(void *fdt, int nodeoffset) argument 1735 fdt_set_node_status(void *fdt, int nodeoffset, enum fdt_status status) argument [all...] |
/u-boot/drivers/net/fsl-mc/ |
H A D | mc.c | 170 static int mc_fixup_mac_addr(void *blob, int nodeoffset, argument 197 if (fdt_get_property(blob, nodeoffset, propname, NULL)) { 213 err = fdt_setprop(blob, nodeoffset, propname, val, len); 350 int nodeoffset = fdt_path_offset(blob, "/board_info/ports"), noff; local 358 noff = fdt_subnode_offset(blob, nodeoffset, (const char *)mac_name); 366 noff = fdt_add_subnode(blob, nodeoffset, mac_name); 423 int nodeoffset, err = 0; local 426 nodeoffset = fdt_path_offset(blob, "/resources/icid_pools"); 427 if (fdt_del_node(blob, nodeoffset) < 0) 431 nodeoffset [all...] |
/u-boot/arch/arm/cpu/armv8/ |
H A D | sec_firmware.c | 418 int nodeoffset; local 442 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); 443 if (nodeoffset < 0) 446 err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand,
|