• Home
  • Raw
  • Download

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
56 * of_property_count_elems_of_size - Count the number of elements in a property
58 * @np: device node from which the property value is to be read.
59 * @propname: name of the property to be searched.
62 * Search for a property in a device node and count the number of elements of
65 * Return: The number of elements on sucess, -EINVAL if the property does not
67 * the property does not have a value.
72 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
92 * @np: device node from which the property value is to be read.
93 * @propname: name of the property to be searched.
94 * @min: minimum allowed length of property value
95 * @max: maximum allowed length of property value (0 means unlimited)
98 * Search for a property in a device node and valid the requested size.
100 * Return: The property value on success, -EINVAL if the property does not
101 * exist, -ENODATA if property does not have a value, and -EOVERFLOW if the
102 * property data is too small or too large.
108 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
126 * of_property_read_u32_index - Find and read a u32 from a multi-value property.
128 * @np: device node from which the property value is to be read.
129 * @propname: name of the property to be searched.
133 * Search for a property in a device node and read nth 32-bit value from
136 * Return: 0 on success, -EINVAL if the property does not exist,
137 * -ENODATA if property does not have a value, and -EOVERFLOW if the
138 * property data isn't large enough.
160 * of_property_read_u64_index - Find and read a u64 from a multi-value property.
162 * @np: device node from which the property value is to be read.
163 * @propname: name of the property to be searched.
167 * Search for a property in a device node and read nth 64-bit value from
170 * Return: 0 on success, -EINVAL if the property does not exist,
171 * -ENODATA if property does not have a value, and -EOVERFLOW if the
172 * property data isn't large enough.
194 * property, with bounds on the minimum and maximum array size.
196 * @np: device node from which the property value is to be read.
197 * @propname: name of the property to be searched.
204 * Search for a property in a device node and read 8-bit value(s) from
208 * ``property = /bits/ 8 <0x50 0x60 0x70>;``
210 * Return: The number of elements read on success, -EINVAL if the property
211 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
212 * if the property data is smaller than sz_min or longer than sz_max.
244 * property, with bounds on the minimum and maximum array size.
246 * @np: device node from which the property value is to be read.
247 * @propname: name of the property to be searched.
254 * Search for a property in a device node and read 16-bit value(s) from
258 * ``property = /bits/ 16 <0x5000 0x6000 0x7000>;``
260 * Return: The number of elements read on success, -EINVAL if the property
261 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
262 * if the property data is smaller than sz_min or longer than sz_max.
294 * integers from a property, with bounds on the minimum and maximum array size.
296 * @np: device node from which the property value is to be read.
297 * @propname: name of the property to be searched.
304 * Search for a property in a device node and read 32-bit value(s) from
307 * Return: The number of elements read on success, -EINVAL if the property
308 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
309 * if the property data is smaller than sz_min or longer than sz_max.
340 * of_property_read_u64 - Find and read a 64 bit integer from a property
341 * @np: device node from which the property value is to be read.
342 * @propname: name of the property to be searched.
345 * Search for a property in a device node and read a 64-bit value from
348 * Return: 0 on success, -EINVAL if the property does not exist,
349 * -ENODATA if property does not have a value, and -EOVERFLOW if the
350 * property data isn't large enough.
372 * integers from a property, with bounds on the minimum and maximum array size.
374 * @np: device node from which the property value is to be read.
375 * @propname: name of the property to be searched.
382 * Search for a property in a device node and read 64-bit value(s) from
385 * Return: The number of elements read on success, -EINVAL if the property
386 * does not exist, -ENODATA if property does not have a value, and -EOVERFLOW
387 * if the property data is smaller than sz_min or longer than sz_max.
420 * of_property_read_string - Find and read a string from a property
421 * @np: device node from which the property value is to be read.
422 * @propname: name of the property to be searched.
426 * Search for a property in a device tree node and retrieve a null
429 * Return: 0 on success, -EINVAL if the property does not exist, -ENODATA if
430 * property does not have a value, and -EILSEQ if the string is not
431 * null-terminated within the length of the property data.
438 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string()
452 * @np: pointer to node containing string list property
453 * @propname: string list property name
456 * This function searches a string list property and returns the index
462 const struct property *prop = of_find_property(np, propname, NULL); in of_property_match_string()
489 * @np: device node from which the property value is to be read.
490 * @propname: name of the property to be searched.
502 const struct property *prop = of_find_property(np, propname, NULL); in of_property_read_string_helper()
525 const __be32 *of_prop_next_u32(struct property *prop, const __be32 *cur, in of_prop_next_u32()
548 const char *of_prop_next_string(struct property *prop, const char *cur) in of_prop_next_string()
699 * @port_reg: identifier (value of reg property) of the parent port node
700 * @reg: identifier (value of reg property) of the endpoint node
824 * @port: identifier (value of reg property) of the parent port node
825 * @endpoint: identifier (value of reg property) of the endpoint node
1188 * parse_prop_cells - Property parsing function for suppliers
1191 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1194 * @list_name: Property name that is known to contain list of phandle(s) to
1196 * @cells_name: property name that specifies phandles' arguments count
1242 * parse_suffix_prop_cells - Suffix property parsing function for suppliers
1245 * @prop_name: Name of property to be parsed. Expected to hold phandle values
1248 * @suffix: Property suffix that is known to contain list of phandle(s) to
1250 * @cells_name: property name that specifies phandles' arguments count
1285 * struct supplier_bindings - Property parsing functions for suppliers
1289 * @parse_prop.np: Pointer to device node holding supplier phandle property
1290 * @parse_prop.prop_name: Name of property holding a phandle value
1383 * of_link_property - Create device links to suppliers listed in a property
1385 * @con_np: The consumer device tree node which contains the property
1386 * @prop_name: Name of property to be parsed
1388 * This function checks if the property @prop_name that is present in the
1435 struct property *p; in of_link_to_suppliers()