/kernel/linux/linux-5.10/include/linux/ |
H A D | property.h | 36 bool device_property_present(struct device *dev, const char *propname); 37 int device_property_read_u8_array(struct device *dev, const char *propname, 39 int device_property_read_u16_array(struct device *dev, const char *propname, 41 int device_property_read_u32_array(struct device *dev, const char *propname, 43 int device_property_read_u64_array(struct device *dev, const char *propname, 45 int device_property_read_string_array(struct device *dev, const char *propname, 47 int device_property_read_string(struct device *dev, const char *propname, 50 const char *propname, const char *string); 54 const char *propname); 56 const char *propname, u 123 device_property_read_bool(struct device *dev, const char *propname) device_property_read_bool() argument 129 device_property_read_u8(struct device *dev, const char *propname, u8 *val) device_property_read_u8() argument 135 device_property_read_u16(struct device *dev, const char *propname, u16 *val) device_property_read_u16() argument 141 device_property_read_u32(struct device *dev, const char *propname, u32 *val) device_property_read_u32() argument 147 device_property_read_u64(struct device *dev, const char *propname, u64 *val) device_property_read_u64() argument 153 device_property_count_u8(struct device *dev, const char *propname) device_property_count_u8() argument 158 device_property_count_u16(struct device *dev, const char *propname) device_property_count_u16() argument 163 device_property_count_u32(struct device *dev, const char *propname) device_property_count_u32() argument 168 device_property_count_u64(struct device *dev, const char *propname) device_property_count_u64() argument 173 device_property_string_array_count(struct device *dev, const char *propname) device_property_string_array_count() argument 179 fwnode_property_read_bool(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_read_bool() argument 185 fwnode_property_read_u8(const struct fwnode_handle *fwnode, const char *propname, u8 *val) fwnode_property_read_u8() argument 191 fwnode_property_read_u16(const struct fwnode_handle *fwnode, const char *propname, u16 *val) fwnode_property_read_u16() argument 197 fwnode_property_read_u32(const struct fwnode_handle *fwnode, const char *propname, u32 *val) fwnode_property_read_u32() argument 203 fwnode_property_read_u64(const struct fwnode_handle *fwnode, const char *propname, u64 *val) fwnode_property_read_u64() argument 209 fwnode_property_count_u8(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u8() argument 215 fwnode_property_count_u16(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u16() argument 221 fwnode_property_count_u32(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u32() argument 227 fwnode_property_count_u64(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u64() argument 234 fwnode_property_string_array_count(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_string_array_count() argument [all...] |
H A D | of.h | 308 const char *propname, int elem_size); 310 const char *propname, 313 const char *propname, 316 const char *propname, u8 *out_values, 319 const char *propname, u16 *out_values, 322 const char *propname, 327 const char *propname, u64 *out_value); 329 const char *propname, 335 const char *propname, 338 const char *propname, 599 of_property_count_elems_of_size(const struct device_node *np, const char *propname, int elem_size) of_property_count_elems_of_size() argument 605 of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) of_property_read_u32_index() argument 611 of_property_read_u64_index(const struct device_node *np, const char *propname, u32 index, u64 *out_value) of_property_read_u64_index() argument 651 of_property_read_variable_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u8_array() argument 658 of_property_read_variable_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u16_array() argument 665 of_property_read_variable_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u32_array() argument 674 of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) of_property_read_u64() argument 680 of_property_read_variable_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u64_array() argument 689 of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) of_property_read_string() argument 696 of_property_match_string(const struct device_node *np, const char *propname, const char *string) of_property_match_string() argument 703 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int index) of_property_read_string_helper() argument 930 of_property_count_u8_elems(const struct device_node *np, const char *propname) of_property_count_u8_elems() argument 949 of_property_count_u16_elems(const struct device_node *np, const char *propname) of_property_count_u16_elems() argument 968 of_property_count_u32_elems(const struct device_node *np, const char *propname) of_property_count_u32_elems() argument 987 of_property_count_u64_elems(const struct device_node *np, const char *propname) of_property_count_u64_elems() argument 1006 of_property_read_string_array(const struct device_node *np, const char *propname, const char **out_strs, size_t sz) of_property_read_string_array() argument 1026 of_property_count_strings(const struct device_node *np, const char *propname) of_property_count_strings() argument 1051 of_property_read_string_index(const struct device_node *np, const char *propname, int index, const char **output) of_property_read_string_index() argument 1069 of_property_read_bool(const struct device_node *np, const char *propname) of_property_read_bool() argument 1086 of_property_present(const struct device_node *np, const char *propname) of_property_present() argument 1111 of_property_read_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz) of_property_read_u8_array() argument 1143 of_property_read_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz) of_property_read_u16_array() argument 1173 of_property_read_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz) of_property_read_u32_array() argument 1203 of_property_read_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz) of_property_read_u64_array() argument 1215 of_property_read_u8(const struct device_node *np, const char *propname, u8 *out_value) of_property_read_u8() argument 1222 of_property_read_u16(const struct device_node *np, const char *propname, u16 *out_value) of_property_read_u16() argument 1229 of_property_read_u32(const struct device_node *np, const char *propname, u32 *out_value) of_property_read_u32() argument 1236 of_property_read_s32(const struct device_node *np, const char *propname, s32 *out_value) of_property_read_s32() argument [all...] |
H A D | of_gpio.h | 84 * @propname: property name containing gpio specifier(s) 101 static inline int of_gpio_named_count(struct device_node *np, const char* propname) in of_gpio_named_count() argument 103 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 126 * @propname: Name of property containing gpio specifier(s) 133 const char *propname, int index) in of_get_named_gpio() 135 return of_get_named_gpio_flags(np, propname, index, NULL); in of_get_named_gpio() 132 of_get_named_gpio(struct device_node *np, const char *propname, int index) of_get_named_gpio() argument
|
H A D | fwnode.h | 117 const char *propname); 119 const char *propname, 124 const char *propname, const char **val,
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | property.h | 42 bool device_property_present(const struct device *dev, const char *propname); 43 int device_property_read_u8_array(const struct device *dev, const char *propname, 45 int device_property_read_u16_array(const struct device *dev, const char *propname, 47 int device_property_read_u32_array(const struct device *dev, const char *propname, 49 int device_property_read_u64_array(const struct device *dev, const char *propname, 51 int device_property_read_string_array(const struct device *dev, const char *propname, 53 int device_property_read_string(const struct device *dev, const char *propname, 56 const char *propname, const char *string); 59 const char *propname); 61 const char *propname, u 157 device_property_read_bool(const struct device *dev, const char *propname) device_property_read_bool() argument 163 device_property_read_u8(const struct device *dev, const char *propname, u8 *val) device_property_read_u8() argument 169 device_property_read_u16(const struct device *dev, const char *propname, u16 *val) device_property_read_u16() argument 175 device_property_read_u32(const struct device *dev, const char *propname, u32 *val) device_property_read_u32() argument 181 device_property_read_u64(const struct device *dev, const char *propname, u64 *val) device_property_read_u64() argument 187 device_property_count_u8(const struct device *dev, const char *propname) device_property_count_u8() argument 192 device_property_count_u16(const struct device *dev, const char *propname) device_property_count_u16() argument 197 device_property_count_u32(const struct device *dev, const char *propname) device_property_count_u32() argument 202 device_property_count_u64(const struct device *dev, const char *propname) device_property_count_u64() argument 207 device_property_string_array_count(const struct device *dev, const char *propname) device_property_string_array_count() argument 213 fwnode_property_read_bool(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_read_bool() argument 219 fwnode_property_read_u8(const struct fwnode_handle *fwnode, const char *propname, u8 *val) fwnode_property_read_u8() argument 225 fwnode_property_read_u16(const struct fwnode_handle *fwnode, const char *propname, u16 *val) fwnode_property_read_u16() argument 231 fwnode_property_read_u32(const struct fwnode_handle *fwnode, const char *propname, u32 *val) fwnode_property_read_u32() argument 237 fwnode_property_read_u64(const struct fwnode_handle *fwnode, const char *propname, u64 *val) fwnode_property_read_u64() argument 243 fwnode_property_count_u8(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u8() argument 249 fwnode_property_count_u16(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u16() argument 255 fwnode_property_count_u32(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u32() argument 261 fwnode_property_count_u64(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_count_u64() argument 268 fwnode_property_string_array_count(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_string_array_count() argument [all...] |
H A D | of.h | 313 const char *propname, int elem_size); 315 const char *propname, 318 const char *propname, 321 const char *propname, u8 *out_values, 324 const char *propname, u16 *out_values, 327 const char *propname, 332 const char *propname, u64 *out_value); 334 const char *propname, 340 const char *propname, 343 const char *propname, 607 of_property_count_elems_of_size(const struct device_node *np, const char *propname, int elem_size) of_property_count_elems_of_size() argument 613 of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) of_property_read_u32_index() argument 619 of_property_read_u64_index(const struct device_node *np, const char *propname, u32 index, u64 *out_value) of_property_read_u64_index() argument 669 of_property_read_variable_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u8_array() argument 676 of_property_read_variable_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u16_array() argument 683 of_property_read_variable_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u32_array() argument 692 of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) of_property_read_u64() argument 698 of_property_read_variable_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u64_array() argument 707 of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) of_property_read_string() argument 714 of_property_match_string(const struct device_node *np, const char *propname, const char *string) of_property_match_string() argument 721 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int index) of_property_read_string_helper() argument 1081 of_property_count_u8_elems(const struct device_node *np, const char *propname) of_property_count_u8_elems() argument 1100 of_property_count_u16_elems(const struct device_node *np, const char *propname) of_property_count_u16_elems() argument 1119 of_property_count_u32_elems(const struct device_node *np, const char *propname) of_property_count_u32_elems() argument 1138 of_property_count_u64_elems(const struct device_node *np, const char *propname) of_property_count_u64_elems() argument 1157 of_property_read_string_array(const struct device_node *np, const char *propname, const char **out_strs, size_t sz) of_property_read_string_array() argument 1177 of_property_count_strings(const struct device_node *np, const char *propname) of_property_count_strings() argument 1202 of_property_read_string_index(const struct device_node *np, const char *propname, int index, const char **output) of_property_read_string_index() argument 1220 of_property_read_bool(const struct device_node *np, const char *propname) of_property_read_bool() argument 1237 of_property_present(const struct device_node *np, const char *propname) of_property_present() argument 1262 of_property_read_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz) of_property_read_u8_array() argument 1294 of_property_read_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz) of_property_read_u16_array() argument 1324 of_property_read_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz) of_property_read_u32_array() argument 1354 of_property_read_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz) of_property_read_u64_array() argument 1366 of_property_read_u8(const struct device_node *np, const char *propname, u8 *out_value) of_property_read_u8() argument 1373 of_property_read_u16(const struct device_node *np, const char *propname, u16 *out_value) of_property_read_u16() argument 1380 of_property_read_u32(const struct device_node *np, const char *propname, u32 *out_value) of_property_read_u32() argument 1387 of_property_read_s32(const struct device_node *np, const char *propname, s32 *out_value) of_property_read_s32() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpiolib-swnode.c | 20 static void swnode_format_propname(const char *con_id, char *propname, in swnode_format_propname() argument 29 snprintf(propname, max_size, "%s-gpios", con_id); in swnode_format_propname() 31 strscpy(propname, "gpios", max_size); in swnode_format_propname() 60 char propname[32]; /* 32 is max size of property name */ in swnode_find_gpio() local 67 swnode_format_propname(con_id, propname, sizeof(propname)); in swnode_find_gpio() 73 error = fwnode_property_get_reference_args(fwnode, propname, NULL, 2, idx, &args); in swnode_find_gpio() 76 __func__, propname, fwnode, idx); in swnode_find_gpio() 89 __func__, propname, fwnode, idx, PTR_ERR_OR_ZERO(desc)); in swnode_find_gpio() 107 char propname[3 in swnode_gpio_count() local [all...] |
H A D | gpiolib-of.c | 46 * @propname: property name containing gpio specifier(s) 64 const char *propname) in of_gpio_named_count() 66 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 99 char propname[32]; in of_gpio_get_count() local 108 snprintf(propname, sizeof(propname), "%s-%s", in of_gpio_get_count() 111 snprintf(propname, sizeof(propname), "%s", in of_gpio_get_count() 114 ret = of_gpio_named_count(dev->of_node, propname); in of_gpio_get_count() 179 const char *propname, in of_gpio_try_fixup_polarity() 63 of_gpio_named_count(const struct device_node *np, const char *propname) of_gpio_named_count() argument 178 of_gpio_try_fixup_polarity(const struct device_node *np, const char *propname, enum of_gpio_flags *flags) of_gpio_try_fixup_polarity() argument 184 const char *propname; of_gpio_try_fixup_polarity() member 208 of_gpio_set_polarity_by_property(const struct device_node *np, const char *propname, enum of_gpio_flags *flags) of_gpio_set_polarity_by_property() argument 287 of_gpio_flags_quirks(const struct device_node *np, const char *propname, enum of_gpio_flags *flags, int index) of_gpio_flags_quirks() argument 362 of_get_named_gpiod_flags(const struct device_node *np, const char *propname, int index, enum of_gpio_flags *flags) of_get_named_gpiod_flags() argument 410 of_get_named_gpio(const struct device_node *np, const char *propname, int index) of_get_named_gpio() argument [all...] |
H A D | gpiolib-acpi.c | 834 const char *propname, int index, in acpi_gpio_property_lookup() 842 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup() 848 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, &quirks)) in acpi_gpio_property_lookup() 873 * @propname: Property name of the GPIO (optional) 882 * If @propname is specified the GPIO is looked using device property. In 893 const char *propname, in acpi_get_gpiod_by_index() 906 if (propname) { in acpi_get_gpiod_by_index() 907 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 910 propname, index, &lookup); in acpi_get_gpiod_by_index() 929 * @propname 833 acpi_gpio_property_lookup(struct fwnode_handle *fwnode, const char *propname, int index, struct acpi_gpio_lookup *lookup) acpi_gpio_property_lookup() argument 892 acpi_get_gpiod_by_index(struct acpi_device *adev, const char *propname, int index, struct acpi_gpio_info *info) acpi_get_gpiod_by_index() argument 940 acpi_get_gpiod_from_data(struct fwnode_handle *fwnode, const char *propname, int index, struct acpi_gpio_info *info) acpi_get_gpiod_from_data() argument 984 char propname[32]; acpi_find_gpio() local 1444 char propname[32]; acpi_gpio_count() local [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | property.c | 31 * @propname: Name of the property 33 * Check if property @propname is present in the device firmware description. 35 bool device_property_present(struct device *dev, const char *propname) in device_property_present() argument 37 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present() 44 * @propname: Name of the property 47 const char *propname) in fwnode_property_present() 51 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present() 55 propname); in fwnode_property_present() 63 * @propname: Name of the property 67 * Function reads an array of u8 properties with @propname fro 46 fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_present() argument 78 device_property_read_u8_array(struct device *dev, const char *propname, u8 *val, size_t nval) device_property_read_u8_array() argument 103 device_property_read_u16_array(struct device *dev, const char *propname, u16 *val, size_t nval) device_property_read_u16_array() argument 128 device_property_read_u32_array(struct device *dev, const char *propname, u32 *val, size_t nval) device_property_read_u32_array() argument 153 device_property_read_u64_array(struct device *dev, const char *propname, u64 *val, size_t nval) device_property_read_u64_array() argument 178 device_property_read_string_array(struct device *dev, const char *propname, const char **val, size_t nval) device_property_read_string_array() argument 200 device_property_read_string(struct device *dev, const char *propname, const char **val) device_property_read_string() argument 222 device_property_match_string(struct device *dev, const char *propname, const char *string) device_property_match_string() argument 229 fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) fwnode_property_read_int_array() argument 265 fwnode_property_read_u8_array(const struct fwnode_handle *fwnode, const char *propname, u8 *val, size_t nval) fwnode_property_read_u8_array() argument 291 fwnode_property_read_u16_array(const struct fwnode_handle *fwnode, const char *propname, u16 *val, size_t nval) fwnode_property_read_u16_array() argument 317 fwnode_property_read_u32_array(const struct fwnode_handle *fwnode, const char *propname, u32 *val, size_t nval) fwnode_property_read_u32_array() argument 343 fwnode_property_read_u64_array(const struct fwnode_handle *fwnode, const char *propname, u64 *val, size_t nval) fwnode_property_read_u64_array() argument 369 fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) fwnode_property_read_string_array() argument 401 fwnode_property_read_string(const struct fwnode_handle *fwnode, const char *propname, const char **val) fwnode_property_read_string() argument 425 fwnode_property_match_string(const struct fwnode_handle *fwnode, const char *propname, const char *string) fwnode_property_match_string() argument [all...] |
H A D | swnode.c | 115 const char *propname, size_t length) in property_entry_find() 120 prop = property_entry_get(props, propname); in property_entry_find() 133 const char *propname, size_t length) in property_entry_count_elems_of_size() 137 prop = property_entry_get(props, propname); in property_entry_count_elems_of_size() 170 const char *propname, in property_entry_read_string_array() 178 array_len = property_entry_count_elems_of_size(props, propname, in property_entry_read_string_array() 190 pointer = property_entry_find(props, propname, length); in property_entry_read_string_array() 367 const char *propname) in software_node_property_present() 371 return !!property_entry_get(swnode->node->properties, propname); in software_node_property_present() 375 const char *propname, in software_node_read_int_array() 114 property_entry_find(const struct property_entry *props, const char *propname, size_t length) property_entry_find() argument 132 property_entry_count_elems_of_size(const struct property_entry *props, const char *propname, size_t length) property_entry_count_elems_of_size() argument 169 property_entry_read_string_array(const struct property_entry *props, const char *propname, const char **strings, size_t nval) property_entry_read_string_array() argument 366 software_node_property_present(const struct fwnode_handle *fwnode, const char *propname) software_node_property_present() argument 374 software_node_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) software_node_read_int_array() argument 385 software_node_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) software_node_read_string_array() argument 480 software_node_get_reference_args(const struct fwnode_handle *fwnode, const char *propname, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args) software_node_get_reference_args() argument [all...] |
H A D | cacheinfo.c | 76 const char *propname; in cache_size() local 80 propname = cache_type_info[ct_idx].size_prop; in cache_size() 82 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 97 const char *propname; in cache_get_line_size() local 99 propname = cache_type_info[ct_idx].line_size_props[i]; in cache_get_line_size() 100 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size() 110 const char *propname; in cache_nr_sets() local 114 propname = cache_type_info[ct_idx].nr_sets_prop; in cache_nr_sets() 116 of_property_read_u32(np, propname, &this_leaf->number_of_sets); in cache_nr_sets()
|
/kernel/linux/linux-6.6/drivers/base/ |
H A D | property.c | 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) in device_property_present() argument 45 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present() 52 * @propname: Name of the property 54 * Return: true if property @propname is present. Otherwise, returns false. 57 const char *propname) in fwnode_property_present() 64 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present() 68 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present() 56 fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) fwnode_property_present() argument 93 device_property_read_u8_array(const struct device *dev, const char *propname, u8 *val, size_t nval) device_property_read_u8_array() argument 121 device_property_read_u16_array(const struct device *dev, const char *propname, u16 *val, size_t nval) device_property_read_u16_array() argument 149 device_property_read_u32_array(const struct device *dev, const char *propname, u32 *val, size_t nval) device_property_read_u32_array() argument 177 device_property_read_u64_array(const struct device *dev, const char *propname, u64 *val, size_t nval) device_property_read_u64_array() argument 205 device_property_read_string_array(const struct device *dev, const char *propname, const char **val, size_t nval) device_property_read_string_array() argument 227 device_property_read_string(const struct device *dev, const char *propname, const char **val) device_property_read_string() argument 249 device_property_match_string(const struct device *dev, const char *propname, const char *string) device_property_match_string() argument 256 fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) fwnode_property_read_int_array() argument 296 fwnode_property_read_u8_array(const struct fwnode_handle *fwnode, const char *propname, u8 *val, size_t nval) fwnode_property_read_u8_array() argument 325 fwnode_property_read_u16_array(const struct fwnode_handle *fwnode, const char *propname, u16 *val, size_t nval) fwnode_property_read_u16_array() argument 354 fwnode_property_read_u32_array(const struct fwnode_handle *fwnode, const char *propname, u32 *val, size_t nval) fwnode_property_read_u32_array() argument 383 fwnode_property_read_u64_array(const struct fwnode_handle *fwnode, const char *propname, u64 *val, size_t nval) fwnode_property_read_u64_array() argument 412 fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) fwnode_property_read_string_array() argument 446 fwnode_property_read_string(const struct fwnode_handle *fwnode, const char *propname, const char **val) fwnode_property_read_string() argument 470 fwnode_property_match_string(const struct fwnode_handle *fwnode, const char *propname, const char *string) fwnode_property_match_string() argument [all...] |
H A D | swnode.c | 131 const char *propname, size_t length) in property_entry_find() 136 prop = property_entry_get(props, propname); in property_entry_find() 149 const char *propname, size_t length) in property_entry_count_elems_of_size() 153 prop = property_entry_get(props, propname); in property_entry_count_elems_of_size() 186 const char *propname, in property_entry_read_string_array() 194 array_len = property_entry_count_elems_of_size(props, propname, in property_entry_read_string_array() 206 pointer = property_entry_find(props, propname, length); in property_entry_read_string_array() 383 const char *propname) in software_node_property_present() 387 return !!property_entry_get(swnode->node->properties, propname); in software_node_property_present() 391 const char *propname, in software_node_read_int_array() 130 property_entry_find(const struct property_entry *props, const char *propname, size_t length) property_entry_find() argument 148 property_entry_count_elems_of_size(const struct property_entry *props, const char *propname, size_t length) property_entry_count_elems_of_size() argument 185 property_entry_read_string_array(const struct property_entry *props, const char *propname, const char **strings, size_t nval) property_entry_read_string_array() argument 382 software_node_property_present(const struct fwnode_handle *fwnode, const char *propname) software_node_property_present() argument 390 software_node_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) software_node_read_int_array() argument 401 software_node_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) software_node_read_string_array() argument 493 software_node_get_reference_args(const struct fwnode_handle *fwnode, const char *propname, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args) software_node_get_reference_args() argument [all...] |
/kernel/linux/linux-5.10/drivers/of/ |
H A D | property.c | 59 * @propname: name of the property to be searched. 70 const char *propname, int elem_size) in of_property_count_elems_of_size() 72 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() 81 propname, np, elem_size); in of_property_count_elems_of_size() 93 * @propname: name of the property to be searched. 106 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() 108 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 129 * @propname: name of the property to be searched. 143 const char *propname, in of_property_read_u32_index() 146 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index() 69 of_property_count_elems_of_size(const struct device_node *np, const char *propname, int elem_size) of_property_count_elems_of_size() argument 105 of_find_property_value_of_size(const struct device_node *np, const char *propname, u32 min, u32 max, size_t *len) of_find_property_value_of_size() argument 142 of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) of_property_read_u32_index() argument 176 of_property_read_u64_index(const struct device_node *np, const char *propname, u32 index, u64 *out_value) of_property_read_u64_index() argument 216 of_property_read_variable_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u8_array() argument 266 of_property_read_variable_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u16_array() argument 313 of_property_read_variable_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u32_array() argument 354 of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) of_property_read_u64() argument 391 of_property_read_variable_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u64_array() argument 435 of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) of_property_read_string() argument 459 of_property_match_string(const struct device_node *np, const char *propname, const char *string) of_property_match_string() argument 498 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int skip) of_property_read_string_helper() argument 874 of_fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) of_fwnode_property_present() argument 880 of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) of_fwnode_property_read_int_array() argument 906 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) of_fwnode_property_read_string_array() argument [all...] |
/kernel/linux/linux-6.6/drivers/of/ |
H A D | property.c | 61 * @propname: name of the property to be searched. 72 const char *propname, int elem_size) in of_property_count_elems_of_size() 74 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() 83 propname, np, elem_size); in of_property_count_elems_of_size() 95 * @propname: name of the property to be searched. 108 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() 110 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 131 * @propname: name of the property to be searched. 145 const char *propname, in of_property_read_u32_index() 148 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index() 71 of_property_count_elems_of_size(const struct device_node *np, const char *propname, int elem_size) of_property_count_elems_of_size() argument 107 of_find_property_value_of_size(const struct device_node *np, const char *propname, u32 min, u32 max, size_t *len) of_find_property_value_of_size() argument 144 of_property_read_u32_index(const struct device_node *np, const char *propname, u32 index, u32 *out_value) of_property_read_u32_index() argument 178 of_property_read_u64_index(const struct device_node *np, const char *propname, u32 index, u64 *out_value) of_property_read_u64_index() argument 218 of_property_read_variable_u8_array(const struct device_node *np, const char *propname, u8 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u8_array() argument 268 of_property_read_variable_u16_array(const struct device_node *np, const char *propname, u16 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u16_array() argument 315 of_property_read_variable_u32_array(const struct device_node *np, const char *propname, u32 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u32_array() argument 356 of_property_read_u64(const struct device_node *np, const char *propname, u64 *out_value) of_property_read_u64() argument 393 of_property_read_variable_u64_array(const struct device_node *np, const char *propname, u64 *out_values, size_t sz_min, size_t sz_max) of_property_read_variable_u64_array() argument 440 of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) of_property_read_string() argument 464 of_property_match_string(const struct device_node *np, const char *propname, const char *string) of_property_match_string() argument 503 of_property_read_string_helper(const struct device_node *np, const char *propname, const char **out_strs, size_t sz, int skip) of_property_read_string_helper() argument 895 of_fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) of_fwnode_property_present() argument 901 of_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) of_fwnode_property_read_int_array() argument 927 of_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) of_fwnode_property_read_string_array() argument [all...] |
/kernel/linux/linux-5.10/drivers/input/ |
H A D | matrix-keymap.c | 69 static int matrix_keypad_parse_keymap(const char *propname, in matrix_keypad_parse_keymap() argument 81 if (!propname) in matrix_keypad_parse_keymap() 82 propname = "linux,keymap"; in matrix_keypad_parse_keymap() 84 size = device_property_count_u32(dev, propname); in matrix_keypad_parse_keymap() 87 propname, size); in matrix_keypad_parse_keymap() 93 propname, size, max_keys); in matrix_keypad_parse_keymap() 101 retval = device_property_read_u32_array(dev, propname, keys, size); in matrix_keypad_parse_keymap() 104 propname, retval); in matrix_keypad_parse_keymap()
|
/kernel/linux/linux-6.6/drivers/input/ |
H A D | matrix-keymap.c | 69 static int matrix_keypad_parse_keymap(const char *propname, in matrix_keypad_parse_keymap() argument 81 if (!propname) in matrix_keypad_parse_keymap() 82 propname = "linux,keymap"; in matrix_keypad_parse_keymap() 84 size = device_property_count_u32(dev, propname); in matrix_keypad_parse_keymap() 87 propname, size); in matrix_keypad_parse_keymap() 93 propname, size, max_keys); in matrix_keypad_parse_keymap() 101 retval = device_property_read_u32_array(dev, propname, keys, size); in matrix_keypad_parse_keymap() 104 propname, retval); in matrix_keypad_parse_keymap()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpiolib-of.c | 62 char propname[32]; in of_gpio_get_count() local 71 snprintf(propname, sizeof(propname), "%s-%s", in of_gpio_get_count() 74 snprintf(propname, sizeof(propname), "%s", in of_gpio_get_count() 77 ret = of_gpio_named_count(dev->of_node, propname); in of_gpio_get_count() 134 const char *propname, in of_gpio_flags_quirks() 145 (!(strcmp(propname, "enable-gpio") && in of_gpio_flags_quirks() 146 strcmp(propname, "enable-gpios")) && in of_gpio_flags_quirks() 180 if (IS_ENABLED(CONFIG_SPI_MASTER) && !strcmp(propname, "c in of_gpio_flags_quirks() 133 of_gpio_flags_quirks(struct device_node *np, const char *propname, enum of_gpio_flags *flags, int index) of_gpio_flags_quirks() argument 239 of_get_named_gpiod_flags(struct device_node *np, const char *propname, int index, enum of_gpio_flags *flags) of_get_named_gpiod_flags() argument 306 gpiod_get_from_of_node(struct device_node *node, const char *propname, int index, enum gpiod_flags dflags, const char *label) gpiod_get_from_of_node() argument [all...] |
H A D | gpiolib-acpi.c | 720 const char *propname, int index, in acpi_gpio_property_lookup() 728 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup() 736 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, in acpi_gpio_property_lookup() 762 * @propname: Property name of the GPIO (optional) 771 * If @propname is specified the GPIO is looked using device property. In 782 const char *propname, int index, in acpi_get_gpiod_by_index() 794 if (propname) { in acpi_get_gpiod_by_index() 795 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 798 propname, index, &lookup); in acpi_get_gpiod_by_index() 833 char propname[3 in acpi_find_gpio() local 719 acpi_gpio_property_lookup(struct fwnode_handle *fwnode, const char *propname, int index, struct acpi_gpio_lookup *lookup) acpi_gpio_property_lookup() argument 781 acpi_get_gpiod_by_index(struct acpi_device *adev, const char *propname, int index, struct acpi_gpio_info *info) acpi_get_gpiod_by_index() argument 889 acpi_node_get_gpiod(struct fwnode_handle *fwnode, const char *propname, int index, struct acpi_gpio_info *info) acpi_node_get_gpiod() argument 1320 char propname[32]; acpi_gpio_count() local [all...] |
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | property.c | 508 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local 513 propname = &property->package.elements[0]; in acpi_data_get_property() 516 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property() 560 * @propname: Name of the property. 564 const char *propname, void **valptr) in acpi_node_prop_get() 567 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 638 * @propname: Name of the property 672 const char *propname, size_t index, size_t num_args, in __acpi_node_get_property_reference() 685 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj); in __acpi_node_get_property_reference() 794 const char *propname, in acpi_data_prop_read_single() 563 acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, void **valptr) acpi_node_prop_get() argument 671 __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, const char *propname, size_t index, size_t num_args, struct fwnode_reference_args *args) __acpi_node_get_property_reference() argument 793 acpi_data_prop_read_single(const struct acpi_device_data *data, const char *propname, enum dev_prop_type proptype, void *val) acpi_data_prop_read_single() argument 854 acpi_dev_prop_read_single(struct acpi_device *adev, const char *propname, enum dev_prop_type proptype, void *val) acpi_dev_prop_read_single() argument 944 acpi_data_prop_read(const struct acpi_device_data *data, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) acpi_data_prop_read() argument 1008 acpi_dev_prop_read(const struct acpi_device *adev, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) acpi_dev_prop_read() argument 1026 acpi_node_prop_read(const struct fwnode_handle *fwnode, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) acpi_node_prop_read() argument 1287 acpi_fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) acpi_fwnode_property_present() argument 1294 acpi_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) acpi_fwnode_property_read_int_array() argument 1322 acpi_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) acpi_fwnode_property_read_string_array() argument [all...] |
/kernel/linux/linux-6.6/drivers/acpi/ |
H A D | property.c | 667 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local 672 propname = &property->package.elements[0]; in acpi_data_get_property() 675 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property() 720 * @propname: Name of the property. 724 const char *propname, void **valptr) in acpi_node_prop_get() 727 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 850 * @propname: Name of the property 884 const char *propname, size_t index, size_t num_args, in __acpi_node_get_property_reference() 897 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj); in __acpi_node_get_property_reference() 974 const char *propname, in acpi_data_prop_read_single() 723 acpi_node_prop_get(const struct fwnode_handle *fwnode, const char *propname, void **valptr) acpi_node_prop_get() argument 883 __acpi_node_get_property_reference(const struct fwnode_handle *fwnode, const char *propname, size_t index, size_t num_args, struct fwnode_reference_args *args) __acpi_node_get_property_reference() argument 973 acpi_data_prop_read_single(const struct acpi_device_data *data, const char *propname, enum dev_prop_type proptype, void *val) acpi_data_prop_read_single() argument 1067 acpi_data_prop_read(const struct acpi_device_data *data, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) acpi_data_prop_read() argument 1167 acpi_node_prop_read(const struct fwnode_handle *fwnode, const char *propname, enum dev_prop_type proptype, void *val, size_t nval) acpi_node_prop_read() argument 1447 acpi_fwnode_property_present(const struct fwnode_handle *fwnode, const char *propname) acpi_fwnode_property_present() argument 1454 acpi_fwnode_property_read_int_array(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval) acpi_fwnode_property_read_int_array() argument 1482 acpi_fwnode_property_read_string_array(const struct fwnode_handle *fwnode, const char *propname, const char **val, size_t nval) acpi_fwnode_property_read_string_array() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | ops.h | 49 const char *propname, 147 const char *propname, in find_node_by_prop_value() 151 return dt_ops.find_node_by_prop_value(prev, propname, in find_node_by_prop_value() 158 const char *propname, in find_node_by_prop_value_str() 161 return find_node_by_prop_value(prev, propname, propval, in find_node_by_prop_value_str() 146 find_node_by_prop_value(const void *prev, const char *propname, const char *propval, int proplen) find_node_by_prop_value() argument 157 find_node_by_prop_value_str(const void *prev, const char *propname, const char *propval) find_node_by_prop_value_str() argument
|
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | ops.h | 47 const char *propname, 145 const char *propname, in find_node_by_prop_value() 149 return dt_ops.find_node_by_prop_value(prev, propname, in find_node_by_prop_value() 156 const char *propname, in find_node_by_prop_value_str() 159 return find_node_by_prop_value(prev, propname, propval, in find_node_by_prop_value_str() 144 find_node_by_prop_value(const void *prev, const char *propname, const char *propval, int proplen) find_node_by_prop_value() argument 155 find_node_by_prop_value_str(const void *prev, const char *propname, const char *propval) find_node_by_prop_value_str() argument
|
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-core.c | 2591 const char *propname) in snd_soc_of_parse_card_name() 2603 ret = of_property_read_string_index(np, propname, 0, &card->name); in snd_soc_of_parse_card_name() 2612 propname, ret); in snd_soc_of_parse_card_name() 2628 const char *propname) in snd_soc_of_parse_audio_simple_widgets() 2635 num_widgets = of_property_count_strings(np, propname); in snd_soc_of_parse_audio_simple_widgets() 2638 "ASoC: Property '%s' does not exist\n", propname); in snd_soc_of_parse_audio_simple_widgets() 2643 "ASoC: Property '%s' length is not even\n", propname); in snd_soc_of_parse_audio_simple_widgets() 2650 propname); in snd_soc_of_parse_audio_simple_widgets() 2663 ret = of_property_read_string_index(np, propname, in snd_soc_of_parse_audio_simple_widgets() 2668 propname, in snd_soc_of_parse_audio_simple_widgets() 2590 snd_soc_of_parse_card_name(struct snd_soc_card *card, const char *propname) snd_soc_of_parse_card_name() argument 2627 snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card *card, const char *propname) snd_soc_of_parse_audio_simple_widgets() argument 2762 snd_soc_of_parse_node_prefix(struct device_node *np, struct snd_soc_codec_conf *codec_conf, struct device_node *of_node, const char *propname) snd_soc_of_parse_node_prefix() argument 2781 snd_soc_of_parse_audio_routing(struct snd_soc_card *card, const char *propname) snd_soc_of_parse_audio_routing() argument 2837 snd_soc_of_parse_aux_devs(struct snd_soc_card *card, const char *propname) snd_soc_of_parse_aux_devs() argument [all...] |