Home
last modified time | relevance | path

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

/external/dtc/libfdt/
Dlibfdt.h545 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 …]
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 …]
Dfdt_ro.c298 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
300 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name()
305 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name()
336 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument
340 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset()
442 int nodeoffset, in fdt_get_property() argument
445 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property()
449 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument
455 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen()
500 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
[all …]
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()
Dfdt_rw.c184 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 …]
Dfdt_overlay.c650 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument
658 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len()
666 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len()
667 if (nodeoffset < 0) in get_path_len()
668 return nodeoffset; in get_path_len()
Dlibfdt_internal.h24 int fdt_node_end_offset_(void *fdt, int nodeoffset);
/external/dtc/tests/
Dtests.h85 void check_property(void *fdt, int nodeoffset, const char *name,
87 #define check_property_cell(fdt, nodeoffset, name, val) \ argument
90 check_property(fdt, nodeoffset, name, sizeof(x), &x); \
94 const void *check_getprop(void *fdt, int nodeoffset, const char *name,
96 #define check_getprop_cell(fdt, nodeoffset, name, val) \ argument
99 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \
101 #define check_getprop_64(fdt, nodeoffset, name, val) \ argument
104 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \
106 #define check_getprop_string(fdt, nodeoffset, name, s) \ argument
107 check_getprop((fdt), (nodeoffset), (name), strlen(s)+1, (s))
[all …]
Dsupernode_atdepth_offset.c61 int nodeoffset, supernodeoffset, superpathoffset, pathprefixlen; in check_supernode_atdepth() local
72 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_atdepth()
73 if (nodeoffset < 0) in check_supernode_atdepth()
74 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_atdepth()
80 supernodeoffset = fdt_supernode_atdepth_offset(fdt, nodeoffset, in check_supernode_atdepth()
98 int nodeoffset, err; in check_supernode_overdepth() local
100 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_overdepth()
101 if (nodeoffset < 0) in check_supernode_overdepth()
102 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_overdepth()
104 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, pdepth + 1, NULL); in check_supernode_overdepth()
Ddtb_reverse.c67 static void reverse_node(void *in, void *out, int nodeoffset);
91 static void reverse_node(void *in, void *out, int nodeoffset) in reverse_node() argument
93 const char *name = fdt_get_name(in, nodeoffset, NULL); in reverse_node()
99 CHECK(fdt_get_path(in, nodeoffset, path, sizeof(path))); in reverse_node()
101 nodeoffset, path); in reverse_node()
105 offset = fdt_first_property_offset(in, nodeoffset); in reverse_node()
111 offset = fdt_next_node(in, nodeoffset, &depth); in reverse_node()
Dparent_offset.c32 int nodeoffset, parentoffset, parentpathoffset, pathparentlen; in check_path() local
41 nodeoffset = fdt_path_offset(fdt, path); in check_path()
42 if (nodeoffset < 0) in check_path()
43 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_path()
50 parentoffset = fdt_parent_offset(fdt, nodeoffset); in check_path()
Dtestutils.c90 void check_property(void *fdt, int nodeoffset, const char *name, in check_property() argument
99 prop = fdt_get_property(fdt, nodeoffset, name, &retlen); in check_property()
132 const void *check_getprop(void *fdt, int nodeoffset, const char *name, in check_getprop() argument
138 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in check_getprop()
175 const void *check_getprop_addrrange(void *fdt, int parent, int nodeoffset, in check_getprop_addrrange() argument
225 propval = check_getprop(fdt, nodeoffset, name, buf_size, in check_getprop_addrrange()
/external/dtc/pylibfdt/
Dlibfdt.i152 def next_node(self, nodeoffset, depth, quiet=()):
169 return check_err(fdt_next_node(self._fdt, nodeoffset, depth), quiet)
171 def first_subnode(self, nodeoffset, quiet=()):
184 return check_err(fdt_first_subnode(self._fdt, nodeoffset), quiet)
186 def next_subnode(self, nodeoffset, quiet=()):
199 return check_err(fdt_next_subnode(self._fdt, nodeoffset), quiet)
332 def get_name(self, nodeoffset):
344 return check_err_null(fdt_get_name(self._fdt, nodeoffset))[0]
346 def first_property_offset(self, nodeoffset, quiet=()):
360 return check_err(fdt_first_property_offset(self._fdt, nodeoffset),
[all …]
/external/arm-trusted-firmware/plat/arm/css/sgi/
Dsgi_image_load.c28 int nodeoffset, err; in plat_sgi_append_config_node() local
45 nodeoffset = fdt_subnode_offset(fdt, 0, "system-id"); in plat_sgi_append_config_node()
46 if (nodeoffset < 0) { in plat_sgi_append_config_node()
52 err = fdt_setprop_u32(fdt, nodeoffset, "platform-id", platid); in plat_sgi_append_config_node()
59 err = fdt_setprop_u32(fdt, nodeoffset, "config-id", platcfg); in plat_sgi_append_config_node()
66 err = fdt_setprop_u32(fdt, nodeoffset, "multi-chip-mode", platcfg); in plat_sgi_append_config_node()
/external/dtc/
Dfdtput.c136 static char *realloc_property(char *fdt, int nodeoffset, in realloc_property() argument
142 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()