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
427 * it. Returns 0 on success, -EINVAL if the property does not exist,
428 * -ENODATA if property does not have a value, and -EOVERFLOW if the
429 * property data isn't large enough.
432 * property = /bits/ 8 <0x50 0x60 0x70>;
449 * of_property_read_u16_array - Find and read an array of u16 from a property.
451 * @np: device node from which the property value is to be read.
452 * @propname: name of the property to be searched.
456 * Search for a property in a device node and read 16-bit value(s) from
457 * it. Returns 0 on success, -EINVAL if the property does not exist,
458 * -ENODATA if property does not have a value, and -EOVERFLOW if the
459 * property data isn't large enough.
462 * property = /bits/ 16 <0x5000 0x6000 0x7000>;
480 * from a property.
482 * @np: device node from which the property value is to be read.
483 * @propname: name of the property to be searched.
487 * Search for a property in a device node and read 32-bit value(s) from
488 * it. Returns 0 on success, -EINVAL if the property does not exist,
489 * -ENODATA if property does not have a value, and -EOVERFLOW if the
490 * property data isn't large enough.
508 * from a property.
510 * @np: device node from which the property value is to be read.
511 * @propname: name of the property to be searched.
515 * Search for a property in a device node and read 64-bit value(s) from
516 * it. Returns 0 on success, -EINVAL if the property does not exist,
517 * -ENODATA if property does not have a value, and -EOVERFLOW if the
518 * property data isn't large enough.
535 * struct property *prop;
542 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
545 * struct property *prop;
551 const char *of_prop_next_string(struct property *prop, const char *cur);
698 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
932 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
942 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
948 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
973 static inline int of_property_check_flag(struct property *p, unsigned long flag) in of_property_check_flag()
978 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
982 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
1009 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
1053 * of_property_count_u8_elems - Count the number of u8 elements in a property
1055 * @np: device node from which the property value is to be read.
1056 * @propname: name of the property to be searched.
1058 * Search for a property in a device node and count the number of u8 elements
1059 * in it. Returns number of elements on sucess, -EINVAL if the property does
1061 * property does not have a value.
1070 * of_property_count_u16_elems - Count the number of u16 elements in a property
1072 * @np: device node from which the property value is to be read.
1073 * @propname: name of the property to be searched.
1075 * Search for a property in a device node and count the number of u16 elements
1076 * in it. Returns number of elements on sucess, -EINVAL if the property does
1078 * property does not have a value.
1087 * of_property_count_u32_elems - Count the number of u32 elements in a property
1089 * @np: device node from which the property value is to be read.
1090 * @propname: name of the property to be searched.
1092 * Search for a property in a device node and count the number of u32 elements
1093 * in it. Returns number of elements on sucess, -EINVAL if the property does
1095 * property does not have a value.
1104 * of_property_count_u64_elems - Count the number of u64 elements in a property
1106 * @np: device node from which the property value is to be read.
1107 * @propname: name of the property to be searched.
1109 * Search for a property in a device node and count the number of u64 elements
1110 * in it. Returns number of elements on sucess, -EINVAL if the property does
1112 * property does not have a value.
1122 * strings property.
1123 * @np: device node from which the property value is to be read.
1124 * @propname: name of the property to be searched.
1128 * Search for a property in a device tree node and retrieve a list of
1129 * terminated string values (pointer to data, not a copy) in that property.
1131 * If @out_strs is NULL, the number of strings in the property is returned.
1142 * multiple strings property.
1143 * @np: device node from which the property value is to be read.
1144 * @propname: name of the property to be searched.
1146 * Search for a property in a device tree node and retrieve the number of null
1148 * success, -EINVAL if the property does not exist, -ENODATA if property
1150 * within the length of the property data.
1160 * strings property.
1161 * @np: device node from which the property value is to be read.
1162 * @propname: name of the property to be searched.
1167 * Search for a property in a device tree node and retrieve a null
1169 * contained in that property.
1170 * Returns 0 on success, -EINVAL if the property does not exist, -ENODATA if
1171 * property does not have a value, and -EILSEQ if the string is not
1172 * null-terminated within the length of the property data.
1185 * of_property_read_bool - Find a property
1186 * @np: device node from which the property value is to be read.
1187 * @propname: name of the property to be searched.
1189 * Search for a property in a device node.
1190 * Returns true if the property exists false otherwise.
1195 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1330 * @prop: pointer to the property affected
1331 * @old_prop: hold a pointer to the original property
1342 struct property *prop;
1343 struct property *old_prop;
1379 struct property *prop);
1394 struct device_node *np, struct property *prop) in of_changeset_add_property()
1400 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1406 struct device_node *np, struct property *prop) in of_changeset_update_property()