Lines Matching refs:nodeoffset

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: structure block offset of a node
356 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
363 int fdt_first_property_offset(const void *fdt, int nodeoffset);
377 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
403 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
417 * @nodeoffset: offset of the node whose property to find
426 int nodeoffset,
433 * @nodeoffset: offset of the node whose property to find
439 * named 'name' of the node at offset nodeoffset. If lenp is
450 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
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,
464 fdt_get_property(fdt, nodeoffset, name, lenp);
491 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
504 * @nodeoffset: offset of the node whose property to find
512 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
518 * @nodeoffset: offset of the node whose property to find
523 * named 'name' of the node at offset nodeoffset (this will be a
535 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
542 const void *fdt_getprop(const void *fdt, int nodeoffset,
544 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
547 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
553 * @nodeoffset: structure block offset of the node
556 * structure block offset nodeoffset.
559 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
562 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
593 * @nodeoffset: offset of the node whose path to find
598 * nodeoffset, and records that path in the buffer at buf.
601 * structure from the start to nodeoffset.
606 * nodeoffset, as a NUL-terminated string.
607 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
615 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
620 * @nodeoffset: offset of the node whose parent to find
627 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
629 * nodeoffset has depth D, then:
630 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
631 * will return nodeoffset itself.
634 * structure from the start to nodeoffset.
640 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
641 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of nodeoffset
647 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
653 * @nodeoffset: offset of the node whose parent to find
659 * structure from the start to nodeoffset.
662 * depth of the node at nodeoffset (>=0), on success
663 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
669 int fdt_node_depth(const void *fdt, int nodeoffset);
674 * @nodeoffset: offset of the node whose parent to find
678 * nodeoffset as a subnode).
681 * structure from the start to nodeoffset, *twice*.
684 * structure block offset of the parent of the node at nodeoffset
686 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
692 int fdt_parent_offset(const void *fdt, int nodeoffset);
726 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
760 * @nodeoffset: offset of a tree node
773 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
779 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
810 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
826 * @nodeoffset: offset of the node whose property to change
844 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
851 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
857 * @nodeoffset: offset of the node whose property to change
875 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
882 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
886 return fdt_setprop_inplace(fdt, nodeoffset, name, &val, sizeof(val));
892 * @nodeoffset: offset of the node whose property to nop
906 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
913 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
918 * @nodeoffset: offset of the node to nop
930 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
937 int fdt_nop_node(void *fdt, int nodeoffset);
1016 * @nodeoffset: structure block offset of a node
1032 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1037 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1042 * @nodeoffset: offset of the node whose property to change
1058 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1067 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1073 * @nodeoffset: offset of the node whose property to change
1089 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1098 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1102 return fdt_setprop(fdt, nodeoffset, name, &val, sizeof(val));
1108 * @nodeoffset: offset of the node whose property to change
1124 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1133 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1134 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1139 * @nodeoffset: offset of the node whose property to nop
1150 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1158 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1209 * @nodeoffset: offset of the node to nop
1219 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1227 int fdt_del_node(void *fdt, int nodeoffset);