Lines Matching defs:nodeoffset

347  * @nodeoffset: structure block offset of the starting node
351 * device tree node at structure block offset nodeoffset. If lenp is
360 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
365 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
370 * @nodeoffset: structure block offset of a node
378 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
385 int fdt_first_property_offset(const void *fdt, int nodeoffset);
399 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
425 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
439 * @nodeoffset: offset of the node whose property to find
448 int nodeoffset,
455 * @nodeoffset: offset of the node whose property to find
461 * named 'name' of the node at offset nodeoffset. If lenp is
472 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
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,
486 fdt_get_property(fdt, nodeoffset, name, lenp);
513 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
526 * @nodeoffset: offset of the node whose property to find
534 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
540 * @nodeoffset: offset of the node whose property to find
545 * named 'name' of the node at offset nodeoffset (this will be a
557 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
564 const void *fdt_getprop(const void *fdt, int nodeoffset,
566 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
569 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
575 * @nodeoffset: structure block offset of the node
578 * structure block offset nodeoffset.
581 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
584 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
615 * @nodeoffset: offset of the node whose path to find
620 * nodeoffset, and records that path in the buffer at buf.
623 * structure from the start to nodeoffset.
628 * nodeoffset, as a NUL-terminated string.
629 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
637 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
642 * @nodeoffset: offset of the node whose parent to find
649 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
651 * nodeoffset has depth D, then:
652 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
653 * will return nodeoffset itself.
656 * structure from the start to nodeoffset.
662 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
663 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of nodeoffset
669 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
675 * @nodeoffset: offset of the node whose parent to find
681 * structure from the start to nodeoffset.
684 * depth of the node at nodeoffset (>=0), on success
685 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
691 int fdt_node_depth(const void *fdt, int nodeoffset);
696 * @nodeoffset: offset of the node whose parent to find
700 * nodeoffset as a subnode).
703 * structure from the start to nodeoffset, *twice*.
706 * structure block offset of the parent of the node at nodeoffset
708 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
714 int fdt_parent_offset(const void *fdt, int nodeoffset);
748 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
782 * @nodeoffset: offset of a tree node
795 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
801 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
832 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
862 * @nodeoffset: offset of the node whose property to change
880 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
887 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
893 * @nodeoffset: offset of the node whose property to change
911 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
918 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset,
922 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
928 * @nodeoffset: offset of the node whose property to change
946 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
953 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset,
957 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
965 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
968 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
974 * @nodeoffset: offset of the node whose property to nop
988 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
995 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1000 * @nodeoffset: offset of the node to nop
1012 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1019 int fdt_nop_node(void *fdt, int nodeoffset);
1109 * @nodeoffset: structure block offset of a node
1125 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1130 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1135 * @nodeoffset: offset of the node whose property to change
1151 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1160 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1166 * @nodeoffset: offset of the node whose property to change
1182 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1191 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1195 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1201 * @nodeoffset: offset of the node whose property to change
1217 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1226 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1230 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1238 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1241 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1247 * @nodeoffset: offset of the node whose property to change
1263 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1272 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1273 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1278 * @nodeoffset: offset of the node whose property to change
1293 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1302 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1308 * @nodeoffset: offset of the node whose property to change
1324 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1333 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1337 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1343 * @nodeoffset: offset of the node whose property to change
1359 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1368 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1372 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1380 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1383 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1389 * @nodeoffset: offset of the node whose property to change
1404 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1413 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1414 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1419 * @nodeoffset: offset of the node whose property to nop
1430 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1438 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1489 * @nodeoffset: offset of the node to nop
1499 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1507 int fdt_del_node(void *fdt, int nodeoffset);