Home
last modified time | relevance | path

Searched refs:propname (Results 1 – 25 of 42) sorted by relevance

12

/linux/include/linux/
H A Dproperty.h40 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 Dfwnode.h150 const char *propname);
152 const char *propname);
154 const char *propname,
159 const char *propname, const char **val,
H A Dgenalloc.h215 const char *propname, int index);
218 const char *propname, int index) in of_gen_pool_get() argument
/linux/drivers/base/
H A Dproperty.c46 bool device_property_present(const struct device *dev, const char *propname) in device_property_present() argument
48 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present()
64 const char *propname) in fwnode_property_present() argument
71 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present()
75 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present()
88 bool device_property_read_bool(const struct device *dev, const char *propname) in device_property_read_bool() argument
90 return fwnode_property_read_bool(dev_fwnode(dev), propname); in device_property_read_bool()
104 const char *propname) in fwnode_property_read_bool() argument
111 ret = fwnode_call_bool_op(fwnode, property_read_bool, propname); in fwnode_property_read_bool()
115 return fwnode_call_bool_op(fwnode->secondary, property_read_bool, propname); in fwnode_property_read_bool()
[all …]
H A Dcacheinfo.c124 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/drivers/hwmon/pmbus/
H A Dina233.c88 const char *propname; in ina233_probe() local
118 propname = "shunt-resistor"; in ina233_probe()
119 if (device_property_present(dev, propname)) { in ina233_probe()
120 ret = device_property_read_u32(dev, propname, &rshunt); in ina233_probe()
122 return dev_err_probe(dev, ret, "%s property read fail.\n", propname); in ina233_probe()
127 return dev_err_probe(dev, -EINVAL, "%s cannot be zero.\n", propname); in ina233_probe()
130 propname = "ti,maximum-expected-current-microamp"; in ina233_probe()
131 if (device_property_present(dev, propname)) { in ina233_probe()
132 ret = device_property_read_u32(dev, propname, &max_current); in ina233_probe()
134 return dev_err_probe(dev, ret, "%s property read fail.\n", propname); in ina233_probe()
[all …]
/linux/drivers/input/
H A Dmatrix-keymap.c69 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 Dproperty.c719 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/arch/powerpc/boot/
H A Dops.h47 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 Dexynos-pmu.h26 const char *propname);
34 const char *propname) in exynos_get_pmu_regmap_by_phandle() argument
/linux/drivers/virt/
H A Dfsl_hypervisor.c336 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/drivers/clk/at91/
H A Dpmc.c24 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/arch/powerpc/kernel/
H A Dcacheinfo.c210 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/sound/soc/meson/
H A Daxg-card.c161 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 Dmeson-card-utils.c223 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 Dsoc-core.c2973 const char *propname) in snd_soc_of_parse_card_name() argument
2985 ret = of_property_read_string_index(np, propname, 0, &card->name); in snd_soc_of_parse_card_name()
2994 propname, ret); in snd_soc_of_parse_card_name()
3010 const char *propname) in snd_soc_of_parse_audio_simple_widgets() argument
3017 num_widgets = of_property_count_strings(np, propname); in snd_soc_of_parse_audio_simple_widgets()
3020 "ASoC: Property '%s' does not exist\n", propname); in snd_soc_of_parse_audio_simple_widgets()
3025 propname); in snd_soc_of_parse_audio_simple_widgets()
3030 "ASoC: Property '%s' length is not even\n", propname); in snd_soc_of_parse_audio_simple_widgets()
3045 int ret = of_property_read_string_index(np, propname, in snd_soc_of_parse_audio_simple_widgets()
3050 propname, 2 * i, ret); in snd_soc_of_parse_audio_simple_widgets()
[all …]
/linux/drivers/soundwire/
H A Dmipi_disco.c27 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/sound/soc/codecs/
H A Dtlv320adc3xxx.c1115 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 Dexynos-pmu.c189 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/arch/powerpc/kexec/
H A Dfile_load_64.c674 const char *propname) in copy_property() argument
679 prop = of_get_property(dn, propname, &len); in copy_property()
680 fdtprop = fdt_getprop(fdt, node_offset, propname, &fdtlen); in copy_property()
683 return fdt_delprop(fdt, node_offset, propname); in copy_property()
685 return fdt_setprop(fdt, node_offset, propname, prop, len); in copy_property()
/linux/sound/soc/mediatek/common/
H A Dmtk-dsp-sof-common.c232 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
H A Dmtk-dsp-sof-common.h40 const char *propname, struct snd_soc_dai_link *pre_dai_links,
/linux/drivers/iio/temperature/
H A Dltc2983.c419 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 …]
/linux/sound/aoa/fabrics/
H A Dlayout.c774 char propname[32]; in check_codec() local
779 snprintf(propname, sizeof(propname), in check_codec()
781 ref = of_get_property(ldev->sound, propname, NULL); in check_codec()
784 "required property %s not present\n", propname); in check_codec()
789 "%s doesn't match!\n", propname); in check_codec()
/linux/drivers/iio/adc/
H A Dad4170-4.c2186 const char *propname; in ad4170_parse_reference() local
2191 propname = "adi,positive-reference-buffer"; in ad4170_parse_reference()
2192 ret = device_property_match_property_string(dev, propname, in ad4170_parse_reference()
2201 propname = "adi,negative-reference-buffer"; in ad4170_parse_reference()
2202 ret = device_property_match_property_string(dev, propname, in ad4170_parse_reference()
2211 propname = "adi,reference-select"; in ad4170_parse_reference()
2213 fwnode_property_read_u32(child, propname, &aux); in ad4170_parse_reference()
2216 propname, aux); in ad4170_parse_reference()
2227 const char *propname, *propname2; in ad4170_parse_adc_channel_type() local
2231 propname = "single-channel"; in ad4170_parse_adc_channel_type()
[all …]

12