| /rk3399_rockchip-uboot/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); 560 int nodeoffset, 593 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 595 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument 600 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 651 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 653 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument 657 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w() 690 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 | 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 …]
|
| 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_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_overlay.c | 644 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument 652 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len() 660 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len() 661 if (nodeoffset < 0) in get_path_len() 662 return nodeoffset; in get_path_len()
|
| H A D | libfdt_internal.h | 68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
|
| /rk3399_rockchip-uboot/drivers/pci/ |
| H A D | pcie_layerscape_fixup.c | 78 int nodeoffset; in fdt_pcie_set_msi_map_entry() local 83 nodeoffset = fdt_node_offset_by_compat_reg(blob, "fsl,ls-pcie", in fdt_pcie_set_msi_map_entry() 85 if (nodeoffset < 0) { in fdt_pcie_set_msi_map_entry() 95 nodeoffset = fdt_node_offset_by_compat_reg(blob, in fdt_pcie_set_msi_map_entry() 98 if (nodeoffset < 0) in fdt_pcie_set_msi_map_entry() 103 prop = (u32 *)fdt_getprop(blob, nodeoffset, "msi-parent", 0); in fdt_pcie_set_msi_map_entry() 112 fdt_appendprop_u32(blob, nodeoffset, "msi-map", devid); in fdt_pcie_set_msi_map_entry() 113 fdt_appendprop_u32(blob, nodeoffset, "msi-map", phandle); in fdt_pcie_set_msi_map_entry() 114 fdt_appendprop_u32(blob, nodeoffset, "msi-map", streamid); in fdt_pcie_set_msi_map_entry() 115 fdt_appendprop_u32(blob, nodeoffset, "msi-map", 1); in fdt_pcie_set_msi_map_entry() [all …]
|
| H A D | tsi108_pci.c | 152 int nodeoffset; in ft_pci_setup() local 156 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_pci_setup() 157 if (nodeoffset >= 0) { in ft_pci_setup() 158 path = fdt_getprop(blob, nodeoffset, "pci", NULL); in ft_pci_setup()
|
| /rk3399_rockchip-uboot/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 …]
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | fdt.c | 222 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 234 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 235 if (nodeoffset < 0) { in do_fdt() 240 fdt_strerror(nodeoffset)); in do_fdt() 243 err = fdt_add_subnode(working_fdt, nodeoffset, nodep); in do_fdt() 256 int nodeoffset; /* node offset from libfdt */ in do_fdt() local 271 nodeoffset = fdt_path_offset (working_fdt, pathp); in do_fdt() 272 if (nodeoffset < 0) { in do_fdt() 277 fdt_strerror(nodeoffset)); in do_fdt() 284 ptmp = fdt_getprop(working_fdt, nodeoffset, prop, &len); in do_fdt() [all …]
|
| /rk3399_rockchip-uboot/board/ti/ks2_evm/ |
| H A D | board.c | 150 int nodeoffset; in ft_board_setup() local 201 nodeoffset = fdt_path_offset(blob, "/chosen"); in ft_board_setup() 202 if (nodeoffset >= 0) { in ft_board_setup() 203 prop1 = (u32 *)fdt_getprop(blob, nodeoffset, in ft_board_setup() 205 prop2 = (u32 *)fdt_getprop(blob, nodeoffset, in ft_board_setup() 217 err = fdt_delprop(blob, nodeoffset, in ft_board_setup() 222 err = fdt_delprop(blob, nodeoffset, in ft_board_setup() 227 err = fdt_setprop(blob, nodeoffset, in ft_board_setup() 234 err = fdt_setprop(blob, nodeoffset, in ft_board_setup()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | fdt_support.c | 189 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, in fdt_setprop_uxx() argument 193 return fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx() 195 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); in fdt_setprop_uxx() 226 int nodeoffset; in fdt_initrd() local 236 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_initrd() 237 if (nodeoffset < 0) in fdt_initrd() 238 return nodeoffset; in fdt_initrd() 264 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in fdt_initrd() 273 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in fdt_initrd() 289 int nodeoffset, len; in fdt_bootargs_append() local [all …]
|
| /rk3399_rockchip-uboot/include/ |
| H A D | fdt_support.h | 20 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, 250 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle); 251 unsigned int fdt_create_phandle(void *fdt, int nodeoffset); 266 int fdt_set_node_status(void *fdt, int nodeoffset, 268 static inline int fdt_status_okay(void *fdt, int nodeoffset) in fdt_status_okay() argument 270 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY, 0); in fdt_status_okay() 272 static inline int fdt_status_disabled(void *fdt, int nodeoffset) in fdt_status_disabled() argument 274 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED, 0); in fdt_status_disabled() 276 static inline int fdt_status_fail(void *fdt, int nodeoffset) in fdt_status_fail() argument 278 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL, 0); in fdt_status_fail()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | fit_info.c | 46 int nodeoffset; /* node offset from libfdt */ in main() local 91 nodeoffset = fdt_path_offset(fit_blob, nodename); in main() 92 if (nodeoffset < 0) { in main() 96 nodep = fdt_getprop(fit_blob, nodeoffset, propertyname, &len); in main() 102 printf("NAME: %s\n", fit_get_name(fit_blob, nodeoffset, NULL)); in main()
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc83xx/ |
| H A D | fdt.c | 63 int nodeoffset, path; in ft_cpu_setup() local 66 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_cpu_setup() 67 if (nodeoffset >= 0) { in ft_cpu_setup() 69 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); in ft_cpu_setup() 82 prop = fdt_getprop(blob, nodeoffset, "ethernet1", NULL); in ft_cpu_setup()
|
| H A D | pci.c | 188 int nodeoffset; in ft_pci_setup() local 195 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_pci_setup() 196 if (nodeoffset >= 0) { in ft_pci_setup() 197 path = fdt_getprop(blob, nodeoffset, "pci0", NULL); in ft_pci_setup() 212 path = fdt_getprop(blob, nodeoffset, "pci1", NULL); in ft_pci_setup()
|
| /rk3399_rockchip-uboot/scripts/dtc/pylibfdt/ |
| H A D | libfdt.i_shipped | 165 def first_property_offset(self, nodeoffset, quiet=()): 169 nodeoffset: Offset to the node to check 179 return check_err(fdt_first_property_offset(self._fdt, nodeoffset), 199 def get_name(self, nodeoffset): 203 nodeoffset: Offset of node to check 209 FdtException on error (e.g. nodeoffset is invalid) 211 return check_err_null(fdt_get_name(self._fdt, nodeoffset))[0] 233 def first_subnode(self, nodeoffset, quiet=()): 237 nodeoffset: Node offset of parent node 246 return check_err(fdt_first_subnode(self._fdt, nodeoffset), quiet) [all …]
|
| /rk3399_rockchip-uboot/arch/arm/cpu/armv8/ |
| H A D | sec_firmware.c | 342 int nodeoffset; in fdt_fixup_kaslr() local 364 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_fixup_kaslr() 365 if (nodeoffset < 0) in fdt_fixup_kaslr() 368 err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand, in fdt_fixup_kaslr()
|
| /rk3399_rockchip-uboot/drivers/net/fsl-mc/ |
| H A D | mc.c | 166 static int mc_fixup_mac_addr(void *blob, int nodeoffset, in mc_fixup_mac_addr() argument 191 if (fdt_get_property(blob, nodeoffset, propname, NULL)) { in mc_fixup_mac_addr() 207 err = fdt_setprop(blob, nodeoffset, propname, val, len); in mc_fixup_mac_addr() 285 int nodeoffset = fdt_path_offset(blob, "/board_info/ports"), noff; in mc_fixup_dpc_mac_addr() local 293 noff = fdt_subnode_offset(blob, nodeoffset, (const char *)mac_name); in mc_fixup_dpc_mac_addr() 302 noff = fdt_add_subnode(blob, nodeoffset, mac_name); in mc_fixup_dpc_mac_addr() 365 int nodeoffset, err = 0; in mc_fixup_dpc() local 368 nodeoffset = fdt_path_offset(blob, "/resources/icid_pools"); in mc_fixup_dpc() 369 if (fdt_del_node(blob, nodeoffset) < 0) in mc_fixup_dpc() 373 nodeoffset = fdt_path_offset(blob, "/resources"); in mc_fixup_dpc() [all …]
|
| /rk3399_rockchip-uboot/board/BuR/common/ |
| H A D | common.c | 330 int nodeoffset; in br_summaryscreen_printdtb() local 347 nodeoffset = fdt_path_offset(gd->fdt_blob, in br_summaryscreen_printdtb() 349 if (nodeoffset < 0) { in br_summaryscreen_printdtb() 353 nodep = fdt_getprop(gd->fdt_blob, nodeoffset, name, &len); in br_summaryscreen_printdtb() 362 int nodeoffset; in ft_board_setup() local 364 nodeoffset = fdt_path_offset(blob, "/factory-settings"); in ft_board_setup() 365 if (nodeoffset < 0) { in ft_board_setup() 369 if (fdt_setprop(blob, nodeoffset, "bl-version", in ft_board_setup()
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | sdhci-cadence.c | 93 const void *fdt, int nodeoffset) in sdhci_cdns_phy_init() argument 99 prop = fdt_getprop(fdt, nodeoffset, in sdhci_cdns_phy_init()
|
| /rk3399_rockchip-uboot/arch/arm/mach-rockchip/ |
| H A D | board.c | 1501 int nodeoffset; in ft_verify_fdt() local 1539 nodeoffset = fdt_subnode_offset(fdt, 0, "chosen"); in ft_verify_fdt() 1540 if (nodeoffset < 0) { in ft_verify_fdt() 1546 fdt_delprop(fdt, nodeoffset, "linux,initrd-start"); in ft_verify_fdt() 1547 fdt_delprop(fdt, nodeoffset, "linux,initrd-end"); in ft_verify_fdt() 1554 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in ft_verify_fdt() 1561 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in ft_verify_fdt()
|
| /rk3399_rockchip-uboot/board/compulab/cm_fx6/ |
| H A D | cm_fx6.c | 606 int nodeoffset; in ft_board_setup() local 633 nodeoffset = fdt_path_offset(blob, USDHC3_PATH); in ft_board_setup() 634 fdt_delprop(blob, nodeoffset, "cd-gpios"); in ft_board_setup()
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | fdtdec.c | 900 int nodeoffset; in fdtdec_get_config_string() local 904 nodeoffset = fdt_path_offset(blob, "/config"); in fdtdec_get_config_string() 905 if (nodeoffset < 0) in fdtdec_get_config_string() 908 nodep = fdt_getprop(blob, nodeoffset, prop_name, &len); in fdtdec_get_config_string()
|