Lines Matching full:property
22 #include <linux/property.h>
31 struct property { struct
35 struct property *next; argument
57 struct property *properties; argument
58 struct property *deadprops; /* removed properties */
99 struct property *prop;
100 struct property *old_prop;
210 static inline int of_property_check_flag(struct property *p, unsigned long flag) in of_property_check_flag()
215 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
220 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
304 extern struct property *of_find_property(const struct device_node *np,
402 extern int of_add_property(struct device_node *np, struct property *prop);
403 extern int of_remove_property(struct device_node *np, struct property *prop);
404 extern int of_update_property(struct device_node *np, struct property *newprop);
419 * of_property_read_u8_array - Find and read an array of u8 from a property.
421 * @np: device node from which the property value is to be read.
422 * @propname: name of the property to be searched.
426 * Search for a property in a device node and read 8-bit value(s) from
430 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
432 * Return: 0 on success, -EINVAL if the property does not exist,
433 * -ENODATA if property does not have a value, and -EOVERFLOW if the
434 * property data isn't large enough.
451 * of_property_read_u16_array - Find and read an array of u16 from a property.
453 * @np: device node from which the property value is to be read.
454 * @propname: name of the property to be searched.
458 * Search for a property in a device node and read 16-bit value(s) from
462 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
464 * Return: 0 on success, -EINVAL if the property does not exist,
465 * -ENODATA if property does not have a value, and -EOVERFLOW if the
466 * property data isn't large enough.
484 * from a property.
486 * @np: device node from which the property value is to be read.
487 * @propname: name of the property to be searched.
491 * Search for a property in a device node and read 32-bit value(s) from
494 * Return: 0 on success, -EINVAL if the property does not exist,
495 * -ENODATA if property does not have a value, and -EOVERFLOW if the
496 * property data isn't large enough.
514 * from a property.
516 * @np: device node from which the property value is to be read.
517 * @propname: name of the property to be searched.
521 * Search for a property in a device node and read 64-bit value(s) from
524 * Return: 0 on success, -EINVAL if the property does not exist,
525 * -ENODATA if property does not have a value, and -EOVERFLOW if the
526 * property data isn't large enough.
543 * struct property *prop;
550 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
553 * struct property *prop;
559 const char *of_prop_next_string(struct property *prop, const char *cur);
715 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
949 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
954 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
964 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
970 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
995 static inline int of_property_check_flag(struct property *p, unsigned long flag) in of_property_check_flag()
1000 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
1004 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
1036 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
1080 * of_property_count_u8_elems - Count the number of u8 elements in a property
1082 * @np: device node from which the property value is to be read.
1083 * @propname: name of the property to be searched.
1085 * Search for a property in a device node and count the number of u8 elements
1088 * Return: The number of elements on sucess, -EINVAL if the property does
1090 * property does not have a value.
1099 * of_property_count_u16_elems - Count the number of u16 elements in a property
1101 * @np: device node from which the property value is to be read.
1102 * @propname: name of the property to be searched.
1104 * Search for a property in a device node and count the number of u16 elements
1107 * Return: The number of elements on sucess, -EINVAL if the property does
1109 * property does not have a value.
1118 * of_property_count_u32_elems - Count the number of u32 elements in a property
1120 * @np: device node from which the property value is to be read.
1121 * @propname: name of the property to be searched.
1123 * Search for a property in a device node and count the number of u32 elements
1126 * Return: The number of elements on sucess, -EINVAL if the property does
1128 * property does not have a value.
1137 * of_property_count_u64_elems - Count the number of u64 elements in a property
1139 * @np: device node from which the property value is to be read.
1140 * @propname: name of the property to be searched.
1142 * Search for a property in a device node and count the number of u64 elements
1145 * Return: The number of elements on sucess, -EINVAL if the property does
1147 * property does not have a value.
1157 * strings property.
1158 * @np: device node from which the property value is to be read.
1159 * @propname: name of the property to be searched.
1163 * Search for a property in a device tree node and retrieve a list of
1164 * terminated string values (pointer to data, not a copy) in that property.
1166 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1177 * multiple strings property.
1178 * @np: device node from which the property value is to be read.
1179 * @propname: name of the property to be searched.
1181 * Search for a property in a device tree node and retrieve the number of null
1184 * Return: The number of strings on success, -EINVAL if the property does not
1185 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1186 * is not null-terminated within the length of the property data.
1196 * strings property.
1197 * @np: device node from which the property value is to be read.
1198 * @propname: name of the property to be searched.
1203 * Search for a property in a device tree node and retrieve a null
1205 * contained in that property.
1207 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1208 * property does not have a value, and -EILSEQ if the string is not
1209 * null-terminated within the length of the property data.
1222 * of_property_read_bool - Find a property
1223 * @np: device node from which the property value is to be read.
1224 * @propname: name of the property to be searched.
1226 * Search for a property in a device node.
1228 * Return: true if the property exists false otherwise.
1233 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1372 * @prop: pointer to the property affected
1373 * @old_prop: hold a pointer to the original property
1384 struct property *prop;
1385 struct property *old_prop;
1421 struct property *prop);
1436 struct device_node *np, struct property *prop) in of_changeset_add_property()
1442 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1448 struct device_node *np, struct property *prop) in of_changeset_update_property()