Lines Matching full:nodeoffset
543 * @nodeoffset: structure block offset of the starting node
547 * device tree node at structure block offset nodeoffset. If lenp is
557 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
563 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
568 * @nodeoffset: structure block offset of a node
576 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
583 int fdt_first_property_offset(const void *fdt, int nodeoffset);
597 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
653 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
674 * @nodeoffset: offset of the node whose property to find
687 int nodeoffset,
695 * @nodeoffset: offset of the node whose property to find
701 * named 'name' of the node at offset nodeoffset. If lenp is
712 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
720 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
722 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
727 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
754 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
769 * @nodeoffset: offset of the node whose property to find
780 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
782 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
786 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
794 * @nodeoffset: offset of the node whose property to find
799 * named @name of the node at offset @nodeoffset (this will be a
811 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
819 const void *fdt_getprop(const void *fdt, int nodeoffset,
821 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
824 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
830 * @nodeoffset: structure block offset of the node
833 * structure block offset nodeoffset.
836 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
839 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
875 * @nodeoffset: offset of the node whose path to find
880 * nodeoffset, and records that path in the buffer at buf.
883 * structure from the start to nodeoffset.
888 * nodeoffset, as a NUL-terminated string.
889 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
897 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
902 * @nodeoffset: offset of the node whose parent to find
909 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
911 * nodeoffset has depth D, then:
912 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
913 * will return nodeoffset itself.
916 * structure from the start to nodeoffset.
921 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
923 * nodeoffset
929 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
935 * @nodeoffset: offset of the node whose parent to find
941 * structure from the start to nodeoffset.
944 * depth of the node at nodeoffset (>=0), on success
945 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
951 int fdt_node_depth(const void *fdt, int nodeoffset);
956 * @nodeoffset: offset of the node whose parent to find
960 * nodeoffset as a subnode).
963 * structure from the start to nodeoffset, *twice*.
966 * structure block offset of the parent of the node at nodeoffset
968 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
974 int fdt_parent_offset(const void *fdt, int nodeoffset);
1008 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1042 * @nodeoffset: offset of a tree node
1054 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
1060 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1091 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1117 * @nodeoffset: offset of a tree node
1125 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1130 * @nodeoffset: offset of a tree node
1146 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1152 * @nodeoffset: offset of a tree node
1173 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1195 * @nodeoffset: offset of the node to find the address size for
1210 int fdt_address_cells(const void *fdt, int nodeoffset);
1216 * @nodeoffset: offset of the node to find the address range size for
1231 int fdt_size_cells(const void *fdt, int nodeoffset);
1242 * @nodeoffset: offset of the node whose property to change
1257 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1266 * @nodeoffset: offset of the node whose property to change
1284 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1292 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
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_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_u32() argument
1328 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32()
1334 * @nodeoffset: offset of the node whose property to change
1352 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1359 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, in fdt_setprop_inplace_u64() argument
1363 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64()
1369 * @nodeoffset: offset of the node containing the property
1376 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, in fdt_setprop_inplace_cell() argument
1379 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
1385 * @nodeoffset: offset of the node whose property to nop
1399 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1406 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1411 * @nodeoffset: offset of the node to nop
1423 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1430 int fdt_nop_node(void *fdt, int nodeoffset);
1578 * @nodeoffset: structure block offset of a node
1594 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1599 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1604 * @nodeoffset: offset of the node whose property to change
1620 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1629 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1635 * @nodeoffset: offset of the node whose property to change
1651 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1660 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1666 * @nodeoffset: offset of the node whose property to change
1682 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1691 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u32() argument
1695 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1701 * @nodeoffset: offset of the node whose property to change
1717 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1726 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u64() argument
1730 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1736 * @nodeoffset: offset of the node whose property to change
1744 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, in fdt_setprop_cell() argument
1747 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1753 * @nodeoffset: offset of the node whose property to change
1769 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1778 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1779 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1785 * @nodeoffset: offset of the node whose property to change
1799 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1808 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1809 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1814 * @nodeoffset: offset of the node whose property to change
1829 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1838 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1844 * @nodeoffset: offset of the node whose property to change
1860 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1869 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset, in fdt_appendprop_u32() argument
1873 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u32()
1879 * @nodeoffset: offset of the node whose property to change
1895 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1904 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, in fdt_appendprop_u64() argument
1908 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u64()
1914 * @nodeoffset: offset of the node whose property to change
1922 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, in fdt_appendprop_cell() argument
1925 return fdt_appendprop_u32(fdt, nodeoffset, name, val); in fdt_appendprop_cell()
1931 * @nodeoffset: offset of the node whose property to change
1946 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1955 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1956 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1962 * @nodeoffset: offset of the node to add a property at
1983 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1992 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
1998 * @nodeoffset: offset of the node whose property to nop
2009 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2017 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2075 * @nodeoffset: offset of the node to nop
2085 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2093 int fdt_del_node(void *fdt, int nodeoffset);