Lines Matching full:property
3 * drivers/of/property.c - Procedures for accessing and interpreting
7 * file contains the OF property as well as the OF graph interface
58 * of_property_count_elems_of_size - Count the number of elements in a property
60 * @np: device node from which the property value is to be read.
61 * @propname: name of the property to be searched.
64 * Search for a property in a device node and count the number of elements of
67 * Return: The number of elements on sucess, -EINVAL if the property does not
69 * the property does not have a value.
74 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
94 * @np: device node from which the property value is to be read.
95 * @propname: name of the property to be searched.
96 * @min: minimum allowed length of property value
97 * @max: maximum allowed length of property value (0 means unlimited)
100 * Search for a property in a device node and valid the requested size.
102 * Return: The property value on success, -EINVAL if the property does not
103 * exist, -ENODATA if property does not have a value, and -EOVERFLOW if the
104 * property data is too small or too large.
110 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
128 * of_property_read_u32_index - Find and read a u32 from a multi-value property.
130 * @np: device node from which the property value is to be read.
131 * @propname: name of the property to be searched.
135 * Search for a property in a device node and read nth 32-bit value from
138 * Return: 0 on success, -EINVAL if the property does not exist,
139 * -ENODATA if property does not have a value, and -EOVERFLOW if the
140 * property data isn't large enough.
162 * of_property_read_u64_index - Find and read a u64 from a multi-value property.
164 * @np: device node from which the property value is to be read.
165 * @propname: name of the property to be searched.
169 * Search for a property in a device node and read nth 64-bit value from
172 * Return: 0 on success, -EINVAL if the property does not exist,
173 * -ENODATA if property does not have a value, and -EOVERFLOW if the
174 * property data isn't large enough.
196 * property, with bounds on the minimum and maximum array size.
198 * @np: device node from which the property value is to be read.
199 * @propname: name of the property to be searched.
206 * Search for a property in a device node and read 8-bit value(s) from
210 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
212 * Return: The number of elements read on success, -EINVAL if the property
213 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
214 * if the property data is smaller than sz_min or longer than sz_max.
246 * property, with bounds on the minimum and maximum array size.
248 * @np: device node from which the property value is to be read.
249 * @propname: name of the property to be searched.
256 * Search for a property in a device node and read 16-bit value(s) from
260 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
262 * Return: The number of elements read on success, -EINVAL if the property
263 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
264 * if the property data is smaller than sz_min or longer than sz_max.
296 * integers from a property, with bounds on the minimum and maximum array size.
298 * @np: device node from which the property value is to be read.
299 * @propname: name of the property to be searched.
306 * Search for a property in a device node and read 32-bit value(s) from
309 * Return: The number of elements read on success, -EINVAL if the property
310 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
311 * if the property data is smaller than sz_min or longer than sz_max.
342 * of_property_read_u64 - Find and read a 64 bit integer from a property
343 * @np: device node from which the property value is to be read.
344 * @propname: name of the property to be searched.
347 * Search for a property in a device node and read a 64-bit value from
350 * Return: 0 on success, -EINVAL if the property does not exist,
351 * -ENODATA if property does not have a value, and -EOVERFLOW if the
352 * property data isn't large enough.
374 * integers from a property, with bounds on the minimum and maximum array size.
376 * @np: device node from which the property value is to be read.
377 * @propname: name of the property to be searched.
384 * Search for a property in a device node and read 64-bit value(s) from
387 * Return: The number of elements read on success, -EINVAL if the property
388 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
389 * if the property data is smaller than sz_min or longer than sz_max.
422 * of_property_read_string - Find and read a string from a property
423 * @np: device node from which the property value is to be read.
424 * @propname: name of the property to be searched.
428 * Search for a property in a device tree node and retrieve a null
431 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
432 * property does not have a value, and -EILSEQ if the string is not
433 * null-terminated within the length of the property data.
443 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string()
457 * @np: pointer to node containing string list property
458 * @propname: string list property name
461 * This function searches a string list property and returns the index
467 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string()
494 * @np: device node from which the property value is to be read.
495 * @propname: name of the property to be searched.
507 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper()
530 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32()
553 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string()
704 * @port_reg: identifier (value of reg property) of the parent port node
705 * @reg: identifier (value of reg property) of the endpoint node
829 * @port: identifier (value of reg property) of the parent port node
830 * @endpoint: identifier (value of reg property) of the endpoint node
1177 * parse_prop_cells - Property parsing function for suppliers
1180 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1183 * @list_name: Property name that is known to contain list of phandle(s) to
1185 * @cells_name: property name that specifies phandles' arguments count
1231 * parse_suffix_prop_cells - Suffix property parsing function for suppliers
1234 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1237 * @suffix: Property suffix that is known to contain list of phandle(s) to
1239 * @cells_name: property name that specifies phandles' arguments count
1274 * struct supplier_bindings - Property parsing functions for suppliers
1278 * @parse_prop.np: Pointer to device node holding supplier phandle property
1279 * @parse_prop.prop_name: Name of property holding a phandle value
1283 * @node_not_dev: The consumer node containing the property is never converted
1285 * compatible property to find a node corresponding to a device.
1358 * Ignore node with gpio-hog property since its gpios are all provided in parse_gpio_compat()
1424 * of_link_property - Create device links to suppliers listed in a property
1425 * @con_np: The consumer device tree node which contains the property
1426 * @prop_name: Name of property to be parsed
1428 * This function checks if the property @prop_name that is present in the
1490 struct property *p; in of_fwnode_add_links()