Lines Matching +full:device +full:- +full:tree
4 * libfdt - Flat Device Tree manipulation
23 * MA 02110-1301 USA
67 /* FDT_ERR_NOSPACE: Operation needed to expand the device
68 * tree, but its buffer did not have sufficient space to
69 * contain the expanded tree. Use fdt_open_into() to move the
70 * device tree to a buffer with more space. */
75 * offset which is out-of-bounds, or which points to an
84 * length, or the phandle value was either 0 or -1, which are
87 /* FDT_ERR_BADSTATE: Function was passed an incomplete device
88 * tree created by the sequential-write functions, which is
91 /* Error codes: codes for bad device tree blobs */
93 /* FDT_ERR_TRUNCATED: Structure block of the given device tree
96 /* FDT_ERR_BADMAGIC: Given "device tree" appears not to be a
97 * device tree at all - it is missing the flattened device
98 * tree magic number. */
100 /* FDT_ERR_BADVERSION: Given device tree has a version which
102 * read-write functions, this may mean that fdt_open_into() is
103 * required to convert the tree to the expected version. */
105 /* FDT_ERR_BADSTRUCTURE: Given device tree has a corrupt
109 /* FDT_ERR_BADLAYOUT: For read-write functions, the given
110 * device tree has it's sub-blocks in an order that the
112 * then strings). Use fdt_open_into() to reorganize the tree
113 * into a form suitable for the read-write operations. */
121 /* Errors in device tree content */
123 /* FDT_ERR_BADNCELLS: Device tree has a #address-cells, #size-cells
127 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
129 * is not NUL-terminated within the length of its value. */
132 /* FDT_ERR_BADOVERLAY: The device tree overlay, while
137 /* FDT_ERR_NOPHANDLES: The device tree doesn't have any
143 /* Low-level functions (you probably don't need these) */
163 * fdt_first_subnode() - get offset of first direct subnode
167 * @return offset of first subnode, or -FDT_ERR_NOTFOUND if there is none
172 * fdt_next_subnode() - get offset of next direct subnode
179 * @return offset of next subnode, or -FDT_ERR_NOTFOUND if there are no more
185 * fdt_for_each_subnode - iterate over all subnodes of a parent
198 * if ((node < 0) && (node != -FDT_ERR_NOT_FOUND)) {
216 (fdt32_to_cpu(((const struct fdt_header *)(fdt))->field))
232 fdth->name = cpu_to_fdt32(val); \
247 * fdt_check_header - sanity check a device tree or possible device tree
248 * @fdt: pointer to data which might be a flattened device tree
251 * appears to be a flattened device tree with sane information in its
255 * 0, if the buffer appears to contain a valid device tree
256 * -FDT_ERR_BADMAGIC,
257 * -FDT_ERR_BADVERSION,
258 * -FDT_ERR_BADSTATE, standard meanings, as above
263 * fdt_move - move a device tree around in memory
264 * @fdt: pointer to the device tree to move
265 * @buf: pointer to memory where the device is to be moved
268 * fdt_move() relocates, if possible, the device tree blob located at
270 * with the existing device tree blob at fdt. Therefore,
276 * -FDT_ERR_NOSPACE, bufsize is insufficient to contain the device tree
277 * -FDT_ERR_BADMAGIC,
278 * -FDT_ERR_BADVERSION,
279 * -FDT_ERR_BADSTATE, standard meanings
284 /* Read-only functions */
288 * fdt_string - retrieve a string from the strings block of a device tree
289 * @fdt: pointer to the device tree blob
293 * strings block of the device tree blob at fdt.
302 * fdt_get_max_phandle - retrieves the highest phandle in a tree
303 * @fdt: pointer to the device tree blob
306 * device tree. This will ignore badly formatted phandles, or phandles
307 * with a value of 0 or -1.
311 * 0, if no phandle was found in the device tree
312 * -1, if an error occurred
317 * fdt_num_mem_rsv - retrieve the number of memory reserve map entries
318 * @fdt: pointer to the device tree blob
320 * Returns the number of entries in the device tree blob's memory
330 * fdt_get_mem_rsv - retrieve one memory reserve map entry
331 * @fdt: pointer to the device tree blob
332 * @address, @size: pointers to 64-bit variables
335 * the n-th reserve map entry from the device tree blob, in
336 * native-endian format.
340 * -FDT_ERR_BADMAGIC,
341 * -FDT_ERR_BADVERSION,
342 * -FDT_ERR_BADSTATE, standard meanings
347 * fdt_subnode_offset_namelen - find a subnode based on substring
348 * @fdt: pointer to the device tree blob
363 * fdt_subnode_offset - find a subnode of a given node
364 * @fdt: pointer to the device tree blob
377 * -FDT_ERR_NOTFOUND, if the requested subnode does not exist
378 * -FDT_ERR_BADOFFSET, if parentoffset did not point to an FDT_BEGIN_NODE
380 * -FDT_ERR_BADMAGIC,
381 * -FDT_ERR_BADVERSION,
382 * -FDT_ERR_BADSTATE,
383 * -FDT_ERR_BADSTRUCTURE,
384 * -FDT_ERR_TRUNCATED, standard meanings.
389 * fdt_path_offset_namelen - find a tree node by its full path
390 * @fdt: pointer to the device tree blob
402 * fdt_path_offset - find a tree node by its full path
403 * @fdt: pointer to the device tree blob
406 * fdt_path_offset() finds a node of a given path in the device tree.
416 * -FDT_ERR_BADPATH, given path does not begin with '/' or is invalid
417 * -FDT_ERR_NOTFOUND, if the requested node does not exist
418 * -FDT_ERR_BADMAGIC,
419 * -FDT_ERR_BADVERSION,
420 * -FDT_ERR_BADSTATE,
421 * -FDT_ERR_BADSTRUCTURE,
422 * -FDT_ERR_TRUNCATED, standard meanings.
427 * fdt_get_name - retrieve the name of a given node
428 * @fdt: pointer to the device tree blob
433 * device tree node at structure block offset nodeoffset. If lenp is
434 * non-NULL, the length of this name is also returned, in the integer
439 * If lenp is non-NULL, *lenp contains the length of that name
442 * if lenp is non-NULL *lenp contains an error code (<0):
443 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
445 * -FDT_ERR_BADMAGIC,
446 * -FDT_ERR_BADVERSION,
447 * -FDT_ERR_BADSTATE, standard meanings
452 * fdt_first_property_offset - find the offset of a node's first property
453 * @fdt: pointer to the device tree blob
461 * -FDT_ERR_NOTFOUND, if the requested node has no properties
462 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_BEGIN_NODE tag
463 * -FDT_ERR_BADMAGIC,
464 * -FDT_ERR_BADVERSION,
465 * -FDT_ERR_BADSTATE,
466 * -FDT_ERR_BADSTRUCTURE,
467 * -FDT_ERR_TRUNCATED, standard meanings.
472 * fdt_next_property_offset - step through a node's properties
473 * @fdt: pointer to the device tree blob
482 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
483 * -FDT_ERR_BADOFFSET, if nodeoffset did not point to an FDT_PROP tag
484 * -FDT_ERR_BADMAGIC,
485 * -FDT_ERR_BADVERSION,
486 * -FDT_ERR_BADSTATE,
487 * -FDT_ERR_BADSTRUCTURE,
488 * -FDT_ERR_TRUNCATED, standard meanings.
493 * fdt_for_each_property_offset - iterate over all properties of a node
506 * if ((property < 0) && (property != -FDT_ERR_NOT_FOUND)) {
520 * fdt_get_property_by_offset - retrieve the property at a given offset
521 * @fdt: pointer to the device tree blob
526 * fdt_property structure within the device tree blob at the given
527 * offset. If lenp is non-NULL, the length of the property value is
530 * Note that this code only works on device tree versions >= 16. fdt_getprop()
535 * if lenp is non-NULL, *lenp contains the length of the property
538 * if lenp is non-NULL, *lenp contains an error code (<0):
539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
540 * -FDT_ERR_BADMAGIC,
541 * -FDT_ERR_BADVERSION,
542 * -FDT_ERR_BADSTATE,
543 * -FDT_ERR_BADSTRUCTURE,
544 * -FDT_ERR_TRUNCATED, standard meanings
551 * fdt_get_property_namelen - find a property based on substring
552 * @fdt: pointer to the device tree blob
569 * fdt_get_property - find a given property in a given node
570 * @fdt: pointer to the device tree blob
576 * structure within the device tree blob corresponding to the property
578 * non-NULL, the length of the property value is also returned, in the
583 * if lenp is non-NULL, *lenp contains the length of the property
586 * if lenp is non-NULL, *lenp contains an error code (<0):
587 * -FDT_ERR_NOTFOUND, node does not have named property
588 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
590 * -FDT_ERR_BADMAGIC,
591 * -FDT_ERR_BADVERSION,
592 * -FDT_ERR_BADSTATE,
593 * -FDT_ERR_BADSTRUCTURE,
594 * -FDT_ERR_TRUNCATED, standard meanings
607 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
608 * @fdt: pointer to the device tree blob
615 * to within the device blob itself, not a copy of the value). If
616 * lenp is non-NULL, the length of the property value is also
617 * returned, in the integer pointed to by lenp. If namep is non-NULL,
619 * by namep (this will be a pointer to within the device tree's string
624 * if lenp is non-NULL, *lenp contains the length of the property
626 * if namep is non-NULL *namep contiains a pointer to the property
629 * if lenp is non-NULL, *lenp contains an error code (<0):
630 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_PROP tag
631 * -FDT_ERR_BADMAGIC,
632 * -FDT_ERR_BADVERSION,
633 * -FDT_ERR_BADSTATE,
634 * -FDT_ERR_BADSTRUCTURE,
635 * -FDT_ERR_TRUNCATED, standard meanings
643 * fdt_getprop_namelen - get property value based on substring
644 * @fdt: pointer to the device tree blob
666 * fdt_getprop - retrieve the value of a given property
667 * @fdt: pointer to the device tree blob
674 * pointer to within the device blob itself, not a copy of the value).
675 * If lenp is non-NULL, the length of the property value is also
680 * if lenp is non-NULL, *lenp contains the length of the property
683 * if lenp is non-NULL, *lenp contains an error code (<0):
684 * -FDT_ERR_NOTFOUND, node does not have named property
685 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE
687 * -FDT_ERR_BADMAGIC,
688 * -FDT_ERR_BADVERSION,
689 * -FDT_ERR_BADSTATE,
690 * -FDT_ERR_BADSTRUCTURE,
691 * -FDT_ERR_TRUNCATED, standard meanings
702 * fdt_get_phandle - retrieve the phandle of a given node
703 * @fdt: pointer to the device tree blob
706 * fdt_get_phandle() retrieves the phandle of the device tree node at
710 * the phandle of the node at nodeoffset, on success (!= 0, != -1)
716 * fdt_get_alias_namelen - get alias based on substring
717 * @fdt: pointer to the device tree blob
730 * fdt_get_alias - retrieve the path referenced by a given alias
731 * @fdt: pointer to the device tree blob
744 * fdt_get_path - determine the full path of a node
745 * @fdt: pointer to the device tree blob
753 * NOTE: This function is expensive, as it must scan the device tree
759 * nodeoffset, as a NUL-terminated string.
760 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
761 * -FDT_ERR_NOSPACE, the path of the given node is longer than (bufsize-1)
763 * -FDT_ERR_BADMAGIC,
764 * -FDT_ERR_BADVERSION,
765 * -FDT_ERR_BADSTATE,
766 * -FDT_ERR_BADSTRUCTURE, standard meanings
771 * fdt_supernode_atdepth_offset - find a specific ancestor of a node
772 * @fdt: pointer to the device tree blob
786 * NOTE: This function is expensive, as it must scan the device tree
792 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
793 * -FDT_ERR_NOTFOUND, supernodedepth was greater than the depth of
795 * -FDT_ERR_BADMAGIC,
796 * -FDT_ERR_BADVERSION,
797 * -FDT_ERR_BADSTATE,
798 * -FDT_ERR_BADSTRUCTURE, standard meanings
804 * fdt_node_depth - find the depth of a given node
805 * @fdt: pointer to the device tree blob
811 * NOTE: This function is expensive, as it must scan the device tree
816 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
817 * -FDT_ERR_BADMAGIC,
818 * -FDT_ERR_BADVERSION,
819 * -FDT_ERR_BADSTATE,
820 * -FDT_ERR_BADSTRUCTURE, standard meanings
825 * fdt_parent_offset - find the parent of a given node
826 * @fdt: pointer to the device tree blob
833 * NOTE: This function is expensive, as it must scan the device tree
839 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
840 * -FDT_ERR_BADMAGIC,
841 * -FDT_ERR_BADVERSION,
842 * -FDT_ERR_BADSTATE,
843 * -FDT_ERR_BADSTRUCTURE, standard meanings
848 * fdt_node_offset_by_prop_value - find nodes with a given property value
849 * @fdt: pointer to the device tree blob
858 * startoffset is -1, the very first such node in the tree.
862 * offset = fdt_node_offset_by_prop_value(fdt, -1, propname,
864 * while (offset != -FDT_ERR_NOTFOUND) {
870 * Note the -1 in the first call to the function, if 0 is used here
877 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
878 * tree after startoffset
879 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
880 * -FDT_ERR_BADMAGIC,
881 * -FDT_ERR_BADVERSION,
882 * -FDT_ERR_BADSTATE,
883 * -FDT_ERR_BADSTRUCTURE, standard meanings
890 * fdt_node_offset_by_phandle - find the node with a given phandle
891 * @fdt: pointer to the device tree blob
896 * in the tree with the given phandle (an invalid tree), results are
901 * -FDT_ERR_NOTFOUND, no node with that phandle exists
902 * -FDT_ERR_BADPHANDLE, given phandle value was invalid (0 or -1)
903 * -FDT_ERR_BADMAGIC,
904 * -FDT_ERR_BADVERSION,
905 * -FDT_ERR_BADSTATE,
906 * -FDT_ERR_BADSTRUCTURE, standard meanings
912 * @fdt: pointer to the device tree blob
913 * @nodeoffset: offset of a tree node
919 * it returns non-zero otherwise, or on error.
925 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
926 * -FDT_ERR_BADOFFSET, if nodeoffset does not refer to a BEGIN_NODE tag
927 * -FDT_ERR_BADMAGIC,
928 * -FDT_ERR_BADVERSION,
929 * -FDT_ERR_BADSTATE,
930 * -FDT_ERR_BADSTRUCTURE, standard meanings
936 * fdt_node_offset_by_compatible - find nodes with a given 'compatible' value
937 * @fdt: pointer to the device tree blob
943 * lists the given compatible string; or if startoffset is -1, the
944 * very first such node in the tree.
948 * offset = fdt_node_offset_by_compatible(fdt, -1, compatible);
949 * while (offset != -FDT_ERR_NOTFOUND) {
954 * Note the -1 in the first call to the function, if 0 is used here
961 * -FDT_ERR_NOTFOUND, no node matching the criterion exists in the
962 * tree after startoffset
963 * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGIN_NODE tag
964 * -FDT_ERR_BADMAGIC,
965 * -FDT_ERR_BADVERSION,
966 * -FDT_ERR_BADSTATE,
967 * -FDT_ERR_BADSTRUCTURE, standard meanings
973 * fdt_stringlist_contains - check a string list property for a string
979 * one or more strings, each terminated by \0, as is found in a device tree
987 * fdt_stringlist_count - count the number of strings in a string list
988 * @fdt: pointer to the device tree blob
989 * @nodeoffset: offset of a tree node
993 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
994 * -FDT_ERR_NOTFOUND if the property does not exist
999 * fdt_stringlist_search - find a string in a string list and return its index
1000 * @fdt: pointer to the device tree blob
1001 * @nodeoffset: offset of a tree node
1006 * that are not NUL-terminated. That's because the function will stop after
1008 * small-valued cell properties, such as #address-cells, when searching for
1013 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1014 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1021 * fdt_stringlist_get() - obtain the string at a given index in a string list
1022 * @fdt: pointer to the device tree blob
1023 * @nodeoffset: offset of a tree node
1029 * non-NUL-terminated values. For example on small-valued cell properties
1032 * If non-NULL, the length of the string (on success) or a negative error-code
1038 * location pointed to by the lenp parameter, if non-NULL. On failure one of
1040 * (if non-NULL):
1041 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1042 * -FDT_ERR_NOTFOUND if the property does not exist
1049 /* Read-only functions (addressing related) */
1053 * FDT_MAX_NCELLS - maximum value for #address-cells and #size-cells
1055 * This is the maximum value for #address-cells, #size-cells and
1064 * fdt_address_cells - retrieve address size for a bus represented in the tree
1065 * @fdt: pointer to the device tree blob
1068 * When the node has a valid #address-cells property, returns its value.
1072 * 2, if the node has no #address-cells property
1073 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1074 * #address-cells property
1075 * -FDT_ERR_BADMAGIC,
1076 * -FDT_ERR_BADVERSION,
1077 * -FDT_ERR_BADSTATE,
1078 * -FDT_ERR_BADSTRUCTURE,
1079 * -FDT_ERR_TRUNCATED, standard meanings
1084 * fdt_size_cells - retrieve address range size for a bus represented in the
1085 * tree
1086 * @fdt: pointer to the device tree blob
1089 * When the node has a valid #size-cells property, returns its value.
1093 * 2, if the node has no #address-cells property
1094 * -FDT_ERR_BADNCELLS, if the node has a badly formatted or invalid
1095 * #size-cells property
1096 * -FDT_ERR_BADMAGIC,
1097 * -FDT_ERR_BADVERSION,
1098 * -FDT_ERR_BADSTATE,
1099 * -FDT_ERR_BADSTRUCTURE,
1100 * -FDT_ERR_TRUNCATED, standard meanings
1106 /* Write-in-place functions */
1110 * fdt_setprop_inplace_namelen_partial - change a property's value,
1112 * @fdt: pointer to the device tree blob
1133 * fdt_setprop_inplace - change a property's value, but not its size
1134 * @fdt: pointer to the device tree blob
1147 * of the tree.
1151 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1152 * -FDT_ERR_NOTFOUND, node does not have the named property
1153 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1154 * -FDT_ERR_BADMAGIC,
1155 * -FDT_ERR_BADVERSION,
1156 * -FDT_ERR_BADSTATE,
1157 * -FDT_ERR_BADSTRUCTURE,
1158 * -FDT_ERR_TRUNCATED, standard meanings
1166 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1167 * @fdt: pointer to the device tree blob
1170 * @val: 32-bit integer value to replace the property with
1173 * with the 32-bit integer value in val, converting val to big-endian
1180 * of the tree.
1184 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1185 * -FDT_ERR_NOTFOUND, node does not have the named property
1186 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1187 * -FDT_ERR_BADMAGIC,
1188 * -FDT_ERR_BADVERSION,
1189 * -FDT_ERR_BADSTATE,
1190 * -FDT_ERR_BADSTRUCTURE,
1191 * -FDT_ERR_TRUNCATED, standard meanings
1201 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1202 * @fdt: pointer to the device tree blob
1205 * @val: 64-bit integer value to replace the property with
1208 * with the 64-bit integer value in val, converting val to big-endian
1215 * of the tree.
1219 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1220 * -FDT_ERR_NOTFOUND, node does not have the named property
1221 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1222 * -FDT_ERR_BADMAGIC,
1223 * -FDT_ERR_BADVERSION,
1224 * -FDT_ERR_BADSTATE,
1225 * -FDT_ERR_BADSTRUCTURE,
1226 * -FDT_ERR_TRUNCATED, standard meanings
1236 * fdt_setprop_inplace_cell - change the value of a single-cell property
1247 * fdt_nop_property - replace a property with nop tags
1248 * @fdt: pointer to the device tree blob
1254 * tree.
1258 * tree.
1262 * -FDT_ERR_NOTFOUND, node does not have the named property
1263 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1264 * -FDT_ERR_BADMAGIC,
1265 * -FDT_ERR_BADVERSION,
1266 * -FDT_ERR_BADSTATE,
1267 * -FDT_ERR_BADSTRUCTURE,
1268 * -FDT_ERR_TRUNCATED, standard meanings
1273 * fdt_nop_node - replace a node (subtree) with nop tags
1274 * @fdt: pointer to the device tree blob
1279 * effectively removing it from the tree.
1283 * move any other part of the tree.
1287 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1288 * -FDT_ERR_BADMAGIC,
1289 * -FDT_ERR_BADVERSION,
1290 * -FDT_ERR_BADSTATE,
1291 * -FDT_ERR_BADSTRUCTURE,
1292 * -FDT_ERR_TRUNCATED, standard meanings
1322 * fdt_property_placeholder - add a new property and return a ptr to its value
1324 * @fdt: pointer to the device tree blob
1331 * -FDT_ERR_BADMAGIC,
1332 * -FDT_ERR_NOSPACE, standard meanings
1342 /* Read-write functions */
1350 * fdt_add_mem_rsv - add one memory reserve map entry
1351 * @fdt: pointer to the device tree blob
1352 * @address, @size: 64-bit values (native endian)
1362 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1364 * -FDT_ERR_BADMAGIC,
1365 * -FDT_ERR_BADVERSION,
1366 * -FDT_ERR_BADSTATE,
1367 * -FDT_ERR_BADSTRUCTURE,
1368 * -FDT_ERR_BADLAYOUT,
1369 * -FDT_ERR_TRUNCATED, standard meanings
1374 * fdt_del_mem_rsv - remove a memory reserve map entry
1375 * @fdt: pointer to the device tree blob
1378 * fdt_del_mem_rsv() removes the n-th memory reserve map entry from
1386 * -FDT_ERR_NOTFOUND, there is no entry of the given index (i.e. there
1388 * -FDT_ERR_BADMAGIC,
1389 * -FDT_ERR_BADVERSION,
1390 * -FDT_ERR_BADSTATE,
1391 * -FDT_ERR_BADSTRUCTURE,
1392 * -FDT_ERR_BADLAYOUT,
1393 * -FDT_ERR_TRUNCATED, standard meanings
1398 * fdt_set_name - change the name of a given node
1399 * @fdt: pointer to the device tree blob
1414 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob
1416 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1417 * -FDT_ERR_BADMAGIC,
1418 * -FDT_ERR_BADVERSION,
1419 * -FDT_ERR_BADSTATE, standard meanings
1424 * fdt_setprop - create or change a property
1425 * @fdt: pointer to the device tree blob
1440 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1442 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1443 * -FDT_ERR_BADLAYOUT,
1444 * -FDT_ERR_BADMAGIC,
1445 * -FDT_ERR_BADVERSION,
1446 * -FDT_ERR_BADSTATE,
1447 * -FDT_ERR_BADSTRUCTURE,
1448 * -FDT_ERR_BADLAYOUT,
1449 * -FDT_ERR_TRUNCATED, standard meanings
1455 * fdt_setprop_placeholder - allocate space for a property
1456 * @fdt: pointer to the device tree blob
1471 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1473 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1474 * -FDT_ERR_BADLAYOUT,
1475 * -FDT_ERR_BADMAGIC,
1476 * -FDT_ERR_BADVERSION,
1477 * -FDT_ERR_BADSTATE,
1478 * -FDT_ERR_BADSTRUCTURE,
1479 * -FDT_ERR_BADLAYOUT,
1480 * -FDT_ERR_TRUNCATED, standard meanings
1486 * fdt_setprop_u32 - set a property to a 32-bit integer
1487 * @fdt: pointer to the device tree blob
1490 * @val: 32-bit integer value for the property (native endian)
1493 * node to the given 32-bit integer value (converting to big-endian if
1502 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1504 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1505 * -FDT_ERR_BADLAYOUT,
1506 * -FDT_ERR_BADMAGIC,
1507 * -FDT_ERR_BADVERSION,
1508 * -FDT_ERR_BADSTATE,
1509 * -FDT_ERR_BADSTRUCTURE,
1510 * -FDT_ERR_BADLAYOUT,
1511 * -FDT_ERR_TRUNCATED, standard meanings
1521 * fdt_setprop_u64 - set a property to a 64-bit integer
1522 * @fdt: pointer to the device tree blob
1525 * @val: 64-bit integer value for the property (native endian)
1528 * node to the given 64-bit integer value (converting to big-endian if
1537 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1539 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1540 * -FDT_ERR_BADLAYOUT,
1541 * -FDT_ERR_BADMAGIC,
1542 * -FDT_ERR_BADVERSION,
1543 * -FDT_ERR_BADSTATE,
1544 * -FDT_ERR_BADSTRUCTURE,
1545 * -FDT_ERR_BADLAYOUT,
1546 * -FDT_ERR_TRUNCATED, standard meanings
1556 * fdt_setprop_cell - set a property to a single cell value
1567 * fdt_setprop_string - set a property to a string value
1568 * @fdt: pointer to the device tree blob
1583 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1585 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1586 * -FDT_ERR_BADLAYOUT,
1587 * -FDT_ERR_BADMAGIC,
1588 * -FDT_ERR_BADVERSION,
1589 * -FDT_ERR_BADSTATE,
1590 * -FDT_ERR_BADSTRUCTURE,
1591 * -FDT_ERR_BADLAYOUT,
1592 * -FDT_ERR_TRUNCATED, standard meanings
1599 * fdt_setprop_empty - set a property to an empty value
1600 * @fdt: pointer to the device tree blob
1613 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1615 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1616 * -FDT_ERR_BADLAYOUT,
1617 * -FDT_ERR_BADMAGIC,
1618 * -FDT_ERR_BADVERSION,
1619 * -FDT_ERR_BADSTATE,
1620 * -FDT_ERR_BADSTRUCTURE,
1621 * -FDT_ERR_BADLAYOUT,
1622 * -FDT_ERR_TRUNCATED, standard meanings
1628 * fdt_appendprop - append to or create a property
1629 * @fdt: pointer to the device tree blob
1643 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1645 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1646 * -FDT_ERR_BADLAYOUT,
1647 * -FDT_ERR_BADMAGIC,
1648 * -FDT_ERR_BADVERSION,
1649 * -FDT_ERR_BADSTATE,
1650 * -FDT_ERR_BADSTRUCTURE,
1651 * -FDT_ERR_BADLAYOUT,
1652 * -FDT_ERR_TRUNCATED, standard meanings
1658 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1659 * @fdt: pointer to the device tree blob
1662 * @val: 32-bit integer value to append to the property (native endian)
1664 * fdt_appendprop_u32() appends the given 32-bit integer value
1665 * (converting to big-endian if necessary) to the value of the named
1674 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1676 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1677 * -FDT_ERR_BADLAYOUT,
1678 * -FDT_ERR_BADMAGIC,
1679 * -FDT_ERR_BADVERSION,
1680 * -FDT_ERR_BADSTATE,
1681 * -FDT_ERR_BADSTRUCTURE,
1682 * -FDT_ERR_BADLAYOUT,
1683 * -FDT_ERR_TRUNCATED, standard meanings
1693 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1694 * @fdt: pointer to the device tree blob
1697 * @val: 64-bit integer value to append to the property (native endian)
1699 * fdt_appendprop_u64() appends the given 64-bit integer value
1700 * (converting to big-endian if necessary) to the value of the named
1709 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1711 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1712 * -FDT_ERR_BADLAYOUT,
1713 * -FDT_ERR_BADMAGIC,
1714 * -FDT_ERR_BADVERSION,
1715 * -FDT_ERR_BADSTATE,
1716 * -FDT_ERR_BADSTRUCTURE,
1717 * -FDT_ERR_BADLAYOUT,
1718 * -FDT_ERR_TRUNCATED, standard meanings
1728 * fdt_appendprop_cell - append a single cell value to a property
1739 * fdt_appendprop_string - append a string to a property
1740 * @fdt: pointer to the device tree blob
1754 * -FDT_ERR_NOSPACE, there is insufficient free space in the blob to
1756 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1757 * -FDT_ERR_BADLAYOUT,
1758 * -FDT_ERR_BADMAGIC,
1759 * -FDT_ERR_BADVERSION,
1760 * -FDT_ERR_BADSTATE,
1761 * -FDT_ERR_BADSTRUCTURE,
1762 * -FDT_ERR_BADLAYOUT,
1763 * -FDT_ERR_TRUNCATED, standard meanings
1769 * fdt_delprop - delete a property
1770 * @fdt: pointer to the device tree blob
1781 * -FDT_ERR_NOTFOUND, node does not have the named property
1782 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1783 * -FDT_ERR_BADLAYOUT,
1784 * -FDT_ERR_BADMAGIC,
1785 * -FDT_ERR_BADVERSION,
1786 * -FDT_ERR_BADSTATE,
1787 * -FDT_ERR_BADSTRUCTURE,
1788 * -FDT_ERR_TRUNCATED, standard meanings
1793 * fdt_add_subnode_namelen - creates a new node based on substring
1794 * @fdt: pointer to the device tree blob
1810 * fdt_add_subnode - creates a new node
1811 * @fdt: pointer to the device tree blob
1825 * -FDT_ERR_NOTFOUND, if the requested subnode does not exist
1826 * -FDT_ERR_BADOFFSET, if parentoffset did not point to an FDT_BEGIN_NODE
1828 * -FDT_ERR_EXISTS, if the node at parentoffset already has a subnode of
1830 * -FDT_ERR_NOSPACE, if there is insufficient free space in the
1832 * -FDT_ERR_NOSPACE
1833 * -FDT_ERR_BADLAYOUT
1834 * -FDT_ERR_BADMAGIC,
1835 * -FDT_ERR_BADVERSION,
1836 * -FDT_ERR_BADSTATE,
1837 * -FDT_ERR_BADSTRUCTURE,
1838 * -FDT_ERR_TRUNCATED, standard meanings.
1843 * fdt_del_node - delete a node (subtree)
1844 * @fdt: pointer to the device tree blob
1855 * -FDT_ERR_BADOFFSET, nodeoffset did not point to FDT_BEGIN_NODE tag
1856 * -FDT_ERR_BADLAYOUT,
1857 * -FDT_ERR_BADMAGIC,
1858 * -FDT_ERR_BADVERSION,
1859 * -FDT_ERR_BADSTATE,
1860 * -FDT_ERR_BADSTRUCTURE,
1861 * -FDT_ERR_TRUNCATED, standard meanings
1866 * fdt_overlay_apply - Applies a DT overlay on a base DT
1867 * @fdt: pointer to the base device tree blob
1868 * @fdto: pointer to the device tree overlay blob
1870 * fdt_overlay_apply() will apply the given device tree overlay on the
1871 * given base device tree.
1873 * Expect the base device tree to be modified, even if the function
1878 * -FDT_ERR_NOSPACE, there's not enough space in the base device tree
1879 * -FDT_ERR_NOTFOUND, the overlay points to some inexistant nodes or
1881 * -FDT_ERR_BADPHANDLE,
1882 * -FDT_ERR_BADOVERLAY,
1883 * -FDT_ERR_NOPHANDLES,
1884 * -FDT_ERR_INTERNAL,
1885 * -FDT_ERR_BADLAYOUT,
1886 * -FDT_ERR_BADMAGIC,
1887 * -FDT_ERR_BADOFFSET,
1888 * -FDT_ERR_BADPATH,
1889 * -FDT_ERR_BADVERSION,
1890 * -FDT_ERR_BADSTRUCTURE,
1891 * -FDT_ERR_BADSTATE,
1892 * -FDT_ERR_TRUNCATED, standard meanings