Home
last modified time | relevance | path

Searched refs:nodeoffset (Results 1 – 25 of 32) sorted by relevance

12

/u-boot/scripts/dtc/libfdt/
A Dlibfdt.h624 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 Dfdt_wip.c13 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 Dfdt_addresses.c14 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 Dfdt_ro.c444 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 Dfdt_rw.c191 *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 Dfdt_overlay.c651 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()
/u-boot/cmd/
A Dpstore.c488 int nodeoffset; /* node offset from libfdt */ in fdt_fixup_pstore() local
492 nodeoffset = fdt_path_offset(blob, "/"); in fdt_fixup_pstore()
493 if (nodeoffset < 0) { in fdt_fixup_pstore()
499 nodeoffset = fdt_find_or_add_subnode(blob, nodeoffset, "reserved-memory"); in fdt_fixup_pstore()
500 if (nodeoffset < 0) { in fdt_fixup_pstore()
502 fdt_strerror(nodeoffset)); in fdt_fixup_pstore()
511 fdt_setprop_empty(blob, nodeoffset, "ranges"); in fdt_fixup_pstore()
514 nodeoffset = fdt_add_subnode(blob, nodeoffset, node); in fdt_fixup_pstore()
515 if (nodeoffset < 0) { in fdt_fixup_pstore()
523 fdt_setprop_u32(blob, nodeoffset, "reg", pstore_addr); in fdt_fixup_pstore()
[all …]
A Dfdt.c321 if (nodeoffset < 0) { in do_fdt()
326 fdt_strerror(nodeoffset)); in do_fdt()
358 if (nodeoffset < 0) { in do_fdt()
363 fdt_strerror(nodeoffset)); in do_fdt()
418 if (nodeoffset < 0) { in do_fdt()
423 fdt_strerror(nodeoffset)); in do_fdt()
430 working_fdt, nodeoffset); in do_fdt()
546 if (nodeoffset < 0) { in do_fdt()
1012 if (nodeoffset < 0) { in fdt_print()
1017 fdt_strerror(nodeoffset)); in fdt_print()
[all …]
A Dkaslrseed.c22 int nodeoffset; in do_kaslr_seed() local
54 nodeoffset = fdt_find_or_add_subnode(working_fdt, 0, "chosen"); in do_kaslr_seed()
55 if (nodeoffset < 0) { in do_kaslr_seed()
60 ret = fdt_setprop(working_fdt, nodeoffset, "kaslr-seed", buf, sizeof(buf)); in do_kaslr_seed()
/u-boot/drivers/pci/
A Dpcie_layerscape_fixup.c31 int nodeoffset; in fdt_pcie_get_nodeoffset() local
38 if (nodeoffset < 0) { in fdt_pcie_get_nodeoffset()
48 nodeoffset = in fdt_pcie_get_nodeoffset()
54 return nodeoffset; in fdt_pcie_get_nodeoffset()
105 int nodeoffset; in fdt_pcie_set_msi_map_entry_ls() local
113 if (nodeoffset < 0) { in fdt_pcie_set_msi_map_entry_ls()
126 if (nodeoffset < 0) in fdt_pcie_set_msi_map_entry_ls()
160 int nodeoffset; in fdt_pcie_set_iommu_map_entry_ls() local
165 if (nodeoffset < 0) in fdt_pcie_set_iommu_map_entry_ls()
505 int i, cnt, nodeoffset; in fdt_fixup_pcie_ls() local
[all …]
/u-boot/arch/powerpc/cpu/mpc83xx/
A Dpci.c33 int nodeoffset; in ft_pci_setup() local
40 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_pci_setup()
41 if (nodeoffset >= 0) { in ft_pci_setup()
42 path = fdt_getprop(blob, nodeoffset, "pci0", NULL); in ft_pci_setup()
57 path = fdt_getprop(blob, nodeoffset, "pci1", NULL); in ft_pci_setup()
A Dfdt.c61 int nodeoffset, path; in ft_cpu_setup() local
64 nodeoffset = fdt_path_offset(blob, "/aliases"); in ft_cpu_setup()
65 if (nodeoffset >= 0) { in ft_cpu_setup()
66 prop = fdt_getprop(blob, nodeoffset, "ethernet0", NULL); in ft_cpu_setup()
77 prop = fdt_getprop(blob, nodeoffset, "ethernet1", NULL); in ft_cpu_setup()
/u-boot/board/ti/ks2_evm/
A Dboard.c164 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/board/BuR/common/
A Dcommon.c27 int nodeoffset; in ft_board_setup() local
29 nodeoffset = fdt_path_offset(blob, "/factory-settings"); in ft_board_setup()
30 if (nodeoffset < 0) { in ft_board_setup()
33 nodeoffset = fdt_path_offset(blob, "/fset"); in ft_board_setup()
34 if (nodeoffset < 0) { in ft_board_setup()
40 if (fdt_setprop(blob, nodeoffset, "bl-version", in ft_board_setup()
/u-boot/tools/
A Dfit_info.c45 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/arm/mach-meson/
A Dboard-info.c139 int nodeoffset, ret; in get_socinfo() local
144 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, in get_socinfo()
146 if (nodeoffset < 0) in get_socinfo()
150 if (!fdt_getprop(gd->fdt_blob, nodeoffset, "amlogic,has-chip-id", NULL)) in get_socinfo()
154 node = offset_to_ofnode(nodeoffset); in get_socinfo()
A Dsm.c114 int nodeoffset; in meson_sm_get_reboot_reason() local
119 nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, in meson_sm_get_reboot_reason()
121 if (nodeoffset < 0) { in meson_sm_get_reboot_reason()
128 node = offset_to_ofnode(nodeoffset); in meson_sm_get_reboot_reason()
/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
A Dls1028_ids.c84 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/include/
A Dfdt_support.h309 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle);
310 unsigned int fdt_create_phandle(void *fdt, int nodeoffset);
327 int fdt_set_node_status(void *fdt, int nodeoffset, enum fdt_status status);
328 static inline int fdt_status_okay(void *fdt, int nodeoffset) in fdt_status_okay() argument
330 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY); in fdt_status_okay()
332 static inline int fdt_status_disabled(void *fdt, int nodeoffset) in fdt_status_disabled() argument
334 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED); in fdt_status_disabled()
336 static inline int fdt_status_fail(void *fdt, int nodeoffset) in fdt_status_fail() argument
338 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL); in fdt_status_fail()
/u-boot/lib/efi_loader/
A Defi_dt_fixup.c89 int nodeoffset, subnode; in efi_carve_out_dt_rsv() local
101 nodeoffset = fdt_subnode_offset(fdt, 0, "reserved-memory"); in efi_carve_out_dt_rsv()
102 if (nodeoffset >= 0) { in efi_carve_out_dt_rsv()
103 subnode = fdt_first_subnode(fdt, nodeoffset); in efi_carve_out_dt_rsv()
110 fdt, nodeoffset, subnode, in efi_carve_out_dt_rsv()
/u-boot/common/
A Dfdt_support.c214 int nodeoffset; in fdt_initrd() local
225 if (nodeoffset < 0) in fdt_initrd()
226 return nodeoffset; in fdt_initrd()
284 int nodeoffset; in fdt_chosen() local
296 if (nodeoffset < 0) in fdt_chosen()
297 return nodeoffset; in fdt_chosen()
463 int err, nodeoffset; in fdt_fixup_memory_banks() local
482 if (nodeoffset < 0) in fdt_fixup_memory_banks()
483 return nodeoffset; in fdt_fixup_memory_banks()
534 if (nodeoffset < 0) in fdt_set_usable_memory()
[all …]
/u-boot/scripts/dtc/pylibfdt/
A Dlibfdt.i_shipped160 nodeoffset: Node offset of previous node
175 def first_subnode(self, nodeoffset, quiet=()):
179 nodeoffset: Node offset of parent node
190 def next_subnode(self, nodeoffset, quiet=()):
336 def get_name(self, nodeoffset):
340 nodeoffset: Offset of node to check
426 def get_phandle(self, nodeoffset):
430 nodeoffset: Node offset to check
454 nodeoffset: Node offset to check
678 def del_node(self, nodeoffset, quiet=()):
[all …]
/u-boot/arch/mips/mach-octeon/include/mach/
A Docteon_fdt.h145 int octeon_fdt_compat_vendor(const void *fdt, int nodeoffset, const char *vendor);
155 int octeon_fdt_get_soc_node(const void *fdt, int nodeoffset);
/u-boot/drivers/net/fsl-mc/
A Dmc.c364 noff = fdt_add_subnode(blob, nodeoffset, mac_name); in mc_fixup_dpc_mac_addr()
421 int nodeoffset, err = 0; in mc_fixup_dpc() local
425 if (fdt_del_node(blob, nodeoffset) < 0) in mc_fixup_dpc()
429 nodeoffset = fdt_path_offset(blob, "/resources"); in mc_fixup_dpc()
430 if (nodeoffset < 0) { in mc_fixup_dpc()
434 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pools"); in mc_fixup_dpc()
435 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pool@0"); in mc_fixup_dpc()
445 if (nodeoffset < 0) { in mc_fixup_dpc()
452 nodeoffset = fdt_path_offset(blob, "/board_info"); in mc_fixup_dpc()
453 if (nodeoffset < 0) in mc_fixup_dpc()
[all …]
/u-boot/arch/arm/cpu/armv8/
A Dsec_firmware.c418 int nodeoffset; in fdt_fixup_kaslr() local
442 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_fixup_kaslr()
443 if (nodeoffset < 0) in fdt_fixup_kaslr()
446 err = fdt_setprop(fdt, nodeoffset, "kaslr-seed", rand, in fdt_fixup_kaslr()

Completed in 67 milliseconds

12