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
36 * of_property_read_bool - Find a property
37 * @np: device node from which the property value is to be read.
38 * @propname: name of the property to be searched.
40 * Search for a boolean property in a device node. Usage on non-boolean
41 * property types is deprecated.
43 * Return: true if the property exists false otherwise.
47 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
50 * Boolean properties should not have a value. Testing for property in of_property_read_bool()
52 * property value and check the returned error code. in of_property_read_bool()
55 pr_warn("%pOF: Read of boolean property '%s' with a value.\n", np, propname); in of_property_read_bool()
82 * of_property_count_elems_of_size - Count the number of elements in a property
84 * @np: device node from which the property value is to be read.
85 * @propname: name of the property to be searched.
88 * Search for a property in a device node and count the number of elements of
91 * Return: The number of elements on success, -EINVAL if the property does not
93 * the property does not have a value.
98 const struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
118 * @np: device node from which the property value is to be read.
119 * @propname: name of the property to be searched.
120 * @min: minimum allowed length of property value
121 * @max: maximum allowed length of property value (0 means unlimited)
124 * Search for a property in a device node and valid the requested size.
126 * Return: The property value on success, -EINVAL if the property does not
127 * exist, -ENODATA if property does not have a value, and -EOVERFLOW if the
128 * property data is too small or too large.
134 const struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
152 * of_property_read_u8_index - Find and read a u8 from a multi-value property.
154 * @np: device node from which the property value is to be read.
155 * @propname: name of the property to be searched.
159 * Search for a property in a device node and read nth 8-bit value from
162 * Return: 0 on success, -EINVAL if the property does not exist,
163 * -ENODATA if property does not have a value, and -EOVERFLOW if the
164 * property data isn't large enough.
185 * of_property_read_u16_index - Find and read a u16 from a multi-value property.
187 * @np: device node from which the property value is to be read.
188 * @propname: name of the property to be searched.
192 * Search for a property in a device node and read nth 16-bit value from
195 * Return: 0 on success, -EINVAL if the property does not exist,
196 * -ENODATA if property does not have a value, and -EOVERFLOW if the
197 * property data isn't large enough.
218 * of_property_read_u32_index - Find and read a u32 from a multi-value property.
220 * @np: device node from which the property value is to be read.
221 * @propname: name of the property to be searched.
225 * Search for a property in a device node and read nth 32-bit value from
228 * Return: 0 on success, -EINVAL if the property does not exist,
229 * -ENODATA if property does not have a value, and -EOVERFLOW if the
230 * property data isn't large enough.
252 * of_property_read_u64_index - Find and read a u64 from a multi-value property.
254 * @np: device node from which the property value is to be read.
255 * @propname: name of the property to be searched.
259 * Search for a property in a device node and read nth 64-bit value from
262 * Return: 0 on success, -EINVAL if the property does not exist,
263 * -ENODATA if property does not have a value, and -EOVERFLOW if the
264 * property data isn't large enough.
286 * property, with bounds on the minimum and maximum array size.
288 * @np: device node from which the property value is to be read.
289 * @propname: name of the property to be searched.
296 * Search for a property in a device node and read 8-bit value(s) from
300 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
302 * Return: The number of elements read on success, -EINVAL if the property
303 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
304 * if the property data is smaller than sz_min or longer than sz_max.
336 * property, with bounds on the minimum and maximum array size.
338 * @np: device node from which the property value is to be read.
339 * @propname: name of the property to be searched.
346 * Search for a property in a device node and read 16-bit value(s) from
350 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
352 * Return: The number of elements read on success, -EINVAL if the property
353 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
354 * if the property data is smaller than sz_min or longer than sz_max.
386 * integers from a property, with bounds on the minimum and maximum array size.
388 * @np: device node from which the property value is to be read.
389 * @propname: name of the property to be searched.
396 * Search for a property in a device node and read 32-bit value(s) from
399 * Return: The number of elements read on success, -EINVAL if the property
400 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
401 * if the property data is smaller than sz_min or longer than sz_max.
432 * of_property_read_u64 - Find and read a 64 bit integer from a property
433 * @np: device node from which the property value is to be read.
434 * @propname: name of the property to be searched.
437 * Search for a property in a device node and read a 64-bit value from
440 * Return: 0 on success, -EINVAL if the property does not exist,
441 * -ENODATA if property does not have a value, and -EOVERFLOW if the
442 * property data isn't large enough.
464 * integers from a property, with bounds on the minimum and maximum array size.
466 * @np: device node from which the property value is to be read.
467 * @propname: name of the property to be searched.
474 * Search for a property in a device node and read 64-bit value(s) from
477 * Return: The number of elements read on success, -EINVAL if the property
478 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
479 * if the property data is smaller than sz_min or longer than sz_max.
512 * of_property_read_string - Find and read a string from a property
513 * @np: device node from which the property value is to be read.
514 * @propname: name of the property to be searched.
518 * Search for a property in a device tree node and retrieve a null
521 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
522 * property does not have a value, and -EILSEQ if the string is not
523 * null-terminated within the length of the property data.
533 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string()
548 * @np: pointer to the node containing the string list property
549 * @propname: string list property name
552 * Search for an exact match of string in a device node property which is a
556 * if the property does not exist, -ENODATA if the property does not have a
558 * the property data.
563 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string()
590 * @np: device node from which the property value is to be read.
591 * @propname: name of the property to be searched.
603 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper()
626 const __be32 *of_prop_next_u32(const struct property *prop, const __be32 *cur, in of_prop_next_u32()
649 const char *of_prop_next_string(const struct property *prop, const char *cur) in of_prop_next_string()
865 * @port_reg: identifier (value of reg property) of the parent port node
866 * @reg: identifier (value of reg property) of the endpoint node
1010 * @port: identifier (value of reg property) of the parent port node
1011 * @endpoint: identifier (value of reg property) of the endpoint node
1279 * parse_prop_cells - Property parsing function for suppliers
1282 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1285 * @list_name: Property name that is known to contain list of phandle(s) to
1287 * @cells_name: property name that specifies phandles' arguments count
1322 * parse_suffix_prop_cells - Suffix property parsing function for suppliers
1325 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1328 * @suffix: Property suffix that is known to contain list of phandle(s) to
1330 * @cells_name: property name that specifies phandles' arguments count
1365 * struct supplier_bindings - Property parsing functions for suppliers
1369 * parse_prop.np: Pointer to device node holding supplier phandle property
1370 * parse_prop.prop_name: Name of property holding a phandle value
1373 * @get_con_dev: If the consumer node containing the property is never converted
1378 * for this property.
1461 * Ignore node with gpio-hog property since its gpios are all provided in parse_gpio_compat()
1585 * of_link_property - Create device links to suppliers listed in a property
1586 * @con_np: The consumer device tree node which contains the property
1587 * @prop_name: Name of property to be parsed
1589 * This function checks if the property @prop_name that is present in the
1672 const struct property *p; in of_fwnode_add_links()