Home
last modified time | relevance | path

Searched refs:num_configs (Results 1 – 25 of 85) sorted by relevance

1234

/drivers/pinctrl/
Dpinctrl-utils.c76 unsigned long *configs, unsigned num_configs, in pinctrl_utils_add_map_configs() argument
84 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in pinctrl_utils_add_map_configs()
92 (*map)[*num_maps].data.configs.num_configs = num_configs; in pinctrl_utils_add_map_configs()
100 unsigned long **configs, unsigned *num_configs, in pinctrl_utils_add_config() argument
103 unsigned old_num = *num_configs; in pinctrl_utils_add_config()
117 *num_configs = new_num; in pinctrl_utils_add_config()
Dpinconf.c46 if (!map->data.configs.num_configs || in pinconf_validate_map()
138 setting->data.configs.num_configs = map->data.configs.num_configs; in pinconf_map_to_setting()
168 setting->data.configs.num_configs); in pinconf_apply_setting()
185 setting->data.configs.num_configs); in pinconf_apply_setting()
215 unsigned long *configs, unsigned num_configs) in pinconf_show_config() argument
225 for (i = 0; i < num_configs; i++) { in pinconf_show_config()
256 map->data.configs.num_configs); in pinconf_show_map()
288 setting->data.configs.num_configs); in pinconf_show_setting()
Dpinctrl-lantiq.c73 unsigned num_configs = 0; in ltq_pinctrl_dt_subnode_to_map() local
107 configs[num_configs++] = in ltq_pinctrl_dt_subnode_to_map()
112 if (!num_configs) in ltq_pinctrl_dt_subnode_to_map()
117 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
122 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
127 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
132 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
Dpinconf-generic.c301 unsigned num_configs = 0; in pinconf_generic_dt_subnode_to_map() local
332 &num_configs); in pinconf_generic_dt_subnode_to_map()
341 if (num_configs) in pinconf_generic_dt_subnode_to_map()
360 if (num_configs) { in pinconf_generic_dt_subnode_to_map()
363 num_configs, type); in pinconf_generic_dt_subnode_to_map()
Dpinctrl-utils.h35 unsigned long *configs, unsigned num_configs,
38 unsigned long **configs, unsigned *num_configs,
Dpinctrl-da850-pupd.c103 unsigned int num_configs) in da850_pupd_pin_config_group_set() argument
113 for (i = 0; i < num_configs; i++) { in da850_pupd_pin_config_group_set()
Dpinctrl-at91-pio4.c548 unsigned num_pins, num_configs, reserve; in atmel_pctl_dt_subnode_to_map() local
559 &num_configs); in atmel_pctl_dt_subnode_to_map()
578 if (num_configs) in atmel_pctl_dt_subnode_to_map()
601 if (num_configs) { in atmel_pctl_dt_subnode_to_map()
604 configs, num_configs, in atmel_pctl_dt_subnode_to_map()
772 unsigned num_configs) in atmel_conf_pin_config_group_set() argument
782 for (i = 0; i < num_configs; i++) { in atmel_conf_pin_config_group_set()
/drivers/usb/core/
Dgeneric.c59 int num_configs; in usb_choose_configuration() local
68 num_configs = udev->descriptor.bNumConfigurations; in usb_choose_configuration()
69 for (i = 0; i < num_configs; (i++, c++)) { in usb_choose_configuration()
151 if (i == 0 && num_configs > 1 && desc && in usb_choose_configuration()
187 i, num_configs, plural(num_configs)); in usb_choose_configuration()
192 num_configs, plural(num_configs)); in usb_choose_configuration()
/drivers/pinctrl/renesas/
Dpinctrl.c85 unsigned int num_configs) in sh_pfc_map_add_config() argument
89 cfgs = kmemdup(configs, num_configs * sizeof(*cfgs), in sh_pfc_map_add_config()
97 map->data.configs.num_configs = num_configs; in sh_pfc_map_add_config()
112 unsigned int num_configs; in sh_pfc_dt_subnode_to_map() local
148 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in sh_pfc_dt_subnode_to_map()
152 if (!function && num_configs == 0) { in sh_pfc_dt_subnode_to_map()
212 configs, num_configs); in sh_pfc_dt_subnode_to_map()
228 configs, num_configs); in sh_pfc_dt_subnode_to_map()
667 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
675 for (i = 0; i < num_configs; i++) { in sh_pfc_pinconf_set()
[all …]
Dpinctrl-rzn1.c342 unsigned int num_configs = 0; in rzn1_dt_node_to_map_one() local
357 &num_configs); in rzn1_dt_node_to_map_one()
364 if (num_configs) in rzn1_dt_node_to_map_one()
379 if (num_configs) { in rzn1_dt_node_to_map_one()
383 configs, num_configs, in rzn1_dt_node_to_map_one()
538 unsigned long *configs, unsigned int num_configs) in rzn1_pinconf_set() argument
553 for (i = 0; i < num_configs; i++) { in rzn1_pinconf_set()
647 unsigned int num_configs) in rzn1_pinconf_group_set() argument
655 grp->name, selector, configs, num_configs); in rzn1_pinconf_group_set()
660 ret = rzn1_pinconf_set(pctldev, pin, configs, num_configs); in rzn1_pinconf_group_set()
/drivers/pinctrl/freescale/
Dpinctrl-imx.c132 new_map[j].data.configs.num_configs = 2; in imx_dt_node_to_map()
136 new_map[j].data.configs.num_configs = 1; in imx_dt_node_to_map()
296 unsigned int num_configs) in imx_pinconf_decode_generic_config() argument
305 WARN_ON(num_configs > info->num_decodes); in imx_pinconf_decode_generic_config()
307 for (i = 0; i < num_configs; i++) { in imx_pinconf_decode_generic_config()
324 info->fixup(configs, num_configs, &raw_config); in imx_pinconf_decode_generic_config()
334 unsigned int num_configs; in imx_pinconf_parse_generic_config() local
342 &num_configs); in imx_pinconf_parse_generic_config()
346 return imx_pinconf_decode_generic_config(ipctl, configs, num_configs); in imx_pinconf_parse_generic_config()
384 unsigned num_configs) in imx_pinconf_set_mmio() argument
[all …]
Dpinctrl-imx.h109 void (*fixup)(unsigned long *configs, unsigned int num_configs,
119 unsigned long *configs, unsigned int num_configs);
155 unsigned long *configs, unsigned num_configs);
Dpinctrl-scu.c74 unsigned long *configs, unsigned num_configs) in imx_pinconf_set_scu() argument
87 WARN_ON(num_configs != 2); in imx_pinconf_set_scu()
Dpinctrl-mxs.c122 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map()
238 unsigned num_configs) in mxs_pinconf_set() argument
255 unsigned num_configs) in mxs_pinconf_group_set() argument
266 for (n = 0; n < num_configs; n++) { in mxs_pinconf_group_set()
/drivers/clk/tegra/
Dclk-tegra210-emc.c96 if (!provider || !provider->configs || provider->num_configs == 0) in tegra210_clk_emc_round_rate()
99 for (i = 0; i < provider->num_configs; i++) { in tegra210_clk_emc_round_rate()
131 if (!provider->configs || provider->num_configs == 0) in tegra210_clk_emc_set_rate()
134 for (i = 0; i < provider->num_configs; i++) { in tegra210_clk_emc_set_rate()
141 if (i == provider->num_configs) in tegra210_clk_emc_set_rate()
307 for (i = 0; i < provider->num_configs; i++) { in tegra210_clk_emc_attach()
/drivers/pinctrl/samsung/
Dpinctrl-samsung.c119 unsigned num_configs) in add_map_configs() argument
126 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in add_map_configs()
134 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
141 unsigned *num_configs, unsigned long config) in add_config() argument
143 unsigned old_num = *num_configs; in add_config()
155 *num_configs = new_num; in add_config()
184 unsigned num_configs = 0; in samsung_dt_subnode_to_map() local
198 ret = add_config(dev, &configs, &num_configs, config); in samsung_dt_subnode_to_map()
211 if (num_configs) in samsung_dt_subnode_to_map()
232 if (num_configs) { in samsung_dt_subnode_to_map()
[all …]
/drivers/pinctrl/sprd/
Dpinctrl-sprd.c250 unsigned int num_configs = 0; in sprd_dt_node_to_map() local
283 &num_configs); in sprd_dt_node_to_map()
295 if (num_configs) in sprd_dt_node_to_map()
311 if (num_configs) { in sprd_dt_node_to_map()
325 num_configs, type); in sprd_dt_node_to_map()
576 unsigned int num_configs) in sprd_pinctrl_check_sleep_config() argument
581 for (i = 0; i < num_configs; i++) { in sprd_pinctrl_check_sleep_config()
591 unsigned long *configs, unsigned int num_configs) in sprd_pinconf_set() argument
602 is_sleep_config = sprd_pinctrl_check_sleep_config(configs, num_configs); in sprd_pinconf_set()
604 for (i = 0; i < num_configs; i++) { in sprd_pinconf_set()
[all …]
/drivers/pinctrl/visconti/
Dpinctrl-common.c39 unsigned int num_configs) in visconti_pin_config_set() argument
53 for (i = 0; i < num_configs; i++) { in visconti_pin_config_set()
125 unsigned int num_configs) in visconti_pin_config_group_set() argument
136 __func__, selector, num_pins, num_configs); in visconti_pin_config_group_set()
140 configs, num_configs); in visconti_pin_config_group_set()
/drivers/pinctrl/bcm/
Dpinctrl-bcm281xx.c1103 unsigned num_configs, in bcm281xx_std_pin_update() argument
1112 for (i = 0; i < num_configs; i++) { in bcm281xx_std_pin_update()
1219 unsigned num_configs, in bcm281xx_i2c_pin_update() argument
1228 for (i = 0; i < num_configs; i++) { in bcm281xx_i2c_pin_update()
1289 unsigned num_configs, in bcm281xx_hdmi_pin_update() argument
1298 for (i = 0; i < num_configs; i++) { in bcm281xx_hdmi_pin_update()
1333 unsigned num_configs) in bcm281xx_pinctrl_pin_config_set() argument
1349 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1354 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1359 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c111 unsigned num_configs = 0; in tegra_pinctrl_dt_subnode_to_map() local
130 &num_configs, config); in tegra_pinctrl_dt_subnode_to_map()
143 if (num_configs) in tegra_pinctrl_dt_subnode_to_map()
166 if (num_configs) { in tegra_pinctrl_dt_subnode_to_map()
169 configs, num_configs, in tegra_pinctrl_dt_subnode_to_map()
479 unsigned num_configs) in tegra_pinconf_set() argument
515 unsigned num_configs) in tegra_pinconf_group_set() argument
528 for (i = 0; i < num_configs; i++) { in tegra_pinconf_group_set()
Dpinctrl-tegra-xusb.c156 unsigned int i, reserve = 0, num_configs = 0; in tegra_xusb_padctl_parse_subnode() local
183 &num_configs, config); in tegra_xusb_padctl_parse_subnode()
191 if (num_configs) in tegra_xusb_padctl_parse_subnode()
214 if (num_configs) { in tegra_xusb_padctl_parse_subnode()
217 configs, num_configs, in tegra_xusb_padctl_parse_subnode()
367 unsigned int num_configs) in tegra_xusb_padctl_pinconf_group_set() argument
378 for (i = 0; i < num_configs; i++) { in tegra_xusb_padctl_pinconf_group_set()
/drivers/pinctrl/aspeed/
Dpinctrl-aspeed.h110 unsigned long *configs, unsigned int num_configs);
117 unsigned int num_configs);
Dpinctrl-aspeed.c570 unsigned long *configs, unsigned int num_configs) in aspeed_pin_config_set() argument
578 for (i = 0; i < num_configs; i++) { in aspeed_pin_config_set()
636 unsigned int num_configs) in aspeed_pin_config_group_set() argument
651 num_configs); in aspeed_pin_config_group_set()
/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c819 unsigned long *configs, unsigned int num_configs) in madera_pin_conf_set() argument
828 while (num_configs) { in madera_pin_conf_set()
918 --num_configs; in madera_pin_conf_set()
947 unsigned int num_configs) in madera_pin_conf_group_set() argument
962 num_configs); in madera_pin_conf_group_set()
970 num_configs); in madera_pin_conf_group_set()
/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c704 unsigned long *configs, unsigned num_configs) in abx500_dt_add_map_configs() argument
711 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in abx500_dt_add_map_configs()
720 (*map)[*num_maps].data.configs.num_configs = num_configs; in abx500_dt_add_map_configs()
845 unsigned num_configs) in abx500_pin_config_set() argument
855 for (i = 0; i < num_configs; i++) { in abx500_pin_config_set()

1234