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()
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) \ argument
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
718 * fdt_get_property - find a given property in a given node
720 * @nodeoffset: offset of the node whose property to find
721 * @name: name of the property to find
725 * structure within the device tree blob corresponding to the property
727 * non-NULL, the length of the property value is also returned, in the
731 * pointer to the structure representing the property
732 * if lenp is non-NULL, *lenp contains the length of the property
736 * -FDT_ERR_NOTFOUND, node does not have named property
756 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
758 * @offset: offset of the property to read
763 * property at structure block offset 'offset' (this will be a pointer
765 * lenp is non-NULL, the length of the property value is also
767 * the property's namne will also be returned in the char * pointed to
772 * pointer to the property's value
773 * if lenp is non-NULL, *lenp contains the length of the property
775 * if namep is non-NULL *namep contiains a pointer to the property
792 * fdt_getprop_namelen - get property value based on substring
794 * @nodeoffset: offset of the node whose property to find
795 * @name: name of the property to find
800 * characters of name for matching the property name.
802 * Return: pointer to the property's value or NULL on error
817 * fdt_getprop - retrieve the value of a given property
819 * @nodeoffset: offset of the node whose property to find
820 * @name: name of the property to find
823 * fdt_getprop() retrieves a pointer to the value of the property
826 * If @lenp is non-NULL, the length of the property value is also
830 * pointer to the property's value
831 * if lenp is non-NULL, *lenp contains the length of the property
835 * -FDT_ERR_NOTFOUND, node does not have named property
889 * value of the property named @name in the node /aliases.
920 * the value of the property named @name in the node
922 * has been compiled with the -@ dtc option. Each property corresponds
924 * the property being the label and the value being the full path of
1038 * fdt_node_offset_by_prop_value - find nodes with a given property value
1041 * @propname: property name to check
1042 * @propval: property value to search for
1046 * node after startoffset, which has a property named propname whose
1101 * fdt_node_check_compatible - check a node's compatible property
1107 * @compatible property with the given string as one of its elements,
1111 * 0, if the node has a 'compatible' property listing the given string
1112 * 1, if the node has a 'compatible' property, but it does not list
1114 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1131 * node after startoffset, which has a 'compatible' property which
1162 * fdt_stringlist_contains - check a string list property for a string
1163 * @strlist: Property containing a list of strings to check
1164 * @listlen: Length of property
1169 * "compatible" property.
1179 * @property: name of the property containing the string list
1182 * the number of strings in the given property
1183 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1184 * -FDT_ERR_NOTFOUND if the property does not exist
1186 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1192 * @property: name of the property containing the string list
1195 * Note that it is possible for this function to succeed on property values
1203 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1204 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1207 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1214 * @property: name of the property containing the string list
1231 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1232 * -FDT_ERR_NOTFOUND if the property does not exist
1235 const char *property, int index,
1258 * When the node has a valid #address-cells property, returns its value.
1262 * 2, if the node has no #address-cells property
1264 * #address-cells property
1279 * When the node has a valid #size-cells property, returns its value.
1283 * 1, if the node has no #size-cells property
1285 * #size-cells property
1300 * fdt_setprop_inplace_namelen_partial - change a property's value,
1303 * @nodeoffset: offset of the node whose property to change
1304 * @name: name of the property to change
1306 * @idx: index of the property to change in the array
1307 * @val: pointer to data to replace the property value with
1308 * @len: length of the property value
1310 * Identical to fdt_setprop_inplace(), but modifies the given property
1325 * fdt_setprop_inplace - change a property's value, but not its size
1327 * @nodeoffset: offset of the node whose property to change
1328 * @name: name of the property to change
1329 * @val: pointer to data to replace the property value with
1330 * @len: length of the property value
1332 * fdt_setprop_inplace() replaces the value of a given property with
1334 * size of a property, and so will only work if len is equal to the
1335 * current length of the property.
1338 * the given property value, and will not alter or move any other part
1343 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1344 * -FDT_ERR_NOTFOUND, node does not have the named property
1358 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1360 * @nodeoffset: offset of the node whose property to change
1361 * @name: name of the property to change
1362 * @val: 32-bit integer value to replace the property with
1364 * fdt_setprop_inplace_u32() replaces the value of a given property
1366 * if necessary. This function cannot change the size of a property,
1367 * and so will only work if the property already exists and has length
1371 * the given property value, and will not alter or move any other part
1376 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1377 * -FDT_ERR_NOTFOUND, node does not have the named property
1393 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1395 * @nodeoffset: offset of the node whose property to change
1396 * @name: name of the property to change
1397 * @val: 64-bit integer value to replace the property with
1399 * fdt_setprop_inplace_u64() replaces the value of a given property
1401 * if necessary. This function cannot change the size of a property,
1402 * and so will only work if the property already exists and has length
1406 * the given property value, and will not alter or move any other part
1411 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1412 * -FDT_ERR_NOTFOUND, node does not have the named property
1428 * fdt_setprop_inplace_cell - change the value of a single-cell property
1430 * @nodeoffset: offset of the node containing the property
1431 * @name: name of the property to change the value of
1444 * fdt_nop_property - replace a property with nop tags
1446 * @nodeoffset: offset of the node whose property to nop
1447 * @name: name of the property to nop
1449 * fdt_nop_property() will replace a given property's representation
1454 * the property, and will not alter or move any other part of the
1459 * -FDT_ERR_NOTFOUND, node does not have the named property
1499 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1560 * fdt_property_placeholder - add a new property and return a ptr to its value
1563 * @name: name of property to add
1564 * @len: length of property value in bytes
1663 * fdt_setprop - create or change a property
1665 * @nodeoffset: offset of the node whose property to change
1666 * @name: name of the property to change
1667 * @val: pointer to data to set the property value to
1668 * @len: length of the property value
1670 * fdt_setprop() sets the value of the named property in the given
1671 * node to the given value and length, creating the property if it
1680 * contain the new property value
1694 * fdt_setprop_placeholder - allocate space for a property
1696 * @nodeoffset: offset of the node whose property to change
1697 * @name: name of the property to change
1698 * @len: length of the property value
1699 * @prop_data: return pointer to property data
1701 * fdt_setprop_placeholer() allocates the named property in the given node.
1702 * If the property exists it is resized. In either case a pointer to the
1703 * property data is returned.
1711 * contain the new property value
1725 * fdt_setprop_u32 - set a property to a 32-bit integer
1727 * @nodeoffset: offset of the node whose property to change
1728 * @name: name of the property to change
1729 * @val: 32-bit integer value for the property (native endian)
1731 * fdt_setprop_u32() sets the value of the named property in the given
1733 * necessary), or creates a new property with that value if it does
1742 * contain the new property value
1760 * fdt_setprop_u64 - set a property to a 64-bit integer
1762 * @nodeoffset: offset of the node whose property to change
1763 * @name: name of the property to change
1764 * @val: 64-bit integer value for the property (native endian)
1766 * fdt_setprop_u64() sets the value of the named property in the given
1768 * necessary), or creates a new property with that value if it does
1777 * contain the new property value
1795 * fdt_setprop_cell - set a property to a single cell value
1797 * @nodeoffset: offset of the node whose property to change
1798 * @name: name of the property to change
1799 * @val: 32-bit integer value for the property (native endian)
1812 * fdt_setprop_string - set a property to a string value
1814 * @nodeoffset: offset of the node whose property to change
1815 * @name: name of the property to change
1816 * @str: string value for the property
1818 * fdt_setprop_string() sets the value of the named property in the
1820 * string to determine the new length of the property), or creates a
1821 * new property with that value if it does not already exist.
1829 * contain the new property value
1844 * fdt_setprop_empty - set a property to an empty value
1846 * @nodeoffset: offset of the node whose property to change
1847 * @name: name of the property to change
1849 * fdt_setprop_empty() sets the value of the named property in the
1851 * property if it does not already exist.
1859 * contain the new property value
1873 * fdt_appendprop - append to or create a property
1875 * @nodeoffset: offset of the node whose property to change
1876 * @name: name of the property to append to
1877 * @val: pointer to data to append to the property value
1878 * @len: length of the data to append to the property value
1880 * fdt_appendprop() appends the value to the named property in the
1881 * given node, creating the property if it does not already exist.
1889 * contain the new property value
1903 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1905 * @nodeoffset: offset of the node whose property to change
1906 * @name: name of the property to change
1907 * @val: 32-bit integer value to append to the property (native endian)
1911 * property in the given node, or creates a new property with that
1920 * contain the new property value
1938 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1940 * @nodeoffset: offset of the node whose property to change
1941 * @name: name of the property to change
1942 * @val: 64-bit integer value to append to the property (native endian)
1946 * property in the given node, or creates a new property with that
1955 * contain the new property value
1973 * fdt_appendprop_cell - append a single cell value to a property
1975 * @nodeoffset: offset of the node whose property to change
1976 * @name: name of the property to change
1977 * @val: 32-bit integer value to append to the property (native endian)
1990 * fdt_appendprop_string - append a string to a property
1992 * @nodeoffset: offset of the node whose property to change
1993 * @name: name of the property to change
1994 * @str: string value to append to the property
1997 * the named property in the given node, or creates a new property
2006 * contain the new property value
2020 * fdt_appendprop_addrrange - append a address range property
2023 * @nodeoffset: offset of the node to add a property at
2024 * @name: name of property
2029 * address and size) to the value of the named property in the given
2030 * node, or creates a new property with that value if it does not
2043 * #address-cells property
2050 * contain a new property
2057 * fdt_delprop - delete a property
2059 * @nodeoffset: offset of the node whose property to nop
2060 * @name: name of the property to nop
2062 * fdt_del_property() will delete the given property.
2069 * -FDT_ERR_NOTFOUND, node does not have the named property