/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | libfdt.h | 449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 469 int fdt_first_property_offset(const void *fdt, int nodeoffset); 563 int nodeoffset, 596 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 598 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument 603 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 654 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 656 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument 660 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w() 693 const void *fdt_getprop(const void *fdt, int nodeoffset, [all …]
|
H A 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 …]
|
H A D | fdt_ro.c | 234 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 236 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 241 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name() 272 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 276 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 376 int nodeoffset, in fdt_get_property() argument 379 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 383 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 389 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() 419 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
H A 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_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 280 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 282 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 290 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument [all …]
|
H A D | fdt_addresses.c | 58 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument 64 ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len); in fdt_address_cells() 78 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument 84 sc = fdt_getprop(fdt, nodeoffset, "#size-cells", &len); in fdt_size_cells()
|
H A D | fdt_overlay.c | 695 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument 703 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len() 711 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len() 712 if (nodeoffset < 0) in get_path_len() 713 return nodeoffset; in get_path_len()
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | libfdt.h | 563 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 583 int fdt_first_property_offset(const void *fdt, int nodeoffset); 687 int nodeoffset, 720 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 722 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument 727 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 780 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 782 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument 786 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w() 819 const void *fdt_getprop(const void *fdt, int nodeoffset, [all …]
|
H A 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 …]
|
H A D | fdt_ro.c | 300 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 302 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 307 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name() 338 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 342 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 444 int nodeoffset, in fdt_get_property() argument 447 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 451 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 457 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() 502 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
H A 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()
|
H A D | fdt_rw.c | 184 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument 190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 202 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument 211 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_() 235 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 243 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name() 258 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 266 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 268 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 276 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument [all …]
|
H A D | fdt_overlay.c | 636 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument 644 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len() 652 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len() 653 if (nodeoffset < 0) in get_path_len() 654 return nodeoffset; in get_path_len()
|
/openbmc/u-boot/lib/libfdt/ |
H A D | fdt_ro.c | 212 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 214 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 218 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name() 232 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 236 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 296 int nodeoffset, in fdt_get_property() argument 299 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 303 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 308 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen() 328 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A 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 …]
|
/openbmc/u-boot/cmd/ |
H A D | fdt.c | 257 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 269 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 270 if (nodeoffset < 0) { in do_fdt() 275 fdt_strerror(nodeoffset)); in do_fdt() 278 err = fdt_add_subnode(working_fdt, nodeoffset, nodep); in do_fdt() 291 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 306 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 307 if (nodeoffset < 0) { in do_fdt() 312 fdt_strerror(nodeoffset)); in do_fdt() 319 ptmp = fdt_getprop(working_fdt, nodeoffset, prop, &len); in do_fdt() [all …]
|
/openbmc/u-boot/board/ti/ks2_evm/ |
H A D | board.c | 172 int nodeoffset; in ft_board_setup_ex() local 177 nodeoffset = fdt_path_offset(blob, "/chosen"); in ft_board_setup_ex() 178 if (nodeoffset >= 0) { in ft_board_setup_ex() 179 prop1 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 181 prop2 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 193 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 198 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 203 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex() 210 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex()
|
/openbmc/u-boot/common/ |
H A D | fdt_support.c | 179 static inline int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, in fdt_setprop_uxx() argument 183 return fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx() 185 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); in fdt_setprop_uxx() 216 int nodeoffset; in fdt_initrd() local 226 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_initrd() 227 if (nodeoffset < 0) in fdt_initrd() 228 return nodeoffset; in fdt_initrd() 252 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in fdt_initrd() 261 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in fdt_initrd() 276 int nodeoffset; in fdt_chosen() local [all …]
|
/openbmc/u-boot/include/ |
H A D | fdt_support.h | 226 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle); 227 unsigned int fdt_create_phandle(void *fdt, int nodeoffset); 242 int fdt_set_node_status(void *fdt, int nodeoffset, 244 static inline int fdt_status_okay(void *fdt, int nodeoffset) in fdt_status_okay() argument 246 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY, 0); in fdt_status_okay() 248 static inline int fdt_status_disabled(void *fdt, int nodeoffset) in fdt_status_disabled() argument 250 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED, 0); in fdt_status_disabled() 252 static inline int fdt_status_fail(void *fdt, int nodeoffset) in fdt_status_fail() argument 254 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL, 0); in fdt_status_fail()
|
/openbmc/u-boot/tools/ |
H A 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()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/ |
H A D | fdt.c | 62 int nodeoffset, path; in ft_cpu_setup() local 65 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_cpu_setup() 66 if (nodeoffset >= 0) { in ft_cpu_setup() 68 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); in ft_cpu_setup() 81 prop = fdt_getprop(blob, nodeoffset, "ethernet1", NULL); in ft_cpu_setup()
|
H A D | pci.c | 187 int nodeoffset; in ft_pci_setup() local 194 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_pci_setup() 195 if (nodeoffset >= 0) { in ft_pci_setup() 196 path = fdt_getprop(blob, nodeoffset, "pci0", NULL); in ft_pci_setup() 211 path = fdt_getprop(blob, nodeoffset, "pci1", NULL); in ft_pci_setup()
|
/openbmc/u-boot/scripts/dtc/pylibfdt/ |
H A 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 …]
|
/openbmc/u-boot/board/BuR/common/ |
H A D | common.c | 254 int nodeoffset; in ft_board_setup() local 256 nodeoffset = fdt_path_offset(blob, "/factory-settings"); in ft_board_setup() 257 if (nodeoffset < 0) { in ft_board_setup() 260 nodeoffset = fdt_path_offset(blob, "/fset"); in ft_board_setup() 261 if (nodeoffset < 0) { in ft_board_setup() 267 if (fdt_setprop(blob, nodeoffset, "bl-version", in ft_board_setup()
|
/openbmc/u-boot/drivers/net/fsl-mc/ |
H A D | mc.c | 168 static int mc_fixup_mac_addr(void *blob, int nodeoffset, in mc_fixup_mac_addr() argument 193 if (fdt_get_property(blob, nodeoffset, propname, NULL)) { in mc_fixup_mac_addr() 209 err = fdt_setprop(blob, nodeoffset, propname, val, len); in mc_fixup_mac_addr() 321 int nodeoffset = fdt_path_offset(blob, "/board_info/ports"), noff; in mc_fixup_dpc_mac_addr() local 329 noff = fdt_subnode_offset(blob, nodeoffset, (const char *)mac_name); in mc_fixup_dpc_mac_addr() 338 noff = fdt_add_subnode(blob, nodeoffset, mac_name); in mc_fixup_dpc_mac_addr() 400 int nodeoffset, err = 0; in mc_fixup_dpc() local 403 nodeoffset = fdt_path_offset(blob, "/resources/icid_pools"); in mc_fixup_dpc() 404 if (fdt_del_node(blob, nodeoffset) < 0) in mc_fixup_dpc() 408 nodeoffset = fdt_path_offset(blob, "/resources"); in mc_fixup_dpc() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv8/ |
H A D | sec_firmware.c | 458 int nodeoffset; in fdt_fixup_kaslr() local 482 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_fixup_kaslr() 483 if (nodeoffset < 0) in fdt_fixup_kaslr() 486 err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand, in fdt_fixup_kaslr()
|