| /linux/include/linux/ |
| H A D | property.h | 40 bool device_property_present(const struct device *dev, const char *propname); 41 bool device_property_read_bool(const struct device *dev, const char *propname); 42 int device_property_read_u8_array(const struct device *dev, const char *propname, 44 int device_property_read_u16_array(const struct device *dev, const char *propname, 46 int device_property_read_u32_array(const struct device *dev, const char *propname, 48 int device_property_read_u64_array(const struct device *dev, const char *propname, 50 int device_property_read_string_array(const struct device *dev, const char *propname, 52 int device_property_read_string(const struct device *dev, const char *propname, 55 const char *propname, const char *string); 58 const char *propname); [all …]
|
| H A D | of.h | 316 extern bool of_property_read_bool(const struct device_node *np, const char *propname); 318 const char *propname, int elem_size); 320 const char *propname, 323 const char *propname, 326 const char *propname, 329 const char *propname, 332 const char *propname, u8 *out_values, 335 const char *propname, u16 *out_values, 338 const char *propname, 343 const char *propname, u64 *out_value); [all …]
|
| H A D | fwnode.h | 149 const char *propname); 151 const char *propname); 153 const char *propname, 158 const char *propname, const char **val,
|
| H A D | genalloc.h | 215 const char *propname, int index); 218 const char *propname, int index) in of_gen_pool_get() argument
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-swnode.c | 50 const char *propname, unsigned int idx, in swnode_gpio_get_reference() argument 57 return fwnode_property_get_reference_args(fwnode, propname, NULL, 2, idx, args); in swnode_gpio_get_reference() 67 char propname[32]; /* 32 is max size of property name */ in swnode_find_gpio() local 74 for_each_gpio_property_name(propname, con_id) { in swnode_find_gpio() 75 ret = swnode_gpio_get_reference(fwnode, propname, idx, &args); in swnode_find_gpio() 81 __func__, propname, fwnode, idx); in swnode_find_gpio() 99 __func__, propname, fwnode, idx, PTR_ERR_OR_ZERO(desc)); in swnode_find_gpio() 117 char propname[32]; in swnode_gpio_count() local 124 for_each_gpio_property_name(propname, con_id) { in swnode_gpio_count() 126 while (swnode_gpio_get_reference(fwnode, propname, count, &args) == 0) { in swnode_gpio_count()
|
| H A D | gpiolib-acpi-core.c | 765 static int acpi_gpio_property_lookup(struct fwnode_handle *fwnode, const char *propname, in acpi_gpio_property_lookup() argument 777 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, &args); in acpi_gpio_property_lookup() 782 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, &quirks)) in acpi_gpio_property_lookup() 828 static int acpi_get_gpiod_by_index(struct acpi_device *adev, const char *propname, in acpi_get_gpiod_by_index() argument 835 if (propname) { in acpi_get_gpiod_by_index() 836 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 838 ret = acpi_gpio_property_lookup(acpi_fwnode_handle(adev), propname, lookup); in acpi_get_gpiod_by_index() 869 static int acpi_get_gpiod_from_data(struct fwnode_handle *fwnode, const char *propname, in acpi_get_gpiod_from_data() argument 877 if (!propname) in acpi_get_gpiod_from_data() 880 ret = acpi_gpio_property_lookup(fwnode, propname, lookup); in acpi_get_gpiod_from_data() [all …]
|
| /linux/drivers/of/ |
| H A D | property.c | 44 bool of_property_read_bool(const struct device_node *np, const char *propname) in of_property_read_bool() argument 46 struct property *prop = of_find_property(np, propname, NULL); in of_property_read_bool() 54 pr_warn("%pOF: Read of boolean property '%s' with a value.\n", np, propname); in of_property_read_bool() 95 const char *propname, int elem_size) in of_property_count_elems_of_size() argument 97 const struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() 106 propname, np, elem_size); in of_property_count_elems_of_size() 131 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() argument 133 const struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 168 const char *propname, in of_property_read_u8_index() argument 171 const u8 *val = of_find_property_value_of_size(np, propname, in of_property_read_u8_index() [all …]
|
| /linux/drivers/input/ |
| H A D | matrix-keymap.c | 69 static int matrix_keypad_parse_keymap(const char *propname, in matrix_keypad_parse_keymap() argument 80 if (!propname) in matrix_keypad_parse_keymap() 81 propname = "linux,keymap"; in matrix_keypad_parse_keymap() 83 size = device_property_count_u32(dev, propname); in matrix_keypad_parse_keymap() 86 propname, size); in matrix_keypad_parse_keymap() 92 propname, size, max_keys); in matrix_keypad_parse_keymap() 100 error = device_property_read_u32_array(dev, propname, keys, size); in matrix_keypad_parse_keymap() 103 propname, error); in matrix_keypad_parse_keymap()
|
| /linux/drivers/acpi/ |
| H A D | property.c | 719 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local 724 propname = &property->package.elements[0]; in acpi_data_get_property() 727 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property() 776 const char *propname, void **valptr) in acpi_node_prop_get() argument 779 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 948 const char *propname, const char *nargs_prop, in acpi_fwnode_get_reference_args() argument 963 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj); in acpi_fwnode_get_reference_args() 1106 const char *propname, size_t index, in __acpi_node_get_property_reference() argument 1110 return acpi_fwnode_get_reference_args(fwnode, propname, NULL, num_args, index, args); in __acpi_node_get_property_reference() 1115 const char *propname, in acpi_data_prop_read_single() argument [all …]
|
| /linux/drivers/base/ |
| H A D | swnode.c | 142 const char *propname, size_t length) in property_entry_find() argument 147 prop = property_entry_get(props, propname); in property_entry_find() 160 const char *propname, size_t length) in property_entry_count_elems_of_size() argument 164 prop = property_entry_get(props, propname); in property_entry_count_elems_of_size() 197 const char *propname, in property_entry_read_string_array() argument 205 array_len = property_entry_count_elems_of_size(props, propname, in property_entry_read_string_array() 217 pointer = property_entry_find(props, propname, length); in property_entry_read_string_array() 394 const char *propname) in software_node_property_present() argument 398 return !!property_entry_get(swnode->node->properties, propname); in software_node_property_present() 402 const char *propname, in software_node_read_int_array() argument [all …]
|
| H A D | cacheinfo.c | 124 const char *propname; in cache_size() local 128 propname = cache_type_info[ct_idx].size_prop; in cache_size() 130 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 145 const char *propname; in cache_get_line_size() local 147 propname = cache_type_info[ct_idx].line_size_props[i]; in cache_get_line_size() 148 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size() 158 const char *propname; in cache_nr_sets() local 162 propname = cache_type_info[ct_idx].nr_sets_prop; in cache_nr_sets() 164 of_property_read_u32(np, propname, &this_leaf->number_of_sets); in cache_nr_sets()
|
| /linux/arch/powerpc/boot/ |
| H A D | ops.h | 47 const char *propname, 145 const char *propname, in find_node_by_prop_value() argument 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() argument 159 return find_node_by_prop_value(prev, propname, propval, in find_node_by_prop_value_str()
|
| /linux/include/linux/soc/samsung/ |
| H A D | exynos-pmu.h | 26 const char *propname); 34 const char *propname) in exynos_get_pmu_regmap_by_phandle() argument
|
| /linux/drivers/virt/ |
| H A D | fsl_hypervisor.c | 336 char *path, *propname; in ioctl_dtprop() local 345 upropname = (char __user *)(uintptr_t)param.propname; in ioctl_dtprop() 352 propname = strndup_user(upropname, FH_DTPROP_MAX_PATHLEN); in ioctl_dtprop() 353 if (IS_ERR(propname)) { in ioctl_dtprop() 354 ret = PTR_ERR(propname); in ioctl_dtprop() 377 virt_to_phys(propname), in ioctl_dtprop() 383 virt_to_phys(propname), in ioctl_dtprop() 402 kfree(propname); in ioctl_dtprop()
|
| /linux/arch/powerpc/kernel/ |
| H A D | cacheinfo.c | 210 const char *propname; in cache_size() local 213 propname = cache_type_info[cache->type].size_prop; in cache_size() 215 cache_size = of_get_property(cache->ofnode, propname, NULL); in cache_size() 243 const char *propname; in cache_get_line_size() local 245 propname = cache_type_info[cache->type].line_size_props[i]; in cache_get_line_size() 246 line_size = of_get_property(cache->ofnode, propname, NULL); in cache_get_line_size() 260 const char *propname; in cache_nr_sets() local 263 propname = cache_type_info[cache->type].nr_sets_prop; in cache_nr_sets() 265 nr_sets = of_get_property(cache->ofnode, propname, NULL); in cache_nr_sets()
|
| /linux/drivers/clk/at91/ |
| H A D | pmc.c | 24 int of_at91_get_clk_range(struct device_node *np, const char *propname, in of_at91_get_clk_range() argument 30 ret = of_property_read_u32_index(np, propname, 0, &min); in of_at91_get_clk_range() 34 ret = of_property_read_u32_index(np, propname, 1, &max); in of_at91_get_clk_range()
|
| /linux/sound/soc/meson/ |
| H A D | axg-card.c | 161 char propname[32]; in axg_card_parse_cpu_tdm_slots() local 173 snprintf(propname, 32, "dai-tdm-slot-tx-mask-%d", i); in axg_card_parse_cpu_tdm_slots() 174 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots() 183 snprintf(propname, 32, "dai-tdm-slot-rx-mask-%d", i); in axg_card_parse_cpu_tdm_slots() 184 snd_soc_of_get_slot_mask(node, propname, &be->rx_mask[i]); in axg_card_parse_cpu_tdm_slots()
|
| H A D | meson-card-utils.c | 223 const char *propname, in meson_card_parse_of_optional() argument 228 if (!of_property_present(card->dev->of_node, propname)) in meson_card_parse_of_optional() 232 return func(card, propname); in meson_card_parse_of_optional()
|
| /linux/sound/soc/ |
| H A D | soc-core.c | 2966 const char *propname) in snd_soc_of_parse_card_name() 2978 ret = of_property_read_string_index(np, propname, 0, &card->name); in snd_soc_of_parse_card_name() 2987 propname, ret); in snd_soc_of_parse_card_name() 3003 const char *propname) in snd_soc_of_parse_audio_simple_widgets() 3010 num_widgets = of_property_count_strings(np, propname); in snd_soc_of_parse_audio_simple_widgets() 3013 "ASoC: Property '%s' does not exist\n", propname); in snd_soc_of_parse_audio_simple_widgets() 3018 propname); in snd_soc_of_parse_audio_simple_widgets() 3023 "ASoC: Property '%s' length is not even\n", propname); in snd_soc_of_parse_audio_simple_widgets() 3038 int ret = of_property_read_string_index(np, propname, in snd_soc_of_parse_audio_simple_widgets() 3043 propname, in snd_soc_of_parse_audio_simple_widgets() 2962 snd_soc_of_parse_card_name(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_card_name() argument 2999 snd_soc_of_parse_audio_simple_widgets(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_audio_simple_widgets() argument 3188 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 3205 snd_soc_of_parse_audio_routing(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_audio_routing() argument 3255 snd_soc_of_parse_aux_devs(struct snd_soc_card * card,const char * propname) snd_soc_of_parse_aux_devs() argument [all...] |
| /linux/drivers/soundwire/ |
| H A D | mipi_disco.c | 27 const char *propname) in mipi_fwnode_property_read_bool() argument 32 if (!fwnode_property_present(fwnode, propname)) in mipi_fwnode_property_read_bool() 34 ret = fwnode_property_read_u8_array(fwnode, propname, &val, 1); in mipi_fwnode_property_read_bool() 41 const char *propname) in mipi_device_property_read_bool() argument 43 return mipi_fwnode_property_read_bool(dev_fwnode(dev), propname); in mipi_device_property_read_bool()
|
| /linux/drivers/memory/ |
| H A D | bt1-l2-ctl.c | 182 const char *propname) in l2_ctl_of_parse_property() argument 187 if (!of_property_read_u32(l2->dev->of_node, propname, &data)) { in l2_ctl_of_parse_property() 190 dev_err(l2->dev, "Invalid value of '%s'\n", propname); in l2_ctl_of_parse_property()
|
| /linux/sound/soc/codecs/ |
| H A D | tlv320adc3xxx.c | 1115 const char *propname, unsigned int *cfg) in adc3xxx_parse_dt_gpio() argument 1121 if (!of_property_read_u32(np, propname, &val)) { in adc3xxx_parse_dt_gpio() 1123 dev_err(dev, "Invalid property value for '%s'\n", propname); in adc3xxx_parse_dt_gpio() 1134 const char *propname, in adc3xxx_parse_dt_micbias_gpo() argument 1140 *cfg = of_property_read_bool(np, propname); in adc3xxx_parse_dt_micbias_gpo() 1145 const char *propname, unsigned int *vg) in adc3xxx_parse_dt_micbias_vg() argument 1151 if (!of_property_read_u32(np, propname, &val)) { in adc3xxx_parse_dt_micbias_vg() 1153 dev_err(dev, "Invalid property value for '%s'\n", propname); in adc3xxx_parse_dt_micbias_vg()
|
| /linux/drivers/soc/samsung/ |
| H A D | exynos-pmu.c | 189 const char *propname) in exynos_get_pmu_regmap_by_phandle() argument 194 if (propname) in exynos_get_pmu_regmap_by_phandle() 195 pmu_np = of_parse_phandle(np, propname, 0); in exynos_get_pmu_regmap_by_phandle() 210 if (propname) in exynos_get_pmu_regmap_by_phandle()
|
| /linux/sound/soc/mediatek/common/ |
| H A D | mtk-dsp-sof-common.c | 232 const char *propname, struct snd_soc_dai_link *pre_dai_links, in mtk_sof_dailink_parse_of() 251 ret = of_property_read_string_index(np, propname, i, &dai_name); in mtk_sof_dailink_parse_of() 254 propname, i, ret); in mtk_sof_dailink_parse_of() 231 mtk_sof_dailink_parse_of(struct snd_soc_card * card,struct device_node * np,const char * propname,struct snd_soc_dai_link * pre_dai_links,int pre_num_links) mtk_sof_dailink_parse_of() argument
|
| /linux/drivers/iio/temperature/ |
| H A D | ltc2983.c | 419 const char *propname, const bool is_steinhart, in __ltc2983_custom_sensor_new() argument 433 n_entries = fwnode_property_count_u32(fn, propname); in __ltc2983_custom_sensor_new() 435 n_entries = fwnode_property_count_u64(fn, propname); in __ltc2983_custom_sensor_new() 475 ret = fwnode_property_read_u32_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 481 ret = fwnode_property_read_u64_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 721 const char *propname = "adi,custom-thermocouple"; in ltc2983_thermocouple_new() local 724 propname, false, in ltc2983_thermocouple_new() 932 const char *propname; in ltc2983_thermistor_new() local 936 propname = "adi,custom-steinhart"; in ltc2983_thermistor_new() 938 propname = "adi,custom-thermistor"; in ltc2983_thermistor_new() [all …]
|