Lines Matching full:property

3  * property.c - Unified device property interface.
17 #include <linux/property.h>
35 * device_property_present - check if a property of a device is present
36 * @dev: Device whose property is being checked
37 * @propname: Name of the property
39 * Check if property @propname is present in the device firmware description.
41 * Return: true if property @propname is present. Otherwise, returns false.
50 * fwnode_property_present - check if a property of a firmware node is present
51 * @fwnode: Firmware node whose property to check
52 * @propname: Name of the property
54 * Return: true if property @propname is present. Otherwise, returns false.
73 * device_property_read_u8_array - return a u8 array property of a device
74 * @dev: Device to get the property of
75 * @propname: Name of the property
86 * %0 if the property was found (success),
88 * %-ENODATA if the property does not have a value,
89 * %-EPROTO if the property is not an array of numbers,
90 * %-EOVERFLOW if the size of the property is not as expected.
101 * device_property_read_u16_array - return a u16 array property of a device
102 * @dev: Device to get the property of
103 * @propname: Name of the property
114 * %0 if the property was found (success),
116 * %-ENODATA if the property does not have a value,
117 * %-EPROTO if the property is not an array of numbers,
118 * %-EOVERFLOW if the size of the property is not as expected.
129 * device_property_read_u32_array - return a u32 array property of a device
130 * @dev: Device to get the property of
131 * @propname: Name of the property
142 * %0 if the property was found (success),
144 * %-ENODATA if the property does not have a value,
145 * %-EPROTO if the property is not an array of numbers,
146 * %-EOVERFLOW if the size of the property is not as expected.
157 * device_property_read_u64_array - return a u64 array property of a device
158 * @dev: Device to get the property of
159 * @propname: Name of the property
170 * %0 if the property was found (success),
172 * %-ENODATA if the property does not have a value,
173 * %-EPROTO if the property is not an array of numbers,
174 * %-EOVERFLOW if the size of the property is not as expected.
185 * device_property_read_string_array - return a string array property of device
186 * @dev: Device to get the property of
187 * @propname: Name of the property
200 * %-ENODATA if the property does not have a value,
201 * %-EPROTO or %-EILSEQ if the property is not an array of strings,
202 * %-EOVERFLOW if the size of the property is not as expected.
213 * device_property_read_string - return a string property of a device
214 * @dev: Device to get the property of
215 * @propname: Name of the property
218 * Function reads property @propname from the device firmware description and
221 * Return: %0 if the property was found (success),
223 * %-ENODATA if the property does not have a value,
224 * %-EPROTO or %-EILSEQ if the property type is not a string.
236 * @dev: Device to get the property of
237 * @propname: Name of the property holding the array
243 * Return: index, starting from %0, if the property was found (success),
245 * %-ENODATA if the property does not have a value,
246 * %-EPROTO if the property is not an array of strings,
276 * fwnode_property_read_u8_array - return a u8 array property of firmware node
277 * @fwnode: Firmware node to get the property of
278 * @propname: Name of the property
289 * %0 if the property was found (success),
291 * %-ENODATA if the property does not have a value,
292 * %-EPROTO if the property is not an array of numbers,
293 * %-EOVERFLOW if the size of the property is not as expected,
305 * fwnode_property_read_u16_array - return a u16 array property of firmware node
306 * @fwnode: Firmware node to get the property of
307 * @propname: Name of the property
318 * %0 if the property was found (success),
320 * %-ENODATA if the property does not have a value,
321 * %-EPROTO if the property is not an array of numbers,
322 * %-EOVERFLOW if the size of the property is not as expected,
334 * fwnode_property_read_u32_array - return a u32 array property of firmware node
335 * @fwnode: Firmware node to get the property of
336 * @propname: Name of the property
347 * %0 if the property was found (success),
349 * %-ENODATA if the property does not have a value,
350 * %-EPROTO if the property is not an array of numbers,
351 * %-EOVERFLOW if the size of the property is not as expected,
363 * fwnode_property_read_u64_array - return a u64 array property firmware node
364 * @fwnode: Firmware node to get the property of
365 * @propname: Name of the property
376 * %0 if the property was found (success),
378 * %-ENODATA if the property does not have a value,
379 * %-EPROTO if the property is not an array of numbers,
380 * %-EOVERFLOW if the size of the property is not as expected,
392 * fwnode_property_read_string_array - return string array property of a node
393 * @fwnode: Firmware node to get the property of
394 * @propname: Name of the property
398 * Read an string list property @propname from the given firmware node and store
407 * %-ENODATA if the property does not have a value,
408 * %-EPROTO or %-EILSEQ if the property is not an array of strings,
409 * %-EOVERFLOW if the size of the property is not as expected,
432 * fwnode_property_read_string - return a string property of a firmware node
433 * @fwnode: Firmware node to get the property of
434 * @propname: Name of the property
437 * Read property @propname from the given firmware node and store the value into
440 * Return: %0 if the property was found (success),
442 * %-ENODATA if the property does not have a value,
443 * %-EPROTO or %-EILSEQ if the property is not a string,
457 * @fwnode: Firmware node to get the property of
458 * @propname: Name of the property holding the array
464 * Return: index, starting from %0, if the property was found (success),
466 * %-ENODATA if the property does not have a value,
467 * %-EPROTO if the property is not an array of strings,
502 * fwnode_property_match_property_string - find a property string value in an array and return index
503 * @fwnode: Firmware node to get the property of
504 * @propname: Name of the property holding the string value
508 * Find a property string value in a given @array and if it is found return
514 * %-ENODATA if the property does not have a value,
515 * %-EPROTO or %-EILSEQ if the property is not a string,
539 * @prop: The name of the property
540 * @nargs_prop: The name of the property telling the number of
548 * Obtain a reference based on a named property in an fwnode, with
556 * reference or the property was not found
998 * The function gets phy interface string from property 'phy-mode' or
1026 * The function gets phy interface string from property 'phy-mode' or