Home
last modified time | relevance | path

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

/external/dtc/libfdt/
Dlibfdt.h444 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
464 int fdt_first_property_offset(const void *fdt, int nodeoffset);
554 int nodeoffset,
586 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
588 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
593 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
641 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
643 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
647 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
679 const void *fdt_getprop(const void *fdt, int nodeoffset,
[all …]
Dfdt_wip.c58 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 …]
Dfdt_ro.c233 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 …]
Dfdt_rw.c203 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(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
280 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
282 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
290 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument
[all …]
Dfdt_addresses.c58 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()
Dlibfdt_internal.h68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
/external/dtc/tests/
Dtests.h98 void check_property(void *fdt, int nodeoffset, const char *name,
100 #define check_property_cell(fdt, nodeoffset, name, val) \ argument
103 check_property(fdt, nodeoffset, name, sizeof(x), &x); \
107 const void *check_getprop(void *fdt, int nodeoffset, const char *name,
109 #define check_getprop_cell(fdt, nodeoffset, name, val) \ argument
112 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \
114 #define check_getprop_64(fdt, nodeoffset, name, val) \ argument
117 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \
119 #define check_getprop_string(fdt, nodeoffset, name, s) \ argument
120 check_getprop((fdt), (nodeoffset), (name), strlen(s)+1, (s))
Dsupernode_atdepth_offset.c74 int nodeoffset, supernodeoffset, superpathoffset, pathprefixlen; in check_supernode_atdepth() local
85 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_atdepth()
86 if (nodeoffset < 0) in check_supernode_atdepth()
87 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_atdepth()
93 supernodeoffset = fdt_supernode_atdepth_offset(fdt, nodeoffset, in check_supernode_atdepth()
111 int nodeoffset, err; in check_supernode_overdepth() local
113 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_overdepth()
114 if (nodeoffset < 0) in check_supernode_overdepth()
115 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_overdepth()
117 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, pdepth + 1, NULL); in check_supernode_overdepth()
Ddtb_reverse.c80 static void reverse_node(void *in, void *out, int nodeoffset);
104 static void reverse_node(void *in, void *out, int nodeoffset) in reverse_node() argument
106 const char *name = fdt_get_name(in, nodeoffset, NULL); in reverse_node()
112 CHECK(fdt_get_path(in, nodeoffset, path, sizeof(path))); in reverse_node()
114 nodeoffset, path); in reverse_node()
118 offset = fdt_first_property_offset(in, nodeoffset); in reverse_node()
124 offset = fdt_next_node(in, nodeoffset, &depth); in reverse_node()
Dparent_offset.c45 int nodeoffset, parentoffset, parentpathoffset, pathparentlen; in check_path() local
54 nodeoffset = fdt_path_offset(fdt, path); in check_path()
55 if (nodeoffset < 0) in check_path()
56 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_path()
63 parentoffset = fdt_parent_offset(fdt, nodeoffset); in check_path()
Dtestutils.c87 void check_property(void *fdt, int nodeoffset, const char *name, in check_property() argument
96 prop = fdt_get_property(fdt, nodeoffset, name, &retlen); in check_property()
124 const void *check_getprop(void *fdt, int nodeoffset, const char *name, in check_getprop() argument
130 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in check_getprop()
/external/dtc/
Dfdtput.c150 static char *realloc_property(char *fdt, int nodeoffset, in realloc_property() argument
156 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()