/scripts/dtc/libfdt/ |
H A D | fdt_wip.c | 58 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, argument 64 propval = fdt_getprop_w(fdt, nodeoffset, name, &proplen); 83 int fdt_nop_property(void *fdt, int nodeoffset, const char *name) argument 88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); 97 int _fdt_node_end_offset(void *fdt, int nodeoffset) argument 103 tag = fdt_next_tag(fdt, nodeoffset, &nextoffset); 134 int fdt_nop_node(void *fdt, int nodeoffset) argument 138 endoffset = _fdt_node_end_offset(fdt, nodeoffset); 142 _fdt_nop_region(fdt_offset_ptr_w(fdt, nodeoffset, 0), 143 endoffset - nodeoffset); [all...] |
H A D | fdt_ro.c | 161 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) argument 163 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); 167 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) 182 int nodeoffset, 192 || ((err = _fdt_check_node_offset(fdt, nodeoffset)) < 0)) 244 const void *fdt_getprop(const void *fdt, int nodeoffset, argument 249 prop = fdt_get_property(fdt, nodeoffset, name, lenp); 256 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset) argument 261 php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); 268 int fdt_get_path(const void *fdt, int nodeoffset, cha argument 181 fdt_get_property(const void *fdt, int nodeoffset, const char *name, int *lenp) argument 321 fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, int supernodedepth, int *nodedepth) argument 357 fdt_node_depth(const void *fdt, int nodeoffset) argument 368 fdt_parent_offset(const void *fdt, int nodeoffset) argument 431 fdt_node_check_compatible(const void *fdt, int nodeoffset, const char *compatible) argument [all...] |
H A D | libfdt.h | 325 * @nodeoffset: structure block offset of the starting node 329 * device tree node at structure block offset nodeoffset. If lenp is 338 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag 343 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); 348 * @nodeoffset: offset of the node whose property to find 354 * named 'name' of the node at offset nodeoffset. If lenp is 365 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag 372 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, 374 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, argument 379 fdt_get_property(fdt, nodeoffset, nam 411 fdt_getprop_w(void *fdt, int nodeoffset, const char *name, int *lenp) argument 723 fdt_setprop_inplace_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument 939 fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, uint32_t val) argument [all...] |
H A D | fdt_rw.c | 205 static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name, argument 211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); 223 static int _fdt_add_property(void *fdt, int nodeoffset, const char *name, argument 231 if ((nextoffset = _fdt_check_node_offset(fdt, nodeoffset)) < 0) 251 int fdt_set_name(void *fdt, int nodeoffset, const char *name) argument 259 namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); 274 int fdt_setprop(void *fdt, int nodeoffset, const char *name, argument 282 err = _fdt_resize_property(fdt, nodeoffset, name, len, &prop); 284 err = _fdt_add_property(fdt, nodeoffset, name, len, &prop); 292 int fdt_delprop(void *fdt, int nodeoffset, cons argument 353 fdt_del_node(void *fdt, int nodeoffset) argument [all...] |