Lines Matching refs:propname

121 bool device_property_present(struct device *dev, const char *propname)  in device_property_present()  argument
123 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present()
132 bool fwnode_property_present(struct fwnode_handle *fwnode, const char *propname) in fwnode_property_present() argument
135 return of_property_read_bool(to_of_node(fwnode), propname); in fwnode_property_present()
137 return !acpi_node_prop_get(fwnode, propname, NULL); in fwnode_property_present()
139 return !!pset_prop_get(to_pset(fwnode), propname); in fwnode_property_present()
161 int device_property_read_u8_array(struct device *dev, const char *propname, in device_property_read_u8_array() argument
164 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array()
186 int device_property_read_u16_array(struct device *dev, const char *propname, in device_property_read_u16_array() argument
189 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array()
211 int device_property_read_u32_array(struct device *dev, const char *propname, in device_property_read_u32_array() argument
214 return fwnode_property_read_u32_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u32_array()
236 int device_property_read_u64_array(struct device *dev, const char *propname, in device_property_read_u64_array() argument
239 return fwnode_property_read_u64_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u64_array()
261 int device_property_read_string_array(struct device *dev, const char *propname, in device_property_read_string_array() argument
264 return fwnode_property_read_string_array(dev_fwnode(dev), propname, val, nval); in device_property_read_string_array()
283 int device_property_read_string(struct device *dev, const char *propname, in device_property_read_string() argument
286 return fwnode_property_read_string(dev_fwnode(dev), propname, val); in device_property_read_string()
305 int device_property_match_string(struct device *dev, const char *propname, in device_property_match_string() argument
308 return fwnode_property_match_string(dev_fwnode(dev), propname, string); in device_property_match_string()
312 #define OF_DEV_PROP_READ_ARRAY(node, propname, type, val, nval) \ argument
313 (val) ? of_property_read_##type##_array((node), (propname), (val), (nval)) \
314 : of_property_count_elems_of_size((node), (propname), sizeof(type))
352 const char *propname, u8 *val, size_t nval) in fwnode_property_read_u8_array() argument
354 return FWNODE_PROP_READ_ARRAY(fwnode, propname, u8, DEV_PROP_U8, in fwnode_property_read_u8_array()
378 const char *propname, u16 *val, size_t nval) in fwnode_property_read_u16_array() argument
380 return FWNODE_PROP_READ_ARRAY(fwnode, propname, u16, DEV_PROP_U16, in fwnode_property_read_u16_array()
404 const char *propname, u32 *val, size_t nval) in fwnode_property_read_u32_array() argument
406 return FWNODE_PROP_READ_ARRAY(fwnode, propname, u32, DEV_PROP_U32, in fwnode_property_read_u32_array()
430 const char *propname, u64 *val, size_t nval) in fwnode_property_read_u64_array() argument
432 return FWNODE_PROP_READ_ARRAY(fwnode, propname, u64, DEV_PROP_U64, in fwnode_property_read_u64_array()
456 const char *propname, const char **val, in fwnode_property_read_string_array() argument
462 propname, val, nval) : in fwnode_property_read_string_array()
463 of_property_count_strings(to_of_node(fwnode), propname); in fwnode_property_read_string_array()
465 return acpi_node_prop_read(fwnode, propname, DEV_PROP_STRING, in fwnode_property_read_string_array()
468 return pset_prop_read_array(to_pset(fwnode), propname, in fwnode_property_read_string_array()
490 const char *propname, const char **val) in fwnode_property_read_string() argument
493 return of_property_read_string(to_of_node(fwnode), propname, val); in fwnode_property_read_string()
495 return acpi_node_prop_read(fwnode, propname, DEV_PROP_STRING, in fwnode_property_read_string()
498 return pset_prop_read_array(to_pset(fwnode), propname, in fwnode_property_read_string()
519 const char *propname, const char *string) in fwnode_property_match_string() argument
524 nval = fwnode_property_read_string_array(fwnode, propname, NULL, 0); in fwnode_property_match_string()
532 ret = fwnode_property_read_string_array(fwnode, propname, values, nval); in fwnode_property_match_string()