Home | History | Annotate | Download | only in libfdt

Lines Matching refs:property

62 	/* FDT_ERR_NOTFOUND: The requested node or property does not exist */
64 /* FDT_ERR_EXISTS: Attempted to create a node or property which
83 * This can be caused either by an invalid phandle property
124 * or similar property with a bad format or value */
127 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
128 * value. For example: a property expected to contain a string list
134 * unexpected or missing value, property or node. */
452 * fdt_first_property_offset - find the offset of a node's first property
456 * fdt_first_property_offset() finds the first property of the node at
460 * structure block offset of the property (>=0), on success
474 * @offset: structure block offset of a property
476 * fdt_next_property_offset() finds the property immediately after the
477 * one at the given structure block offset. This will be a property
478 * of the same node as the given property.
481 * structure block offset of the next property (>=0), on success
482 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
495 * @property_offset: property offset (int, lvalue)
501 * fdt_for_each_property_offset(property, fdt, node) {
502 * Use property
506 * if ((property < 0) && (property != -FDT_ERR_NOT_FOUND)) {
510 * Note that this is implemented as a macro and property is used as
514 #define fdt_for_each_property_offset(property, fdt, node) \
515 for (property = fdt_first_property_offset(fdt, node); \
516 property >= 0; \
517 property = fdt_next_property_offset(fdt, property))
520 * fdt_get_property_by_offset - retrieve the property at a given offset
522 * @offset: offset of the property to retrieve
527 * offset. If lenp is non-NULL, the length of the property value is
531 * pointer to the structure representing the property
532 * if lenp is non-NULL, *lenp contains the length of the property
548 * fdt_get_property_namelen - find a property based on substring
550 * @nodeoffset: offset of the node whose property to find
551 * @name: name of the property to find
556 * characters of name for matching the property name.
566 * fdt_get_property - find a given property in a given node
568 * @nodeoffset: offset of the node whose property to find
569 * @name: name of the property to find
573 * structure within the device tree blob corresponding to the property
575 * non-NULL, the length of the property value is also returned, in the
579 * pointer to the structure representing the property
580 * if lenp is non-NULL, *lenp contains the length of the property
584 * -FDT_ERR_NOTFOUND, node does not have named property
604 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
606 * @ffset: offset of the property to read
611 * property at structure block offset 'offset' (this will be a pointer
613 * lenp is non-NULL, the length of the property value is also
615 * the property's namne will also be returned in the char * pointed to
620 * pointer to the property's value
621 * if lenp is non-NULL, *lenp contains the length of the property
623 * if namep is non-NULL *namep contiains a pointer to the property
640 * fdt_getprop_namelen - get property value based on substring
642 * @nodeoffset: offset of the node whose property to find
643 * @name: name of the property to find
648 * characters of name for matching the property name.
663 * fdt_getprop - retrieve the value of a given property
665 * @nodeoffset: offset of the node whose property to find
666 * @name: name of the property to find
669 * fdt_getprop() retrieves a pointer to the value of the property
672 * If lenp is non-NULL, the length of the property value is also
676 * pointer to the property's value
677 * if lenp is non-NULL, *lenp contains the length of the property
681 * -FDT_ERR_NOTFOUND, node does not have named property
732 * value of the property named 'name' in the node /aliases.
845 * fdt_node_offset_by_prop_value - find nodes with a given property value
848 * @propname: property name to check
849 * @propval: property value to search for
853 * node after startoffset, which has a property named propname whose
908 * fdt_node_check_compatible: check a node's compatible property
915 * 'compatible' property with the given string as one of its elements,
919 * 0, if the node has a 'compatible' property listing the given string
920 * 1, if the node has a 'compatible' property, but it does not list
922 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
939 * node after startoffset, which has a 'compatible' property which
970 * fdt_stringlist_contains - check a string list property for a string
971 * @strlist: Property containing a list of strings to check
972 * @listlen: Length of property
977 * "compatible" property.
987 * @property: name of the property containing the string list
989 * the number of strings in the given property
990 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
991 * -FDT_ERR_NOTFOUND if the property does not exist
993 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
999 * @property: name of the property containing the string list
1002 * Note that it is possible for this function to succeed on property values
1010 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1011 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1014 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1021 * @property: name of the property containing the string list
1038 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1039 * -FDT_ERR_NOTFOUND if the property does not exist
1042 const char *property, int index,
1065 * When the node has a valid #address-cells property, returns its value.
1069 * 2, if the node has no #address-cells property
1071 * #address-cells property
1086 * When the node has a valid #size-cells property, returns its value.
1090 * 2, if the node has no #address-cells property
1092 * #size-cells property
1107 * fdt_setprop_inplace_namelen_partial - change a property's value,
1110 * @nodeoffset: offset of the node whose property to change
1111 * @name: name of the property to change
1113 * @idx: index of the property to change in the array
1114 * @val: pointer to data to replace the property value with
1115 * @len: length of the property value
1117 * Identical to fdt_setprop_inplace(), but modifies the given property
1130 * fdt_setprop_inplace - change a property's value, but not its size
1132 * @nodeoffset: offset of the node whose property to change
1133 * @name: name of the property to change
1134 * @val: pointer to data to replace the property value with
1135 * @len: length of the property value
1137 * fdt_setprop_inplace() replaces the value of a given property with
1139 * size of a property, and so will only work if len is equal to the
1140 * current length of the property.
1143 * the given property value, and will not alter or move any other part
1148 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1149 * -FDT_ERR_NOTFOUND, node does not have the named property
1163 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1165 * @nodeoffset: offset of the node whose property to change
1166 * @name: name of the property to change
1167 * @val: 32-bit integer value to replace the property with
1169 * fdt_setprop_inplace_u32() replaces the value of a given property
1171 * if necessary. This function cannot change the size of a property,
1172 * and so will only work if the property already exists and has length
1176 * the given property value, and will not alter or move any other part
1181 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1182 * -FDT_ERR_NOTFOUND, node does not have the named property
1198 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1200 * @nodeoffset: offset of the node whose property to change
1201 * @name: name of the property to change
1202 * @val: 64-bit integer value to replace the property with
1204 * fdt_setprop_inplace_u64() replaces the value of a given property
1206 * if necessary. This function cannot change the size of a property,
1207 * and so will only work if the property already exists and has length
1211 * the given property value, and will not alter or move any other part
1216 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1217 * -FDT_ERR_NOTFOUND, node does not have the named property
1233 * fdt_setprop_inplace_cell - change the value of a single-cell property
1244 * fdt_nop_property - replace a property with nop tags
1246 * @nodeoffset: offset of the node whose property to nop
1247 * @name: name of the property to nop
1249 * fdt_nop_property() will replace a given property's representation
1254 * the property, and will not alter or move any other part of the
1259 * -FDT_ERR_NOTFOUND, node does not have the named property
1319 * fdt_property_placeholder - add a new property and return a ptr to its value
1322 * @name: name of property to add
1323 * @len: length of property value in bytes
1421 * fdt_setprop - create or change a property
1423 * @nodeoffset: offset of the node whose property to change
1424 * @name: name of the property to change
1425 * @val: pointer to data to set the property value to
1426 * @len: length of the property value
1428 * fdt_setprop() sets the value of the named property in the given
1429 * node to the given value and length, creating the property if it
1438 * contain the new property value
1452 * fdt_setprop_u32 - set a property to a 32-bit integer
1454 * @nodeoffset: offset of the node whose property to change
1455 * @name: name of the property to change
1456 * @val: 32-bit integer value for the property (native endian)
1458 * fdt_setprop_u32() sets the value of the named property in the given
1460 * necessary), or creates a new property with that value if it does
1469 * contain the new property value
1487 * fdt_setprop_u64 - set a property to a 64-bit integer
1489 * @nodeoffset: offset of the node whose property to change
1490 * @name: name of the property to change
1491 * @val: 64-bit integer value for the property (native endian)
1493 * fdt_setprop_u64() sets the value of the named property in the given
1495 * necessary), or creates a new property with that value if it does
1504 * contain the new property value
1522 * fdt_setprop_cell - set a property to a single cell value
1533 * fdt_setprop_string - set a property to a string value
1535 * @nodeoffset: offset of the node whose property to change
1536 * @name: name of the property to change
1537 * @str: string value for the property
1539 * fdt_setprop_string() sets the value of the named property in the
1541 * string to determine the new length of the property), or creates a
1542 * new property with that value if it does not already exist.
1550 * contain the new property value
1565 * fdt_setprop_empty - set a property to an empty value
1567 * @nodeoffset: offset of the node whose property to change
1568 * @name: name of the property to change
1570 * fdt_setprop_empty() sets the value of the named property in the
1572 * property if it does not already exist.
1580 * contain the new property value
1594 * fdt_appendprop - append to or create a property
1596 * @nodeoffset: offset of the node whose property to change
1597 * @name: name of the property to append to
1598 * @val: pointer to data to append to the property value
1599 * @len: length of the data to append to the property value
1601 * fdt_appendprop() appends the value to the named property in the
1602 * given node, creating the property if it does not already exist.
1610 * contain the new property value
1624 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1626 * @nodeoffset: offset of the node whose property to change
1627 * @name: name of the property to change
1628 * @val: 32-bit integer value to append to the property (native endian)
1632 * property in the given node, or creates a new property with that
1641 * contain the new property value
1659 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1661 * @nodeoffset: offset of the node whose property to change
1662 * @name: name of the property to change
1663 * @val: 64-bit integer value to append to the property (native endian)
1667 * property in the given node, or creates a new property with that
1676 * contain the new property value
1694 * fdt_appendprop_cell - append a single cell value to a property
1705 * fdt_appendprop_string - append a string to a property
1707 * @nodeoffset: offset of the node whose property to change
1708 * @name: name of the property to change
1709 * @str: string value to append to the property
1712 * the named property in the given node, or creates a new property
1721 * contain the new property value
1735 * fdt_delprop - delete a property
1737 * @nodeoffset: offset of the node whose property to nop
1738 * @name: name of the property to nop
1740 * fdt_del_property() will delete the given property.
1747 * -FDT_ERR_NOTFOUND, node does not have the named property