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. */
144 static inline void fdt32_st(void *property, uint32_t value) in fdt32_st() argument
146 uint8_t *bp = (uint8_t *)property; in fdt32_st()
168 static inline void fdt64_st(void *property, uint64_t value) in fdt64_st() argument
170 uint8_t *bp = (uint8_t *)property; in fdt64_st()
559 * fdt_first_property_offset - find the offset of a node's first property
563 * fdt_first_property_offset() finds the first property of the node at
567 * structure block offset of the property (>=0), on success
581 * @offset: structure block offset of a property
583 * fdt_next_property_offset() finds the property immediately after the
584 * one at the given structure block offset. This will be a property
585 * of the same node as the given property.
588 * structure block offset of the next property (>=0), on success
589 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
602 * @property: property offset (int, lvalue)
608 * fdt_for_each_property_offset(property, fdt, node) {
609 * Use property
613 * if ((property < 0) && (property != -FDT_ERR_NOTFOUND)) {
617 * Note that this is implemented as a macro and property is used as
621 #define fdt_for_each_property_offset(property, fdt, node) \ argument
622 for (property = fdt_first_property_offset(fdt, node); \
623 property >= 0; \
624 property = fdt_next_property_offset(fdt, property))
627 * fdt_get_property_by_offset - retrieve the property at a given offset
629 * @offset: offset of the property to retrieve
634 * offset. If lenp is non-NULL, the length of the property value is
641 * pointer to the structure representing the property
642 * if lenp is non-NULL, *lenp contains the length of the property
658 * fdt_get_property_namelen - find a property based on substring
660 * @nodeoffset: offset of the node whose property to find
661 * @name: name of the property to find
666 * characters of name for matching the property name.
668 * Return: pointer to the structure representing the property, or NULL
679 * fdt_get_property - find a given property in a given node
681 * @nodeoffset: offset of the node whose property to find
682 * @name: name of the property to find
686 * structure within the device tree blob corresponding to the property
688 * non-NULL, the length of the property value is also returned, in the
692 * pointer to the structure representing the property
693 * if lenp is non-NULL, *lenp contains the length of the property
697 * -FDT_ERR_NOTFOUND, node does not have named property
717 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
719 * @offset: offset of the property to read
724 * property at structure block offset 'offset' (this will be a pointer
726 * lenp is non-NULL, the length of the property value is also
728 * the property's namne will also be returned in the char * pointed to
733 * pointer to the property's value
734 * if lenp is non-NULL, *lenp contains the length of the property
736 * if namep is non-NULL *namep contiains a pointer to the property
753 * fdt_getprop_namelen - get property value based on substring
755 * @nodeoffset: offset of the node whose property to find
756 * @name: name of the property to find
761 * characters of name for matching the property name.
763 * Return: pointer to the property's value or NULL on error
778 * fdt_getprop - retrieve the value of a given property
780 * @nodeoffset: offset of the node whose property to find
781 * @name: name of the property to find
784 * fdt_getprop() retrieves a pointer to the value of the property
787 * If @lenp is non-NULL, the length of the property value is also
791 * pointer to the property's value
792 * if lenp is non-NULL, *lenp contains the length of the property
796 * -FDT_ERR_NOTFOUND, node does not have named property
850 * value of the property named @name in the node /aliases.
963 * fdt_node_offset_by_prop_value - find nodes with a given property value
966 * @propname: property name to check
967 * @propval: property value to search for
971 * node after startoffset, which has a property named propname whose
1026 * fdt_node_check_compatible - check a node's compatible property
1032 * @compatible property with the given string as one of its elements,
1036 * 0, if the node has a 'compatible' property listing the given string
1037 * 1, if the node has a 'compatible' property, but it does not list
1039 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1056 * node after startoffset, which has a 'compatible' property which
1087 * fdt_stringlist_contains - check a string list property for a string
1088 * @strlist: Property containing a list of strings to check
1089 * @listlen: Length of property
1094 * "compatible" property.
1104 * @property: name of the property containing the string list
1107 * the number of strings in the given property
1108 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1109 * -FDT_ERR_NOTFOUND if the property does not exist
1111 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1117 * @property: name of the property containing the string list
1120 * Note that it is possible for this function to succeed on property values
1128 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1129 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1132 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1139 * @property: name of the property containing the string list
1156 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1157 * -FDT_ERR_NOTFOUND if the property does not exist
1160 const char *property, int index,
1183 * When the node has a valid #address-cells property, returns its value.
1187 * 2, if the node has no #address-cells property
1189 * #address-cells property
1204 * When the node has a valid #size-cells property, returns its value.
1208 * 1, if the node has no #size-cells property
1210 * #size-cells property
1225 * fdt_setprop_inplace_namelen_partial - change a property's value,
1228 * @nodeoffset: offset of the node whose property to change
1229 * @name: name of the property to change
1231 * @idx: index of the property to change in the array
1232 * @val: pointer to data to replace the property value with
1233 * @len: length of the property value
1235 * Identical to fdt_setprop_inplace(), but modifies the given property
1250 * fdt_setprop_inplace - change a property's value, but not its size
1252 * @nodeoffset: offset of the node whose property to change
1253 * @name: name of the property to change
1254 * @val: pointer to data to replace the property value with
1255 * @len: length of the property value
1257 * fdt_setprop_inplace() replaces the value of a given property with
1259 * size of a property, and so will only work if len is equal to the
1260 * current length of the property.
1263 * the given property value, and will not alter or move any other part
1268 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1269 * -FDT_ERR_NOTFOUND, node does not have the named property
1283 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1285 * @nodeoffset: offset of the node whose property to change
1286 * @name: name of the property to change
1287 * @val: 32-bit integer value to replace the property with
1289 * fdt_setprop_inplace_u32() replaces the value of a given property
1291 * if necessary. This function cannot change the size of a property,
1292 * and so will only work if the property already exists and has length
1296 * the given property value, and will not alter or move any other part
1301 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1302 * -FDT_ERR_NOTFOUND, node does not have the named property
1318 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1320 * @nodeoffset: offset of the node whose property to change
1321 * @name: name of the property to change
1322 * @val: 64-bit integer value to replace the property with
1324 * fdt_setprop_inplace_u64() replaces the value of a given property
1326 * if necessary. This function cannot change the size of a property,
1327 * and so will only work if the property already exists and has length
1331 * the given property value, and will not alter or move any other part
1336 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1337 * -FDT_ERR_NOTFOUND, node does not have the named property
1353 * fdt_setprop_inplace_cell - change the value of a single-cell property
1355 * @nodeoffset: offset of the node containing the property
1356 * @name: name of the property to change the value of
1369 * fdt_nop_property - replace a property with nop tags
1371 * @nodeoffset: offset of the node whose property to nop
1372 * @name: name of the property to nop
1374 * fdt_nop_property() will replace a given property's representation
1379 * the property, and will not alter or move any other part of the
1384 * -FDT_ERR_NOTFOUND, node does not have the named property
1424 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1485 * fdt_property_placeholder - add a new property and return a ptr to its value
1488 * @name: name of property to add
1489 * @len: length of property value in bytes
1588 * fdt_setprop - create or change a property
1590 * @nodeoffset: offset of the node whose property to change
1591 * @name: name of the property to change
1592 * @val: pointer to data to set the property value to
1593 * @len: length of the property value
1595 * fdt_setprop() sets the value of the named property in the given
1596 * node to the given value and length, creating the property if it
1605 * contain the new property value
1619 * fdt_setprop_placeholder - allocate space for a property
1621 * @nodeoffset: offset of the node whose property to change
1622 * @name: name of the property to change
1623 * @len: length of the property value
1624 * @prop_data: return pointer to property data
1626 * fdt_setprop_placeholer() allocates the named property in the given node.
1627 * If the property exists it is resized. In either case a pointer to the
1628 * property data is returned.
1636 * contain the new property value
1650 * fdt_setprop_u32 - set a property to a 32-bit integer
1652 * @nodeoffset: offset of the node whose property to change
1653 * @name: name of the property to change
1654 * @val: 32-bit integer value for the property (native endian)
1656 * fdt_setprop_u32() sets the value of the named property in the given
1658 * necessary), or creates a new property with that value if it does
1667 * contain the new property value
1685 * fdt_setprop_u64 - set a property to a 64-bit integer
1687 * @nodeoffset: offset of the node whose property to change
1688 * @name: name of the property to change
1689 * @val: 64-bit integer value for the property (native endian)
1691 * fdt_setprop_u64() sets the value of the named property in the given
1693 * necessary), or creates a new property with that value if it does
1702 * contain the new property value
1720 * fdt_setprop_cell - set a property to a single cell value
1722 * @nodeoffset: offset of the node whose property to change
1723 * @name: name of the property to change
1724 * @val: 32-bit integer value for the property (native endian)
1737 * fdt_setprop_string - set a property to a string value
1739 * @nodeoffset: offset of the node whose property to change
1740 * @name: name of the property to change
1741 * @str: string value for the property
1743 * fdt_setprop_string() sets the value of the named property in the
1745 * string to determine the new length of the property), or creates a
1746 * new property with that value if it does not already exist.
1754 * contain the new property value
1769 * fdt_setprop_empty - set a property to an empty value
1771 * @nodeoffset: offset of the node whose property to change
1772 * @name: name of the property to change
1774 * fdt_setprop_empty() sets the value of the named property in the
1776 * property if it does not already exist.
1784 * contain the new property value
1798 * fdt_appendprop - append to or create a property
1800 * @nodeoffset: offset of the node whose property to change
1801 * @name: name of the property to append to
1802 * @val: pointer to data to append to the property value
1803 * @len: length of the data to append to the property value
1805 * fdt_appendprop() appends the value to the named property in the
1806 * given node, creating the property if it does not already exist.
1814 * contain the new property value
1828 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1830 * @nodeoffset: offset of the node whose property to change
1831 * @name: name of the property to change
1832 * @val: 32-bit integer value to append to the property (native endian)
1836 * property in the given node, or creates a new property with that
1845 * contain the new property value
1863 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1865 * @nodeoffset: offset of the node whose property to change
1866 * @name: name of the property to change
1867 * @val: 64-bit integer value to append to the property (native endian)
1871 * property in the given node, or creates a new property with that
1880 * contain the new property value
1898 * fdt_appendprop_cell - append a single cell value to a property
1900 * @nodeoffset: offset of the node whose property to change
1901 * @name: name of the property to change
1902 * @val: 32-bit integer value to append to the property (native endian)
1915 * fdt_appendprop_string - append a string to a property
1917 * @nodeoffset: offset of the node whose property to change
1918 * @name: name of the property to change
1919 * @str: string value to append to the property
1922 * the named property in the given node, or creates a new property
1931 * contain the new property value
1945 * fdt_appendprop_addrrange - append a address range property
1948 * @nodeoffset: offset of the node to add a property at
1949 * @name: name of property
1954 * address and size) to the value of the named property in the given
1955 * node, or creates a new property with that value if it does not
1968 * #address-cells property
1975 * contain a new property
1982 * fdt_delprop - delete a property
1984 * @nodeoffset: offset of the node whose property to nop
1985 * @name: name of the property to nop
1987 * fdt_del_property() will delete the given property.
1994 * -FDT_ERR_NOTFOUND, node does not have the named property