• Home
  • Raw
  • Download

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
667 * @nodeoffset: offset of the node whose property to find
680 int nodeoffset,
688 * @nodeoffset: offset of the node whose property to find
694 * named 'name' of the node at offset nodeoffset. If lenp is
705 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
713 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
715 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
720 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
747 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
762 * @nodeoffset: offset of the node whose property to find
773 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
775 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
779 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
787 * @nodeoffset: offset of the node whose property to find
792 * named @name of the node at offset @nodeoffset (this will be a
804 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
812 const void *fdt_getprop(const void *fdt, int nodeoffset,
814 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
817 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
823 * @nodeoffset: structure block offset of the node
826 * structure block offset nodeoffset.
829 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
832 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
868 * @nodeoffset: offset of the node whose path to find
873 * nodeoffset, and records that path in the buffer at buf.
876 * structure from the start to nodeoffset.
881 * nodeoffset, as a NUL-terminated string.
882 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
890 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
895 * @nodeoffset: offset of the node whose parent to find
902 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
904 * nodeoffset has depth D, then:
905 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
906 * will return nodeoffset itself.
909 * structure from the start to nodeoffset.
914 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
916 * nodeoffset
922 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
928 * @nodeoffset: offset of the node whose parent to find
934 * structure from the start to nodeoffset.
937 * depth of the node at nodeoffset (>=0), on success
938 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
944 int fdt_node_depth(const void *fdt, int nodeoffset);
949 * @nodeoffset: offset of the node whose parent to find
953 * nodeoffset as a subnode).
956 * structure from the start to nodeoffset, *twice*.
959 * structure block offset of the parent of the node at nodeoffset
961 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
967 int fdt_parent_offset(const void *fdt, int nodeoffset);
1001 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1035 * @nodeoffset: offset of a tree node
1047 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
1053 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
1084 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
1110 * @nodeoffset: offset of a tree node
1118 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1123 * @nodeoffset: offset of a tree node
1139 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1145 * @nodeoffset: offset of a tree node
1166 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1188 * @nodeoffset: offset of the node to find the address size for
1203 int fdt_address_cells(const void *fdt, int nodeoffset);
1209 * @nodeoffset: offset of the node to find the address range size for
1224 int fdt_size_cells(const void *fdt, int nodeoffset);
1235 * @nodeoffset: offset of the node whose property to change
1250 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1259 * @nodeoffset: offset of the node whose property to change
1277 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1285 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1292 * @nodeoffset: offset of the node whose property to change
1310 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1317 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_u32() argument
1321 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32()
1327 * @nodeoffset: offset of the node whose property to change
1345 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1352 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, in fdt_setprop_inplace_u64() argument
1356 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64()
1362 * @nodeoffset: offset of the node containing the property
1369 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, in fdt_setprop_inplace_cell() argument
1372 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
1378 * @nodeoffset: offset of the node whose property to nop
1392 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1399 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1404 * @nodeoffset: offset of the node to nop
1416 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1423 int fdt_nop_node(void *fdt, int nodeoffset);
1571 * @nodeoffset: structure block offset of a node
1587 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1592 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1597 * @nodeoffset: offset of the node whose property to change
1613 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1622 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1628 * @nodeoffset: offset of the node whose property to change
1644 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1653 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1659 * @nodeoffset: offset of the node whose property to change
1675 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1684 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u32() argument
1688 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1694 * @nodeoffset: offset of the node whose property to change
1710 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1719 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u64() argument
1723 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1729 * @nodeoffset: offset of the node whose property to change
1737 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, in fdt_setprop_cell() argument
1740 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1746 * @nodeoffset: offset of the node whose property to change
1762 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1771 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1772 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1778 * @nodeoffset: offset of the node whose property to change
1792 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1801 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1802 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1807 * @nodeoffset: offset of the node whose property to change
1822 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1831 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1837 * @nodeoffset: offset of the node whose property to change
1853 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1862 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset, in fdt_appendprop_u32() argument
1866 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u32()
1872 * @nodeoffset: offset of the node whose property to change
1888 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1897 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, in fdt_appendprop_u64() argument
1901 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u64()
1907 * @nodeoffset: offset of the node whose property to change
1915 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, in fdt_appendprop_cell() argument
1918 return fdt_appendprop_u32(fdt, nodeoffset, name, val); in fdt_appendprop_cell()
1924 * @nodeoffset: offset of the node whose property to change
1939 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1948 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1949 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1955 * @nodeoffset: offset of the node to add a property at
1976 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1985 int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset,
1991 * @nodeoffset: offset of the node whose property to nop
2002 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2010 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
2068 * @nodeoffset: offset of the node to nop
2078 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
2086 int fdt_del_node(void *fdt, int nodeoffset);