/drivers/base/ |
D | property.c | 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() 47 const char *propname) in fwnode_property_present() argument 51 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present() 55 propname); in fwnode_property_present() 78 int device_property_read_u8_array(struct device *dev, const char *propname, in device_property_read_u8_array() argument 81 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 103 int device_property_read_u16_array(struct device *dev, const char *propname, in device_property_read_u16_array() argument 106 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 128 int device_property_read_u32_array(struct device *dev, const char *propname, in device_property_read_u32_array() argument [all …]
|
D | swnode.c | 174 const char *propname, size_t length) in property_entry_find() argument 179 prop = property_entry_get(props, propname); in property_entry_find() 191 const char *propname, in property_entry_read_u8_array() argument 197 pointer = property_entry_find(props, propname, length); in property_entry_read_u8_array() 206 const char *propname, in property_entry_read_u16_array() argument 212 pointer = property_entry_find(props, propname, length); in property_entry_read_u16_array() 221 const char *propname, in property_entry_read_u32_array() argument 227 pointer = property_entry_find(props, propname, length); in property_entry_read_u32_array() 236 const char *propname, in property_entry_read_u64_array() argument 242 pointer = property_entry_find(props, propname, length); in property_entry_read_u64_array() [all …]
|
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()
|
/drivers/of/ |
D | property.c | 45 const char *propname, int elem_size) in of_property_count_elems_of_size() argument 47 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size() 56 propname, np, elem_size); in of_property_count_elems_of_size() 80 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() argument 82 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size() 115 const char *propname, in of_property_read_u32_index() argument 118 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index() 147 const char *propname, in of_property_read_u64_index() argument 150 const u64 *val = of_find_property_value_of_size(np, propname, in of_property_read_u64_index() 185 const char *propname, u8 *out_values, in of_property_read_variable_u8_array() argument [all …]
|
/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()
|
/drivers/gpio/ |
D | gpiolib-of.c | 58 char propname[32]; in of_gpio_get_count() local 67 snprintf(propname, sizeof(propname), "%s-%s", in of_gpio_get_count() 70 snprintf(propname, sizeof(propname), "%s", in of_gpio_get_count() 73 ret = of_gpio_named_count(dev->of_node, propname); in of_gpio_get_count() 129 const char *propname, in of_gpio_flags_quirks() argument 145 if (!strcmp(propname, "cd-gpios")) { in of_gpio_flags_quirks() 149 if (!strcmp(propname, "wp-gpios")) { in of_gpio_flags_quirks() 161 (!(strcmp(propname, "enable-gpio") && in of_gpio_flags_quirks() 162 strcmp(propname, "enable-gpios")) && in of_gpio_flags_quirks() 194 if (IS_ENABLED(CONFIG_SPI_MASTER) && !strcmp(propname, "cs-gpios") && in of_gpio_flags_quirks() [all …]
|
D | gpiolib-acpi.c | 654 const char *propname, int index, in acpi_gpio_property_lookup() argument 662 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup() 670 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, in acpi_gpio_property_lookup() 716 const char *propname, int index, in acpi_get_gpiod_by_index() argument 728 if (propname) { in acpi_get_gpiod_by_index() 729 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 732 propname, index, &lookup); in acpi_get_gpiod_by_index() 767 char propname[32]; in acpi_find_gpio() local 773 snprintf(propname, sizeof(propname), "%s-%s", in acpi_find_gpio() 776 snprintf(propname, sizeof(propname), "%s", in acpi_find_gpio() [all …]
|
D | gpiolib-acpi.h | 51 const char *propname, int index, 85 acpi_node_get_gpiod(struct fwnode_handle *fwnode, const char *propname, in acpi_node_get_gpiod() argument
|
D | gpiolib-devres.c | 149 const char *propname, int index, in devm_gpiod_get_from_of_node() argument 156 desc = gpiod_get_from_of_node(node, propname, index, dflags, label); in devm_gpiod_get_from_of_node()
|
D | gpiolib.c | 4602 const char *propname, int index, in fwnode_get_named_gpiod() argument 4615 propname, index, in fwnode_get_named_gpiod() 4622 desc = acpi_node_get_gpiod(fwnode, propname, index, &info); in fwnode_get_named_gpiod() 4635 ret = gpiod_configure_flags(desc, propname, lflags, dflags); in fwnode_get_named_gpiod()
|
/drivers/acpi/ |
D | property.c | 499 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local 504 propname = &property->package.elements[0]; in acpi_data_get_property() 507 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property() 555 const char *propname, void **valptr) in acpi_node_prop_get() argument 558 propname, ACPI_TYPE_ANY, in acpi_node_prop_get() 672 const char *propname, size_t index, size_t num_args, in __acpi_node_get_property_reference() argument 685 ret = acpi_data_get_property(data, propname, ACPI_TYPE_ANY, &obj); in __acpi_node_get_property_reference() 791 const char *propname, in acpi_data_prop_read_single() argument 801 ret = acpi_data_get_property(data, propname, ACPI_TYPE_INTEGER, &obj); in acpi_data_prop_read_single() 826 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj); in acpi_data_prop_read_single() [all …]
|
/drivers/iommu/ |
D | of_iommu.c | 39 char propname[NAME_MAX], addrname[NAME_MAX], sizename[NAME_MAX]; in of_get_dma_window() local 47 snprintf(propname, sizeof(propname), "%sdma-window", prefix); in of_get_dma_window() 51 dma_window = of_get_property(dn, propname, &bytes); in of_get_dma_window()
|
/drivers/virt/ |
D | fsl_hypervisor.c | 337 char *path, *propname; in ioctl_dtprop() local 346 upropname = (char __user *)(uintptr_t)param.propname; in ioctl_dtprop() 353 propname = strndup_user(upropname, FH_DTPROP_MAX_PATHLEN); in ioctl_dtprop() 354 if (IS_ERR(propname)) { in ioctl_dtprop() 355 ret = PTR_ERR(propname); in ioctl_dtprop() 378 virt_to_phys(propname), in ioctl_dtprop() 384 virt_to_phys(propname), in ioctl_dtprop() 403 kfree(propname); in ioctl_dtprop()
|
/drivers/pinctrl/ |
D | devicetree.c | 203 char *propname; in pinctrl_dt_to_map() local 225 propname = kasprintf(GFP_KERNEL, "pinctrl-%d", state); in pinctrl_dt_to_map() 226 prop = of_find_property(np, propname, &size); in pinctrl_dt_to_map() 227 kfree(propname); in pinctrl_dt_to_map()
|
D | pinctrl-single.c | 1318 const char *propname = "pinctrl-single,gpio-range"; in pcs_add_gpio_func() local 1325 ret = of_parse_phandle_with_args(node, propname, cellname, in pcs_add_gpio_func()
|
/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()
|
D | pmc.h | 100 int of_at91_get_clk_range(struct device_node *np, const char *propname,
|
/drivers/power/supply/ |
D | power_supply_core.c | 646 char *propname; in power_supply_get_battery_info() local 650 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info() 651 list = of_get_property(battery_np, propname, &size); in power_supply_get_battery_info() 653 dev_err(&psy->dev, "failed to get %s\n", propname); in power_supply_get_battery_info() 654 kfree(propname); in power_supply_get_battery_info() 660 kfree(propname); in power_supply_get_battery_info()
|
/drivers/dma/ |
D | imx-sdma.c | 1793 char propname[] = "fsl,sdma-event-remap"; in sdma_event_remap() local 1800 event_remap = of_find_property(np, propname, NULL); in sdma_event_remap() 1807 propname, EVENT_REMAP_CELLS); in sdma_event_remap() 1820 ret = of_property_read_u32_index(np, propname, i, ®); in sdma_event_remap() 1823 propname, i); in sdma_event_remap() 1827 ret = of_property_read_u32_index(np, propname, i + 1, &shift); in sdma_event_remap() 1830 propname, i + 1); in sdma_event_remap() 1834 ret = of_property_read_u32_index(np, propname, i + 2, &val); in sdma_event_remap() 1837 propname, i + 2); in sdma_event_remap()
|
/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 354 const char *propname = "fsl,pinmux-ids"; in mxs_pinctrl_parse_group() local 368 prop = of_find_property(np, propname, &length); in mxs_pinctrl_parse_group() 383 of_property_read_u32_array(np, propname, g->pins, g->npins); in mxs_pinctrl_parse_group()
|
/drivers/iio/multiplexer/ |
D | iio-mux.c | 329 #define of_property_for_each_string_index(np, propname, prop, s, i) \ argument 330 for (prop = of_find_property(np, propname, NULL), \
|
/drivers/firmware/efi/ |
D | efi.c | 681 const char propname[32]; member 729 prop = of_get_flat_dt_prop(node, params[i].propname, &len); in __find_uefi_params()
|
/drivers/staging/fbtft/ |
D | fbtft-core.c | 1142 static u32 fbtft_of_value(struct device_node *node, const char *propname) in fbtft_of_value() argument 1147 ret = of_property_read_u32(node, propname, &val); in fbtft_of_value() 1149 pr_info("%s: %s = %u\n", __func__, propname, val); in fbtft_of_value()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 1636 const char *propname, u32 *out_value) in exynos_dsi_of_read_u32() argument 1638 int ret = of_property_read_u32(np, propname, out_value); in exynos_dsi_of_read_u32() 1641 pr_err("%pOF: failed to get '%s' property\n", np, propname); in exynos_dsi_of_read_u32()
|
/drivers/iio/ |
D | industrialio-core.c | 528 int iio_read_mount_matrix(struct device *dev, const char *propname, in iio_read_mount_matrix() argument 534 err = device_property_read_string_array(dev, propname, in iio_read_mount_matrix()
|