Home
last modified time | relevance | path

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

1234

/Linux-v5.4/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()
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.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-utils.h35 unsigned long *configs, unsigned num_configs,
38 unsigned long **configs, unsigned *num_configs,
Dpinconf-generic.c299 unsigned num_configs = 0; in pinconf_generic_dt_subnode_to_map() local
330 &num_configs); in pinconf_generic_dt_subnode_to_map()
339 if (num_configs) in pinconf_generic_dt_subnode_to_map()
358 if (num_configs) { in pinconf_generic_dt_subnode_to_map()
361 num_configs, type); in pinconf_generic_dt_subnode_to_map()
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()
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.c484 unsigned num_pins, num_configs, reserve; in atmel_pctl_dt_subnode_to_map() local
495 &num_configs); in atmel_pctl_dt_subnode_to_map()
514 if (num_configs) in atmel_pctl_dt_subnode_to_map()
537 if (num_configs) { in atmel_pctl_dt_subnode_to_map()
540 configs, num_configs, in atmel_pctl_dt_subnode_to_map()
708 unsigned num_configs) in atmel_conf_pin_config_group_set() argument
718 for (i = 0; i < num_configs; i++) { in atmel_conf_pin_config_group_set()
/Linux-v5.4/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()
/Linux-v5.4/drivers/pinctrl/sh-pfc/
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 …]
/Linux-v5.4/drivers/pinctrl/freescale/
Dpinctrl-imx.c131 new_map[j].data.configs.num_configs = 2; in imx_dt_node_to_map()
135 new_map[j].data.configs.num_configs = 1; in imx_dt_node_to_map()
295 unsigned int num_configs) in imx_pinconf_decode_generic_config() argument
304 WARN_ON(num_configs > info->num_decodes); in imx_pinconf_decode_generic_config()
306 for (i = 0; i < num_configs; i++) { in imx_pinconf_decode_generic_config()
323 info->fixup(configs, num_configs, &raw_config); in imx_pinconf_decode_generic_config()
333 unsigned int num_configs; in imx_pinconf_parse_generic_config() local
341 &num_configs); in imx_pinconf_parse_generic_config()
345 return imx_pinconf_decode_generic_config(ipctl, configs, num_configs); in imx_pinconf_parse_generic_config()
383 unsigned num_configs) in imx_pinconf_set_mmio() argument
[all …]
Dpinctrl-imx.h94 void (*fixup)(unsigned long *configs, unsigned int num_configs,
149 unsigned long *configs, unsigned num_configs);
161 unsigned num_configs) in imx_pinconf_set_scu() argument
Dpinctrl-scu.c71 unsigned long *configs, unsigned num_configs) in imx_pinconf_set_scu() argument
84 WARN_ON(num_configs != 2); in imx_pinconf_set_scu()
/Linux-v5.4/include/linux/pinctrl/
Dpinconf.h48 unsigned num_configs);
55 unsigned num_configs);
Dmachine.h50 unsigned num_configs; member
117 .num_configs = ARRAY_SIZE(cfgs), \
139 .num_configs = ARRAY_SIZE(cfgs), \
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/pinctrl/sprd/
Dpinctrl-sprd.c248 unsigned int num_configs = 0; in sprd_dt_node_to_map() local
281 &num_configs); in sprd_dt_node_to_map()
293 if (num_configs) in sprd_dt_node_to_map()
309 if (num_configs) { in sprd_dt_node_to_map()
323 num_configs, type); in sprd_dt_node_to_map()
561 unsigned int num_configs) in sprd_pinctrl_check_sleep_config() argument
566 for (i = 0; i < num_configs; i++) { in sprd_pinctrl_check_sleep_config()
576 unsigned long *configs, unsigned int num_configs) in sprd_pinconf_set() argument
587 is_sleep_config = sprd_pinctrl_check_sleep_config(configs, num_configs); in sprd_pinconf_set()
589 for (i = 0; i < num_configs; i++) { in sprd_pinconf_set()
[all …]
/Linux-v5.4/drivers/pinctrl/aspeed/
Dpinctrl-aspeed.h76 unsigned long *configs, unsigned int num_configs);
83 unsigned int num_configs);
Dpinctrl-aspeed.c516 unsigned long *configs, unsigned int num_configs) in aspeed_pin_config_set() argument
524 for (i = 0; i < num_configs; i++) { in aspeed_pin_config_set()
582 unsigned int num_configs) in aspeed_pin_config_group_set() argument
597 num_configs); in aspeed_pin_config_group_set()
/Linux-v5.4/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()
433 unsigned num_configs) in tegra_pinconf_set() argument
469 unsigned num_configs) in tegra_pinconf_group_set() argument
482 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()
/Linux-v5.4/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()
/Linux-v5.4/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c820 unsigned long *configs, unsigned int num_configs) in madera_pin_conf_set() argument
829 while (num_configs) { in madera_pin_conf_set()
919 --num_configs; in madera_pin_conf_set()
948 unsigned int num_configs) in madera_pin_conf_group_set() argument
963 num_configs); in madera_pin_conf_group_set()
971 num_configs); in madera_pin_conf_group_set()
/Linux-v5.4/sound/soc/samsung/
Dbells.c409 .num_configs = ARRAY_SIZE(bells_codec_conf),
429 .num_configs = ARRAY_SIZE(bells_codec_conf),
449 .num_configs = ARRAY_SIZE(bells_codec_conf),
/Linux-v5.4/drivers/pinctrl/mediatek/
Dpinctrl-paris.c434 unsigned int num_configs; in mtk_pctrl_dt_subnode_to_map() local
449 &num_configs); in mtk_pctrl_dt_subnode_to_map()
453 if (num_configs) in mtk_pctrl_dt_subnode_to_map()
510 num_configs, in mtk_pctrl_dt_subnode_to_map()
657 unsigned long *configs, unsigned num_configs) in mtk_pconf_group_set() argument
663 for (i = 0; i < num_configs; i++) { in mtk_pconf_group_set()

1234