/drivers/base/ |
D | property.c | 36 bool device_property_present(struct device *dev, const char *propname) in device_property_present() argument 38 return fwnode_property_present(dev_fwnode(dev), propname); in device_property_present() 50 const char *propname) in fwnode_property_present() argument 57 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present() 61 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present() 86 int device_property_read_u8_array(struct device *dev, const char *propname, in device_property_read_u8_array() argument 89 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array() 114 int device_property_read_u16_array(struct device *dev, const char *propname, in device_property_read_u16_array() argument 117 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array() 142 int device_property_read_u32_array(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 | 116 const char *propname; in cache_size() local 120 propname = cache_type_info[ct_idx].size_prop; in cache_size() 122 of_property_read_u32(np, propname, &this_leaf->size); in cache_size() 137 const char *propname; in cache_get_line_size() local 139 propname = cache_type_info[ct_idx].line_size_props[i]; in cache_get_line_size() 140 ret = of_property_read_u32(np, propname, &line_size); in cache_get_line_size() 150 const char *propname; in cache_nr_sets() local 154 propname = cache_type_info[ct_idx].nr_sets_prop; in cache_nr_sets() 156 of_property_read_u32(np, propname, &this_leaf->number_of_sets); in cache_nr_sets()
|
/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 …]
|
/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 | 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() argument 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, "cs-gpios") && in of_gpio_flags_quirks() 223 !strcmp(propname, "snps,reset-gpio") && in of_gpio_flags_quirks() 240 const char *propname, int index, enum of_gpio_flags *flags) in of_get_named_gpiod_flags() argument [all …]
|
D | gpiolib-acpi.c | 805 const char *propname, int index, in acpi_gpio_property_lookup() argument 813 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup() 821 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, in acpi_gpio_property_lookup() 867 const char *propname, int index, in acpi_get_gpiod_by_index() argument 879 if (propname) { in acpi_get_gpiod_by_index() 880 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index() 883 propname, index, &lookup); in acpi_get_gpiod_by_index() 918 char propname[32]; in acpi_find_gpio() local 924 snprintf(propname, sizeof(propname), "%s-%s", in acpi_find_gpio() 927 snprintf(propname, sizeof(propname), "%s", in acpi_find_gpio() [all …]
|
D | gpiolib-acpi.h | 57 const char *propname, int index, 93 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()
|
/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() 1020 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj); in acpi_data_prop_read_single() [all …]
|
/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()
|
/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()
|
/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 | 126 int of_at91_get_clk_range(struct device_node *np, const char *propname,
|
/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()
|
/drivers/iio/temperature/ |
D | ltc2983.c | 386 const char *propname, const bool is_steinhart, in __ltc2983_custom_sensor_new() argument 400 n_entries = fwnode_property_count_u32(fn, propname); in __ltc2983_custom_sensor_new() 402 n_entries = fwnode_property_count_u64(fn, propname); in __ltc2983_custom_sensor_new() 445 ret = fwnode_property_read_u32_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 451 ret = fwnode_property_read_u64_array(fn, propname, new_custom->table, n_entries); in __ltc2983_custom_sensor_new() 678 const char *propname = "adi,custom-thermocouple"; in ltc2983_thermocouple_new() local 681 propname, false, in ltc2983_thermocouple_new() 923 const char *propname; in ltc2983_thermistor_new() local 927 propname = "adi,custom-steinhart"; in ltc2983_thermistor_new() 929 propname = "adi,custom-thermistor"; in ltc2983_thermistor_new() [all …]
|
/drivers/power/supply/ |
D | power_supply_core.c | 831 char *propname; in power_supply_get_battery_info() local 834 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info() 835 if (!propname) { in power_supply_get_battery_info() 840 list = of_get_property(battery_np, propname, &size); in power_supply_get_battery_info() 842 dev_err(&psy->dev, "failed to get %s\n", propname); in power_supply_get_battery_info() 843 kfree(propname); in power_supply_get_battery_info() 849 kfree(propname); in power_supply_get_battery_info()
|
/drivers/peci/controller/ |
D | peci-aspeed.c | 442 static void aspeed_peci_property_sanitize(struct device *dev, const char *propname, in aspeed_peci_property_sanitize() argument 448 ret = device_property_read_u32(dev, propname, &val); in aspeed_peci_property_sanitize() 453 propname, val, default_val); in aspeed_peci_property_sanitize()
|
/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/dma/ |
D | imx-sdma.c | 1980 char propname[] = "fsl,sdma-event-remap"; in sdma_event_remap() local 1987 event_remap = of_find_property(np, propname, NULL); in sdma_event_remap() 1994 propname, EVENT_REMAP_CELLS); in sdma_event_remap() 2007 ret = of_property_read_u32_index(np, propname, i, ®); in sdma_event_remap() 2010 propname, i); in sdma_event_remap() 2014 ret = of_property_read_u32_index(np, propname, i + 1, &shift); in sdma_event_remap() 2017 propname, i + 1); in sdma_event_remap() 2021 ret = of_property_read_u32_index(np, propname, i + 2, &val); in sdma_event_remap() 2024 propname, i + 2); in sdma_event_remap()
|
/drivers/input/misc/ |
D | iqs626a.c | 720 const char *propname, u8 *enable) in iqs626_parse_pins() argument 726 if (!fwnode_property_present(ch_node, propname)) in iqs626_parse_pins() 729 count = fwnode_property_count_u32(ch_node, propname); in iqs626_parse_pins() 742 error = fwnode_property_read_u32_array(ch_node, propname, val, count); in iqs626_parse_pins()
|
D | iqs269a.c | 473 const char *propname, u8 *mask) in iqs269_parse_mask() argument 478 count = fwnode_property_count_u32(fwnode, propname); in iqs269_parse_mask() 485 error = fwnode_property_read_u32_array(fwnode, propname, val, count); in iqs269_parse_mask()
|
/drivers/staging/fbtft/ |
D | fbtft-core.c | 1131 static u32 fbtft_property_value(struct device *dev, const char *propname) in fbtft_property_value() argument 1136 ret = device_property_read_u32(dev, propname, &val); in fbtft_property_value() 1138 dev_info(dev, "%s: %s = %u\n", __func__, propname, val); in fbtft_property_value()
|
/drivers/hwmon/ |
D | adt7475.c | 1465 static int load_config3(const struct i2c_client *client, const char *propname) in load_config3() argument 1471 ret = of_property_read_string(client->dev.of_node, propname, &function); in load_config3() 1491 static int load_config4(const struct i2c_client *client, const char *propname) in load_config4() argument 1497 ret = of_property_read_string(client->dev.of_node, propname, &function); in load_config4()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_dsi.c | 1563 const char *propname, u32 *out_value) in exynos_dsi_of_read_u32() argument 1565 int ret = of_property_read_u32(np, propname, out_value); in exynos_dsi_of_read_u32() 1568 pr_err("%pOF: failed to get '%s' property\n", np, propname); in exynos_dsi_of_read_u32()
|