Lines Matching full:property
62 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */
64 /* FDT_ERR_EXISTS: Attempted to create a node or property which
83 * This can be caused either by an invalid phandle property
124 * or similar property with a bad format or value */
127 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
128 * value. For example: a property expected to contain a string list
134 * unexpected or missing value, property or node. */
452 * fdt_first_property_offset - find the offset of a node's first property
456 * fdt_first_property_offset() finds the first property of the node at
460 * structure block offset of the property (>=0), on success
474 * @offset: structure block offset of a property
476 * fdt_next_property_offset() finds the property immediately after the
477 * one at the given structure block offset. This will be a property
478 * of the same node as the given property.
481 * structure block offset of the next property (>=0), on success
482 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
495 * @property_offset: property offset (int, lvalue)
501 * fdt_for_each_property_offset(property, fdt, node) {
502 * Use property
506 * if ((property < 0) && (property != -FDT_ERR_NOT_FOUND)) {
510 * Note that this is implemented as a macro and property is used as
514 #define fdt_for_each_property_offset(property, fdt, node) \ argument
515 for (property = fdt_first_property_offset(fdt, node); \
516 property >= 0; \
517 property = fdt_next_property_offset(fdt, property))
520 * fdt_get_property_by_offset - retrieve the property at a given offset
522 * @offset: offset of the property to retrieve
527 * offset. If lenp is non-NULL, the length of the property value is
534 * pointer to the structure representing the property
535 * if lenp is non-NULL, *lenp contains the length of the property
551 * fdt_get_property_namelen - find a property based on substring
553 * @nodeoffset: offset of the node whose property to find
554 * @name: name of the property to find
559 * characters of name for matching the property name.
569 * fdt_get_property - find a given property in a given node
571 * @nodeoffset: offset of the node whose property to find
572 * @name: name of the property to find
576 * structure within the device tree blob corresponding to the property
578 * non-NULL, the length of the property value is also returned, in the
582 * pointer to the structure representing the property
583 * if lenp is non-NULL, *lenp contains the length of the property
587 * -FDT_ERR_NOTFOUND, node does not have named property
607 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
609 * @ffset: offset of the property to read
614 * property at structure block offset 'offset' (this will be a pointer
616 * lenp is non-NULL, the length of the property value is also
618 * the property's namne will also be returned in the char * pointed to
623 * pointer to the property's value
624 * if lenp is non-NULL, *lenp contains the length of the property
626 * if namep is non-NULL *namep contiains a pointer to the property
643 * fdt_getprop_namelen - get property value based on substring
645 * @nodeoffset: offset of the node whose property to find
646 * @name: name of the property to find
651 * characters of name for matching the property name.
666 * fdt_getprop - retrieve the value of a given property
668 * @nodeoffset: offset of the node whose property to find
669 * @name: name of the property to find
672 * fdt_getprop() retrieves a pointer to the value of the property
675 * If lenp is non-NULL, the length of the property value is also
679 * pointer to the property's value
680 * if lenp is non-NULL, *lenp contains the length of the property
684 * -FDT_ERR_NOTFOUND, node does not have named property
735 * value of the property named 'name' in the node /aliases.
848 * fdt_node_offset_by_prop_value - find nodes with a given property value
851 * @propname: property name to check
852 * @propval: property value to search for
856 * node after startoffset, which has a property named propname whose
911 * fdt_node_check_compatible: check a node's compatible property
918 * 'compatible' property with the given string as one of its elements,
922 * 0, if the node has a 'compatible' property listing the given string
923 * 1, if the node has a 'compatible' property, but it does not list
925 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
942 * node after startoffset, which has a 'compatible' property which
973 * fdt_stringlist_contains - check a string list property for a string
974 * @strlist: Property containing a list of strings to check
975 * @listlen: Length of property
980 * "compatible" property.
990 * @property: name of the property containing the string list
992 * the number of strings in the given property
993 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
994 * -FDT_ERR_NOTFOUND if the property does not exist
996 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
1002 * @property: name of the property containing the string list
1005 * Note that it is possible for this function to succeed on property values
1013 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1014 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
1017 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1024 * @property: name of the property containing the string list
1041 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1042 * -FDT_ERR_NOTFOUND if the property does not exist
1045 const char *property, int index,
1068 * When the node has a valid #address-cells property, returns its value.
1072 * 2, if the node has no #address-cells property
1074 * #address-cells property
1089 * When the node has a valid #size-cells property, returns its value.
1093 * 2, if the node has no #address-cells property
1095 * #size-cells property
1110 * fdt_setprop_inplace_namelen_partial - change a property's value,
1113 * @nodeoffset: offset of the node whose property to change
1114 * @name: name of the property to change
1116 * @idx: index of the property to change in the array
1117 * @val: pointer to data to replace the property value with
1118 * @len: length of the property value
1120 * Identical to fdt_setprop_inplace(), but modifies the given property
1133 * fdt_setprop_inplace - change a property's value, but not its size
1135 * @nodeoffset: offset of the node whose property to change
1136 * @name: name of the property to change
1137 * @val: pointer to data to replace the property value with
1138 * @len: length of the property value
1140 * fdt_setprop_inplace() replaces the value of a given property with
1142 * size of a property, and so will only work if len is equal to the
1143 * current length of the property.
1146 * the given property value, and will not alter or move any other part
1151 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1152 * -FDT_ERR_NOTFOUND, node does not have the named property
1166 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1168 * @nodeoffset: offset of the node whose property to change
1169 * @name: name of the property to change
1170 * @val: 32-bit integer value to replace the property with
1172 * fdt_setprop_inplace_u32() replaces the value of a given property
1174 * if necessary. This function cannot change the size of a property,
1175 * and so will only work if the property already exists and has length
1179 * the given property value, and will not alter or move any other part
1184 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1185 * -FDT_ERR_NOTFOUND, node does not have the named property
1201 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1203 * @nodeoffset: offset of the node whose property to change
1204 * @name: name of the property to change
1205 * @val: 64-bit integer value to replace the property with
1207 * fdt_setprop_inplace_u64() replaces the value of a given property
1209 * if necessary. This function cannot change the size of a property,
1210 * and so will only work if the property already exists and has length
1214 * the given property value, and will not alter or move any other part
1219 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1220 * -FDT_ERR_NOTFOUND, node does not have the named property
1236 * fdt_setprop_inplace_cell - change the value of a single-cell property
1247 * fdt_nop_property - replace a property with nop tags
1249 * @nodeoffset: offset of the node whose property to nop
1250 * @name: name of the property to nop
1252 * fdt_nop_property() will replace a given property's representation
1257 * the property, and will not alter or move any other part of the
1262 * -FDT_ERR_NOTFOUND, node does not have the named property
1322 * fdt_property_placeholder - add a new property and return a ptr to its value
1325 * @name: name of property to add
1326 * @len: length of property value in bytes
1424 * fdt_setprop - create or change a property
1426 * @nodeoffset: offset of the node whose property to change
1427 * @name: name of the property to change
1428 * @val: pointer to data to set the property value to
1429 * @len: length of the property value
1431 * fdt_setprop() sets the value of the named property in the given
1432 * node to the given value and length, creating the property if it
1441 * contain the new property value
1455 * fdt_setprop_placeholder - allocate space for a property
1457 * @nodeoffset: offset of the node whose property to change
1458 * @name: name of the property to change
1459 * @len: length of the property value
1460 * @prop_data: return pointer to property data
1462 * fdt_setprop_placeholer() allocates the named property in the given node.
1463 * If the property exists it is resized. In either case a pointer to the
1464 * property data is returned.
1472 * contain the new property value
1486 * fdt_setprop_u32 - set a property to a 32-bit integer
1488 * @nodeoffset: offset of the node whose property to change
1489 * @name: name of the property to change
1490 * @val: 32-bit integer value for the property (native endian)
1492 * fdt_setprop_u32() sets the value of the named property in the given
1494 * necessary), or creates a new property with that value if it does
1503 * contain the new property value
1521 * fdt_setprop_u64 - set a property to a 64-bit integer
1523 * @nodeoffset: offset of the node whose property to change
1524 * @name: name of the property to change
1525 * @val: 64-bit integer value for the property (native endian)
1527 * fdt_setprop_u64() sets the value of the named property in the given
1529 * necessary), or creates a new property with that value if it does
1538 * contain the new property value
1556 * fdt_setprop_cell - set a property to a single cell value
1567 * fdt_setprop_string - set a property to a string value
1569 * @nodeoffset: offset of the node whose property to change
1570 * @name: name of the property to change
1571 * @str: string value for the property
1573 * fdt_setprop_string() sets the value of the named property in the
1575 * string to determine the new length of the property), or creates a
1576 * new property with that value if it does not already exist.
1584 * contain the new property value
1599 * fdt_setprop_empty - set a property to an empty value
1601 * @nodeoffset: offset of the node whose property to change
1602 * @name: name of the property to change
1604 * fdt_setprop_empty() sets the value of the named property in the
1606 * property if it does not already exist.
1614 * contain the new property value
1628 * fdt_appendprop - append to or create a property
1630 * @nodeoffset: offset of the node whose property to change
1631 * @name: name of the property to append to
1632 * @val: pointer to data to append to the property value
1633 * @len: length of the data to append to the property value
1635 * fdt_appendprop() appends the value to the named property in the
1636 * given node, creating the property if it does not already exist.
1644 * contain the new property value
1658 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1660 * @nodeoffset: offset of the node whose property to change
1661 * @name: name of the property to change
1662 * @val: 32-bit integer value to append to the property (native endian)
1666 * property in the given node, or creates a new property with that
1675 * contain the new property value
1693 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1695 * @nodeoffset: offset of the node whose property to change
1696 * @name: name of the property to change
1697 * @val: 64-bit integer value to append to the property (native endian)
1701 * property in the given node, or creates a new property with that
1710 * contain the new property value
1728 * fdt_appendprop_cell - append a single cell value to a property
1739 * fdt_appendprop_string - append a string to a property
1741 * @nodeoffset: offset of the node whose property to change
1742 * @name: name of the property to change
1743 * @str: string value to append to the property
1746 * the named property in the given node, or creates a new property
1755 * contain the new property value
1769 * fdt_delprop - delete a property
1771 * @nodeoffset: offset of the node whose property to nop
1772 * @name: name of the property to nop
1774 * fdt_del_property() will delete the given property.
1781 * -FDT_ERR_NOTFOUND, node does not have the named property