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()
313 extern struct property *of_find_property(const struct device_node *np,
413 * @compat: compatible string to look for in root node's compatible property.
415 * Return: true if the root node has the given value in its compatible property.
424 extern int of_add_property(struct device_node *np, struct property *prop);
425 extern int of_remove_property(struct device_node *np, struct property *prop);
426 extern int of_update_property(struct device_node *np, struct property *newprop);
446 const __be32 *of_prop_next_u32(const struct property *prop, const __be32 *cur,
449 * struct property *prop;
455 const char *of_prop_next_string(const struct property *prop, const char *cur);
615 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
836 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
841 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
856 static inline const __be32 *of_prop_next_u32(const struct property *prop, in of_prop_next_u32()
862 static inline const char *of_prop_next_string(const struct property *prop, in of_prop_next_string()
887 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
893 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
897 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
970 * of_parse_phandle - Resolve a phandle property to a device_node pointer
971 * @np: Pointer to device node holding phandle property
972 * @phandle_name: Name of property holding a phandle value
995 * @list_name: property name that contains a list
996 * @cells_name: property name that specifies phandles' arguments count
1043 * @list_name: property name that contains a list
1083 * @list_name: property name that contains a list
1084 * @cells_name: property name that specifies phandles' arguments count
1088 * Same as of_parse_phandle_with_args() except that if the cells_name property
1092 * before and thus doesn't have a '#*-cells' property but is now migrated to
1122 * of_property_count_u8_elems - Count the number of u8 elements in a property
1124 * @np: device node from which the property value is to be read.
1125 * @propname: name of the property to be searched.
1127 * Search for a property in a device node and count the number of u8 elements
1130 * Return: The number of elements on sucess, -EINVAL if the property does
1132 * property does not have a value.
1141 * of_property_count_u16_elems - Count the number of u16 elements in a 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 node and count the number of u16 elements
1149 * Return: The number of elements on sucess, -EINVAL if the property does
1151 * property does not have a value.
1160 * of_property_count_u32_elems - Count the number of u32 elements in a property
1162 * @np: device node from which the property value is to be read.
1163 * @propname: name of the property to be searched.
1165 * Search for a property in a device node and count the number of u32 elements
1168 * Return: The number of elements on sucess, -EINVAL if the property does
1170 * property does not have a value.
1179 * of_property_count_u64_elems - Count the number of u64 elements in a property
1181 * @np: device node from which the property value is to be read.
1182 * @propname: name of the property to be searched.
1184 * Search for a property in a device node and count the number of u64 elements
1187 * Return: The number of elements on sucess, -EINVAL if the property does
1189 * property does not have a value.
1199 * strings property.
1200 * @np: device node from which the property value is to be read.
1201 * @propname: name of the property to be searched.
1205 * Search for a property in a device tree node and retrieve a list of
1206 * terminated string values (pointer to data, not a copy) in that property.
1208 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1219 * multiple strings property.
1220 * @np: device node from which the property value is to be read.
1221 * @propname: name of the property to be searched.
1223 * Search for a property in a device tree node and retrieve the number of null
1226 * Return: The number of strings on success, -EINVAL if the property does not
1227 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1228 * is not null-terminated within the length of the property data.
1238 * strings property.
1239 * @np: device node from which the property value is to be read.
1240 * @propname: name of the property to be searched.
1245 * Search for a property in a device tree node and retrieve a null
1247 * contained in that property.
1249 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1250 * property does not have a value, and -EILSEQ if the string is not
1251 * null-terminated within the length of the property data.
1264 * of_property_present - Test if a property is present in a node
1265 * @np: device node to search for the property.
1266 * @propname: name of the property to be searched.
1268 * Test for a property present in a device node.
1270 * Return: true if the property exists false otherwise.
1274 struct property *prop = of_find_property(np, propname, NULL); in of_property_present()
1280 * of_property_read_u8_array - Find and read an array of u8 from a property.
1282 * @np: device node from which the property value is to be read.
1283 * @propname: name of the property to be searched.
1287 * Search for a property in a device node and read 8-bit value(s) from
1291 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1293 * Return: 0 on success, -EINVAL if the property does not exist,
1294 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1295 * property data isn't large enough.
1312 * of_property_read_u16_array - Find and read an array of u16 from a property.
1314 * @np: device node from which the property value is to be read.
1315 * @propname: name of the property to be searched.
1319 * Search for a property in a device node and read 16-bit value(s) from
1323 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
1325 * Return: 0 on success, -EINVAL if the property does not exist,
1326 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1327 * property data isn't large enough.
1345 * from a property.
1347 * @np: device node from which the property value is to be read.
1348 * @propname: name of the property to be searched.
1352 * Search for a property in a device node and read 32-bit value(s) from
1355 * Return: 0 on success, -EINVAL if the property does not exist,
1356 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1357 * property data isn't large enough.
1375 * from a property.
1377 * @np: device node from which the property value is to be read.
1378 * @propname: name of the property to be searched.
1382 * Search for a property in a device node and read 64-bit value(s) from
1385 * Return: 0 on success, -EINVAL if the property does not exist,
1386 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1387 * property data isn't large enough.
1438 for (struct {const struct property *prop; const __be32 *item; } _it = \
1560 * @prop: pointer to the property affected
1561 * @old_prop: hold a pointer to the original property
1572 struct property *prop;
1573 struct property *old_prop;
1611 struct property *prop);
1626 struct device_node *np, struct property *prop) in of_changeset_add_property()
1632 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1638 struct device_node *np, struct property *prop) in of_changeset_update_property()