Lines Matching refs:nodeoffset

424  * @nodeoffset: structure block offset of the starting node
428 * device tree node at structure block offset nodeoffset. If lenp is
438 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
444 const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp);
449 * @nodeoffset: structure block offset of a node
457 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
464 int fdt_first_property_offset(const void *fdt, int nodeoffset);
478 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
531 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
545 * @nodeoffset: offset of the node whose property to find
554 int nodeoffset,
561 * @nodeoffset: offset of the node whose property to find
567 * named 'name' of the node at offset nodeoffset. If lenp is
578 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
586 const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
588 static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset,
593 fdt_get_property(fdt, nodeoffset, name, lenp);
620 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
633 * @nodeoffset: offset of the node whose property to find
641 const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
643 static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset,
647 return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name,
654 * @nodeoffset: offset of the node whose property to find
659 * named 'name' of the node at offset nodeoffset (this will be a
671 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
679 const void *fdt_getprop(const void *fdt, int nodeoffset,
681 static inline void *fdt_getprop_w(void *fdt, int nodeoffset,
684 return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp);
690 * @nodeoffset: structure block offset of the node
693 * structure block offset nodeoffset.
696 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
699 uint32_t fdt_get_phandle(const void *fdt, int nodeoffset);
730 * @nodeoffset: offset of the node whose path to find
735 * nodeoffset, and records that path in the buffer at buf.
738 * structure from the start to nodeoffset.
743 * nodeoffset, as a NUL-terminated string.
744 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
752 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);
757 * @nodeoffset: offset of the node whose parent to find
764 * fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, NULL);
766 * nodeoffset has depth D, then:
767 * fdt_supernode_atdepth_offset(fdt, nodeoffset, D, NULL);
768 * will return nodeoffset itself.
771 * structure from the start to nodeoffset.
776 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
778 * nodeoffset
784 int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset,
790 * @nodeoffset: offset of the node whose parent to find
796 * structure from the start to nodeoffset.
799 * depth of the node at nodeoffset (>=0), on success
800 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
806 int fdt_node_depth(const void *fdt, int nodeoffset);
811 * @nodeoffset: offset of the node whose parent to find
815 * nodeoffset as a subnode).
818 * structure from the start to nodeoffset, *twice*.
821 * structure block offset of the parent of the node at nodeoffset
823 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
829 int fdt_parent_offset(const void *fdt, int nodeoffset);
863 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
897 * @nodeoffset: offset of a tree node
910 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
916 int fdt_node_check_compatible(const void *fdt, int nodeoffset,
947 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
973 * @nodeoffset: offset of a tree node
980 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
985 * @nodeoffset: offset of a tree node
1001 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1007 * @nodeoffset: offset of a tree node
1028 const char *fdt_stringlist_get(const void *fdt, int nodeoffset,
1050 * @nodeoffset: offset of the node to find the address size for
1065 int fdt_address_cells(const void *fdt, int nodeoffset);
1071 * @nodeoffset: offset of the node to find the address range size for
1086 int fdt_size_cells(const void *fdt, int nodeoffset);
1097 * @nodeoffset: offset of the node whose property to change
1109 int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset,
1117 * @nodeoffset: offset of the node whose property to change
1135 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1142 int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
1148 * @nodeoffset: offset of the node whose property to change
1166 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1173 static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset,
1177 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1183 * @nodeoffset: offset of the node whose property to change
1201 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1208 static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset,
1212 return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1220 static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset,
1223 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val);
1229 * @nodeoffset: offset of the node whose property to nop
1243 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1250 int fdt_nop_property(void *fdt, int nodeoffset, const char *name);
1255 * @nodeoffset: offset of the node to nop
1267 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1274 int fdt_nop_node(void *fdt, int nodeoffset);
1364 * @nodeoffset: structure block offset of a node
1380 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1385 int fdt_set_name(void *fdt, int nodeoffset, const char *name);
1390 * @nodeoffset: offset of the node whose property to change
1406 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1415 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1421 * @nodeoffset: offset of the node whose property to change
1437 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1446 static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name,
1450 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1456 * @nodeoffset: offset of the node whose property to change
1472 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1481 static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name,
1485 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1493 static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name,
1496 return fdt_setprop_u32(fdt, nodeoffset, name, val);
1502 * @nodeoffset: offset of the node whose property to change
1518 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1527 #define fdt_setprop_string(fdt, nodeoffset, name, str) \
1528 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1534 * @nodeoffset: offset of the node whose property to change
1548 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1557 #define fdt_setprop_empty(fdt, nodeoffset, name) \
1558 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
1563 * @nodeoffset: offset of the node whose property to change
1578 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1587 int fdt_appendprop(void *fdt, int nodeoffset, const char *name,
1593 * @nodeoffset: offset of the node whose property to change
1609 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1618 static inline int fdt_appendprop_u32(void *fdt, int nodeoffset,
1622 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1628 * @nodeoffset: offset of the node whose property to change
1644 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1653 static inline int fdt_appendprop_u64(void *fdt, int nodeoffset,
1657 return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp));
1665 static inline int fdt_appendprop_cell(void *fdt, int nodeoffset,
1668 return fdt_appendprop_u32(fdt, nodeoffset, name, val);
1674 * @nodeoffset: offset of the node whose property to change
1689 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1698 #define fdt_appendprop_string(fdt, nodeoffset, name, str) \
1699 fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1704 * @nodeoffset: offset of the node whose property to nop
1715 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1723 int fdt_delprop(void *fdt, int nodeoffset, const char *name);
1776 * @nodeoffset: offset of the node to nop
1786 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1794 int fdt_del_node(void *fdt, int nodeoffset);