/u-boot/scripts/dtc/libfdt/ |
A D | libfdt.h | 624 int nodeoffset, 664 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 883 int fdt_node_depth(const void *fdt, int nodeoffset); 906 int fdt_parent_offset(const void *fdt, int nodeoffset); 1142 int fdt_address_cells(const void *fdt, int nodeoffset); 1163 int fdt_size_cells(const void *fdt, int nodeoffset); 1355 int fdt_nop_node(void *fdt, int nodeoffset); 1665 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell() 1726 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument 1727 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0) [all …]
|
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 …]
|
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()
|
A D | fdt_ro.c | 444 int nodeoffset, in fdt_get_property() argument 447 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 515 php = fdt_getprop(fdt, nodeoffset, "phandle", &len); in fdt_get_phandle() 554 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path() 575 if (offset == nodeoffset) { in fdt_get_path() 606 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset() 611 if (offset == nodeoffset) { in fdt_supernode_atdepth_offset() 632 int fdt_node_depth(const void *fdt, int nodeoffset) in fdt_node_depth() argument 643 int fdt_parent_offset(const void *fdt, int nodeoffset) in fdt_parent_offset() argument 645 int nodedepth = fdt_node_depth(fdt, nodeoffset); in fdt_parent_offset() [all …]
|
A D | fdt_rw.c | 191 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 236 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 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 300 prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_appendprop() 311 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_appendprop() 319 int fdt_delprop(void *fdt, int nodeoffset, const char *name) in fdt_delprop() argument 326 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_delprop() 380 int fdt_del_node(void *fdt, int nodeoffset) in fdt_del_node() argument 386 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_del_node() [all …]
|
A D | fdt_overlay.c | 651 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument 659 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len() 667 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len() 668 if (nodeoffset < 0) in get_path_len() 669 return nodeoffset; in get_path_len()
|
A D | libfdt_internal.h | 27 int fdt_node_end_offset_(void *fdt, int nodeoffset);
|
/u-boot/cmd/ |
A D | pstore.c | 487 int nodeoffset; /* node offset from libfdt */ in fdt_fixup_pstore() local 489 nodeoffset = fdt_path_offset(blob, "/"); in fdt_fixup_pstore() 490 if (nodeoffset < 0) { in fdt_fixup_pstore() 496 nodeoffset = fdt_add_subnode(blob, nodeoffset, "reserved-memory"); in fdt_fixup_pstore() 497 if (nodeoffset < 0) { in fdt_fixup_pstore() 499 fdt_strerror(nodeoffset)); in fdt_fixup_pstore() 503 fdt_setprop_u32(blob, nodeoffset, "#size-cells", 2); in fdt_fixup_pstore() 504 fdt_setprop_empty(blob, nodeoffset, "ranges"); in fdt_fixup_pstore() 507 nodeoffset = fdt_add_subnode(blob, nodeoffset, node); in fdt_fixup_pstore() 508 if (nodeoffset < 0) { in fdt_fixup_pstore() [all …]
|
A D | fdt.c | 271 if (nodeoffset < 0) { in do_fdt() 276 fdt_strerror(nodeoffset)); in do_fdt() 308 if (nodeoffset < 0) { in do_fdt() 313 fdt_strerror(nodeoffset)); in do_fdt() 368 if (nodeoffset < 0) { in do_fdt() 373 fdt_strerror(nodeoffset)); in do_fdt() 380 working_fdt, nodeoffset); in do_fdt() 497 if (nodeoffset < 0) { in do_fdt() 502 fdt_strerror(nodeoffset)); in do_fdt() 1010 if (nodeoffset < 0) { in fdt_print() [all …]
|
/u-boot/drivers/pci/ |
A D | pcie_layerscape_fixup.c | 29 int nodeoffset; in fdt_pcie_get_nodeoffset() local 36 if (nodeoffset < 0) { in fdt_pcie_get_nodeoffset() 46 nodeoffset = in fdt_pcie_get_nodeoffset() 52 return nodeoffset; in fdt_pcie_get_nodeoffset() 103 int nodeoffset; in fdt_pcie_set_msi_map_entry_ls() local 111 if (nodeoffset < 0) { in fdt_pcie_set_msi_map_entry_ls() 124 if (nodeoffset < 0) in fdt_pcie_set_msi_map_entry_ls() 158 int nodeoffset; in fdt_pcie_set_iommu_map_entry_ls() local 163 if (nodeoffset < 0) in fdt_pcie_set_iommu_map_entry_ls() 503 int i, cnt, nodeoffset; in fdt_fixup_pcie_ls() local [all …]
|
/u-boot/board/ti/ks2_evm/ |
A D | board.c | 164 int nodeoffset; in ft_board_setup_ex() local 169 nodeoffset = fdt_path_offset(blob, "/chosen"); in ft_board_setup_ex() 170 if (nodeoffset >= 0) { in ft_board_setup_ex() 171 prop1 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 173 prop2 = (u64 *)fdt_getprop(blob, nodeoffset, in ft_board_setup_ex() 185 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 190 err = fdt_delprop(blob, nodeoffset, in ft_board_setup_ex() 195 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex() 202 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex()
|
/u-boot/tools/ |
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()
|
/u-boot/arch/powerpc/cpu/mpc83xx/ |
A D | fdt.c | 64 int nodeoffset, path; in ft_cpu_setup() local 67 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_cpu_setup() 68 if (nodeoffset >= 0) { in ft_cpu_setup() 70 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); in ft_cpu_setup() 83 prop = fdt_getprop(blob, nodeoffset, "ethernet1", NULL); in ft_cpu_setup()
|
A D | pci.c | 191 int nodeoffset; in ft_pci_setup() local 198 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_pci_setup() 199 if (nodeoffset >= 0) { in ft_pci_setup() 200 path = fdt_getprop(blob, nodeoffset, "pci0", NULL); in ft_pci_setup() 215 path = fdt_getprop(blob, nodeoffset, "pci1", NULL); in ft_pci_setup()
|
/u-boot/include/ |
A D | fdt_support.h | 280 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle); 281 unsigned int fdt_create_phandle(void *fdt, int nodeoffset); 296 int fdt_set_node_status(void *fdt, int nodeoffset, 298 static inline int fdt_status_okay(void *fdt, int nodeoffset) in fdt_status_okay() argument 300 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY, 0); in fdt_status_okay() 302 static inline int fdt_status_disabled(void *fdt, int nodeoffset) in fdt_status_disabled() argument 304 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED, 0); in fdt_status_disabled() 306 static inline int fdt_status_fail(void *fdt, int nodeoffset) in fdt_status_fail() argument 308 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL, 0); in fdt_status_fail()
|
/u-boot/arch/arm/mach-meson/ |
A D | board-info.c | 138 int nodeoffset, ret; in get_socinfo() local 143 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, in get_socinfo() 145 if (nodeoffset < 0) in get_socinfo() 149 if (!fdt_getprop(gd->fdt_blob, nodeoffset, "amlogic,has-chip-id", NULL)) in get_socinfo() 153 node = offset_to_ofnode(nodeoffset); in get_socinfo()
|
A D | sm.c | 99 int nodeoffset; in meson_sm_get_reboot_reason() local 104 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, in meson_sm_get_reboot_reason() 106 if (nodeoffset < 0) { in meson_sm_get_reboot_reason() 113 node = offset_to_ofnode(nodeoffset); in meson_sm_get_reboot_reason()
|
/u-boot/lib/efi_loader/ |
A D | efi_dt_fixup.c | 56 int nodeoffset, subnode; in efi_carve_out_dt_rsv() local 68 nodeoffset = fdt_subnode_offset(fdt, 0, "reserved-memory"); in efi_carve_out_dt_rsv() 69 if (nodeoffset >= 0) { in efi_carve_out_dt_rsv() 70 subnode = fdt_first_subnode(fdt, nodeoffset); in efi_carve_out_dt_rsv() 77 fdt, nodeoffset, subnode, in efi_carve_out_dt_rsv()
|
/u-boot/common/ |
A D | fdt_support.c | 214 int nodeoffset; in fdt_initrd() local 225 if (nodeoffset < 0) in fdt_initrd() 226 return nodeoffset; in fdt_initrd() 274 int nodeoffset; in fdt_chosen() local 286 if (nodeoffset < 0) in fdt_chosen() 287 return nodeoffset; in fdt_chosen() 417 int err, nodeoffset; in fdt_fixup_memory_banks() local 436 if (nodeoffset < 0) in fdt_fixup_memory_banks() 437 return nodeoffset; in fdt_fixup_memory_banks() 488 if (nodeoffset < 0) in fdt_set_usable_memory() [all …]
|
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
A D | ls1028_ids.c | 84 static int fdt_setprop_inplace_idx_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_idx_u32() argument 88 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace_idx_u32() 94 static int fdt_getprop_len(void *fdt, int nodeoffset, const char *name) in fdt_getprop_len() argument 98 if (fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), &len)) in fdt_getprop_len()
|
/u-boot/lib/optee/ |
A D | optee.c | 126 int nodeoffset, subnode, ret; in optee_copy_fdt_nodes() local 158 nodeoffset = fdt_subnode_offset(old_blob, 0, "reserved-memory"); in optee_copy_fdt_nodes() 159 if (nodeoffset >= 0) { in optee_copy_fdt_nodes() 160 for (subnode = fdt_first_subnode(old_blob, nodeoffset); in optee_copy_fdt_nodes()
|
/u-boot/scripts/dtc/pylibfdt/ |
A D | libfdt.i_shipped | 156 nodeoffset: Node offset of previous node 171 def first_subnode(self, nodeoffset, quiet=()): 175 nodeoffset: Node offset of parent node 186 def next_subnode(self, nodeoffset, quiet=()): 332 def get_name(self, nodeoffset): 336 nodeoffset: Offset of node to check 422 def get_phandle(self, nodeoffset): 426 nodeoffset: Node offset to check 450 nodeoffset: Node offset to check 674 def del_node(self, nodeoffset, quiet=()): [all …]
|
/u-boot/board/BuR/common/ |
A D | common.c | 252 int nodeoffset; in ft_board_setup() local 254 nodeoffset = fdt_path_offset(blob, "/factory-settings"); in ft_board_setup() 255 if (nodeoffset < 0) { in ft_board_setup() 258 nodeoffset = fdt_path_offset(blob, "/fset"); in ft_board_setup() 259 if (nodeoffset < 0) { in ft_board_setup() 265 if (fdt_setprop(blob, nodeoffset, "bl-version", in ft_board_setup()
|
/u-boot/drivers/net/fsl-mc/ |
A D | mc.c | 394 noff = fdt_add_subnode(blob, nodeoffset, mac_name); in mc_fixup_dpc_mac_addr() 461 int nodeoffset, err = 0; in mc_fixup_dpc() local 465 if (fdt_del_node(blob, nodeoffset) < 0) in mc_fixup_dpc() 469 nodeoffset = fdt_path_offset(blob, "/resources"); in mc_fixup_dpc() 470 if (nodeoffset < 0) { in mc_fixup_dpc() 474 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pools"); in mc_fixup_dpc() 475 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pool@0"); in mc_fixup_dpc() 485 if (nodeoffset < 0) { in mc_fixup_dpc() 492 nodeoffset = fdt_path_offset(blob, "/board_info"); in mc_fixup_dpc() 493 if (nodeoffset < 0) in mc_fixup_dpc() [all …]
|
/u-boot/arch/arm/cpu/armv8/ |
A D | sec_firmware.c | 465 int nodeoffset; in fdt_fixup_kaslr() local 489 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_fixup_kaslr() 490 if (nodeoffset < 0) in fdt_fixup_kaslr() 493 err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand, in fdt_fixup_kaslr()
|