Lines Matching refs: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);
1108 * @nodeoffset: structure block offset of a node
1124 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1129 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1134 * @nodeoffset: offset of the node whose property to change
1150 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1159 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1165 * @nodeoffset: offset of the node whose property to change
1181 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1190 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1194 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1200 * @nodeoffset: offset of the node whose property to change
1216 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1225 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1229 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1237 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1240 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1246 * @nodeoffset: offset of the node whose property to change
1262 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1271 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1272 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1277 * @nodeoffset
1292 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1301 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1307 * @nodeoffset: offset of the node whose property to change
1323 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1332 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1336 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1342 * @nodeoffset: offset of the node whose property to change
1358 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1367 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1371 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1379 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1382 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1388 * @nodeoffset: offset of the node whose property to change
1403 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1412 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1413 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1418 * @nodeoffset: offset of the node whose property to nop
1429 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1437 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1488 * @nodeoffset: offset of the node to nop
1498 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1506 int fdt_del_node(void *fdt, int nodeoffset);