Lines Matching full:property

21 	/* FDT_ERR_NOTFOUND: The requested node or property does not exist */
23 /* FDT_ERR_EXISTS: Attempted to create a node or property which
42 * This can be caused either by an invalid phandle property
84 * or similar property with a bad format or value */
87 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
88 * value. For example: a property expected to contain a string list
94 * unexpected or missing value, property or node. */
141 static inline void fdt32_st(void *property, uint32_t value) in fdt32_st() argument
143 uint8_t *bp = (uint8_t *)property; in fdt32_st()
165 static inline void fdt64_st(void *property, uint64_t value) in fdt64_st() argument
167 uint8_t *bp = (uint8_t *)property; in fdt64_st()
548 * fdt_first_property_offset - find the offset of a node's first property
552 * fdt_first_property_offset() finds the first property of the node at
556 * structure block offset of the property (>=0), on success
570 * @offset: structure block offset of a property
572 * fdt_next_property_offset() finds the property immediately after the
573 * one at the given structure block offset. This will be a property
574 * of the same node as the given property.
577 * structure block offset of the next property (>=0), on success
578 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
591 * @property_offset: property offset (int, lvalue)
597 * fdt_for_each_property_offset(property, fdt, node) {
598 * Use property
602 * if ((property < 0) && (property != -FDT_ERR_NOTFOUND)) {
606 * Note that this is implemented as a macro and property is used as
610 #define fdt_for_each_property_offset(property, fdt, node) \ argument
611 for (property = fdt_first_property_offset(fdt, node); \
612 property >= 0; \
613 property = fdt_next_property_offset(fdt, property))
616 * fdt_get_property_by_offset - retrieve the property at a given offset
618 * @offset: offset of the property to retrieve
623 * offset. If lenp is non-NULL, the length of the property value is
630 * pointer to the structure representing the property
631 * if lenp is non-NULL, *lenp contains the length of the property
647 * fdt_get_property_namelen - find a property based on substring
649 * @nodeoffset: offset of the node whose property to find
650 * @name: name of the property to find
655 * characters of name for matching the property name.
665 * fdt_get_property - find a given property in a given node
667 * @nodeoffset: offset of the node whose property to find
668 * @name: name of the property to find
672 * structure within the device tree blob corresponding to the property
674 * non-NULL, the length of the property value is also returned, in the
678 * pointer to the structure representing the property
679 * if lenp is non-NULL, *lenp contains the length of the property
683 * -FDT_ERR_NOTFOUND, node does not have named property
703 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
705 * @offset: offset of the property to read
710 * property at structure block offset 'offset' (this will be a pointer
712 * lenp is non-NULL, the length of the property value is also
714 * the property's namne will also be returned in the char * pointed to
719 * pointer to the property's value
720 * if lenp is non-NULL, *lenp contains the length of the property
722 * if namep is non-NULL *namep contiains a pointer to the property
739 * fdt_getprop_namelen - get property value based on substring
741 * @nodeoffset: offset of the node whose property to find
742 * @name: name of the property to find
747 * characters of name for matching the property name.
762 * fdt_getprop - retrieve the value of a given property
764 * @nodeoffset: offset of the node whose property to find
765 * @name: name of the property to find
768 * fdt_getprop() retrieves a pointer to the value of the property
771 * If lenp is non-NULL, the length of the property value is also
775 * pointer to the property's value
776 * if lenp is non-NULL, *lenp contains the length of the property
780 * -FDT_ERR_NOTFOUND, node does not have named property
831 * value of the property named 'name' in the node /aliases.
944 * fdt_node_offset_by_prop_value - find nodes with a given property value
947 * @propname: property name to check
948 * @propval: property value to search for
952 * node after startoffset, which has a property named propname whose
1007 * fdt_node_check_compatible: check a node's compatible property
1014 * 'compatible' property with the given string as one of its elements,
1018 * 0, if the node has a 'compatible' property listing the given string
1019 * 1, if the node has a 'compatible' property, but it does not list
1021 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1038 * node after startoffset, which has a 'compatible' property which
1069 * fdt_stringlist_contains - check a string list property for a string
1070 * @strlist: Property containing a list of strings to check
1071 * @listlen: Length of property
1076 * "compatible" property.
1086 * @property: name of the property containing the string list
1088 * the number of strings in the given property
1089 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1090 * -FDT_ERR_NOTFOUND if the property does not exist
1092 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1098 * @property: name of the property containing the string list
1101 * Note that it is possible for this function to succeed on property values
1109 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1110 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1113 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1120 * @property: name of the property containing the string list
1137 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1138 * -FDT_ERR_NOTFOUND if the property does not exist
1141 const char *property, int index,
1164 * When the node has a valid #address-cells property, returns its value.
1168 * 2, if the node has no #address-cells property
1170 * #address-cells property
1185 * When the node has a valid #size-cells property, returns its value.
1189 * 1, if the node has no #size-cells property
1191 * #size-cells property
1206 * fdt_setprop_inplace_namelen_partial - change a property's value,
1209 * @nodeoffset: offset of the node whose property to change
1210 * @name: name of the property to change
1212 * @idx: index of the property to change in the array
1213 * @val: pointer to data to replace the property value with
1214 * @len: length of the property value
1216 * Identical to fdt_setprop_inplace(), but modifies the given property
1229 * fdt_setprop_inplace - change a property's value, but not its size
1231 * @nodeoffset: offset of the node whose property to change
1232 * @name: name of the property to change
1233 * @val: pointer to data to replace the property value with
1234 * @len: length of the property value
1236 * fdt_setprop_inplace() replaces the value of a given property with
1238 * size of a property, and so will only work if len is equal to the
1239 * current length of the property.
1242 * the given property value, and will not alter or move any other part
1247 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1248 * -FDT_ERR_NOTFOUND, node does not have the named property
1262 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1264 * @nodeoffset: offset of the node whose property to change
1265 * @name: name of the property to change
1266 * @val: 32-bit integer value to replace the property with
1268 * fdt_setprop_inplace_u32() replaces the value of a given property
1270 * if necessary. This function cannot change the size of a property,
1271 * and so will only work if the property already exists and has length
1275 * the given property value, and will not alter or move any other part
1280 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1281 * -FDT_ERR_NOTFOUND, node does not have the named property
1297 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1299 * @nodeoffset: offset of the node whose property to change
1300 * @name: name of the property to change
1301 * @val: 64-bit integer value to replace the property with
1303 * fdt_setprop_inplace_u64() replaces the value of a given property
1305 * if necessary. This function cannot change the size of a property,
1306 * and so will only work if the property already exists and has length
1310 * the given property value, and will not alter or move any other part
1315 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1316 * -FDT_ERR_NOTFOUND, node does not have the named property
1332 * fdt_setprop_inplace_cell - change the value of a single-cell property
1343 * fdt_nop_property - replace a property with nop tags
1345 * @nodeoffset: offset of the node whose property to nop
1346 * @name: name of the property to nop
1348 * fdt_nop_property() will replace a given property's representation
1353 * the property, and will not alter or move any other part of the
1358 * -FDT_ERR_NOTFOUND, node does not have the named property
1398 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1459 * fdt_property_placeholder - add a new property and return a ptr to its value
1462 * @name: name of property to add
1463 * @len: length of property value in bytes
1561 * fdt_setprop - create or change a property
1563 * @nodeoffset: offset of the node whose property to change
1564 * @name: name of the property to change
1565 * @val: pointer to data to set the property value to
1566 * @len: length of the property value
1568 * fdt_setprop() sets the value of the named property in the given
1569 * node to the given value and length, creating the property if it
1578 * contain the new property value
1592 * fdt_setprop_placeholder - allocate space for a property
1594 * @nodeoffset: offset of the node whose property to change
1595 * @name: name of the property to change
1596 * @len: length of the property value
1597 * @prop_data: return pointer to property data
1599 * fdt_setprop_placeholer() allocates the named property in the given node.
1600 * If the property exists it is resized. In either case a pointer to the
1601 * property data is returned.
1609 * contain the new property value
1623 * fdt_setprop_u32 - set a property to a 32-bit integer
1625 * @nodeoffset: offset of the node whose property to change
1626 * @name: name of the property to change
1627 * @val: 32-bit integer value for the property (native endian)
1629 * fdt_setprop_u32() sets the value of the named property in the given
1631 * necessary), or creates a new property with that value if it does
1640 * contain the new property value
1658 * fdt_setprop_u64 - set a property to a 64-bit integer
1660 * @nodeoffset: offset of the node whose property to change
1661 * @name: name of the property to change
1662 * @val: 64-bit integer value for the property (native endian)
1664 * fdt_setprop_u64() sets the value of the named property in the given
1666 * necessary), or creates a new property with that value if it does
1675 * contain the new property value
1693 * fdt_setprop_cell - set a property to a single cell value
1704 * fdt_setprop_string - set a property to a string value
1706 * @nodeoffset: offset of the node whose property to change
1707 * @name: name of the property to change
1708 * @str: string value for the property
1710 * fdt_setprop_string() sets the value of the named property in the
1712 * string to determine the new length of the property), or creates a
1713 * new property with that value if it does not already exist.
1721 * contain the new property value
1736 * fdt_setprop_empty - set a property to an empty value
1738 * @nodeoffset: offset of the node whose property to change
1739 * @name: name of the property to change
1741 * fdt_setprop_empty() sets the value of the named property in the
1743 * property if it does not already exist.
1751 * contain the new property value
1765 * fdt_appendprop - append to or create a property
1767 * @nodeoffset: offset of the node whose property to change
1768 * @name: name of the property to append to
1769 * @val: pointer to data to append to the property value
1770 * @len: length of the data to append to the property value
1772 * fdt_appendprop() appends the value to the named property in the
1773 * given node, creating the property if it does not already exist.
1781 * contain the new property value
1795 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1797 * @nodeoffset: offset of the node whose property to change
1798 * @name: name of the property to change
1799 * @val: 32-bit integer value to append to the property (native endian)
1803 * property in the given node, or creates a new property with that
1812 * contain the new property value
1830 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1832 * @nodeoffset: offset of the node whose property to change
1833 * @name: name of the property to change
1834 * @val: 64-bit integer value to append to the property (native endian)
1838 * property in the given node, or creates a new property with that
1847 * contain the new property value
1865 * fdt_appendprop_cell - append a single cell value to a property
1876 * fdt_appendprop_string - append a string to a property
1878 * @nodeoffset: offset of the node whose property to change
1879 * @name: name of the property to change
1880 * @str: string value to append to the property
1883 * the named property in the given node, or creates a new property
1892 * contain the new property value
1906 * fdt_appendprop_addrrange - append a address range property
1909 * @nodeoffset: offset of the node to add a property at
1910 * @name: name of property
1915 * address and size) to the value of the named property in the given
1916 * node, or creates a new property with that value if it does not
1929 * #address-cells property
1936 * contain a new property
1943 * fdt_delprop - delete a property
1945 * @nodeoffset: offset of the node whose property to nop
1946 * @name: name of the property to nop
1948 * fdt_del_property() will delete the given property.
1955 * -FDT_ERR_NOTFOUND, node does not have the named property