Home
last modified time | relevance | path

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

12

/drivers/base/
Dproperty.c35 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
54 ret = fwnode_call_bool_op(fwnode, property_present, propname); in fwnode_property_present()
58 return fwnode_call_bool_op(fwnode->secondary, property_present, propname); in fwnode_property_present()
80 int device_property_read_u8_array(struct device *dev, const char *propname, in device_property_read_u8_array() argument
83 return fwnode_property_read_u8_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u8_array()
105 int device_property_read_u16_array(struct device *dev, const char *propname, in device_property_read_u16_array() argument
108 return fwnode_property_read_u16_array(dev_fwnode(dev), propname, val, nval); in device_property_read_u16_array()
130 int device_property_read_u32_array(struct device *dev, const char *propname, in device_property_read_u32_array() argument
[all …]
Dswnode.c131 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 …]
Dcacheinfo.c76 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/
Dproperty.c71 const char *propname, int elem_size) in of_property_count_elems_of_size() argument
73 struct property *prop = of_find_property(np, propname, NULL); in of_property_count_elems_of_size()
82 propname, np, elem_size); in of_property_count_elems_of_size()
107 const char *propname, u32 min, u32 max, size_t *len) in of_find_property_value_of_size() argument
109 struct property *prop = of_find_property(np, propname, NULL); in of_find_property_value_of_size()
144 const char *propname, in of_property_read_u32_index() argument
147 const u32 *val = of_find_property_value_of_size(np, propname, in of_property_read_u32_index()
178 const char *propname, in of_property_read_u64_index() argument
181 const u64 *val = of_find_property_value_of_size(np, propname, in of_property_read_u64_index()
218 const char *propname, u8 *out_values, in of_property_read_variable_u8_array() argument
[all …]
/drivers/input/
Dmatrix-keymap.c69 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/
Dgpiolib-of.c62 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 …]
Dgpiolib-acpi.c803 const char *propname, int index, in acpi_gpio_property_lookup() argument
811 ret = __acpi_node_get_property_reference(fwnode, propname, index, 3, in acpi_gpio_property_lookup()
819 if (!acpi_get_driver_gpio_data(adev, propname, index, &args, in acpi_gpio_property_lookup()
865 const char *propname, int index, in acpi_get_gpiod_by_index() argument
877 if (propname) { in acpi_get_gpiod_by_index()
878 dev_dbg(&adev->dev, "GPIO: looking up %s\n", propname); in acpi_get_gpiod_by_index()
881 propname, index, &lookup); in acpi_get_gpiod_by_index()
916 char propname[32]; in acpi_find_gpio() local
922 snprintf(propname, sizeof(propname), "%s-%s", in acpi_find_gpio()
925 snprintf(propname, sizeof(propname), "%s", in acpi_find_gpio()
[all …]
Dgpiolib-acpi.h55 const char *propname, int index,
91 acpi_node_get_gpiod(struct fwnode_handle *fwnode, const char *propname, in acpi_node_get_gpiod() argument
Dgpiolib-devres.c149 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()
Dgpiolib.c4013 const char *propname, int index, in fwnode_get_named_gpiod() argument
4023 propname, index, in fwnode_get_named_gpiod()
4030 desc = acpi_node_get_gpiod(fwnode, propname, index, &info); in fwnode_get_named_gpiod()
4044 ret = gpiod_configure_flags(desc, propname, lflags, dflags); in fwnode_get_named_gpiod()
/drivers/acpi/
Dproperty.c508 const union acpi_object *propname, *propvalue; in acpi_data_get_property() local
513 propname = &property->package.elements[0]; in acpi_data_get_property()
516 if (!strcmp(name, propname->string.pointer)) { in acpi_data_get_property()
564 const char *propname, void **valptr) in acpi_node_prop_get() argument
567 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()
794 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()
840 ret = acpi_data_get_property(data, propname, ACPI_TYPE_STRING, &obj); in acpi_data_prop_read_single()
[all …]
/drivers/pinctrl/
Ddevicetree.c200 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/virt/
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()
/drivers/memory/
Dbt1-l2-ctl.c182 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/clk/at91/
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()
Dpmc.h110 int of_at91_get_clk_range(struct device_node *np, const char *propname,
/drivers/iio/temperature/
Dltc2983.c383 const char *propname, in __ltc2983_custom_sensor_new() argument
398 n_entries = of_property_count_elems_of_size(np, propname, e_size); in __ltc2983_custom_sensor_new()
440 of_property_read_u64_index(np, propname, index, &temp); in __ltc2983_custom_sensor_new()
451 of_property_read_u32_index(np, propname, index, &t32); in __ltc2983_custom_sensor_new()
673 const char *propname = "adi,custom-thermocouple"; in ltc2983_thermocouple_new() local
676 propname, false, in ltc2983_thermocouple_new()
915 const char *propname; in ltc2983_thermistor_new() local
919 propname = "adi,custom-steinhart"; in ltc2983_thermistor_new()
921 propname = "adi,custom-thermistor"; in ltc2983_thermistor_new()
925 propname, in ltc2983_thermistor_new()
/drivers/power/supply/
Dpower_supply_core.c780 char *propname; in power_supply_get_battery_info() local
783 propname = kasprintf(GFP_KERNEL, "ocv-capacity-table-%d", index); in power_supply_get_battery_info()
784 if (!propname) { in power_supply_get_battery_info()
789 list = of_get_property(battery_np, propname, &size); in power_supply_get_battery_info()
791 dev_err(&psy->dev, "failed to get %s\n", propname); in power_supply_get_battery_info()
792 kfree(propname); in power_supply_get_battery_info()
798 kfree(propname); in power_supply_get_battery_info()
/drivers/dma/
Dimx-sdma.c1870 char propname[] = "fsl,sdma-event-remap"; in sdma_event_remap() local
1877 event_remap = of_find_property(np, propname, NULL); in sdma_event_remap()
1884 propname, EVENT_REMAP_CELLS); in sdma_event_remap()
1897 ret = of_property_read_u32_index(np, propname, i, &reg); in sdma_event_remap()
1900 propname, i); in sdma_event_remap()
1904 ret = of_property_read_u32_index(np, propname, i + 1, &shift); in sdma_event_remap()
1907 propname, i + 1); in sdma_event_remap()
1911 ret = of_property_read_u32_index(np, propname, i + 2, &val); in sdma_event_remap()
1914 propname, i + 2); in sdma_event_remap()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c354 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/
Diio-mux.c329 #define of_property_for_each_string_index(np, propname, prop, s, i) \ argument
330 for (prop = of_find_property(np, propname, NULL), \
/drivers/input/misc/
Diqs626a.c720 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()
Diqs269a.c470 const char *propname, u8 *mask) in iqs269_parse_mask() argument
475 count = fwnode_property_count_u32(fwnode, propname); in iqs269_parse_mask()
482 error = fwnode_property_read_u32_array(fwnode, propname, val, count); in iqs269_parse_mask()
/drivers/staging/fbtft/
Dfbtft-core.c1134 static u32 fbtft_property_value(struct device *dev, const char *propname) in fbtft_property_value() argument
1139 ret = device_property_read_u32(dev, propname, &val); in fbtft_property_value()
1141 dev_info(dev, "%s: %s = %u\n", __func__, propname, val); in fbtft_property_value()
/drivers/gpu/drm/exynos/
Dexynos_drm_dsi.c1654 const char *propname, u32 *out_value) in exynos_dsi_of_read_u32() argument
1656 int ret = of_property_read_u32(np, propname, out_value); in exynos_dsi_of_read_u32()
1659 pr_err("%pOF: failed to get '%s' property\n", np, propname); in exynos_dsi_of_read_u32()

12