Lines Matching full:property

3  * property.c - Unified device property interface.
15 #include <linux/property.h>
36 * device_property_present - check if a property of a device is present
37 * @dev: Device whose property is being checked
38 * @propname: Name of the property
40 * Check if property @propname is present in the device firmware description.
42 * Return: true if property @propname is present. Otherwise, returns false.
51 * fwnode_property_present - check if a property of a firmware node is present
52 * @fwnode: Firmware node whose property to check
53 * @propname: Name of the property
55 * Return: true if property @propname is present. Otherwise, returns false.
74 * device_property_read_u8_array - return a u8 array property of a device
75 * @dev: Device to get the property of
76 * @propname: Name of the property
87 * %0 if the property was found (success),
89 * %-ENODATA if the property does not have a value,
90 * %-EPROTO if the property is not an array of numbers,
91 * %-EOVERFLOW if the size of the property is not as expected.
102 * device_property_read_u16_array - return a u16 array property of a device
103 * @dev: Device to get the property of
104 * @propname: Name of the property
115 * %0 if the property was found (success),
117 * %-ENODATA if the property does not have a value,
118 * %-EPROTO if the property is not an array of numbers,
119 * %-EOVERFLOW if the size of the property is not as expected.
130 * device_property_read_u32_array - return a u32 array property of a device
131 * @dev: Device to get the property of
132 * @propname: Name of the property
143 * %0 if the property was found (success),
145 * %-ENODATA if the property does not have a value,
146 * %-EPROTO if the property is not an array of numbers,
147 * %-EOVERFLOW if the size of the property is not as expected.
158 * device_property_read_u64_array - return a u64 array property of a device
159 * @dev: Device to get the property of
160 * @propname: Name of the property
171 * %0 if the property was found (success),
173 * %-ENODATA if the property does not have a value,
174 * %-EPROTO if the property is not an array of numbers,
175 * %-EOVERFLOW if the size of the property is not as expected.
186 * device_property_read_string_array - return a string array property of device
187 * @dev: Device to get the property of
188 * @propname: Name of the property
201 * %-ENODATA if the property does not have a value,
202 * %-EPROTO or %-EILSEQ if the property is not an array of strings,
203 * %-EOVERFLOW if the size of the property is not as expected.
214 * device_property_read_string - return a string property of a device
215 * @dev: Device to get the property of
216 * @propname: Name of the property
219 * Function reads property @propname from the device firmware description and
222 * Return: %0 if the property was found (success),
224 * %-ENODATA if the property does not have a value,
225 * %-EPROTO or %-EILSEQ if the property type is not a string.
237 * @dev: Device to get the property of
238 * @propname: Name of the property holding the array
244 * Return: index, starting from %0, if the property was found (success),
246 * %-ENODATA if the property does not have a value,
247 * %-EPROTO if the property is not an array of strings,
277 * fwnode_property_read_u8_array - return a u8 array property of firmware node
278 * @fwnode: Firmware node to get the property of
279 * @propname: Name of the property
290 * %0 if the property was found (success),
292 * %-ENODATA if the property does not have a value,
293 * %-EPROTO if the property is not an array of numbers,
294 * %-EOVERFLOW if the size of the property is not as expected,
306 * fwnode_property_read_u16_array - return a u16 array property of firmware node
307 * @fwnode: Firmware node to get the property of
308 * @propname: Name of the property
319 * %0 if the property was found (success),
321 * %-ENODATA if the property does not have a value,
322 * %-EPROTO if the property is not an array of numbers,
323 * %-EOVERFLOW if the size of the property is not as expected,
335 * fwnode_property_read_u32_array - return a u32 array property of firmware node
336 * @fwnode: Firmware node to get the property of
337 * @propname: Name of the property
348 * %0 if the property was found (success),
350 * %-ENODATA if the property does not have a value,
351 * %-EPROTO if the property is not an array of numbers,
352 * %-EOVERFLOW if the size of the property is not as expected,
364 * fwnode_property_read_u64_array - return a u64 array property firmware node
365 * @fwnode: Firmware node to get the property of
366 * @propname: Name of the property
377 * %0 if the property was found (success),
379 * %-ENODATA if the property does not have a value,
380 * %-EPROTO if the property is not an array of numbers,
381 * %-EOVERFLOW if the size of the property is not as expected,
393 * fwnode_property_read_string_array - return string array property of a node
394 * @fwnode: Firmware node to get the property of
395 * @propname: Name of the property
399 * Read an string list property @propname from the given firmware node and store
408 * %-ENODATA if the property does not have a value,
409 * %-EPROTO or %-EILSEQ if the property is not an array of strings,
410 * %-EOVERFLOW if the size of the property is not as expected,
433 * fwnode_property_read_string - return a string property of a firmware node
434 * @fwnode: Firmware node to get the property of
435 * @propname: Name of the property
438 * Read property @propname from the given firmware node and store the value into
441 * Return: %0 if the property was found (success),
443 * %-ENODATA if the property does not have a value,
444 * %-EPROTO or %-EILSEQ if the property is not a string,
458 * @fwnode: Firmware node to get the property of
459 * @propname: Name of the property holding the array
465 * Return: index, starting from %0, if the property was found (success),
467 * %-ENODATA if the property does not have a value,
468 * %-EPROTO if the property is not an array of strings,
503 * fwnode_property_match_property_string - find a property string value in an array and return index
504 * @fwnode: Firmware node to get the property of
505 * @propname: Name of the property holding the string value
509 * Find a property string value in a given @array and if it is found return
515 * %-ENODATA if the property does not have a value,
516 * %-EPROTO or %-EILSEQ if the property is not a string,
540 * @prop: The name of the property
541 * @nargs_prop: The name of the property telling the number of
549 * Obtain a reference based on a named property in an fwnode, with
557 * reference or the property was not found
929 * The function gets phy interface string from property 'phy-mode' or
957 * The function gets phy interface string from property 'phy-mode' or