Home | History | Annotate | Download | only in dist

Lines Matching refs:nodeoffset

522  * @nodeoffset: structure block offset of the starting node
526 * device tree node at structure block offset nodeoffset. If lenp is
536 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
542 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
547 * @nodeoffset: structure block offset of a node
555 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
562 int fdt_first_property_offset(const void *fdt, int nodeoffset);
576 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
632 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
646 * @nodeoffset: offset of the node whose property to find
656 int nodeoffset,
664 * @nodeoffset: offset of the node whose property to find
670 * named 'name' of the node at offset nodeoffset. If lenp is
681 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
689 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
691 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
696 fdt_get_property(fdt, nodeoffset, name, lenp);
723 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
738 * @nodeoffset: offset of the node whose property to find
747 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
749 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset,
753 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name,
761 * @nodeoffset: offset of the node whose property to find
766 * named 'name' of the node at offset nodeoffset (this will be a
778 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
786 const void *fdt_getprop(const void *fdt, int nodeoffset,
788 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
791 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
797 * @nodeoffset: structure block offset of the node
800 * structure block offset nodeoffset.
803 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
806 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
839 * @nodeoffset: offset of the node whose path to find
844 * nodeoffset, and records that path in the buffer at buf.
847 * structure from the start to nodeoffset.
852 * nodeoffset, as a NUL-terminated string.
853 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
861 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
866 * @nodeoffset: offset of the node whose parent to find
873 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
875 * nodeoffset has depth D, then:
876 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
877 * will return nodeoffset itself.
880 * structure from the start to nodeoffset.
885 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
887 * nodeoffset
893 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
899 * @nodeoffset: offset of the node whose parent to find
905 * structure from the start to nodeoffset.
908 * depth of the node at nodeoffset (>=0), on success
909 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
915 int fdt_node_depth(const void *fdt, int nodeoffset);
920 * @nodeoffset
924 * nodeoffset as a subnode).
927 * structure from the start to nodeoffset, *twice*.
930 * structure block offset of the parent of the node at nodeoffset
932 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
938 int fdt_parent_offset(const void *fdt, int nodeoffset);
972 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1006 * @nodeoffset: offset of a tree node
1019 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
1025 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1056 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1082 * @nodeoffset: offset of a tree node
1089 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1094 * @nodeoffset: offset of a tree node
1110 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1116 * @nodeoffset: offset of a tree node
1137 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1159 * @nodeoffset: offset of the node to find the address size for
1174 int fdt_address_cells(const void *fdt, int nodeoffset);
1180 * @nodeoffset: offset of the node to find the address range size for
1195 int fdt_size_cells(const void *fdt, int nodeoffset);
1206 * @nodeoffset: offset of the node whose property to change
1219 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1228 * @nodeoffset: offset of the node whose property to change
1246 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1254 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1261 * @nodeoffset: offset of the node whose property to change
1279 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1286 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset,
1290 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1296 * @nodeoffset: offset of the node whose property to change
1314 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1321 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset,
1325 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1333 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
1336 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
1342 * @nodeoffset: offset of the node whose property to nop
1356 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1363 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1368 * @nodeoffset: offset of the node to nop
1380 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1387 int fdt_nop_node(void *fdt, int nodeoffset);
1534 * @nodeoffset: structure block offset of a node
1550 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1555 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1560 * @nodeoffset: offset of the node whose property to change
1576 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1585 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1591 * @nodeoffset: offset of the node whose property to change
1607 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1616 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1622 * @nodeoffset: offset of the node whose property to change
1638 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1647 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1651 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1657 * @nodeoffset: offset of the node whose property to change
1673 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1682 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1686 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1694 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1697 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1703 * @nodeoffset: offset of the node whose property to change
1719 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1728 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1729 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1735 * @nodeoffset: offset of the node whose property to change
1749 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1758 #define fdt_setprop_empty(fdt, nodeoffset, name) \
1759 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1764 * @nodeoffset: offset of the node whose property to change
1779 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1788 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1794 * @nodeoffset: offset of the node whose property to change
1810 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1819 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1823 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1829 * @nodeoffset
1845 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1854 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1858 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1866 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1869 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1875 * @nodeoffset: offset of the node whose property to change
1890 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1899 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1900 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1906 * @nodeoffset: offset of the node to add a property at
1927 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1936 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
1942 * @nodeoffset: offset of the node whose property to nop
1953 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1961 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2016 * @nodeoffset: offset of the node to nop
2026 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2034 int fdt_del_node(void *fdt, int nodeoffset);