Lines Matching defs: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)
153 uint8_t *bp = (uint8_t *)property;
175 static inline void fdt64_st(void *property, uint64_t value)
177 uint8_t *bp = (uint8_t *)property;
528 * first component is treated as an alias. That is, the property by
530 * property used in place of that first component.
591 * fdt_first_property_offset - find the offset of a node's first property
595 * fdt_first_property_offset() finds the first property of the node at
599 * structure block offset of the property (>=0), on success
613 * @offset: structure block offset of a property
615 * fdt_next_property_offset() finds the property immediately after the
616 * one at the given structure block offset. This will be a property
617 * of the same node as the given property.
620 * structure block offset of the next property (>=0), on success
621 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
634 * @property: property offset (int, lvalue)
640 * fdt_for_each_property_offset(property, fdt, node) {
641 * Use property
645 * if ((property < 0) && (property != -FDT_ERR_NOTFOUND)) {
649 * Note that this is implemented as a macro and property is used as
653 #define fdt_for_each_property_offset(property, fdt, node) \
654 for (property = fdt_first_property_offset(fdt, node); \
655 property >= 0; \
656 property = fdt_next_property_offset(fdt, property))
659 * fdt_get_property_by_offset - retrieve the property at a given offset
661 * @offset: offset of the property to retrieve
666 * offset. If lenp is non-NULL, the length of the property value is
673 * pointer to the structure representing the property
674 * if lenp is non-NULL, *lenp contains the length of the property
697 * fdt_get_property_namelen - find a property based on substring
699 * @nodeoffset: offset of the node whose property to find
700 * @name: name of the property to find
705 * characters of name for matching the property name.
707 * Return: pointer to the structure representing the property, or NULL
725 * fdt_get_property - find a given property in a given node
727 * @nodeoffset: offset of the node whose property to find
728 * @name: name of the property to find
732 * structure within the device tree blob corresponding to the property
734 * non-NULL, the length of the property value is also returned, in the
738 * pointer to the structure representing the property
739 * if lenp is non-NULL, *lenp contains the length of the property
743 * -FDT_ERR_NOTFOUND, node does not have named property
763 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
765 * @offset: offset of the property to read
770 * property at structure block offset 'offset' (this will be a pointer
772 * lenp is non-NULL, the length of the property value is also
774 * the property's name will also be returned in the char * pointed to
779 * pointer to the property's value
780 * if lenp is non-NULL, *lenp contains the length of the property
782 * if namep is non-NULL *namep contains a pointer to the property
799 * fdt_getprop_namelen - get property value based on substring
801 * @nodeoffset: offset of the node whose property to find
802 * @name: name of the property to find
807 * characters of name for matching the property name.
809 * Return: pointer to the property's value or NULL on error
824 * fdt_getprop - retrieve the value of a given property
826 * @nodeoffset: offset of the node whose property to find
827 * @name: name of the property to find
830 * fdt_getprop() retrieves a pointer to the value of the property
833 * If @lenp is non-NULL, the length of the property value is also
837 * pointer to the property's value
838 * if lenp is non-NULL, *lenp contains the length of the property
842 * -FDT_ERR_NOTFOUND, node does not have named property
896 * value of the property named @name in the node /aliases.
927 * the value of the property named @name in the node
929 * has been compiled with the -@ dtc option. Each property corresponds
931 * the property being the label and the value being the full path of
1045 * fdt_node_offset_by_prop_value - find nodes with a given property value
1048 * @propname: property name to check
1049 * @propval: property value to search for
1053 * node after startoffset, which has a property named propname whose
1108 * fdt_node_check_compatible - check a node's compatible property
1114 * @compatible property with the given string as one of its elements,
1118 * 0, if the node has a 'compatible' property listing the given string
1119 * 1, if the node has a 'compatible' property, but it does not list
1121 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1138 * node after startoffset, which has a 'compatible' property which
1169 * fdt_stringlist_contains - check a string list property for a string
1171 * @listlen: Length of property
1176 * "compatible" property.
1186 * @property: name of the property containing the string list
1189 * the number of strings in the given property
1190 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1191 * -FDT_ERR_NOTFOUND if the property does not exist
1193 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1199 * @property: name of the property containing the string list
1202 * Note that it is possible for this function to succeed on property values
1210 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1211 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1214 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1221 * @property: name of the property containing the string list
1238 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1239 * -FDT_ERR_NOTFOUND if the property does not exist
1242 const char *property, int index,
1265 * When the node has a valid #address-cells property, returns its value.
1269 * 2, if the node has no #address-cells property
1271 * #address-cells property
1286 * When the node has a valid #size-cells property, returns its value.
1290 * 1, if the node has no #size-cells property
1292 * #size-cells property
1307 * fdt_setprop_inplace_namelen_partial - change a property's value,
1310 * @nodeoffset: offset of the node whose property to change
1311 * @name: name of the property to change
1313 * @idx: index of the property to change in the array
1314 * @val: pointer to data to replace the property value with
1315 * @len: length of the property value
1317 * Identical to fdt_setprop_inplace(), but modifies the given property
1332 * fdt_setprop_inplace - change a property's value, but not its size
1334 * @nodeoffset: offset of the node whose property to change
1335 * @name: name of the property to change
1336 * @val: pointer to data to replace the property value with
1337 * @len: length of the property value
1339 * fdt_setprop_inplace() replaces the value of a given property with
1341 * size of a property, and so will only work if len is equal to the
1342 * current length of the property.
1345 * the given property value, and will not alter or move any other part
1350 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1351 * -FDT_ERR_NOTFOUND, node does not have the named property
1365 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1367 * @nodeoffset: offset of the node whose property to change
1368 * @name: name of the property to change
1369 * @val: 32-bit integer value to replace the property with
1371 * fdt_setprop_inplace_u32() replaces the value of a given property
1373 * if necessary. This function cannot change the size of a property,
1374 * and so will only work if the property already exists and has length
1378 * the given property value, and will not alter or move any other part
1383 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1384 * -FDT_ERR_NOTFOUND, node does not have the named property
1400 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1402 * @nodeoffset: offset of the node whose property to change
1403 * @name: name of the property to change
1404 * @val: 64-bit integer value to replace the property with
1406 * fdt_setprop_inplace_u64() replaces the value of a given property
1408 * if necessary. This function cannot change the size of a property,
1409 * and so will only work if the property already exists and has length
1413 * the given property value, and will not alter or move any other part
1418 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1419 * -FDT_ERR_NOTFOUND, node does not have the named property
1435 * fdt_setprop_inplace_cell - change the value of a single-cell property
1437 * @nodeoffset: offset of the node containing the property
1438 * @name: name of the property to change the value of
1451 * fdt_nop_property - replace a property with nop tags
1453 * @nodeoffset: offset of the node whose property to nop
1454 * @name: name of the property to nop
1456 * fdt_nop_property() will replace a given property's representation
1461 * the property, and will not alter or move any other part of the
1466 * -FDT_ERR_NOTFOUND, node does not have the named property
1506 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1567 * fdt_property_placeholder - add a new property and return a ptr to its value
1570 * @name: name of property to add
1571 * @len: length of property value in bytes
1670 * fdt_setprop_namelen - create or change a property
1672 * @nodeoffset: offset of the node whose property to change
1673 * @name: name of the property to change
1675 * @val: pointer to data to set the property value to
1676 * @len: length of the property value
1678 * fdt_setprop_namelen() sets the value of the named property in the given
1679 * node to the given value and length, creating the property if it
1688 * contain the new property value
1702 * fdt_setprop - create or change a property
1704 * @nodeoffset: offset of the node whose property to change
1705 * @name: name of the property to change
1706 * @val: pointer to data to set the property value to
1707 * @len: length of the property value
1709 * fdt_setprop() sets the value of the named property in the given
1710 * node to the given value and length, creating the property if it
1719 * contain the new property value
1737 * fdt_setprop_placeholder_namelen - allocate space for a property
1739 * @nodeoffset: offset of the node whose property to change
1740 * @name: name of the property to change
1742 * @len: length of the property value
1743 * @prop_data: return pointer to property data
1745 * fdt_setprop_placeholder_namelen() allocates the named property in the given node.
1746 * If the property exists it is resized. In either case a pointer to the
1747 * property data is returned.
1755 * contain the new property value
1769 * fdt_setprop_placeholder - allocate space for a property
1771 * @nodeoffset: offset of the node whose property to change
1772 * @name: name of the property to change
1773 * @len: length of the property value
1774 * @prop_data: return pointer to property data
1776 * fdt_setprop_placeholder() allocates the named property in the given node.
1777 * If the property exists it is resized. In either case a pointer to the
1778 * property data is returned.
1786 * contain the new property value
1805 * fdt_setprop_u32 - set a property to a 32-bit integer
1807 * @nodeoffset: offset of the node whose property to change
1808 * @name: name of the property to change
1809 * @val: 32-bit integer value for the property (native endian)
1811 * fdt_setprop_u32() sets the value of the named property in the given
1813 * necessary), or creates a new property with that value if it does
1822 * contain the new property value
1840 * fdt_setprop_u64 - set a property to a 64-bit integer
1842 * @nodeoffset: offset of the node whose property to change
1843 * @name: name of the property to change
1844 * @val: 64-bit integer value for the property (native endian)
1846 * fdt_setprop_u64() sets the value of the named property in the given
1848 * necessary), or creates a new property with that value if it does
1857 * contain the new property value
1875 * fdt_setprop_cell - set a property to a single cell value
1877 * @nodeoffset: offset of the node whose property to change
1878 * @name: name of the property to change
1879 * @val: 32-bit integer value for the property (native endian)
1892 * fdt_setprop_string - set a property to a string value
1894 * @nodeoffset: offset of the node whose property to change
1895 * @name: name of the property to change
1896 * @str: string value for the property
1898 * fdt_setprop_string() sets the value of the named property in the
1900 * string to determine the new length of the property), or creates a
1901 * new property with that value if it does not already exist.
1909 * contain the new property value
1923 * fdt_setprop_namelen_string - set a property to a string value
1925 * @nodeoffset: offset of the node whose property to change
1926 * @name: name of the property to change
1928 * @str: string value for the property
1930 * fdt_setprop_namelen_string() sets the value of the named property in the
1932 * string to determine the new length of the property), or creates a
1933 * new property with that value if it does not already exist.
1941 * contain the new property value
1956 * fdt_setprop_empty - set a property to an empty value
1958 * @nodeoffset: offset of the node whose property to change
1959 * @name: name of the property to change
1961 * fdt_setprop_empty() sets the value of the named property in the
1963 * property if it does not already exist.
1971 * contain the new property value
1985 * fdt_appendprop - append to or create a property
1987 * @nodeoffset: offset of the node whose property to change
1988 * @name: name of the property to append to
1989 * @val: pointer to data to append to the property value
1990 * @len: length of the data to append to the property value
1992 * fdt_appendprop() appends the value to the named property in the
1993 * given node, creating the property if it does not already exist.
2001 * contain the new property value
2015 * fdt_appendprop_u32 - append a 32-bit integer value to a property
2017 * @nodeoffset: offset of the node whose property to change
2018 * @name: name of the property to change
2019 * @val: 32-bit integer value to append to the property (native endian)
2023 * property in the given node, or creates a new property with that
2032 * contain the new property value
2050 * fdt_appendprop_u64 - append a 64-bit integer value to a property
2052 * @nodeoffset: offset of the node whose property to change
2053 * @name: name of the property to change
2054 * @val: 64-bit integer value to append to the property (native endian)
2058 * property in the given node, or creates a new property with that
2067 * contain the new property value
2085 * fdt_appendprop_cell - append a single cell value to a property
2087 * @nodeoffset: offset of the node whose property to change
2088 * @name: name of the property to change
2089 * @val: 32-bit integer value to append to the property (native endian)
2102 * fdt_appendprop_string - append a string to a property
2104 * @nodeoffset: offset of the node whose property to change
2105 * @name: name of the property to change
2106 * @str: string value to append to the property
2109 * the named property in the given node, or creates a new property
2118 * contain the new property value
2132 * fdt_appendprop_addrrange - append a address range property
2135 * @nodeoffset: offset of the node to add a property at
2136 * @name: name of property
2141 * address and size) to the value of the named property in the given
2142 * node, or creates a new property with that value if it does not
2155 * #address-cells property
2162 * contain a new property
2169 * fdt_delprop - delete a property
2171 * @nodeoffset: offset of the node whose property to nop
2172 * @name: name of the property to nop
2174 * fdt_delprop() will delete the given property.
2181 * -FDT_ERR_NOTFOUND, node does not have the named property