Lines Matching full:property
22 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */
24 /* FDT_ERR_EXISTS: Attempted to create a node or property which
43 * This can be caused either by an invalid phandle property
85 * or similar property with a bad format or value */
88 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
89 * value. For example: a property expected to contain a string list
95 * unexpected or missing value, property or node. */
151 static inline void fdt32_st(void *property, uint32_t value) in fdt32_st() argument
153 uint8_t *bp = (uint8_t *)property; in fdt32_st()
175 static inline void fdt64_st(void *property, uint64_t value) in fdt64_st() argument
177 uint8_t *bp = (uint8_t *)property; in fdt64_st()
566 * fdt_first_property_offset - find the offset of a node's first property
570 * fdt_first_property_offset() finds the first property of the node at
574 * structure block offset of the property (>=0), on success
588 * @offset: structure block offset of a property
590 * fdt_next_property_offset() finds the property immediately after the
591 * one at the given structure block offset. This will be a property
592 * of the same node as the given property.
595 * structure block offset of the next property (>=0), on success
596 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
609 * @property: property offset (int, lvalue)
615 * fdt_for_each_property_offset(property, fdt, node) {
616 * Use property
620 * if ((property < 0) && (property != -FDT_ERR_NOTFOUND)) {
624 * Note that this is implemented as a macro and property is used as
628 #define fdt_for_each_property_offset(property, fdt, node) \ argument
629 for (property = fdt_first_property_offset(fdt, node); \
630 property >= 0; \
631 property = fdt_next_property_offset(fdt, property))
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
648 * pointer to the structure representing the property
649 * if lenp is non-NULL, *lenp contains the length of the property
672 * fdt_get_property_namelen - find a property based on substring
674 * @nodeoffset: offset of the node whose property to find
675 * @name: name of the property to find
680 * characters of name for matching the property name.
682 * Return: pointer to the structure representing the property, or NULL
693 * fdt_get_property - find a given property in a given node
695 * @nodeoffset: offset of the node whose property to find
696 * @name: name of the property to find
700 * structure within the device tree blob corresponding to the property
702 * non-NULL, the length of the property value is also returned, in the
706 * pointer to the structure representing the property
707 * if lenp is non-NULL, *lenp contains the length of the property
711 * -FDT_ERR_NOTFOUND, node does not have named property
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
740 * lenp is non-NULL, the length of the property value is also
742 * the property's namne will also be returned in the char * pointed to
747 * pointer to the property's value
748 * if lenp is non-NULL, *lenp contains the length of the property
750 * if namep is non-NULL *namep contiains a pointer to the property
767 * fdt_getprop_namelen - get property value based on substring
769 * @nodeoffset: offset of the node whose property to find
770 * @name: name of the property to find
775 * characters of name for matching the property name.
777 * Return: pointer to the property's value or NULL on error
792 * fdt_getprop - retrieve the value of a given property
794 * @nodeoffset: offset of the node whose property to find
795 * @name: name of the property to find
798 * fdt_getprop() retrieves a pointer to the value of the property
801 * If @lenp is non-NULL, the length of the property value is also
805 * pointer to the property's value
806 * if lenp is non-NULL, *lenp contains the length of the property
810 * -FDT_ERR_NOTFOUND, node does not have named property
864 * value of the property named @name in the node /aliases.
977 * fdt_node_offset_by_prop_value - find nodes with a given property value
980 * @propname: property name to check
981 * @propval: property value to search for
985 * node after startoffset, which has a property named propname whose
1040 * fdt_node_check_compatible - check a node's compatible property
1046 * @compatible property with the given string as one of its elements,
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
1101 * fdt_stringlist_contains - check a string list property for a string
1102 * @strlist: Property containing a list of strings to check
1103 * @listlen: Length of property
1108 * "compatible" property.
1118 * @property: name of the property containing the string list
1121 * the number of strings in the given property
1122 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1123 * -FDT_ERR_NOTFOUND if the property does not exist
1125 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1131 * @property: name of the property containing the string list
1134 * Note that it is possible for this function to succeed on property values
1142 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1143 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1146 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1153 * @property: name of the property containing the string list
1170 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1171 * -FDT_ERR_NOTFOUND if the property does not exist
1174 const char *property, int index,
1197 * When the node has a valid #address-cells property, returns its value.
1201 * 2, if the node has no #address-cells property
1203 * #address-cells property
1218 * When the node has a valid #size-cells property, returns its value.
1222 * 1, if the node has no #size-cells property
1224 * #size-cells property
1239 * fdt_setprop_inplace_namelen_partial - change a property's value,
1242 * @nodeoffset: offset of the node whose property to change
1243 * @name: name of the property to change
1245 * @idx: index of the property to change in the array
1246 * @val: pointer to data to replace the property value with
1247 * @len: length of the property value
1249 * Identical to fdt_setprop_inplace(), but modifies the given property
1264 * fdt_setprop_inplace - change a property's value, but not its size
1266 * @nodeoffset: offset of the node whose property to change
1267 * @name: name of the property to change
1268 * @val: pointer to data to replace the property value with
1269 * @len: length of the property value
1271 * fdt_setprop_inplace() replaces the value of a given property with
1273 * size of a property, and so will only work if len is equal to the
1274 * current length of the property.
1277 * the given property value, and will not alter or move any other part
1282 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1283 * -FDT_ERR_NOTFOUND, node does not have the named property
1297 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1299 * @nodeoffset: offset of the node whose property to change
1300 * @name: name of the property to change
1301 * @val: 32-bit integer value to replace the property with
1303 * fdt_setprop_inplace_u32() 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 4
1316 * -FDT_ERR_NOTFOUND, node does not have the named property
1332 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1334 * @nodeoffset: offset of the node whose property to change
1335 * @name: name of the property to change
1336 * @val: 64-bit integer value to replace the property with
1338 * fdt_setprop_inplace_u64() replaces the value of a given property
1340 * if necessary. This function cannot change the size of a property,
1341 * and so will only work if the property already exists and has length
1345 * the given property value, and will not alter or move any other part
1350 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1351 * -FDT_ERR_NOTFOUND, node does not have the named property
1367 * fdt_setprop_inplace_cell - change the value of a single-cell property
1369 * @nodeoffset: offset of the node containing the property
1370 * @name: name of the property to change the value of
1383 * fdt_nop_property - replace a property with nop tags
1385 * @nodeoffset: offset of the node whose property to nop
1386 * @name: name of the property to nop
1388 * fdt_nop_property() will replace a given property's representation
1393 * the property, and will not alter or move any other part of the
1398 * -FDT_ERR_NOTFOUND, node does not have the named property
1438 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1499 * fdt_property_placeholder - add a new property and return a ptr to its value
1502 * @name: name of property to add
1503 * @len: length of property value in bytes
1602 * fdt_setprop - create or change a property
1604 * @nodeoffset: offset of the node whose property to change
1605 * @name: name of the property to change
1606 * @val: pointer to data to set the property value to
1607 * @len: length of the property value
1609 * fdt_setprop() sets the value of the named property in the given
1610 * node to the given value and length, creating the property if it
1619 * contain the new property value
1633 * fdt_setprop_placeholder - allocate space for a property
1635 * @nodeoffset: offset of the node whose property to change
1636 * @name: name of the property to change
1637 * @len: length of the property value
1638 * @prop_data: return pointer to property data
1640 * fdt_setprop_placeholer() allocates the named property in the given node.
1641 * If the property exists it is resized. In either case a pointer to the
1642 * property data is returned.
1650 * contain the new property value
1664 * fdt_setprop_u32 - set a property to a 32-bit integer
1666 * @nodeoffset: offset of the node whose property to change
1667 * @name: name of the property to change
1668 * @val: 32-bit integer value for the property (native endian)
1670 * fdt_setprop_u32() sets the value of the named property in the given
1672 * necessary), or creates a new property with that value if it does
1681 * contain the new property value
1699 * fdt_setprop_u64 - set a property to a 64-bit integer
1701 * @nodeoffset: offset of the node whose property to change
1702 * @name: name of the property to change
1703 * @val: 64-bit integer value for the property (native endian)
1705 * fdt_setprop_u64() sets the value of the named property in the given
1707 * necessary), or creates a new property with that value if it does
1716 * contain the new property value
1734 * fdt_setprop_cell - set a property to a single cell value
1736 * @nodeoffset: offset of the node whose property to change
1737 * @name: name of the property to change
1738 * @val: 32-bit integer value for the property (native endian)
1751 * fdt_setprop_string - set a property to a string value
1753 * @nodeoffset: offset of the node whose property to change
1754 * @name: name of the property to change
1755 * @str: string value for the property
1757 * fdt_setprop_string() sets the value of the named property in the
1759 * string to determine the new length of the property), or creates a
1760 * new property with that value if it does not already exist.
1768 * contain the new property value
1783 * fdt_setprop_empty - set a property to an empty value
1785 * @nodeoffset: offset of the node whose property to change
1786 * @name: name of the property to change
1788 * fdt_setprop_empty() sets the value of the named property in the
1790 * property if it does not already exist.
1798 * contain the new property value
1812 * fdt_appendprop - append to or create a property
1814 * @nodeoffset: offset of the node whose property to change
1815 * @name: name of the property to append to
1816 * @val: pointer to data to append to the property value
1817 * @len: length of the data to append to the property value
1819 * fdt_appendprop() appends the value to the named property in the
1820 * given node, creating the property if it does not already exist.
1828 * contain the new property value
1842 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1844 * @nodeoffset: offset of the node whose property to change
1845 * @name: name of the property to change
1846 * @val: 32-bit integer value to append to the property (native endian)
1850 * property in the given node, or creates a new property with that
1859 * contain the new property value
1877 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1879 * @nodeoffset: offset of the node whose property to change
1880 * @name: name of the property to change
1881 * @val: 64-bit integer value to append to the property (native endian)
1885 * property in the given node, or creates a new property with that
1894 * contain the new property value
1912 * fdt_appendprop_cell - append a single cell value to a property
1914 * @nodeoffset: offset of the node whose property to change
1915 * @name: name of the property to change
1916 * @val: 32-bit integer value to append to the property (native endian)
1929 * fdt_appendprop_string - append a string to a property
1931 * @nodeoffset: offset of the node whose property to change
1932 * @name: name of the property to change
1933 * @str: string value to append to the property
1936 * the named property in the given node, or creates a new property
1945 * contain the new property value
1959 * fdt_appendprop_addrrange - append a address range property
1962 * @nodeoffset: offset of the node to add a property at
1963 * @name: name of property
1968 * address and size) to the value of the named property in the given
1969 * node, or creates a new property with that value if it does not
1982 * #address-cells property
1989 * contain a new property
1996 * fdt_delprop - delete a property
1998 * @nodeoffset: offset of the node whose property to nop
1999 * @name: name of the property to nop
2001 * fdt_del_property() will delete the given property.
2008 * -FDT_ERR_NOTFOUND, node does not have the named property