Lines Matching full:property

19 #include <linux/property.h>
27 struct property { struct
31 struct property *next; argument
53 struct property *properties; argument
54 struct property *deadprops; /* removed properties */
95 struct property *prop;
96 struct property *old_prop;
215 static inline int of_property_check_flag(const struct property *p, unsigned long flag) in of_property_check_flag()
220 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
225 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
309 extern struct property *of_find_property(const struct device_node *np,
407 extern int of_add_property(struct device_node *np, struct property *prop);
408 extern int of_remove_property(struct device_node *np, struct property *prop);
409 extern int of_update_property(struct device_node *np, struct property *newprop);
424 * struct property *prop;
431 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur,
434 * struct property *prop;
440 const char *of_prop_next_string(struct property *prop, const char *cur);
592 static inline struct property *of_find_property(const struct device_node *np, in of_find_property()
801 static inline int of_add_property(struct device_node *np, struct property *prop) in of_add_property()
806 static inline int of_remove_property(struct device_node *np, struct property *prop) in of_remove_property()
816 static inline const __be32 *of_prop_next_u32(struct property *prop, in of_prop_next_u32()
822 static inline const char *of_prop_next_string(struct property *prop, in of_prop_next_string()
847 static inline int of_property_check_flag(const struct property *p, in of_property_check_flag()
853 static inline void of_property_set_flag(struct property *p, unsigned long flag) in of_property_set_flag()
857 static inline void of_property_clear_flag(struct property *p, unsigned long flag) in of_property_clear_flag()
889 static inline int of_prop_val_eq(struct property *p1, struct property *p2) in of_prop_val_eq()
933 * of_parse_phandle - Resolve a phandle property to a device_node pointer
934 * @np: Pointer to device node holding phandle property
935 * @phandle_name: Name of property holding a phandle value
958 * @list_name: property name that contains a list
959 * @cells_name: property name that specifies phandles' arguments count
1006 * @list_name: property name that contains a list
1046 * @list_name: property name that contains a list
1047 * @cells_name: property name that specifies phandles' arguments count
1051 * Same as of_parse_phandle_with_args() except that if the cells_name property
1055 * before and thus doesn't have a '#*-cells' property but is now migrated to
1069 * of_property_count_u8_elems - Count the number of u8 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 u8 elements
1077 * Return: The number of elements on sucess, -EINVAL if the property does
1079 * property does not have a value.
1088 * of_property_count_u16_elems - Count the number of u16 elements in a property
1090 * @np: device node from which the property value is to be read.
1091 * @propname: name of the property to be searched.
1093 * Search for a property in a device node and count the number of u16 elements
1096 * Return: The number of elements on sucess, -EINVAL if the property does
1098 * property does not have a value.
1107 * of_property_count_u32_elems - Count the number of u32 elements in a property
1109 * @np: device node from which the property value is to be read.
1110 * @propname: name of the property to be searched.
1112 * Search for a property in a device node and count the number of u32 elements
1115 * Return: The number of elements on sucess, -EINVAL if the property does
1117 * property does not have a value.
1126 * of_property_count_u64_elems - Count the number of u64 elements in a property
1128 * @np: device node from which the property value is to be read.
1129 * @propname: name of the property to be searched.
1131 * Search for a property in a device node and count the number of u64 elements
1134 * Return: The number of elements on sucess, -EINVAL if the property does
1136 * property does not have a value.
1146 * strings property.
1147 * @np: device node from which the property value is to be read.
1148 * @propname: name of the property to be searched.
1152 * Search for a property in a device tree node and retrieve a list of
1153 * terminated string values (pointer to data, not a copy) in that property.
1155 * Return: If @out_strs is NULL, the number of strings in the property is returned.
1166 * multiple strings property.
1167 * @np: device node from which the property value is to be read.
1168 * @propname: name of the property to be searched.
1170 * Search for a property in a device tree node and retrieve the number of null
1173 * Return: The number of strings on success, -EINVAL if the property does not
1174 * exist, -ENODATA if property does not have a value, and -EILSEQ if the string
1175 * is not null-terminated within the length of the property data.
1185 * strings property.
1186 * @np: device node from which the property value is to be read.
1187 * @propname: name of the property to be searched.
1192 * Search for a property in a device tree node and retrieve a null
1194 * contained in that property.
1196 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
1197 * property does not have a value, and -EILSEQ if the string is not
1198 * null-terminated within the length of the property data.
1211 * of_property_read_bool - Find a property
1212 * @np: device node from which the property value is to be read.
1213 * @propname: name of the property to be searched.
1215 * Search for a boolean property in a device node. Usage on non-boolean
1216 * property types is deprecated.
1218 * Return: true if the property exists false otherwise.
1223 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
1229 * of_property_present - Test if a property is present in a node
1230 * @np: device node to search for the property.
1231 * @propname: name of the property to be searched.
1233 * Test for a property present in a device node.
1235 * Return: true if the property exists false otherwise.
1243 * of_property_read_u8_array - Find and read an array of u8 from a property.
1245 * @np: device node from which the property value is to be read.
1246 * @propname: name of the property to be searched.
1250 * Search for a property in a device node and read 8-bit value(s) from
1254 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
1256 * Return: 0 on success, -EINVAL if the property does not exist,
1257 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1258 * property data isn't large enough.
1275 * of_property_read_u16_array - Find and read an array of u16 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 16-bit value(s) from
1286 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
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.
1308 * from a property.
1310 * @np: device node from which the property value is to be read.
1311 * @propname: name of the property to be searched.
1315 * Search for a property in a device node and read 32-bit value(s) from
1318 * Return: 0 on success, -EINVAL if the property does not exist,
1319 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1320 * property data isn't large enough.
1338 * from a property.
1340 * @np: device node from which the property value is to be read.
1341 * @propname: name of the property to be searched.
1345 * Search for a property in a device node and read 64-bit value(s) from
1348 * Return: 0 on success, -EINVAL if the property does not exist,
1349 * -ENODATA if property does not have a value, and -EOVERFLOW if the
1350 * property data isn't large enough.
1500 * @prop: pointer to the property affected
1501 * @old_prop: hold a pointer to the original property
1512 struct property *prop;
1513 struct property *old_prop;
1551 struct property *prop);
1566 struct device_node *np, struct property *prop) in of_changeset_add_property()
1572 struct device_node *np, struct property *prop) in of_changeset_remove_property()
1578 struct device_node *np, struct property *prop) in of_changeset_update_property()