Lines Matching defs:offset
35 * offset which is out-of-bounds, or which points to an
120 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen);
122 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen)
124 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen);
127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset);
193 int fdt_next_node(const void *fdt, int offset, int *depth);
196 * fdt_first_subnode() - get offset of first direct subnode
198 * @offset: Offset of node to check
200 * Return: offset of first subnode, or -FDT_ERR_NOTFOUND if there is none
202 int fdt_first_subnode(const void *fdt, int offset);
205 * fdt_next_subnode() - get offset of next direct subnode
207 * @offset: Offset of previous subnode
212 * Return: offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more
215 int fdt_next_subnode(const void *fdt, int offset);
342 * @stroffset: offset of the string within the strings block (native endian)
358 * @stroffset: offset of the string within the strings block (native endian)
459 * @parentoffset: structure block offset of a node
468 * Return: offset of the subnode or -FDT_ERR_NOTFOUND if name not found.
477 * @parentoffset: structure block offset of a node
481 * offset parentoffset with the given name. name may include a unit
488 * structure block offset of the requested subnode (>=0), on success
509 * Return: offset of the node or negative libfdt error value otherwise
528 * structure block offset of the node with the requested path (>=0), on
543 * @nodeoffset: structure block offset of the starting node
547 * device tree node at structure block offset nodeoffset. If lenp is
566 * fdt_first_property_offset - find the offset of a node's first property
568 * @nodeoffset: structure block offset of a node
571 * the given structure block offset.
574 * structure block offset of the property (>=0), on success
588 * @offset: structure block offset of a property
591 * one at the given structure block offset. This will be a property
595 * structure block offset of the next property (>=0), on success
604 int fdt_next_property_offset(const void *fdt, int offset);
609 * @property: property offset (int, lvalue)
611 * @node: node offset (int)
634 * fdt_get_property_by_offset - retrieve the property at a given offset
636 * @offset: offset of the property to retrieve
641 * offset. If lenp is non-NULL, the length of the property value is
661 int offset,
664 int offset,
668 fdt_get_property_by_offset(fdt, offset, lenp);
674 * @nodeoffset: offset of the node whose property to find
695 * @nodeoffset: offset of the node whose property to find
701 * named 'name' of the node at offset nodeoffset. If lenp is
731 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
733 * @offset: offset of the property to read
738 * property at structure block offset 'offset' (this will be a pointer
762 const void *fdt_getprop_by_offset(const void *fdt, int offset,
769 * @nodeoffset: offset of the node whose property to find
794 * @nodeoffset: offset of the node whose property to find
799 * named @name of the node at offset @nodeoffset (this will be a
830 * @nodeoffset: structure block offset of the node
833 * structure block offset nodeoffset.
875 * @nodeoffset: offset of the node whose path to find
879 * fdt_get_path() computes the full path of the node at offset
902 * @nodeoffset: offset of the node whose parent to find
910 * will always return 0, the offset of the root node. If the node at
919 * structure block offset of the node at node offset's ancestor
935 * @nodeoffset: offset of the node whose parent to find
956 * @nodeoffset: offset of the node whose parent to find
959 * is, it finds the offset of the node which contains the node at
966 * structure block offset of the parent of the node at nodeoffset
979 * @startoffset: only find nodes after this offset
984 * fdt_node_offset_by_prop_value() returns the offset of the first
991 * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
993 * while (offset != -FDT_ERR_NOTFOUND) {
995 * offset = fdt_node_offset_by_prop_value(fdt, offset, propname,
1004 * structure block offset of the located node (>= 0, >startoffset),
1023 * fdt_node_offset_by_phandle() returns the offset of the node
1029 * structure block offset of the located node (>= 0), on success
1042 * @nodeoffset: offset of a tree node
1066 * @startoffset: only find nodes after this offset
1069 * fdt_node_offset_by_compatible() returns the offset of the first
1076 * offset = fdt_node_offset_by_compatible(fdt, -1, compatible);
1077 * while (offset != -FDT_ERR_NOTFOUND) {
1079 * offset = fdt_node_offset_by_compatible(fdt, offset, compatible);
1087 * structure block offset of the located node (>= 0, >startoffset),
1117 * @nodeoffset: offset of a tree node
1130 * @nodeoffset: offset of a tree node
1152 * @nodeoffset: offset of a tree node
1195 * @nodeoffset: offset of the node to find the address size for
1216 * @nodeoffset: offset of the node to find the address range size for
1242 * @nodeoffset: offset of the node whose property to change
1266 * @nodeoffset: offset of the node whose property to change
1299 * @nodeoffset: offset of the node whose property to change
1334 * @nodeoffset: offset of the node whose property to change
1369 * @nodeoffset: offset of the node containing the property
1385 * @nodeoffset: offset of the node whose property to nop
1411 * @nodeoffset: offset of the node to nop
1578 * @nodeoffset: structure block offset of a node
1604 * @nodeoffset: offset of the node whose property to change
1635 * @nodeoffset: offset of the node whose property to change
1666 * @nodeoffset: offset of the node whose property to change
1701 * @nodeoffset: offset of the node whose property to change
1736 * @nodeoffset: offset of the node whose property to change
1753 * @nodeoffset: offset of the node whose property to change
1785 * @nodeoffset: offset of the node whose property to change
1814 * @nodeoffset: offset of the node whose property to change
1844 * @nodeoffset: offset of the node whose property to change
1879 * @nodeoffset: offset of the node whose property to change
1914 * @nodeoffset: offset of the node whose property to change
1931 * @nodeoffset: offset of the node whose property to change
1961 * @parent: offset of the parent node
1962 * @nodeoffset: offset of the node to add a property at
1998 * @nodeoffset: offset of the node whose property to nop
2022 * @parentoffset: structure block offset of a node
2031 * Return: structure block offset of the created subnode (>=0),
2042 * @parentoffset: structure block offset of a node
2046 * structure block offset parentoffset, with the given name (which
2053 * structure block offset of the created nodeequested subnode (>=0), on
2075 * @nodeoffset: offset of the node to nop
2127 * fdt_overlay_target_offset - retrieves the offset of a fragment's target
2130 * @fragment_offset: node offset of the fragment in the overlay
2133 * fdt_overlay_target_offset() retrieves the target offset in the base
2138 * the targeted node offset in the base device tree