/netbsd-src/sys/external/bsd/libfdt/dist/ |
H A D | libfdt.h | 542 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 562 int fdt_first_property_offset(const void *fdt, int nodeoffset); 656 int nodeoffset, 689 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 691 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument 696 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w() 747 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, 749 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument 753 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w() 786 const void *fdt_getprop(const void *fdt, int nodeoffset, [all …]
|
H A D | fdt_wip.c | 15 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, in fdt_setprop_inplace_namelen_partial() argument 23 propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, in fdt_setprop_inplace_namelen_partial() 35 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument 41 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace() 48 return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, in fdt_setprop_inplace() 61 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument 66 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property() 85 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument 89 endoffset = fdt_node_end_offset_(fdt, nodeoffset); in fdt_nop_node() 93 fdt_nop_region_(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node() [all …]
|
H A D | fdt_ro.c | 288 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument 290 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name() 295 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name() 326 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument 330 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset() 430 int nodeoffset, in fdt_get_property() argument 433 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property() 437 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument 443 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() 483 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument [all …]
|
H A D | fdt_addresses.c | 16 static int fdt_cells(const void *fdt, int nodeoffset, const char *name) in fdt_cells() argument 22 c = fdt_getprop(fdt, nodeoffset, name, &len); in fdt_cells() 36 int fdt_address_cells(const void *fdt, int nodeoffset) in fdt_address_cells() argument 40 val = fdt_cells(fdt, nodeoffset, "#address-cells"); in fdt_address_cells() 48 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument 52 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells() 59 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument 101 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
|
H A D | fdt_rw.c | 172 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument 178 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 190 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument 199 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_() 222 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument 230 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name() 245 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument 253 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 255 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder() 263 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument [all …]
|
H A D | fdt_overlay.c | 652 static int get_path_len(const void *fdt, int nodeoffset) in get_path_len() argument 660 name = fdt_get_name(fdt, nodeoffset, &namelen); in get_path_len() 668 nodeoffset = fdt_parent_offset(fdt, nodeoffset); in get_path_len() 669 if (nodeoffset < 0) in get_path_len() 670 return nodeoffset; in get_path_len()
|
H A D | libfdt_internal.h | 26 int fdt_node_end_offset_(void *fdt, int nodeoffset);
|
/netbsd-src/external/gpl2/dtc/dist/pylibfdt/ |
H A D | libfdt.i | 152 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 …]
|
/netbsd-src/external/gpl2/dtc/dist/tests/ |
H A D | tests.h | 87 void check_property(void *fdt, int nodeoffset, const char *name, 89 #define check_property_cell(fdt, nodeoffset, name, val) \ argument 92 check_property(fdt, nodeoffset, name, sizeof(x), &x); \ 96 const void *check_getprop(void *fdt, int nodeoffset, const char *name, 98 #define check_getprop_cell(fdt, nodeoffset, name, val) \ argument 101 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 103 #define check_getprop_64(fdt, nodeoffset, name, val) \ argument 106 check_getprop(fdt, nodeoffset, name, sizeof(x), &x); \ 108 #define check_getprop_string(fdt, nodeoffset, name, s) \ argument 109 check_getprop((fdt), (nodeoffset), (name), strlen(s)+1, (s)) [all …]
|
H A D | supernode_atdepth_offset.c | 63 int nodeoffset, supernodeoffset, superpathoffset, pathprefixlen; in check_supernode_atdepth() local 74 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_atdepth() 75 if (nodeoffset < 0) in check_supernode_atdepth() 76 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_atdepth() 82 supernodeoffset = fdt_supernode_atdepth_offset(fdt, nodeoffset, in check_supernode_atdepth() 100 int nodeoffset, err; in check_supernode_overdepth() local 102 nodeoffset = fdt_path_offset(fdt, path); in check_supernode_overdepth() 103 if (nodeoffset < 0) in check_supernode_overdepth() 104 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_supernode_overdepth() 106 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, pdepth + 1, NULL); in check_supernode_overdepth()
|
H A D | dtb_reverse.c | 69 static void reverse_node(void *in, void *out, int nodeoffset); 93 static void reverse_node(void *in, void *out, int nodeoffset) in reverse_node() argument 95 const char *name = fdt_get_name(in, nodeoffset, NULL); in reverse_node() 101 CHECK(fdt_get_path(in, nodeoffset, path, sizeof(path))); in reverse_node() 103 nodeoffset, path); in reverse_node() 107 offset = fdt_first_property_offset(in, nodeoffset); in reverse_node() 113 offset = fdt_next_node(in, nodeoffset, &depth); in reverse_node()
|
H A D | parent_offset.c | 34 int nodeoffset, parentoffset, parentpathoffset, pathparentlen; in check_path() local 43 nodeoffset = fdt_path_offset(fdt, path); in check_path() 44 if (nodeoffset < 0) in check_path() 45 FAIL("fdt_path_offset(%s): %s", path, fdt_strerror(nodeoffset)); in check_path() 52 parentoffset = fdt_parent_offset(fdt, nodeoffset); in check_path()
|
H A D | testutils.c | 92 void check_property(void *fdt, int nodeoffset, const char *name, in check_property() argument 101 prop = fdt_get_property(fdt, nodeoffset, name, &retlen); in check_property() 134 const void *check_getprop(void *fdt, int nodeoffset, const char *name, in check_getprop() argument 140 propval = fdt_getprop(fdt, nodeoffset, name, &proplen); in check_getprop() 177 const void *check_getprop_addrrange(void *fdt, int parent, int nodeoffset, in check_getprop_addrrange() argument 227 propval = check_getprop(fdt, nodeoffset, name, buf_size, in check_getprop_addrrange()
|
/netbsd-src/external/gpl2/dtc/dist/ |
H A D | fdtput.c | 138 static char *realloc_property(char *fdt, int nodeoffset, in realloc_property() argument 144 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()
|
/netbsd-src/external/cddl/osnet/dist/lib/libuutil/common/ |
H A D | uu_avl.c | 66 uu_avl_pool_create(const char *name, size_t objsize, size_t nodeoffset, in uu_avl_pool_create() argument 73 nodeoffset + sizeof (uu_avl_node_t) > objsize || in uu_avl_pool_create() 91 pp->uap_nodeoffset = nodeoffset; in uu_avl_pool_create()
|
H A D | uu_list.c | 64 size_t nodeoffset, uu_compare_fn_t *compare_func, uint32_t flags) in uu_list_pool_create() argument 70 nodeoffset + sizeof (uu_list_node_t) > objsize) { in uu_list_pool_create() 87 pp->ulp_nodeoffset = nodeoffset; in uu_list_pool_create()
|