Lines Matching defs:nodeoffset
525 * @nodeoffset: structure block offset of the starting node
529 * device tree node at structure block offset nodeoffset. If lenp is
539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
545 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
550 * @nodeoffset: structure block offset of a node
558 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
565 int fdt_first_property_offset(const void *fdt, int nodeoffset);
579 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
635 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
649 * @nodeoffset: offset of the node whose property to find
659 int nodeoffset,
667 * @nodeoffset: offset of the node whose property to find
673 * named 'name' of the node at offset nodeoffset. If lenp is
684 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
692 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
694 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
699 fdt_get_property(fdt, nodeoffset, name, lenp);
726 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
741 * @nodeoffset: offset of the node whose property to find
750 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
752 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset,
756 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name,
764 * @nodeoffset: offset of the node whose property to find
769 * named 'name' of the node at offset nodeoffset (this will be a
781 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
789 const void *fdt_getprop(const void *fdt, int nodeoffset,
791 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
794 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
800 * @nodeoffset: structure block offset of the node
803 * structure block offset nodeoffset.
806 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
809 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
842 * @nodeoffset: offset of the node whose path to find
847 * nodeoffset, and records that path in the buffer at buf.
850 * structure from the start to nodeoffset.
855 * nodeoffset, as a NUL-terminated string.
856 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
864 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
869 * @nodeoffset: offset of the node whose parent to find
876 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
878 * nodeoffset has depth D, then:
879 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
880 * will return nodeoffset itself.
883 * structure from the start to nodeoffset.
888 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
890 * nodeoffset
896 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
902 * @nodeoffset: offset of the node whose parent to find
908 * structure from the start to nodeoffset.
911 * depth of the node at nodeoffset (>=0), on success
912 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
918 int fdt_node_depth(const void *fdt, int nodeoffset);
923 * @nodeoffset: offset of the node whose parent to find
927 * nodeoffset as a subnode).
930 * structure from the start to nodeoffset, *twice*.
933 * structure block offset of the parent of the node at nodeoffset
935 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
941 int fdt_parent_offset(const void *fdt, int nodeoffset);
975 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1009 * @nodeoffset: offset of a tree node
1022 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
1028 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1059 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1085 * @nodeoffset: offset of a tree node
1092 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1097 * @nodeoffset: offset of a tree node
1113 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1119 * @nodeoffset: offset of a tree node
1140 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1162 * @nodeoffset: offset of the node to find the address size for
1177 int fdt_address_cells(const void *fdt, int nodeoffset);
1183 * @nodeoffset: offset of the node to find the address range size for
1198 int fdt_size_cells(const void *fdt, int nodeoffset);
1209 * @nodeoffset: offset of the node whose property to change
1222 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1231 * @nodeoffset: offset of the node whose property to change
1249 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1257 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1264 * @nodeoffset: offset of the node whose property to change
1282 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1289 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset,
1293 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1299 * @nodeoffset: offset of the node whose property to change
1317 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1324 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset,
1328 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1336 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
1339 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
1345 * @nodeoffset: offset of the node whose property to nop
1359 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1366 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1371 * @nodeoffset: offset of the node to nop
1383 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1390 int fdt_nop_node(void *fdt, int nodeoffset);
1537 * @nodeoffset: structure block offset of a node
1553 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1558 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1563 * @nodeoffset: offset of the node whose property to change
1579 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1588 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1594 * @nodeoffset: offset of the node whose property to change
1610 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1619 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1625 * @nodeoffset: offset of the node whose property to change
1641 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1650 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1654 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1660 * @nodeoffset: offset of the node whose property to change
1676 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1685 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1689 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1697 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1700 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1706 * @nodeoffset: offset of the node whose property to change
1722 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1731 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1732 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1738 * @nodeoffset: offset of the node whose property to change
1752 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1761 #define fdt_setprop_empty(fdt, nodeoffset, name) \
1762 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1767 * @nodeoffset: offset of the node whose property to change
1782 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1791 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1797 * @nodeoffset: offset of the node whose property to change
1813 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1822 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1826 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1832 * @nodeoffset: offset of the node whose property to change
1848 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1857 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1861 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1869 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1872 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1878 * @nodeoffset: offset of the node whose property to change
1893 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1902 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1903 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1909 * @nodeoffset: offset of the node to add a property at
1930 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1939 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
1945 * @nodeoffset: offset of the node whose property to nop
1956 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1964 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2019 * @nodeoffset: offset of the node to nop
2029 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2037 int fdt_del_node(void *fdt, int nodeoffset);