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,
400 extern int of_add_property(struct device_node *np, struct property *prop);
401 extern int of_remove_property(struct device_node *np, struct property *prop);
402 extern int of_update_property(struct device_node *np, struct property *newprop);
417 * of_property_read_u8_array - Find and read an array of u8 from a property.
419 * @np: device node from which the property value is to be read.
420 * @propname: name of the property to be searched.
424 * Search for a property in a device node and read 8-bit value(s) from
425 * it. Returns 0 on success, -EINVAL if the property does not exist,
426 * -ENODATA if property does not have a value, and -EOVERFLOW if the
427 * property data isn't large enough.
430 * property = /bits/ 8 <0x50 0x60 0x70>;
447 * of_property_read_u16_array - Find and read an array of u16 from a property.
449 * @np: device node from which the property value is to be read.
450 * @propname: name of the property to be searched.
454 * Search for a property in a device node and read 16-bit value(s) from
455 * it. Returns 0 on success, -EINVAL if the property does not exist,
456 * -ENODATA if property does not have a value, and -EOVERFLOW if the
457 * property data isn't large enough.
460 * property = /bits/ 16 <0x5000 0x6000 0x7000>;
478 * from a property.
480 * @np: device node from which the property value is to be read.
481 * @propname: name of the property to be searched.
485 * Search for a property in a device node and read 32-bit value(s) from
486 * it. Returns 0 on success, -EINVAL if the property does not exist,
487 * -ENODATA if property does not have a value, and -EOVERFLOW if the
488 * property data isn't large enough.
506 * from a property.
508 * @np: device node from which the property value is to be read.
509 * @propname: name of the property to be searched.
513 * Search for a property in a device node and read 64-bit value(s) from
514 * it. Returns 0 on success, -EINVAL if the property does not exist,
515 * -ENODATA if property does not have a value, and -EOVERFLOW if the
516 * property data isn't large enough.
533 * struct property *prop;
540 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
543 * struct property *prop;
549 const char *of_prop_next_string(struct property *prop, const char *cur);
691 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
924 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
930 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
955 static inline int of_property_check_flag(struct property *p, unsigned long flag) in of_property_check_flag()
960 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
964 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
991 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
1035 * of_property_count_u8_elems - Count the number of u8 elements in a property
1037 * @np: device node from which the property value is to be read.
1038 * @propname: name of the property to be searched.
1040 * Search for a property in a device node and count the number of u8 elements
1041 * in it. Returns number of elements on sucess, -EINVAL if the property does
1043 * property does not have a value.
1052 * of_property_count_u16_elems - Count the number of u16 elements in a property
1054 * @np: device node from which the property value is to be read.
1055 * @propname: name of the property to be searched.
1057 * Search for a property in a device node and count the number of u16 elements
1058 * in it. Returns number of elements on sucess, -EINVAL if the property does
1060 * property does not have a value.
1069 * of_property_count_u32_elems - Count the number of u32 elements in a property
1071 * @np: device node from which the property value is to be read.
1072 * @propname: name of the property to be searched.
1074 * Search for a property in a device node and count the number of u32 elements
1075 * in it. Returns number of elements on sucess, -EINVAL if the property does
1077 * property does not have a value.
1086 * of_property_count_u64_elems - Count the number of u64 elements in a property
1088 * @np: device node from which the property value is to be read.
1089 * @propname: name of the property to be searched.
1091 * Search for a property in a device node and count the number of u64 elements
1092 * in it. Returns number of elements on sucess, -EINVAL if the property does
1094 * property does not have a value.
1104 * strings property.
1105 * @np: device node from which the property value is to be read.
1106 * @propname: name of the property to be searched.
1110 * Search for a property in a device tree node and retrieve a list of
1111 * terminated string values (pointer to data, not a copy) in that property.
1113 * If @out_strs is NULL, the number of strings in the property is returned.
1124 * multiple strings property.
1125 * @np: device node from which the property value is to be read.
1126 * @propname: name of the property to be searched.
1128 * Search for a property in a device tree node and retrieve the number of null
1130 * success, -EINVAL if the property does not exist, -ENODATA if property
1132 * within the length of the property data.
1142 * strings property.
1143 * @np: device node from which the property value is to be read.
1144 * @propname: name of the property to be searched.
1149 * Search for a property in a device tree node and retrieve a null
1151 * contained in that property.
1152 * Returns 0 on success, -EINVAL if the property does not exist, -ENODATA if
1153 * property does not have a value, and -EILSEQ if the string is not
1154 * null-terminated within the length of the property data.
1167 * of_property_read_bool - Find a property
1168 * @np: device node from which the property value is to be read.
1169 * @propname: name of the property to be searched.
1171 * Search for a property in a device node.
1172 * Returns true if the property exists false otherwise.
1177 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1312 * @prop: pointer to the property affected
1313 * @old_prop: hold a pointer to the original property
1324 struct property *prop;
1325 struct property *old_prop;
1361 struct property *prop);
1376 struct device_node *np, struct property *prop) in of_changeset_add_property()
1382 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1388 struct device_node *np, struct property *prop) in of_changeset_update_property()