Lines Matching defs:nodeoffset

309  * @nodeoffset: structure block offset of the starting node
313 * device tree node at structure block offset nodeoffset. If lenp is
322 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
327 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
332 * @nodeoffset: structure block offset of a node
340 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
347 int fdt_first_property_offset(const void *fdt, int nodeoffset);
361 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
387 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
401 * @nodeoffset: offset of the node whose property to find
410 int nodeoffset,
417 * @nodeoffset: offset of the node whose property to find
423 * named 'name' of the node at offset nodeoffset. If lenp is
434 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
441 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
443 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
448 fdt_get_property(fdt, nodeoffset, name, lenp);
475 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
488 * @nodeoffset: offset of the node whose property to find
496 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
502 * @nodeoffset: offset of the node whose property to find
507 * named 'name' of the node at offset nodeoffset (this will be a
519 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
526 const void *fdt_getprop(const void *fdt, int nodeoffset,
528 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
531 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
537 * @nodeoffset: structure block offset of the node
540 * structure block offset nodeoffset.
543 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
546 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
577 * @nodeoffset: offset of the node whose path to find
582 * nodeoffset, and records that path in the buffer at buf.
585 * structure from the start to nodeoffset.
590 * nodeoffset, as a NUL-terminated string.
591 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
599 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
604 * @nodeoffset: offset of the node whose parent to find
611 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
613 * nodeoffset has depth D, then:
614 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
615 * will return nodeoffset itself.
618 * structure from the start to nodeoffset.
624 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
625 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of nodeoffset
631 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
637 * @nodeoffset: offset of the node whose parent to find
643 * structure from the start to nodeoffset.
646 * depth of the node at nodeoffset (>=0), on success
647 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
653 int fdt_node_depth(const void *fdt, int nodeoffset);
658 * @nodeoffset: offset of the node whose parent to find
662 * nodeoffset as a subnode).
665 * structure from the start to nodeoffset, *twice*.
668 * structure block offset of the parent of the node at nodeoffset
670 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
676 int fdt_parent_offset(const void *fdt, int nodeoffset);
710 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
744 * @nodeoffset: offset of a tree node
757 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
763 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
794 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
810 * @nodeoffset: offset of the node whose property to change
828 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
835 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
841 * @nodeoffset: offset of the node whose property to change
859 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
866 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset,
870 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
876 * @nodeoffset: offset of the node whose property to change
894 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
901 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset,
905 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
913 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
916 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
922 * @nodeoffset: offset of the node whose property to nop
936 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
943 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
948 * @nodeoffset: offset of the node to nop
960 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
967 int fdt_nop_node(void *fdt, int nodeoffset);
1056 * @nodeoffset: structure block offset of a node
1072 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1077 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1082 * @nodeoffset: offset of the node whose property to change
1098 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1107 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1113 * @nodeoffset: offset of the node whose property to change
1129 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1138 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1142 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1148 * @nodeoffset: offset of the node whose property to change
1164 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1173 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1177 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1185 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1188 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1194 * @nodeoffset: offset of the node whose property to change
1210 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1219 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1220 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1225 * @nodeoffset: offset of the node whose property to change
1240 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1249 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1255 * @nodeoffset: offset of the node whose property to change
1271 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1280 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1284 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1290 * @nodeoffset: offset of the node whose property to change
1306 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1315 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1319 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1327 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1330 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1336 * @nodeoffset: offset of the node whose property to change
1351 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1360 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1361 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1366 * @nodeoffset: offset of the node whose property to nop
1377 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1385 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1436 * @nodeoffset: offset of the node to nop
1446 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1454 int fdt_del_node(void *fdt, int nodeoffset);