Home
last modified time | relevance | path

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

/NextBSD/contrib/dtc/libfdt/
HDlibfdt.h365 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
385 int fdt_first_property_offset(const void *fdt, int nodeoffset);
448 int nodeoffset,
479 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
481 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
486 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
534 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
564 const void *fdt_getprop(const void *fdt, int nodeoffset,
566 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
569 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
[all …]
HDfdt_ro.c201 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
203 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name()
207 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) in fdt_get_name()
221 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument
225 if ((offset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in fdt_first_property_offset()
285 int nodeoffset, in fdt_get_property() argument
288 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property()
292 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument
297 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen()
317 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
[all …]
HDfdt_wip.c58 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument
64 propval = fdt_getprop_w(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
83 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
107 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
111 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_nop_node()
115 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node()
116 endoffset - nodeoffset); in fdt_nop_node()
HDfdt_rw.c205 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, in _fdt_resize_property() argument
211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
223 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, in _fdt_add_property() argument
231 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in _fdt_add_property()
251 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
259 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name()
274 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
282 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
284 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
292 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument
[all …]
HDlibfdt_internal.h68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
/NextBSD/sys/contrib/libfdt/
HDlibfdt.h343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
363 int fdt_first_property_offset(const void *fdt, int nodeoffset);
426 int nodeoffset,
457 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
459 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
464 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
512 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
542 const void *fdt_getprop(const void *fdt, int nodeoffset,
544 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
547 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
[all …]
HDfdt_ro.c201 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
203 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name()
207 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) in fdt_get_name()
221 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument
225 if ((offset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in fdt_first_property_offset()
285 int nodeoffset, in fdt_get_property() argument
288 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property()
292 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument
297 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen()
317 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
[all …]
HDfdt_wip.c58 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, in fdt_setprop_inplace() argument
64 propval = fdt_getprop_w(fdt, nodeoffset, name, &proplen); in fdt_setprop_inplace()
83 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) in fdt_nop_property() argument
88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
107 int fdt_nop_node(void *fdt, int nodeoffset) in fdt_nop_node() argument
111 endoffset = _fdt_node_end_offset(fdt, nodeoffset); in fdt_nop_node()
115 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), in fdt_nop_node()
116 endoffset - nodeoffset); in fdt_nop_node()
HDfdt_rw.c205 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, in _fdt_resize_property() argument
211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in _fdt_resize_property()
223 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, in _fdt_add_property() argument
231 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) in _fdt_add_property()
251 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
259 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name()
274 int fdt_setprop(void *fdt, int nodeoffset, const char *name, in fdt_setprop() argument
282 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
284 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); in fdt_setprop()
292 int fdt_appendprop(void *fdt, int nodeoffset, const char *name, in fdt_appendprop() argument
[all …]
HDlibfdt_internal.h68 int _fdt_node_end_offset(void *fdt, int nodeoffset);
/NextBSD/sys/contrib/octeon-sdk/
HDcvmx-helper-board.c1531 int nodeoffset; in __cvmx_helper_board_usb_get_clock_type() local
1539 nodeoffset = fdt_path_offset(fdt_addr, "/soc/uctl"); in __cvmx_helper_board_usb_get_clock_type()
1540 if (nodeoffset < 0) in __cvmx_helper_board_usb_get_clock_type()
1541 nodeoffset = fdt_path_offset(fdt_addr, "/soc/usbn"); in __cvmx_helper_board_usb_get_clock_type()
1543 if (nodeoffset >= 0) in __cvmx_helper_board_usb_get_clock_type()
1545 nodep = fdt_getprop(fdt_addr, nodeoffset, "refclk-type", &len); in __cvmx_helper_board_usb_get_clock_type()
1550 nodep = fdt_getprop(fdt_addr, nodeoffset, "refclk-frequency", &len); in __cvmx_helper_board_usb_get_clock_type()
/NextBSD/contrib/dtc/
HDfdtput.c153 static char *realloc_property(char *fdt, int nodeoffset, in realloc_property() argument
159 if (!fdt_get_property(fdt, nodeoffset, name, &oldlen)) in realloc_property()
/NextBSD/cddl/contrib/opensolaris/lib/libuutil/common/
HDuu_avl.c66 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()
HDuu_list.c64 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()