| /OK3568_Linux_fs/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); 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_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_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_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 | 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()
|
| /OK3568_Linux_fs/kernel/scripts/dtc/libfdt/ |
| H A D | libfdt.h | 545 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 565 int fdt_first_property_offset(const void *fdt, int nodeoffset); 659 int nodeoffset, 692 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 694 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument 699 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 750 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 752 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument 756 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w() 789 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 …]
|
| /OK3568_Linux_fs/u-boot/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()
|
| /OK3568_Linux_fs/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 …]
|
| /OK3568_Linux_fs/u-boot/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 …]
|
| /OK3568_Linux_fs/u-boot/common/ |
| H A D | fdt_support.c | 188 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, in fdt_setprop_uxx() argument 192 return fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx() 194 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); in fdt_setprop_uxx() 225 int nodeoffset; in fdt_initrd() local 235 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_initrd() 236 if (nodeoffset < 0) in fdt_initrd() 237 return nodeoffset; in fdt_initrd() 261 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in fdt_initrd() 270 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in fdt_initrd() 286 int nodeoffset, len; in fdt_bootargs_append() local [all …]
|
| /OK3568_Linux_fs/u-boot/include/ |
| H A D | fdt_support.h | 19 int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name, 246 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle); 247 unsigned int fdt_create_phandle(void *fdt, int nodeoffset); 262 int fdt_set_node_status(void *fdt, int nodeoffset, 264 static inline int fdt_status_okay(void *fdt, int nodeoffset) in fdt_status_okay() argument 266 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_OKAY, 0); in fdt_status_okay() 268 static inline int fdt_status_disabled(void *fdt, int nodeoffset) in fdt_status_disabled() argument 270 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_DISABLED, 0); in fdt_status_disabled() 272 static inline int fdt_status_fail(void *fdt, int nodeoffset) in fdt_status_fail() argument 274 return fdt_set_node_status(fdt, nodeoffset, FDT_STATUS_FAIL, 0); in fdt_status_fail()
|
| /OK3568_Linux_fs/u-boot/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()
|
| /OK3568_Linux_fs/u-boot/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 …]
|
| /OK3568_Linux_fs/u-boot/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()
|
| /OK3568_Linux_fs/u-boot/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()
|
| /OK3568_Linux_fs/u-boot/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 …]
|
| /OK3568_Linux_fs/u-boot/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()
|
| /OK3568_Linux_fs/u-boot/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()
|