Home
last modified time | relevance | path

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

12345

/linux/drivers/pinctrl/
A 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()
A 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()
A 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()
A 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()
A Dpinctrl-utils.h35 unsigned long *configs, unsigned num_configs,
38 unsigned long **configs, unsigned *num_configs,
A Dpinctrl-k210.c595 unsigned long *configs, unsigned int num_configs) in k210_pinconf_set() argument
603 for (i = 0; i < num_configs; i++) { in k210_pinconf_set()
624 unsigned int num_configs) in k210_pinconf_group_set() argument
636 for (i = 0; i < num_configs; i++) { in k210_pinconf_group_set()
769 unsigned int num_configs = 0; in k210_pinctrl_dt_subnode_to_map() local
785 &num_configs); in k210_pinctrl_dt_subnode_to_map()
792 reserve = pinmux_groups * (1 + num_configs); in k210_pinctrl_dt_subnode_to_map()
823 if (num_configs) { in k210_pinctrl_dt_subnode_to_map()
826 configs, num_configs, in k210_pinctrl_dt_subnode_to_map()
/linux/drivers/usb/core/
A 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()
/linux/drivers/pinctrl/freescale/
A 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
307 for (i = 0; i < num_configs; i++) { 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()
384 unsigned num_configs) in imx_pinconf_set_mmio() argument
400 for (i = 0; i < num_configs; i++) { in imx_pinconf_set_mmio()
421 unsigned num_configs) in imx_pinconf_set() argument
428 configs, num_configs); in imx_pinconf_set()
[all …]
A 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);
A 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()
/linux/drivers/clk/tegra/
A 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()
/linux/drivers/pinctrl/renesas/
A 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
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()
671 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
679 for (i = 0; i < num_configs; i++) { in sh_pfc_pinconf_set()
753 unsigned num_configs) in sh_pfc_pinconf_group_set() argument
[all …]
A 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()
A Dpinctrl-rzg2l.c212 unsigned int num_configs) in rzg2l_map_add_config() argument
216 cfgs = kmemdup(configs, num_configs * sizeof(*cfgs), in rzg2l_map_add_config()
224 map->data.configs.num_configs = num_configs; in rzg2l_map_add_config()
243 unsigned int num_configs; in rzg2l_dt_subnode_to_map() local
273 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in rzg2l_dt_subnode_to_map()
277 if (num_pins && !num_configs) { in rzg2l_dt_subnode_to_map()
301 configs, num_configs); in rzg2l_dt_subnode_to_map()
499 unsigned int num_configs) in rzg2l_pinctrl_pinconf_set() argument
521 for (i = 0; i < num_configs; i++) { in rzg2l_pinctrl_pinconf_set()
578 unsigned int num_configs) in rzg2l_pinctrl_pinconf_group_set() argument
[all …]
/linux/drivers/pinctrl/samsung/
A Dpinctrl-samsung.c119 unsigned num_configs) in add_map_configs() argument
134 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
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
211 if (num_configs) in samsung_dt_subnode_to_map()
232 if (num_configs) { in samsung_dt_subnode_to_map()
235 num_configs); in samsung_dt_subnode_to_map()
478 unsigned long *configs, unsigned num_configs) in samsung_pinconf_set() argument
482 for (i = 0; i < num_configs; i++) { in samsung_pinconf_set()
[all …]
/linux/drivers/pinctrl/sprd/
A 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
604 for (i = 0; i < num_configs; i++) { in sprd_pinconf_set()
761 unsigned int num_configs) in sprd_pinconf_group_set() argument
[all …]
/linux/include/linux/pinctrl/
A Dmachine.h50 unsigned num_configs; member
117 .num_configs = ARRAY_SIZE(cfgs), \
139 .num_configs = ARRAY_SIZE(cfgs), \
A Dpinconf.h48 unsigned num_configs);
55 unsigned num_configs);
/linux/drivers/pinctrl/visconti/
A 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()
/linux/drivers/pinctrl/bcm/
A 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()
/linux/drivers/pinctrl/tegra/
A 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()
507 unsigned num_configs) in tegra_pinconf_set() argument
543 unsigned num_configs) in tegra_pinconf_group_set() argument
556 for (i = 0; i < num_configs; i++) { in tegra_pinconf_group_set()
A 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()
/linux/drivers/pinctrl/aspeed/
A Dpinctrl-aspeed.h110 unsigned long *configs, unsigned int num_configs);
117 unsigned int num_configs);
A Dpinctrl-aspeed.c571 unsigned long *configs, unsigned int num_configs) in aspeed_pin_config_set() argument
579 for (i = 0; i < num_configs; i++) { in aspeed_pin_config_set()
637 unsigned int num_configs) in aspeed_pin_config_group_set() argument
652 num_configs); in aspeed_pin_config_group_set()
/linux/drivers/pinctrl/cirrus/
A 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()

Completed in 63 milliseconds

12345