/linux-6.6.21/include/linux/ |
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, u8 *val, [all …]
|
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, [all …]
|
D | fwnode.h | 133 const char *propname); 135 const char *propname, 140 const char *propname, const char **val,
|
D | of_gpio.h | 31 const char *propname, int index) in of_get_named_gpio() argument
|
D | genalloc.h | 214 const char *propname, int index); 217 const char *propname, int index) in of_gen_pool_get() argument
|
/linux-6.6.21/drivers/gpio/ |
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[32]; in swnode_gpio_count() local 110 swnode_format_propname(con_id, propname, sizeof(propname)); in swnode_gpio_count() [all …]
|
D | gpiolib-of.c | 64 const char *propname) in of_gpio_named_count() argument 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() argument 184 const char *propname; in of_gpio_try_fixup_polarity() member 201 !strcmp(propname, gpios[i].propname)) { in of_gpio_try_fixup_polarity() 209 const char *propname, in of_gpio_set_polarity_by_property() argument [all …]
|
D | gpiolib-acpi.c | 834 const char *propname, int index, in acpi_gpio_property_lookup() argument 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() 893 const char *propname, in acpi_get_gpiod_by_index() argument 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() 941 const char *propname, in acpi_get_gpiod_from_data() argument 951 if (!propname) in acpi_get_gpiod_from_data() 957 ret = acpi_gpio_property_lookup(fwnode, propname, index, &lookup); in acpi_get_gpiod_from_data() [all …]
|
/linux-6.6.21/drivers/base/ |
D | property.c | 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() 57 const char *propname) in fwnode_property_present() argument 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() 93 int device_property_read_u8_array(const struct device *dev, const char *propname, in device_property_read_u8_array() argument 96 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 121 int device_property_read_u16_array(const struct device *dev, const char *propname, in device_property_read_u16_array() argument 124 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 149 int device_property_read_u32_array(const struct device *dev, const char *propname, in device_property_read_u32_array() argument [all …]
|
D | swnode.c | 131 const char *propname, size_t length) in property_entry_find() argument 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() argument 153 prop = property_entry_get(props, propname); in property_entry_count_elems_of_size() 186 const char *propname, in property_entry_read_string_array() argument 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() argument 387 return !!property_entry_get(swnode->node->properties, propname); in software_node_property_present() 391 const char *propname, in software_node_read_int_array() argument [all …]
|
D | cacheinfo.c | 123 const char *propname; in cache_size() local 127 propname = cache_type_info[ct_idx].size_prop; in cache_size() 129 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 144 const char *propname; in cache_get_line_size() local 146 propname = cache_type_info[ct_idx].line_size_props[i]; in cache_get_line_size() 147 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size() 157 const char *propname; in cache_nr_sets() local 161 propname = cache_type_info[ct_idx].nr_sets_prop; in cache_nr_sets() 163 of_property_read_u32(np, propname, &this_leaf->number_of_sets); in cache_nr_sets()
|
/linux-6.6.21/drivers/of/ |
D | property.c | 72 const char *propname, int elem_size) in of_property_count_elems_of_size() argument 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() 108 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() argument 110 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 145 const char *propname, in of_property_read_u32_index() argument 148 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index() 179 const char *propname, in of_property_read_u64_index() argument 182 const u64 *val = of_find_property_value_of_size(np, propname, in of_property_read_u64_index() 219 const char *propname, u8 *out_values, in of_property_read_variable_u8_array() argument [all …]
|
/linux-6.6.21/drivers/input/ |
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()
|
/linux-6.6.21/drivers/acpi/ |
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() 724 const char *propname, void **valptr) in acpi_node_prop_get() argument 727 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 884 const char *propname, size_t index, size_t num_args, in __acpi_node_get_property_reference() argument 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() argument 981 ret = acpi_data_get_property(data, propname, ACPI_TYPE_INTEGER, &obj); in acpi_data_prop_read_single() 983 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj); in acpi_data_prop_read_single() [all …]
|
/linux-6.6.21/arch/powerpc/boot/ |
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-6.6.21/drivers/pinctrl/ |
D | devicetree.c | 200 char *propname; in pinctrl_dt_to_map() local 222 propname = kasprintf(GFP_KERNEL, "pinctrl-%d", state); in pinctrl_dt_to_map() 223 if (!propname) in pinctrl_dt_to_map() 225 prop = of_find_property(np, propname, &size); in pinctrl_dt_to_map() 226 kfree(propname); in pinctrl_dt_to_map()
|
/linux-6.6.21/drivers/clk/at91/ |
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-6.6.21/drivers/virt/ |
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-6.6.21/arch/powerpc/kernel/ |
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-6.6.21/sound/soc/meson/ |
D | axg-card.c | 160 char propname[32]; in axg_card_parse_cpu_tdm_slots() local 172 snprintf(propname, 32, "dai-tdm-slot-tx-mask-%d", i); in axg_card_parse_cpu_tdm_slots() 173 snd_soc_of_get_slot_mask(node, propname, &be->tx_mask[i]); in axg_card_parse_cpu_tdm_slots() 182 snprintf(propname, 32, "dai-tdm-slot-rx-mask-%d", i); in axg_card_parse_cpu_tdm_slots() 183 snd_soc_of_get_slot_mask(node, propname, &be->rx_mask[i]); in axg_card_parse_cpu_tdm_slots()
|
D | meson-card-utils.c | 229 const char *propname, in meson_card_parse_of_optional() argument 234 if (!of_property_read_bool(card->dev->of_node, propname)) in meson_card_parse_of_optional() 238 return func(card, propname); in meson_card_parse_of_optional()
|
/linux-6.6.21/sound/soc/ |
D | soc-core.c | 2810 const char *propname) in snd_soc_of_parse_card_name() argument 2822 ret = of_property_read_string_index(np, propname, 0, &card->name); in snd_soc_of_parse_card_name() 2831 propname, ret); in snd_soc_of_parse_card_name() 2847 const char *propname) in snd_soc_of_parse_audio_simple_widgets() argument 2854 num_widgets = of_property_count_strings(np, propname); in snd_soc_of_parse_audio_simple_widgets() 2857 "ASoC: Property '%s' does not exist\n", propname); in snd_soc_of_parse_audio_simple_widgets() 2862 propname); in snd_soc_of_parse_audio_simple_widgets() 2867 "ASoC: Property '%s' length is not even\n", propname); in snd_soc_of_parse_audio_simple_widgets() 2882 int ret = of_property_read_string_index(np, propname, in snd_soc_of_parse_audio_simple_widgets() 2887 propname, 2 * i, ret); in snd_soc_of_parse_audio_simple_widgets() [all …]
|
/linux-6.6.21/scripts/dtc/ |
D | checks.c | 210 char *propname = c->data; in check_is_string() local 212 prop = get_property(node, propname); in check_is_string() 219 #define WARNING_IF_NOT_STRING(nm, propname) \ argument 220 WARNING(nm, check_is_string, (propname)) 221 #define ERROR_IF_NOT_STRING(nm, propname) \ argument 222 ERROR(nm, check_is_string, (propname)) 229 char *propname = c->data; in check_is_string_list() local 232 prop = get_property(node, propname); in check_is_string_list() 248 #define WARNING_IF_NOT_STRING_LIST(nm, propname) \ argument 249 WARNING(nm, check_is_string_list, (propname)) [all …]
|
/linux-6.6.21/sound/soc/mediatek/common/ |
D | mtk-dsp-sof-common.c | 149 const char *propname, struct snd_soc_dai_link *pre_dai_links, in mtk_sof_dailink_parse_of() argument 168 ret = of_property_read_string_index(np, propname, i, &dai_name); in mtk_sof_dailink_parse_of() 171 propname, i, ret); in mtk_sof_dailink_parse_of()
|
/linux-6.6.21/drivers/memory/ |
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()
|