Lines Matching full:property

20 #include <linux/property.h>
28 struct property { struct
32 struct property *next; argument
54 struct property *properties; argument
55 struct property *deadprops; /* removed properties */
96 struct property *prop;
97 struct property *old_prop;
212 static inline int of_property_check_flag(const struct property *p, unsigned long flag) in of_property_check_flag()
217 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
222 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
308 extern struct property *of_find_property(const struct device_node *np,
405 * @compat: compatible string to look for in root node's compatible property.
407 * Return: true if the root node has the given value in its compatible property.
416 extern int of_add_property(struct device_node *np, struct property *prop);
417 extern int of_remove_property(struct device_node *np, struct property *prop);
418 extern int of_update_property(struct device_node *np, struct property *newprop);
438 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
441 * struct property *prop;
447 const char *of_prop_next_string(struct property *prop, const char *cur);
600 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
809 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
814 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
829 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
835 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
860 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
866 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
870 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
902 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
949 * of_parse_phandle - Resolve a phandle property to a device_node pointer
950 * @np: Pointer to device node holding phandle property
951 * @phandle_name: Name of property holding a phandle value
974 * @list_name: property name that contains a list
975 * @cells_name: property name that specifies phandles' arguments count
1022 * @list_name: property name that contains a list
1062 * @list_name: property name that contains a list
1063 * @cells_name: property name that specifies phandles' arguments count
1067 * Same as of_parse_phandle_with_args() except that if the cells_name property
1071 * before and thus doesn't have a '#*-cells' property but is now migrated to
1101 * of_property_count_u8_elems - Count the number of u8 elements in a property
1103 * @np: device node from which the property value is to be read.
1104 * @propname: name of the property to be searched.
1106 * Search for a property in a device node and count the number of u8 elements
1109 * Return: The number of elements on sucess, -EINVAL if the property does
1111 * property does not have a value.
1120 * of_property_count_u16_elems - Count the number of u16 elements in a property
1122 * @np: device node from which the property value is to be read.
1123 * @propname: name of the property to be searched.
1125 * Search for a property in a device node and count the number of u16 elements
1128 * Return: The number of elements on sucess, -EINVAL if the property does
1130 * property does not have a value.
1139 * of_property_count_u32_elems - Count the number of u32 elements in a property
1141 * @np: device node from which the property value is to be read.
1142 * @propname: name of the property to be searched.
1144 * Search for a property in a device node and count the number of u32 elements
1147 * Return: The number of elements on sucess, -EINVAL if the property does
1149 * property does not have a value.
1158 * of_property_count_u64_elems - Count the number of u64 elements in a property
1160 * @np: device node from which the property value is to be read.
1161 * @propname: name of the property to be searched.
1163 * Search for a property in a device node and count the number of u64 elements
1166 * Return: The number of elements on sucess, -EINVAL if the property does
1168 * property does not have a value.
1178 * strings property.
1179 * @np: device node from which the property value is to be read.
1180 * @propname: name of the property to be searched.
1184 * Search for a property in a device tree node and retrieve a list of
1185 * terminated string values (pointer to data, not a copy) in that property.
1187 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1198 * multiple strings property.
1199 * @np: device node from which the property value is to be read.
1200 * @propname: name of the property to be searched.
1202 * Search for a property in a device tree node and retrieve the number of null
1205 * Return: The number of strings on success, -EINVAL if the property does not
1206 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1207 * is not null-terminated within the length of the property data.
1217 * strings property.
1218 * @np: device node from which the property value is to be read.
1219 * @propname: name of the property to be searched.
1224 * Search for a property in a device tree node and retrieve a null
1226 * contained in that property.
1228 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1229 * property does not have a value, and -EILSEQ if the string is not
1230 * null-terminated within the length of the property data.
1243 * of_property_read_bool - Find a property
1244 * @np: device node from which the property value is to be read.
1245 * @propname: name of the property to be searched.
1247 * Search for a boolean property in a device node. Usage on non-boolean
1248 * property types is deprecated.
1250 * Return: true if the property exists false otherwise.
1255 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1261 * of_property_present - Test if a property is present in a node
1262 * @np: device node to search for the property.
1263 * @propname: name of the property to be searched.
1265 * Test for a property present in a device node.
1267 * Return: true if the property exists false otherwise.
1275 * of_property_read_u8_array - Find and read an array of u8 from a property.
1277 * @np: device node from which the property value is to be read.
1278 * @propname: name of the property to be searched.
1282 * Search for a property in a device node and read 8-bit value(s) from
1286 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1288 * Return: 0 on success, -EINVAL if the property does not exist,
1289 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1290 * property data isn't large enough.
1307 * of_property_read_u16_array - Find and read an array of u16 from a property.
1309 * @np: device node from which the property value is to be read.
1310 * @propname: name of the property to be searched.
1314 * Search for a property in a device node and read 16-bit value(s) from
1318 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1320 * Return: 0 on success, -EINVAL if the property does not exist,
1321 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1322 * property data isn't large enough.
1340 * from a property.
1342 * @np: device node from which the property value is to be read.
1343 * @propname: name of the property to be searched.
1347 * Search for a property in a device node and read 32-bit value(s) from
1350 * Return: 0 on success, -EINVAL if the property does not exist,
1351 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1352 * property data isn't large enough.
1370 * from a property.
1372 * @np: device node from which the property value is to be read.
1373 * @propname: name of the property to be searched.
1377 * Search for a property in a device node and read 64-bit value(s) from
1380 * Return: 0 on success, -EINVAL if the property does not exist,
1381 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1382 * property data isn't large enough.
1433 for (struct {struct property *prop; const __be32 *item; } _it = \
1549 * @prop: pointer to the property affected
1550 * @old_prop: hold a pointer to the original property
1561 struct property *prop;
1562 struct property *old_prop;
1600 struct property *prop);
1615 struct device_node *np, struct property *prop) in of_changeset_add_property()
1621 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1627 struct device_node *np, struct property *prop) in of_changeset_update_property()