Home
last modified time | relevance | path

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

/scripts/dtc/libfdt/
Dlibfdt.h540 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
560 int fdt_first_property_offset(const void *fdt, int nodeoffset);
654 int nodeoffset,
687 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
689 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
694 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
745 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
747 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
751 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
784 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_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()
44 int fdt_size_cells(const void *fdt, int nodeoffset) in fdt_size_cells() argument
48 val = fdt_cells(fdt, nodeoffset, "#size-cells"); in fdt_size_cells()
55 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, in fdt_appendprop_addrrange() argument
97 return fdt_appendprop(fdt, nodeoffset, name, data, in fdt_appendprop_addrrange()
Dfdt_ro.c285 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) in fdt_get_name() argument
287 const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); in fdt_get_name()
292 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name()
323 int fdt_first_property_offset(const void *fdt, int nodeoffset) in fdt_first_property_offset() argument
327 if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_first_property_offset()
427 int nodeoffset, in fdt_get_property() argument
430 return fdt_get_property_namelen(fdt, nodeoffset, name, in fdt_get_property()
434 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, in fdt_getprop_namelen() argument
440 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen()
480 const void *fdt_getprop(const void *fdt, int nodeoffset, in fdt_getprop() argument
[all …]
Dfdt_rw.c170 static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, in fdt_resize_property_() argument
176 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
188 static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, in fdt_add_property_() argument
197 if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) in fdt_add_property_()
220 int fdt_set_name(void *fdt, int nodeoffset, const char *name) in fdt_set_name() argument
228 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); in fdt_set_name()
243 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, in fdt_setprop_placeholder() argument
251 err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
253 err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); in fdt_setprop_placeholder()
261 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);