• Home
  • Raw
  • Download

Lines Matching full:nodeoffset

521  * @nodeoffset: structure block offset of the starting node
525 * device tree node at structure block offset nodeoffset. If lenp is
535 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
541 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
546 * @nodeoffset: structure block offset of a node
554 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
561 int fdt_first_property_offset(const void *fdt, int nodeoffset);
575 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
631 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
645 * @nodeoffset: offset of the node whose property to find
655 int nodeoffset,
663 * @nodeoffset: offset of the node whose property to find
669 * named 'name' of the node at offset nodeoffset. If lenp is
680 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
688 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
690 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
695 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
722 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
737 * @nodeoffset: offset of the node whose property to find
746 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
748 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
752 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
760 * @nodeoffset: offset of the node whose property to find
765 * named 'name' of the node at offset nodeoffset (this will be a
777 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
785 const void *fdt_getprop(const void *fdt, int nodeoffset,
787 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
790 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
796 * @nodeoffset: structure block offset of the node
799 * structure block offset nodeoffset.
802 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
805 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
838 * @nodeoffset: offset of the node whose path to find
843 * nodeoffset, and records that path in the buffer at buf.
846 * structure from the start to nodeoffset.
851 * nodeoffset, as a NUL-terminated string.
852 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
860 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
865 * @nodeoffset: offset of the node whose parent to find
872 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
874 * nodeoffset has depth D, then:
875 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
876 * will return nodeoffset itself.
879 * structure from the start to nodeoffset.
884 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
886 * nodeoffset
892 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
898 * @nodeoffset: offset of the node whose parent to find
904 * structure from the start to nodeoffset.
907 * depth of the node at nodeoffset (>=0), on success
908 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
914 int fdt_node_depth(const void *fdt, int nodeoffset);
919 * @nodeoffset: offset of the node whose parent to find
923 * nodeoffset as a subnode).
926 * structure from the start to nodeoffset, *twice*.
929 * structure block offset of the parent of the node at nodeoffset
931 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
937 int fdt_parent_offset(const void *fdt, int nodeoffset);
971 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1005 * @nodeoffset: offset of a tree node
1018 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
1024 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1055 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1081 * @nodeoffset: offset of a tree node
1088 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1093 * @nodeoffset: offset of a tree node
1109 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1115 * @nodeoffset: offset of a tree node
1136 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1158 * @nodeoffset: offset of the node to find the address size for
1173 int fdt_address_cells(const void *fdt, int nodeoffset);
1179 * @nodeoffset: offset of the node to find the address range size for
1194 int fdt_size_cells(const void *fdt, int nodeoffset);
1205 * @nodeoffset: offset of the node whose property to change
1218 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1227 * @nodeoffset: offset of the node whose property to change
1245 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1253 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1260 * @nodeoffset: offset of the node whose property to change
1278 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1285 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_u32() argument
1289 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32()
1295 * @nodeoffset: offset of the node whose property to change
1313 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1320 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, in fdt_setprop_inplace_u64() argument
1324 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64()
1332 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, in fdt_setprop_inplace_cell() argument
1335 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
1341 * @nodeoffset: offset of the node whose property to nop
1355 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1362 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1367 * @nodeoffset: offset of the node to nop
1379 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1386 int fdt_nop_node(void *fdt, int nodeoffset);
1533 * @nodeoffset: structure block offset of a node
1549 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1554 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1559 * @nodeoffset: offset of the node whose property to change
1575 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1584 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1590 * @nodeoffset: offset of the node whose property to change
1606 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1615 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1621 * @nodeoffset: offset of the node whose property to change
1637 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1646 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u32() argument
1650 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1656 * @nodeoffset: offset of the node whose property to change
1672 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1681 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u64() argument
1685 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1693 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, in fdt_setprop_cell() argument
1696 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1702 * @nodeoffset: offset of the node whose property to change
1718 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1727 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1728 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1734 * @nodeoffset: offset of the node whose property to change
1748 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1757 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1758 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1763 * @nodeoffset: offset of the node whose property to change
1778 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1787 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1793 * @nodeoffset: offset of the node whose property to change
1809 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1818 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset, in fdt_appendprop_u32() argument
1822 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u32()
1828 * @nodeoffset: offset of the node whose property to change
1844 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1853 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, in fdt_appendprop_u64() argument
1857 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u64()
1865 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, in fdt_appendprop_cell() argument
1868 return fdt_appendprop_u32(fdt, nodeoffset, name, val); in fdt_appendprop_cell()
1874 * @nodeoffset: offset of the node whose property to change
1889 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1898 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1899 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1905 * @nodeoffset: offset of the node to add a property at
1926 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1935 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
1941 * @nodeoffset: offset of the node whose property to nop
1952 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1960 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2015 * @nodeoffset: offset of the node to nop
2025 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2033 int fdt_del_node(void *fdt, int nodeoffset);