Lines Matching refs:propname
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.
43 bool device_property_present(const struct device *dev, const char *propname)
45 return fwnode_property_present(dev_fwnode(dev), propname);
52 * @propname: Name of the property
54 * Return: true if property @propname is present. Otherwise, returns false.
57 const char *propname)
64 ret = fwnode_call_bool_op(fwnode, property_present, propname);
68 return fwnode_call_bool_op(fwnode->secondary, property_present, propname);
75 * @propname: Name of the property
79 * Function reads an array of u8 properties with @propname from the device
93 int device_property_read_u8_array(const struct device *dev, const char *propname,
96 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval);
103 * @propname: Name of the property
107 * Function reads an array of u16 properties with @propname from the device
121 int device_property_read_u16_array(const struct device *dev, const char *propname,
124 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval);
131 * @propname: Name of the property
135 * Function reads an array of u32 properties with @propname from the device
149 int device_property_read_u32_array(const struct device *dev, const char *propname,
152 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval);
159 * @propname: Name of the property
163 * Function reads an array of u64 properties with @propname from the device
177 int device_property_read_u64_array(const struct device *dev, const char *propname,
180 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval);
187 * @propname: Name of the property
191 * Function reads an array of string properties with @propname from the device
205 int device_property_read_string_array(const struct device *dev, const char *propname,
208 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval);
215 * @propname: Name of the property
218 * Function reads property @propname from the device firmware description and
227 int device_property_read_string(const struct device *dev, const char *propname,
230 return fwnode_property_read_string(dev_fwnode(dev), propname, val);
237 * @propname: Name of the property holding the array
249 int device_property_match_string(const struct device *dev, const char *propname,
252 return fwnode_property_match_string(dev_fwnode(dev), propname, string);
257 const char *propname,
266 ret = fwnode_call_int_op(fwnode, property_read_int_array, propname,
271 return fwnode_call_int_op(fwnode->secondary, property_read_int_array, propname,
278 * @propname: Name of the property
282 * Read an array of u8 properties with @propname from @fwnode and stores them to
297 const char *propname, u8 *val, size_t nval)
299 return fwnode_property_read_int_array(fwnode, propname, sizeof(u8),
307 * @propname: Name of the property
311 * Read an array of u16 properties with @propname from @fwnode and store them to
326 const char *propname, u16 *val, size_t nval)
328 return fwnode_property_read_int_array(fwnode, propname, sizeof(u16),
336 * @propname: Name of the property
340 * Read an array of u32 properties with @propname from @fwnode store them to
355 const char *propname, u32 *val, size_t nval)
357 return fwnode_property_read_int_array(fwnode, propname, sizeof(u32),
365 * @propname: Name of the property
369 * Read an array of u64 properties with @propname from @fwnode and store them to
384 const char *propname, u64 *val, size_t nval)
386 return fwnode_property_read_int_array(fwnode, propname, sizeof(u64),
394 * @propname: Name of the property
398 * Read an string list property @propname from the given firmware node and store
413 const char *propname, const char **val,
421 ret = fwnode_call_int_op(fwnode, property_read_string_array, propname,
426 return fwnode_call_int_op(fwnode->secondary, property_read_string_array, propname,
434 * @propname: Name of the property
437 * Read property @propname from the given firmware node and store the value into
447 const char *propname, const char **val)
449 int ret = fwnode_property_read_string_array(fwnode, propname, val, 1);
458 * @propname: Name of the property holding the array
471 const char *propname, const char *string)
476 nval = fwnode_property_read_string_array(fwnode, propname, NULL, 0);
487 ret = fwnode_property_read_string_array(fwnode, propname, values, nval);