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
35 * of_property_read_bool - Find a property
36 * @np: device node from which the property value is to be read.
37 * @propname: name of the property to be searched.
39 * Search for a boolean property in a device node. Usage on non-boolean
40 * property types is deprecated.
42 * Return: true if the property exists false otherwise.
46 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool()
49 * Boolean properties should not have a value. Testing for property in of_property_read_bool()
51 * property value and check the returned error code. in of_property_read_bool()
54 pr_warn("%pOF: Read of boolean property '%s' with a value.\n", np, propname); in of_property_read_bool()
81 * of_property_count_elems_of_size - Count the number of elements in a property
83 * @np: device node from which the property value is to be read.
84 * @propname: name of the property to be searched.
87 * Search for a property in a device node and count the number of elements of
90 * Return: The number of elements on sucess, -EINVAL if the property does not
92 * the property does not have a value.
97 const struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
117 * @np: device node from which the property value is to be read.
118 * @propname: name of the property to be searched.
119 * @min: minimum allowed length of property value
120 * @max: maximum allowed length of property value (0 means unlimited)
123 * Search for a property in a device node and valid the requested size.
125 * Return: The property value on success, -EINVAL if the property does not
126 * exist, -ENODATA if property does not have a value, and -EOVERFLOW if the
127 * property data is too small or too large.
133 const struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
151 * of_property_read_u32_index - Find and read a u32 from a multi-value property.
153 * @np: device node from which the property value is to be read.
154 * @propname: name of the property to be searched.
158 * Search for a property in a device node and read nth 32-bit value from
161 * Return: 0 on success, -EINVAL if the property does not exist,
162 * -ENODATA if property does not have a value, and -EOVERFLOW if the
163 * property data isn't large enough.
185 * of_property_read_u64_index - Find and read a u64 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 64-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.
219 * property, with bounds on the minimum and maximum array size.
221 * @np: device node from which the property value is to be read.
222 * @propname: name of the property to be searched.
229 * Search for a property in a device node and read 8-bit value(s) from
233 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
235 * Return: The number of elements read on success, -EINVAL if the property
236 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
237 * if the property data is smaller than sz_min or longer than sz_max.
269 * property, with bounds on the minimum and maximum array size.
271 * @np: device node from which the property value is to be read.
272 * @propname: name of the property to be searched.
279 * Search for a property in a device node and read 16-bit value(s) from
283 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
285 * Return: The number of elements read on success, -EINVAL if the property
286 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
287 * if the property data is smaller than sz_min or longer than sz_max.
319 * integers from a property, with bounds on the minimum and maximum array size.
321 * @np: device node from which the property value is to be read.
322 * @propname: name of the property to be searched.
329 * Search for a property in a device node and read 32-bit value(s) from
332 * Return: The number of elements read on success, -EINVAL if the property
333 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
334 * if the property data is smaller than sz_min or longer than sz_max.
365 * of_property_read_u64 - Find and read a 64 bit integer from a property
366 * @np: device node from which the property value is to be read.
367 * @propname: name of the property to be searched.
370 * Search for a property in a device node and read a 64-bit value from
373 * Return: 0 on success, -EINVAL if the property does not exist,
374 * -ENODATA if property does not have a value, and -EOVERFLOW if the
375 * property data isn't large enough.
397 * integers from a property, with bounds on the minimum and maximum array size.
399 * @np: device node from which the property value is to be read.
400 * @propname: name of the property to be searched.
407 * Search for a property in a device node and read 64-bit value(s) from
410 * Return: The number of elements read on success, -EINVAL if the property
411 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
412 * if the property data is smaller than sz_min or longer than sz_max.
445 * of_property_read_string - Find and read a string from a property
446 * @np: device node from which the property value is to be read.
447 * @propname: name of the property to be searched.
451 * Search for a property in a device tree node and retrieve a null
454 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
455 * property does not have a value, and -EILSEQ if the string is not
456 * null-terminated within the length of the property data.
466 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string()
481 * @np: pointer to the node containing the string list property
482 * @propname: string list property name
485 * Search for an exact match of string in a device node property which is a
489 * if the property does not exist, -ENODATA if the property does not have a
491 * the property data.
496 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string()
523 * @np: device node from which the property value is to be read.
524 * @propname: name of the property to be searched.
536 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper()
559 const __be32 *of_prop_next_u32(const struct property *prop, const __be32 *cur, in of_prop_next_u32()
582 const char *of_prop_next_string(const struct property *prop, const char *cur) in of_prop_next_string()
783 * @port_reg: identifier (value of reg property) of the parent port node
784 * @reg: identifier (value of reg property) of the endpoint node
928 * @port: identifier (value of reg property) of the parent port node
929 * @endpoint: identifier (value of reg property) of the endpoint node
1189 * parse_prop_cells - Property parsing function for suppliers
1192 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1195 * @list_name: Property name that is known to contain list of phandle(s) to
1197 * @cells_name: property name that specifies phandles' arguments count
1243 * parse_suffix_prop_cells - Suffix property parsing function for suppliers
1246 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1249 * @suffix: Property suffix that is known to contain list of phandle(s) to
1251 * @cells_name: property name that specifies phandles' arguments count
1286 * struct supplier_bindings - Property parsing functions for suppliers
1290 * parse_prop.np: Pointer to device node holding supplier phandle property
1291 * parse_prop.prop_name: Name of property holding a phandle value
1294 * @get_con_dev: If the consumer node containing the property is never converted
1299 * for this property.
1378 * Ignore node with gpio-hog property since its gpios are all provided in parse_gpio_compat()
1509 * of_link_property - Create device links to suppliers listed in a property
1510 * @con_np: The consumer device tree node which contains the property
1511 * @prop_name: Name of property to be parsed
1513 * This function checks if the property @prop_name that is present in the
1572 const struct property *p; in of_fwnode_add_links()