Lines Matching refs:node
22 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */
24 /* FDT_ERR_EXISTS: Attempted to create a node or property which
95 * unexpected or missing value, property or node. */
198 * @offset: Offset of node to check
210 * get direct subnodes of a parent node.
220 * @node: child node (int, lvalue)
222 * @parent: parent node (int)
226 * fdt_for_each_subnode(node, fdt, parent) {
227 * Use node
231 * if ((node < 0) && (node != -FDT_ERR_NOTFOUND)) {
235 * Note that this is implemented as a macro and @node is used as
239 #define fdt_for_each_subnode(node, fdt, parent) \
240 for (node = fdt_first_subnode(fdt, parent); \
241 node >= 0; \
242 node = fdt_next_subnode(fdt, node))
459 * @parentoffset: structure block offset of a node
475 * fdt_subnode_offset - find a subnode of a given node
477 * @parentoffset: structure block offset of a node
480 * fdt_subnode_offset() finds a subnode of the node at structure block
501 * fdt_path_offset_namelen - find a tree node by its full path
503 * @path: full path of the node to locate
509 * Return: offset of the node or negative libfdt error value otherwise
516 * fdt_path_offset - find a tree node by its full path
518 * @path: full path of the node to locate
520 * fdt_path_offset() finds a node of a given path in the device tree.
528 * structure block offset of the node with the requested path (>=0), on
531 * -FDT_ERR_NOTFOUND, if the requested node does not exist
541 * fdt_get_name - retrieve the name of a given node
543 * @nodeoffset: structure block offset of the starting node
547 * device tree node at structure block offset nodeoffset. If lenp is
552 * pointer to the node's name, on success
566 * fdt_first_property_offset - find the offset of a node's first property
568 * @nodeoffset: structure block offset of a node
570 * fdt_first_property_offset() finds the first property of the node at
575 * -FDT_ERR_NOTFOUND, if the requested node has no properties
586 * fdt_next_property_offset - step through a node's properties
592 * of the same node as the given property.
596 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
607 * fdt_for_each_property_offset - iterate over all properties of a node
611 * @node: node offset (int)
615 * fdt_for_each_property_offset(property, fdt, node) {
625 * iterator in the loop. The node variable can be constant or even a
628 #define fdt_for_each_property_offset(property, fdt, node) \
629 for (property = fdt_first_property_offset(fdt, node); \
674 * @nodeoffset: offset of the node whose property to find
693 * fdt_get_property - find a given property in a given node
695 * @nodeoffset: offset of the node whose property to find
701 * named 'name' of the node at offset nodeoffset. If lenp is
711 * -FDT_ERR_NOTFOUND, node does not have named property
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
810 * -FDT_ERR_NOTFOUND, node does not have named property
828 * fdt_get_phandle - retrieve the phandle of a given node
830 * @nodeoffset: structure block offset of the node
832 * fdt_get_phandle() retrieves the phandle of the device tree node at
836 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
837 * 0, if the node has no phandle, or another error occurs
864 * value of the property named @name in the node /aliases.
868 * NULL, if the given alias or the /aliases node does not exist
873 * fdt_get_path - determine the full path of a node
875 * @nodeoffset: offset of the node whose path to find
879 * fdt_get_path() computes the full path of the node at offset
887 * buf contains the absolute path of the node at
890 * -FDT_ERR_NOSPACE, the path of the given node is longer than (bufsize-1)
900 * fdt_supernode_atdepth_offset - find a specific ancestor of a node
902 * @nodeoffset: offset of the node whose parent to find
906 * fdt_supernode_atdepth_offset() finds an ancestor of the given node
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
933 * fdt_node_depth - find the depth of a given node
935 * @nodeoffset: offset of the node whose parent to find
937 * fdt_node_depth() finds the depth of a given node. The root node
944 * depth of the node at nodeoffset (>=0), on success
954 * fdt_parent_offset - find the parent of a given node
956 * @nodeoffset: offset of the node whose parent to find
958 * fdt_parent_offset() locates the parent node of a given node (that
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
985 * node after startoffset, which has a property named propname whose
987 * startoffset is -1, the very first such node in the tree.
1000 * instead, the function will never locate the root node, even if it
1004 * structure block offset of the located node (>= 0, >startoffset),
1006 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
1019 * fdt_node_offset_by_phandle - find the node with a given phandle
1023 * fdt_node_offset_by_phandle() returns the offset of the node
1024 * which has the given phandle value. If there is more than one node
1029 * structure block offset of the located node (>= 0), on success
1030 * -FDT_ERR_NOTFOUND, no node with that phandle exists
1040 * fdt_node_check_compatible - check a node's compatible property
1042 * @nodeoffset: offset of a tree node
1045 * fdt_node_check_compatible() returns 0 if the given node contains a
1050 * 0, if the node has a 'compatible' property listing the given string
1051 * 1, if the node has a 'compatible' property, but it does not list
1053 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1070 * node after startoffset, which has a 'compatible' property which
1072 * very first such node in the tree.
1083 * instead, the function will never locate the root node, even if it
1087 * structure block offset of the located node (>= 0, >startoffset),
1089 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
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
1197 * When the node has a valid #address-cells property, returns its value.
1201 * 2, if the node has no #address-cells property
1202 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1216 * @nodeoffset: offset of the node to find the address range size for
1218 * When the node has a valid #size-cells property, returns its value.
1222 * 1, if the node has no #size-cells property
1223 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1242 * @nodeoffset: offset of the node whose property to change
1266 * @nodeoffset: offset of the node whose property to change
1283 * -FDT_ERR_NOTFOUND, node does not have the named property
1299 * @nodeoffset: offset of the node whose property to change
1316 * -FDT_ERR_NOTFOUND, node does not have the named property
1334 * @nodeoffset: offset of the node whose property to change
1351 * -FDT_ERR_NOTFOUND, node does not have the named property
1369 * @nodeoffset: offset of the node containing the property
1385 * @nodeoffset: offset of the node whose property to nop
1398 * -FDT_ERR_NOTFOUND, node does not have the named property
1409 * fdt_nop_node - replace a node (subtree) with nop tags
1411 * @nodeoffset: offset of the node to nop
1413 * fdt_nop_node() will replace a given node's representation in the
1418 * the node and its properties and subnodes, and will not alter or
1576 * fdt_set_name - change the name of a given node
1578 * @nodeoffset: structure block offset of a node
1579 * @name: name to give the node
1582 * of the given node with the given string. NOTE: this function can't
1584 * node's siblings; results are undefined if this function is invoked
1585 * with a name equal to one of the given node's siblings.
1604 * @nodeoffset: offset of the node whose property to change
1610 * node to the given value and length, creating the property if it
1635 * @nodeoffset: offset of the node whose property to change
1640 * fdt_setprop_placeholer() allocates the named property in the given node.
1666 * @nodeoffset: offset of the node whose property to change
1671 * node to the given 32-bit integer value (converting to big-endian if
1701 * @nodeoffset: offset of the node whose property to change
1706 * node to the given 64-bit integer value (converting to big-endian if
1736 * @nodeoffset: offset of the node whose property to change
1753 * @nodeoffset: offset of the node whose property to change
1758 * given node to the given string value (using the length of the
1785 * @nodeoffset: offset of the node whose property to change
1789 * given node to an empty (zero length) value, or creates a new empty
1814 * @nodeoffset: offset of the node whose property to change
1820 * given node, creating the property if it does not already exist.
1844 * @nodeoffset: offset of the node whose property to change
1850 * property in the given node, or creates a new property with that
1879 * @nodeoffset: offset of the node whose property to change
1885 * property in the given node, or creates a new property with that
1914 * @nodeoffset: offset of the node whose property to change
1931 * @nodeoffset: offset of the node whose property to change
1936 * the named property in the given node, or creates a new property
1961 * @parent: offset of the parent node
1962 * @nodeoffset: offset of the node to add a property at
1969 * node, or creates a new property with that value if it does not
1981 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1998 * @nodeoffset: offset of the node whose property to nop
2008 * -FDT_ERR_NOTFOUND, node does not have the named property
2020 * fdt_add_subnode_namelen - creates a new node based on substring
2022 * @parentoffset: structure block offset of a node
2027 * characters of @name as the name of the new node. This is useful for
2040 * fdt_add_subnode - creates a new node
2042 * @parentoffset: structure block offset of a node
2045 * fdt_add_subnode() creates a new node as a subnode of the node at
2058 * -FDT_ERR_EXISTS, if the node at parentoffset already has a subnode of
2061 * blob to contain the new node
2073 * fdt_del_node - delete a node (subtree)
2075 * @nodeoffset: offset of the node to nop
2077 * fdt_del_node() will remove the given node, including all its
2130 * @fragment_offset: node offset of the fragment in the overlay
2138 * the targeted node offset in the base device tree