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(const 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,
394 extern int of_add_property(struct device_node *np, struct property *prop);
395 extern int of_remove_property(struct device_node *np, struct property *prop);
396 extern int of_update_property(struct device_node *np, struct property *newprop);
411 * struct property *prop;
418 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
421 * struct property *prop;
427 const char *of_prop_next_string(struct property *prop, const char *cur);
581 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
769 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
774 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
784 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
790 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
815 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
821 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
825 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
857 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
901 * of_parse_phandle - Resolve a phandle property to a device_node pointer
902 * @np: Pointer to device node holding phandle property
903 * @phandle_name: Name of property holding a phandle value
926 * @list_name: property name that contains a list
927 * @cells_name: property name that specifies phandles' arguments count
974 * @list_name: property name that contains a list
1012 * of_property_count_u8_elems - Count the number of u8 elements in a property
1014 * @np: device node from which the property value is to be read.
1015 * @propname: name of the property to be searched.
1017 * Search for a property in a device node and count the number of u8 elements
1020 * Return: The number of elements on sucess, -EINVAL if the property does
1022 * property does not have a value.
1031 * of_property_count_u16_elems - Count the number of u16 elements in a property
1033 * @np: device node from which the property value is to be read.
1034 * @propname: name of the property to be searched.
1036 * Search for a property in a device node and count the number of u16 elements
1039 * Return: The number of elements on sucess, -EINVAL if the property does
1041 * property does not have a value.
1050 * of_property_count_u32_elems - Count the number of u32 elements in a property
1052 * @np: device node from which the property value is to be read.
1053 * @propname: name of the property to be searched.
1055 * Search for a property in a device node and count the number of u32 elements
1058 * Return: The number of elements on sucess, -EINVAL if the property does
1060 * property does not have a value.
1069 * of_property_count_u64_elems - Count the number of u64 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 u64 elements
1077 * Return: The number of elements on sucess, -EINVAL if the property does
1079 * property does not have a value.
1089 * strings property.
1090 * @np: device node from which the property value is to be read.
1091 * @propname: name of the property to be searched.
1095 * Search for a property in a device tree node and retrieve a list of
1096 * terminated string values (pointer to data, not a copy) in that property.
1098 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1109 * multiple strings property.
1110 * @np: device node from which the property value is to be read.
1111 * @propname: name of the property to be searched.
1113 * Search for a property in a device tree node and retrieve the number of null
1116 * Return: The number of strings on success, -EINVAL if the property does not
1117 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1118 * is not null-terminated within the length of the property data.
1128 * strings property.
1129 * @np: device node from which the property value is to be read.
1130 * @propname: name of the property to be searched.
1135 * Search for a property in a device tree node and retrieve a null
1137 * contained in that property.
1139 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1140 * property does not have a value, and -EILSEQ if the string is not
1141 * null-terminated within the length of the property data.
1154 * of_property_read_bool - Find a property
1155 * @np: device node from which the property value is to be read.
1156 * @propname: name of the property to be searched.
1158 * Search for a property in a device node.
1160 * Return: true if the property exists false otherwise.
1165 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1171 * of_property_read_u8_array - Find and read an array of u8 from a property.
1173 * @np: device node from which the property value is to be read.
1174 * @propname: name of the property to be searched.
1178 * Search for a property in a device node and read 8-bit value(s) from
1182 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1184 * Return: 0 on success, -EINVAL if the property does not exist,
1185 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1186 * property data isn't large enough.
1203 * of_property_read_u16_array - Find and read an array of u16 from a property.
1205 * @np: device node from which the property value is to be read.
1206 * @propname: name of the property to be searched.
1210 * Search for a property in a device node and read 16-bit value(s) from
1214 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1216 * Return: 0 on success, -EINVAL if the property does not exist,
1217 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1218 * property data isn't large enough.
1236 * from a property.
1238 * @np: device node from which the property value is to be read.
1239 * @propname: name of the property to be searched.
1243 * Search for a property in a device node and read 32-bit value(s) from
1246 * Return: 0 on success, -EINVAL if the property does not exist,
1247 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1248 * property data isn't large enough.
1266 * from a property.
1268 * @np: device node from which the property value is to be read.
1269 * @propname: name of the property to be searched.
1273 * Search for a property in a device node and read 64-bit value(s) from
1276 * Return: 0 on success, -EINVAL if the property does not exist,
1277 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1278 * property data isn't large enough.
1428 * @prop: pointer to the property affected
1429 * @old_prop: hold a pointer to the original property
1440 struct property *prop;
1441 struct property *old_prop;
1477 struct property *prop);
1492 struct device_node *np, struct property *prop) in of_changeset_add_property()
1498 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1504 struct device_node *np, struct property *prop) in of_changeset_update_property()