• Home
  • Raw
  • Download

Lines Matching full:nodeoffset

429  * @nodeoffset: structure block offset of the starting node
433 * device tree node at structure block offset nodeoffset. If lenp is
443 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
449 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
454 * @nodeoffset: structure block offset of a node
462 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
469 int fdt_first_property_offset(const void *fdt, int nodeoffset);
483 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
553 * @nodeoffset: offset of the node whose property to find
563 int nodeoffset,
571 * @nodeoffset: offset of the node whose property to find
577 * named 'name' of the node at offset nodeoffset. If lenp is
588 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
596 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
598 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, in fdt_get_property_w() argument
603 fdt_get_property(fdt, nodeoffset, name, lenp); in fdt_get_property_w()
630 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
645 * @nodeoffset: offset of the node whose property to find
654 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
656 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, in fdt_getprop_namelen_w() argument
660 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, in fdt_getprop_namelen_w()
668 * @nodeoffset: offset of the node whose property to find
673 * named 'name' of the node at offset nodeoffset (this will be a
685 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
693 const void *fdt_getprop(const void *fdt, int nodeoffset,
695 static inline void *fdt_getprop_w(void *fdt, int nodeoffset, in fdt_getprop_w() argument
698 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); in fdt_getprop_w()
704 * @nodeoffset: structure block offset of the node
707 * structure block offset nodeoffset.
710 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
713 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
746 * @nodeoffset: offset of the node whose path to find
751 * nodeoffset, and records that path in the buffer at buf.
754 * structure from the start to nodeoffset.
759 * nodeoffset, as a NUL-terminated string.
760 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
768 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
773 * @nodeoffset: offset of the node whose parent to find
780 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
782 * nodeoffset has depth D, then:
783 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
784 * will return nodeoffset itself.
787 * structure from the start to nodeoffset.
792 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
794 * nodeoffset
800 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
806 * @nodeoffset: offset of the node whose parent to find
812 * structure from the start to nodeoffset.
815 * depth of the node at nodeoffset (>=0), on success
816 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
822 int fdt_node_depth(const void *fdt, int nodeoffset);
827 * @nodeoffset: offset of the node whose parent to find
831 * nodeoffset as a subnode).
834 * structure from the start to nodeoffset, *twice*.
837 * structure block offset of the parent of the node at nodeoffset
839 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
845 int fdt_parent_offset(const void *fdt, int nodeoffset);
879 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
913 * @nodeoffset: offset of a tree node
926 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
932 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
963 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
989 * @nodeoffset: offset of a tree node
996 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1001 * @nodeoffset: offset of a tree node
1017 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1023 * @nodeoffset: offset of a tree node
1044 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1066 * @nodeoffset: offset of the node to find the address size for
1081 int fdt_address_cells(const void *fdt, int nodeoffset);
1087 * @nodeoffset: offset of the node to find the address range size for
1102 int fdt_size_cells(const void *fdt, int nodeoffset);
1113 * @nodeoffset: offset of the node whose property to change
1126 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1135 * @nodeoffset: offset of the node whose property to change
1153 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1161 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1168 * @nodeoffset: offset of the node whose property to change
1186 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1193 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset, in fdt_setprop_inplace_u32() argument
1197 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u32()
1203 * @nodeoffset: offset of the node whose property to change
1221 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1228 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, in fdt_setprop_inplace_u64() argument
1232 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_inplace_u64()
1240 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, in fdt_setprop_inplace_cell() argument
1243 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell()
1249 * @nodeoffset: offset of the node whose property to nop
1263 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1270 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1275 * @nodeoffset: offset of the node to nop
1287 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1294 int fdt_nop_node(void *fdt, int nodeoffset);
1400 * @nodeoffset: structure block offset of a node
1416 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1421 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1426 * @nodeoffset: offset of the node whose property to change
1442 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1451 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1457 * @nodeoffset: offset of the node whose property to change
1473 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1482 int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name,
1488 * @nodeoffset: offset of the node whose property to change
1504 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1513 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u32() argument
1517 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1523 * @nodeoffset: offset of the node whose property to change
1539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1548 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, in fdt_setprop_u64() argument
1552 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1560 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, in fdt_setprop_cell() argument
1563 return fdt_setprop_u32(fdt, nodeoffset, name, val); in fdt_setprop_cell()
1569 * @nodeoffset: offset of the node whose property to change
1585 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1594 #define fdt_setprop_string(fdt, nodeoffset, name, str) \ argument
1595 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1601 * @nodeoffset: offset of the node whose property to change
1615 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1624 #define fdt_setprop_empty(fdt, nodeoffset, name) \ argument
1625 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1630 * @nodeoffset: offset of the node whose property to change
1645 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1654 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
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_appendprop_u32(void *fdt, int nodeoffset, in fdt_appendprop_u32() argument
1689 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u32()
1695 * @nodeoffset: offset of the node whose property to change
1711 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1720 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, in fdt_appendprop_u64() argument
1724 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_appendprop_u64()
1732 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, in fdt_appendprop_cell() argument
1735 return fdt_appendprop_u32(fdt, nodeoffset, name, val); in fdt_appendprop_cell()
1741 * @nodeoffset: offset of the node whose property to change
1756 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1765 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ argument
1766 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1771 * @nodeoffset: offset of the node whose property to nop
1782 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1790 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1845 * @nodeoffset: offset of the node to nop
1855 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1863 int fdt_del_node(void *fdt, int nodeoffset);