Home | History | Annotate | Download | only in dist

Lines Matching refs:property

19 	/* FDT_ERR_NOTFOUND: The requested node or property does not exist */
21 /* FDT_ERR_EXISTS: Attempted to create a node or property which
40 * This can be caused either by an invalid phandle property
82 * or similar property with a bad format or value */
85 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
86 * value. For example: a property expected to contain a string list
92 * unexpected or missing value, property or node. */
139 static inline void fdt32_st(void *property, uint32_t value)
141 uint8_t *bp = property;
163 static inline void fdt64_st(void *property, uint64_t value)
165 uint8_t *bp = property;
545 * fdt_first_property_offset - find the offset of a node's first property
549 * fdt_first_property_offset() finds the first property of the node at
553 * structure block offset of the property (>=0), on success
567 * @offset: structure block offset of a property
569 * fdt_next_property_offset() finds the property immediately after the
570 * one at the given structure block offset. This will be a property
571 * of the same node as the given property.
574 * structure block offset of the next property (>=0), on success
575 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
588 * @property_offset: property offset (int, lvalue)
594 * fdt_for_each_property_offset(property, fdt, node) {
595 * Use property
599 * if ((property < 0) && (property != -FDT_ERR_NOTFOUND)) {
603 * Note that this is implemented as a macro and property is used as
607 #define fdt_for_each_property_offset(property, fdt, node) \
608 for (property = fdt_first_property_offset(fdt, node); \
609 property >= 0; \
610 property = fdt_next_property_offset(fdt, property))
613 * fdt_get_property_by_offset - retrieve the property at a given offset
615 * @offset: offset of the property to retrieve
620 * offset. If lenp is non-NULL, the length of the property value is
627 * pointer to the structure representing the property
628 * if lenp is non-NULL, *lenp contains the length of the property
644 * fdt_get_property_namelen - find a property based on substring
646 * @nodeoffset: offset of the node whose property to find
647 * @name: name of the property to find
652 * characters of name for matching the property name.
662 * fdt_get_property - find a given property in a given node
664 * @nodeoffset: offset of the node whose property to find
665 * @name: name of the property to find
669 * structure within the device tree blob corresponding to the property
671 * non-NULL, the length of the property value is also returned, in the
675 * pointer to the structure representing the property
676 * if lenp is non-NULL, *lenp contains the length of the property
680 * -FDT_ERR_NOTFOUND, node does not have named property
700 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
702 * @offset: offset of the property to read
707 * property at structure block offset 'offset' (this will be a pointer
709 * lenp is non-NULL, the length of the property value is also
711 * the property's namne will also be returned in the char * pointed to
716 * pointer to the property's value
717 * if lenp is non-NULL, *lenp contains the length of the property
719 * if namep is non-NULL *namep contiains a pointer to the property
736 * fdt_getprop_namelen - get property value based on substring
738 * @nodeoffset: offset of the node whose property to find
739 * @name: name of the property to find
744 * characters of name for matching the property name.
759 * fdt_getprop - retrieve the value of a given property
761 * @nodeoffset: offset of the node whose property to find
762 * @name: name of the property to find
765 * fdt_getprop() retrieves a pointer to the value of the property
768 * If lenp is non-NULL, the length of the property value is also
772 * pointer to the property's value
773 * if lenp is non-NULL, *lenp contains the length of the property
777 * -FDT_ERR_NOTFOUND, node does not have named property
828 * value of the property named 'name' in the node /aliases.
941 * fdt_node_offset_by_prop_value - find nodes with a given property value
944 * @propname: property name to check
945 * @propval: property value to search for
949 * node after startoffset, which has a property named propname whose
1004 * fdt_node_check_compatible: check a node's compatible property
1011 * 'compatible' property with the given string as one of its elements,
1015 * 0, if the node has a 'compatible' property listing the given string
1016 * 1, if the node has a 'compatible' property, but it does not list
1018 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
1035 * node after startoffset, which has a 'compatible' property which
1066 * fdt_stringlist_contains - check a string list property for a string
1067 * @strlist: Property containing a list of strings to check
1068 * @listlen: Length of property
1073 * "compatible" property.
1083 * @property: name of the property containing the string list
1085 * the number of strings in the given property
1086 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1087 * -FDT_ERR_NOTFOUND if the property does not exist
1089 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1095 * @property: name of the property containing the string list
1098 * Note that it is possible for this function to succeed on property values
1106 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1107 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1110 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1117 * @property: name of the property containing the string list
1134 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1135 * -FDT_ERR_NOTFOUND if the property does not exist
1138 const char *property, int index,
1161 * When the node has a valid #address-cells property, returns its value.
1165 * 2, if the node has no #address-cells property
1167 * #address-cells property
1182 * When the node has a valid #size-cells property, returns its value.
1186 * 1, if the node has no #size-cells property
1188 * #size-cells property
1203 * fdt_setprop_inplace_namelen_partial - change a property's value,
1206 * @nodeoffset: offset of the node whose property to change
1207 * @name: name of the property to change
1209 * @idx: index of the property to change in the array
1210 * @val: pointer to data to replace the property value with
1211 * @len: length of the property value
1213 * Identical to fdt_setprop_inplace(), but modifies the given property
1226 * fdt_setprop_inplace - change a property's value, but not its size
1228 * @nodeoffset: offset of the node whose property to change
1229 * @name: name of the property to change
1230 * @val: pointer to data to replace the property value with
1231 * @len: length of the property value
1233 * fdt_setprop_inplace() replaces the value of a given property with
1235 * size of a property, and so will only work if len is equal to the
1236 * current length of the property.
1239 * the given property value, and will not alter or move any other part
1244 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1245 * -FDT_ERR_NOTFOUND, node does not have the named property
1259 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1261 * @nodeoffset: offset of the node whose property to change
1262 * @name: name of the property to change
1263 * @val: 32-bit integer value to replace the property with
1265 * fdt_setprop_inplace_u32() replaces the value of a given property
1267 * if necessary. This function cannot change the size of a property,
1268 * and so will only work if the property already exists and has length
1272 * the given property value, and will not alter or move any other part
1277 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1278 * -FDT_ERR_NOTFOUND, node does not have the named property
1294 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1296 * @nodeoffset: offset of the node whose property to change
1297 * @name: name of the property to change
1298 * @val: 64-bit integer value to replace the property with
1300 * fdt_setprop_inplace_u64() replaces the value of a given property
1302 * if necessary. This function cannot change the size of a property,
1303 * and so will only work if the property already exists and has length
1307 * the given property value, and will not alter or move any other part
1312 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1313 * -FDT_ERR_NOTFOUND, node does not have the named property
1329 * fdt_setprop_inplace_cell - change the value of a single-cell property
1340 * fdt_nop_property - replace a property with nop tags
1342 * @nodeoffset: offset of the node whose property to nop
1343 * @name: name of the property to nop
1345 * fdt_nop_property() will replace a given property's representation
1350 * the property
1355 * -FDT_ERR_NOTFOUND, node does not have the named property
1395 /* FDT_CREATE_FLAG_NO_NAME_DEDUP: Do not try to de-duplicate property
1456 * fdt_property_placeholder - add a new property and return a ptr to its value
1459 * @name: name of property to add
1460 * @len: length of property value in bytes
1558 * fdt_setprop - create or change a property
1560 * @nodeoffset: offset of the node whose property to change
1561 * @name: name of the property to change
1562 * @val: pointer to data to set the property value to
1563 * @len: length of the property value
1565 * fdt_setprop() sets the value of the named property in the given
1566 * node to the given value and length, creating the property if it
1575 * contain the new property value
1589 * fdt_setprop_placeholder - allocate space for a property
1591 * @nodeoffset: offset of the node whose property to change
1592 * @name: name of the property to change
1593 * @len: length of the property value
1594 * @prop_data: return pointer to property data
1596 * fdt_setprop_placeholer() allocates the named property in the given node.
1597 * If the property exists it is resized. In either case a pointer to the
1598 * property data is returned.
1606 * contain the new property value
1620 * fdt_setprop_u32 - set a property to a 32-bit integer
1622 * @nodeoffset: offset of the node whose property to change
1623 * @name: name of the property to change
1624 * @val: 32-bit integer value for the property (native endian)
1626 * fdt_setprop_u32() sets the value of the named property in the given
1628 * necessary), or creates a new property with that value if it does
1637 * contain the new property value
1655 * fdt_setprop_u64 - set a property to a 64-bit integer
1657 * @nodeoffset: offset of the node whose property to change
1658 * @name: name of the property to change
1659 * @val: 64-bit integer value for the property (native endian)
1661 * fdt_setprop_u64() sets the value of the named property in the given
1663 * necessary), or creates a new property with that value if it does
1672 * contain the new property value
1690 * fdt_setprop_cell - set a property to a single cell value
1701 * fdt_setprop_string - set a property to a string value
1703 * @nodeoffset: offset of the node whose property to change
1704 * @name: name of the property to change
1705 * @str: string value for the property
1707 * fdt_setprop_string() sets the value of the named property in the
1709 * string to determine the new length of the property), or creates a
1710 * new property with that value if it does not already exist.
1718 * contain the new property value
1733 * fdt_setprop_empty - set a property to an empty value
1735 * @nodeoffset: offset of the node whose property to change
1736 * @name: name of the property to change
1738 * fdt_setprop_empty() sets the value of the named property in the
1740 * property if it does not already exist.
1748 * contain the new property value
1762 * fdt_appendprop - append to or create a property
1764 * @nodeoffset: offset of the node whose property to change
1765 * @name: name of the property to append to
1766 * @val: pointer to data to append to the property value
1767 * @len: length of the data to append to the property value
1769 * fdt_appendprop() appends the value to the named property in the
1770 * given node, creating the property if it does not already exist.
1778 * contain the new property value
1792 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1794 * @nodeoffset: offset of the node whose property to change
1795 * @name: name of the property to change
1796 * @val: 32-bit integer value to append to the property (native endian)
1800 * property in the given node, or creates a new property with that
1809 * contain the new property value
1827 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1829 property to change
1830 * @name: name of the property to change
1831 * @val: 64-bit integer value to append to the property (native endian)
1835 * property in the given node, or creates a new property with that
1844 * contain the new property value
1862 * fdt_appendprop_cell - append a single cell value to a property
1873 * fdt_appendprop_string - append a string to a property
1875 * @nodeoffset: offset of the node whose property to change
1876 * @name: name of the property to change
1877 * @str: string value to append to the property
1880 * the named property in the given node, or creates a new property
1889 * contain the new property value
1903 * fdt_appendprop_addrrange - append a address range property
1906 * @nodeoffset: offset of the node to add a property at
1907 * @name: name of property
1912 * address and size) to the value of the named property in the given
1913 * node, or creates a new property with that value if it does not
1926 * #address-cells property
1933 * contain a new property
1940 * fdt_delprop - delete a property
1942 * @nodeoffset: offset of the node whose property to nop
1943 * @name: name of the property to nop
1945 * fdt_del_property() will delete the given property.
1952 * -FDT_ERR_NOTFOUND, node does not have the named property