Lines Matching refs:property
67 /* FDT_ERR_NOTFOUND: The requested node or property does not exist */
69 /* FDT_ERR_EXISTS: Attemped to create a node or property which
127 * or similar property with a bad format or value */
130 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
131 * value. For example: a property expected to contain a string list
441 * fdt_first_property_offset - find the offset of a node's first property
445 * fdt_first_property_offset() finds the first property of the node at
449 * structure block offset of the property (>=0), on success
463 * @offset: structure block offset of a property
465 * fdt_next_property_offset() finds the property immediately after the
466 * one at the given structure block offset. This will be a property
467 * of the same node as the given property.
470 * structure block offset of the next property (>=0), on success
471 * -FDT_ERR_NOTFOUND, if the given property is the last in its node
484 * @property_offset: property offset (int, lvalue)
490 * fdt_for_each_property_offset(property, fdt, node) {
491 * Use property
495 * if ((property < 0) && (property != -FDT_ERR_NOT_FOUND)) {
499 * Note that this is implemented as a macro and property is used as
503 #define fdt_for_each_property_offset(property, fdt, node) \
504 for (property = fdt_first_property_offset(fdt, node); \
505 property >= 0; \
506 property = fdt_next_property_offset(fdt, property))
509 * fdt_get_property_by_offset - retrieve the property at a given offset
511 * @offset: offset of the property to retrieve
516 * offset. If lenp is non-NULL, the length of the property value is
520 * pointer to the structure representing the property
521 * if lenp is non-NULL, *lenp contains the length of the property
537 * fdt_get_property_namelen - find a property based on substring
539 * @nodeoffset: offset of the node whose property to find
540 * @name: name of the property to find
545 * characters of name for matching the property name.
553 * fdt_get_property - find a given property in a given node
555 * @nodeoffset: offset of the node whose property to find
556 * @name: name of the property to find
560 * structure within the device tree blob corresponding to the property
562 * non-NULL, the length of the property value is also returned, in the
566 * pointer to the structure representing the property
567 * if lenp is non-NULL, *lenp contains the length of the property
571 * -FDT_ERR_NOTFOUND, node does not have named property
591 * fdt_getprop_by_offset - retrieve the value of a property at a given offset
593 * @ffset: offset of the property to read
598 * property at structure block offset 'offset' (this will be a pointer
600 * lenp is non-NULL, the length of the property value is also
602 * the property's namne will also be returned in the char * pointed to
607 * pointer to the property's value
608 * if lenp is non-NULL, *lenp contains the length of the property
610 * if namep is non-NULL *namep contiains a pointer to the property
625 * fdt_getprop_namelen - get property value based on substring
627 * @nodeoffset: offset of the node whose property to find
628 * @name: name of the property to find
633 * characters of name for matching the property name.
646 * fdt_getprop - retrieve the value of a given property
648 * @nodeoffset: offset of the node whose property to find
649 * @name: name of the property to find
652 * fdt_getprop() retrieves a pointer to the value of the property
655 * If lenp is non-NULL, the length of the property value is also
659 * pointer to the property's value
660 * if lenp is non-NULL, *lenp contains the length of the property
664 * -FDT_ERR_NOTFOUND, node does not have named property
713 * value of the property named 'name' in the node /aliases.
826 * fdt_node_offset_by_prop_value - find nodes with a given property value
829 * @propname: property name to check
830 * @propval: property value to search for
834 * node after startoffset, which has a property named propname whose
889 * fdt_node_check_compatible: check a node's compatible property
896 * 'compatible' property with the given string as one of its elements,
900 * 0, if the node has a 'compatible' property listing the given string
901 * 1, if the node has a 'compatible' property, but it does not list
903 * -FDT_ERR_NOTFOUND, if the given node has no 'compatible' property
920 * node after startoffset, which has a 'compatible' property which
951 * fdt_stringlist_contains - check a string list property for a string
952 * @strlist: Property containing a list of strings to check
953 * @listlen: Length of property
958 * "compatible" property.
968 * @property: name of the property containing the string list
970 * the number of strings in the given property
971 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
972 * -FDT_ERR_NOTFOUND if the property does not exist
974 int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property);
980 * @property: name of the property containing the string list
983 * Note that it is possible for this function to succeed on property values
991 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
992 * -FDT_ERR_NOTFOUND if the property does not exist or does not contain
995 int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property,
1002 * @property: name of the property containing the string list
1019 * -FDT_ERR_BADVALUE if the property value is not NUL-terminated
1020 * -FDT_ERR_NOTFOUND if the property does not exist
1023 const char *property, int index,
1046 * When the node has a valid #address-cells property, returns its value.
1050 * 2, if the node has no #address-cells property
1052 * #address-cells property
1067 * When the node has a valid #size-cells property, returns its value.
1071 * 2, if the node has no #address-cells property
1073 * #size-cells property
1088 * fdt_setprop_inplace_namelen_partial - change a property's value,
1091 * @nodeoffset: offset of the node whose property to change
1092 * @name: name of the property to change
1094 * @idx: index of the property to change in the array
1095 * @val: pointer to data to replace the property value with
1096 * @len: length of the property value
1098 * Identical to fdt_setprop_inplace(), but modifies the given property
1109 * fdt_setprop_inplace - change a property's value, but not its size
1111 * @nodeoffset: offset of the node whose property to change
1112 * @name: name of the property to change
1113 * @val: pointer to data to replace the property value with
1114 * @len: length of the property value
1116 * fdt_setprop_inplace() replaces the value of a given property with
1118 * size of a property, and so will only work if len is equal to the
1119 * current length of the property.
1122 * the given property value, and will not alter or move any other part
1127 * -FDT_ERR_NOSPACE, if len is not equal to the property's current length
1128 * -FDT_ERR_NOTFOUND, node does not have the named property
1140 * fdt_setprop_inplace_u32 - change the value of a 32-bit integer property
1142 * @nodeoffset: offset of the node whose property to change
1143 * @name: name of the property to change
1144 * @val: 32-bit integer value to replace the property with
1146 * fdt_setprop_inplace_u32() replaces the value of a given property
1148 * if necessary. This function cannot change the size of a property,
1149 * and so will only work if the property already exists and has length
1153 * the given property value, and will not alter or move any other part
1158 * -FDT_ERR_NOSPACE, if the property's length is not equal to 4
1159 * -FDT_ERR_NOTFOUND, node does not have the named property
1175 * fdt_setprop_inplace_u64 - change the value of a 64-bit integer property
1177 * @nodeoffset: offset of the node whose property to change
1178 * @name: name of the property to change
1179 * @val: 64-bit integer value to replace the property with
1181 * fdt_setprop_inplace_u64() replaces the value of a given property
1183 * if necessary. This function cannot change the size of a property,
1184 * and so will only work if the property already exists and has length
1188 * the given property value, and will not alter or move any other part
1193 * -FDT_ERR_NOSPACE, if the property's length is not equal to 8
1194 * -FDT_ERR_NOTFOUND, node does not have the named property
1210 * fdt_setprop_inplace_cell - change the value of a single-cell property
1221 * fdt_nop_property - replace a property with nop tags
1223 * @nodeoffset: offset of the node whose property to nop
1224 * @name: name of the property to nop
1226 * fdt_nop_property() will replace a given property's representation
1231 * the property, and will not alter or move any other part of the
1236 * -FDT_ERR_NOTFOUND, node does not have the named property
1382 * fdt_setprop - create or change a property
1384 * @nodeoffset: offset of the node whose property to change
1385 * @name: name of the property to change
1386 * @val: pointer to data to set the property value to
1387 * @len: length of the property value
1389 * fdt_setprop() sets the value of the named property in the given
1390 * node to the given value and length, creating the property if it
1399 * contain the new property value
1413 * fdt_setprop_u32 - set a property to a 32-bit integer
1415 * @nodeoffset: offset of the node whose property to change
1416 * @name: name of the property to change
1417 * @val: 32-bit integer value for the property (native endian)
1419 * fdt_setprop_u32() sets the value of the named property in the given
1421 * necessary), or creates a new property with that value if it does
1430 * contain the new property value
1448 * fdt_setprop_u64 - set a property to a 64-bit integer
1450 * @nodeoffset: offset of the node whose property to change
1451 * @name: name of the property to change
1452 * @val: 64-bit integer value for the property (native endian)
1454 * fdt_setprop_u64() sets the value of the named property in the given
1456 * necessary), or creates a new property with that value if it does
1465 * contain the new property value
1483 * fdt_setprop_cell - set a property to a single cell value
1494 * fdt_setprop_string - set a property to a string value
1496 * @nodeoffset: offset of the node whose property to change
1497 * @name: name of the property to change
1498 * @str: string value for the property
1500 * fdt_setprop_string() sets the value of the named property in the
1502 * string to determine the new length of the property), or creates a
1503 * new property with that value if it does not already exist.
1511 * contain the new property value
1525 * fdt_appendprop - append to or create a property
1527 * @nodeoffset: offset of the node whose property to change
1528 * @name: name of the property to append to
1529 * @val: pointer to data to append to the property value
1530 * @len: length of the data to append to the property value
1532 * fdt_appendprop() appends the value to the named property in the
1533 * given node, creating the property if it does not already exist.
1541 * contain the new property value
1555 * fdt_appendprop_u32 - append a 32-bit integer value to a property
1557 * @nodeoffset: offset of the node whose property to change
1558 * @name: name of the property to change
1559 * @val: 32-bit integer value to append to the property (native endian)
1563 * property in the given node, or creates a new property with that
1572 * contain the new property value
1590 * fdt_appendprop_u64 - append a 64-bit integer value to a property
1592 * @nodeoffset: offset of the node whose property to change
1593 * @name: name of the property to change
1594 * @val: 64-bit integer value to append to the property (native endian)
1598 * property in the given node, or creates a new property with that
1607 * contain the new property value
1625 * fdt_appendprop_cell - append a single cell value to a property
1636 * fdt_appendprop_string - append a string to a property
1638 * @nodeoffset: offset of the node whose property to change
1639 * @name: name of the property to change
1640 * @str: string value to append to the property
1643 * the named property in the given node, or creates a new property
1652 * contain the new property value
1666 * fdt_delprop - delete a property
1668 * @nodeoffset: offset of the node whose property to nop
1669 * @name: name of the property to nop
1671 * fdt_del_property() will delete the given property.
1678 * -FDT_ERR_NOTFOUND, node does not have the named property