Home
last modified time | relevance | path

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

123

/drivers/usb/core/
Dgeneric.c46 int num_configs; in usb_choose_configuration() local
55 num_configs = udev->descriptor.bNumConfigurations; in usb_choose_configuration()
56 for (i = 0; i < num_configs; (i++, c++)) { in usb_choose_configuration()
113 if (i == 0 && num_configs > 1 && desc && in usb_choose_configuration()
149 i, num_configs, plural(num_configs)); in usb_choose_configuration()
154 num_configs, plural(num_configs)); in usb_choose_configuration()
/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()
94 (*map)[*num_maps].data.configs.num_configs = num_configs; in pinctrl_utils_add_map_configs()
102 unsigned long **configs, unsigned *num_configs, in pinctrl_utils_add_config() argument
105 unsigned old_num = *num_configs; in pinctrl_utils_add_config()
119 *num_configs = new_num; in pinctrl_utils_add_config()
Dpinctrl-lantiq.c76 unsigned num_configs = 0; in ltq_pinctrl_dt_subnode_to_map() local
110 configs[num_configs++] = in ltq_pinctrl_dt_subnode_to_map()
115 if (!num_configs) in ltq_pinctrl_dt_subnode_to_map()
120 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
125 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
130 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
135 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
Dpinctrl-tz1090-pdc.c350 unsigned int num_configs) in add_map_configs() argument
358 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in add_map_configs()
376 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
404 unsigned int num_configs = 0; in tz1090_pdc_pinctrl_dt_subnode_to_map() local
418 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in tz1090_pdc_pinctrl_dt_subnode_to_map()
425 if (num_configs) in tz1090_pdc_pinctrl_dt_subnode_to_map()
446 if (num_configs) { in tz1090_pdc_pinctrl_dt_subnode_to_map()
449 num_configs); in tz1090_pdc_pinctrl_dt_subnode_to_map()
714 unsigned num_configs) in tz1090_pdc_pinconf_set() argument
724 for (i = 0; i < num_configs; i++) { in tz1090_pdc_pinconf_set()
[all …]
Dpinconf.c48 if (!map->data.configs.num_configs || in pinconf_validate_map()
141 setting->data.configs.num_configs = map->data.configs.num_configs; in pinconf_map_to_setting()
171 setting->data.configs.num_configs); in pinconf_apply_setting()
188 setting->data.configs.num_configs); in pinconf_apply_setting()
206 unsigned long *configs, unsigned num_configs) in pinconf_show_config() argument
216 for (i = 0; i < num_configs; i++) { in pinconf_show_config()
247 map->data.configs.num_configs); in pinconf_show_map()
279 setting->data.configs.num_configs); in pinconf_show_setting()
446 found->data.configs.num_configs); in pinconf_dbg_config_print()
576 for (i = 0; i < configs->num_configs; i++) { in pinconf_dbg_config_write()
Dpinctrl-tz1090.c1076 unsigned int num_configs) in add_map_configs() argument
1083 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in add_map_configs()
1093 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
1121 unsigned int num_configs = 0; in tz1090_pinctrl_dt_subnode_to_map() local
1134 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in tz1090_pinctrl_dt_subnode_to_map()
1141 if (num_configs) in tz1090_pinctrl_dt_subnode_to_map()
1162 if (num_configs) { in tz1090_pinctrl_dt_subnode_to_map()
1165 num_configs); in tz1090_pinctrl_dt_subnode_to_map()
1708 unsigned num_configs) in tz1090_pinconf_set() argument
1718 for (i = 0; i < num_configs; i++) { in tz1090_pinconf_set()
[all …]
Dpinconf-generic.c291 unsigned num_configs = 0; in pinconf_generic_dt_subnode_to_map() local
322 &num_configs); in pinconf_generic_dt_subnode_to_map()
332 if (num_configs) in pinconf_generic_dt_subnode_to_map()
351 if (num_configs) { in pinconf_generic_dt_subnode_to_map()
354 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-at91-pio4.c479 unsigned num_pins, num_configs, reserve; in atmel_pctl_dt_subnode_to_map() local
491 &num_configs); in atmel_pctl_dt_subnode_to_map()
498 if (num_configs) in atmel_pctl_dt_subnode_to_map()
540 configs, num_configs, in atmel_pctl_dt_subnode_to_map()
701 unsigned num_configs) in atmel_conf_pin_config_group_set() argument
711 for (i = 0; i < num_configs; i++) { in atmel_conf_pin_config_group_set()
Dpinctrl-amd.c619 unsigned long *configs, unsigned num_configs) in amd_pinconf_set() argument
630 for (i = 0; i < num_configs; i++) { in amd_pinconf_set()
693 unsigned num_configs) in amd_pinconf_group_set() argument
703 if (amd_pinconf_set(pctldev, pins[i], configs, num_configs)) in amd_pinconf_group_set()
Dpinctrl-zynq.c1055 unsigned num_configs) in zynq_pinconf_cfg_set() argument
1070 for (i = 0; i < num_configs; i++) { in zynq_pinconf_cfg_set()
1131 unsigned num_configs) in zynq_pinconf_group_set() argument
1139 num_configs); in zynq_pinconf_group_set()
Dcore.h108 unsigned num_configs; member
Dpinctrl-falcon.c243 unsigned num_configs) in falcon_pinconf_group_set() argument
285 unsigned num_configs) in falcon_pinconf_set() argument
294 for (i = 0; i < num_configs; i++) { in falcon_pinconf_set()
/drivers/pinctrl/sh-pfc/
Dpinctrl.c86 unsigned int num_configs) in sh_pfc_map_add_config() argument
90 cfgs = kmemdup(configs, num_configs * sizeof(*cfgs), in sh_pfc_map_add_config()
98 map->data.configs.num_configs = num_configs; in sh_pfc_map_add_config()
113 unsigned int num_configs; in sh_pfc_dt_subnode_to_map() local
149 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in sh_pfc_dt_subnode_to_map()
153 if (!function && num_configs == 0) { in sh_pfc_dt_subnode_to_map()
213 configs, num_configs); in sh_pfc_dt_subnode_to_map()
229 configs, num_configs); in sh_pfc_dt_subnode_to_map()
664 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
672 for (i = 0; i < num_configs; i++) { in sh_pfc_pinconf_set()
[all …]
/drivers/pinctrl/samsung/
Dpinctrl-samsung.c124 unsigned num_configs) in add_map_configs() argument
131 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in add_map_configs()
141 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
148 unsigned *num_configs, unsigned long config) in add_config() argument
150 unsigned old_num = *num_configs; in add_config()
164 *num_configs = new_num; in add_config()
193 unsigned num_configs = 0; in samsung_dt_subnode_to_map() local
207 ret = add_config(dev, &configs, &num_configs, config); in samsung_dt_subnode_to_map()
220 if (num_configs) in samsung_dt_subnode_to_map()
241 if (num_configs) { in samsung_dt_subnode_to_map()
[all …]
Dpinctrl-exynos5440.c243 map[*nmaps].data.configs.num_configs = cfg_cnt; in exynos5440_dt_node_to_map()
388 unsigned num_configs) in exynos5440_pinconf_set() argument
400 for (i = 0; i < num_configs; i++) { in exynos5440_pinconf_set()
504 unsigned num_configs) in exynos5440_pinconf_group_set() argument
515 num_configs); in exynos5440_pinconf_group_set()
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c129 unsigned num_configs = 0; in tegra_pinctrl_dt_subnode_to_map() local
148 &num_configs, config); in tegra_pinctrl_dt_subnode_to_map()
161 if (num_configs) in tegra_pinctrl_dt_subnode_to_map()
184 if (num_configs) { in tegra_pinctrl_dt_subnode_to_map()
187 configs, num_configs, in tegra_pinctrl_dt_subnode_to_map()
451 unsigned num_configs) in tegra_pinconf_set() argument
487 unsigned num_configs) in tegra_pinconf_group_set() argument
500 for (i = 0; i < num_configs; i++) { in tegra_pinconf_group_set()
Dpinctrl-tegra-xusb.c164 unsigned int i, reserve = 0, num_configs = 0; in tegra_xusb_padctl_parse_subnode() local
191 &num_configs, config); in tegra_xusb_padctl_parse_subnode()
199 if (num_configs) in tegra_xusb_padctl_parse_subnode()
222 if (num_configs) { in tegra_xusb_padctl_parse_subnode()
225 configs, num_configs, in tegra_xusb_padctl_parse_subnode()
375 unsigned int num_configs) in tegra_xusb_padctl_pinconf_group_set() argument
386 for (i = 0; i < num_configs; i++) { in tegra_xusb_padctl_pinconf_group_set()
/drivers/pinctrl/bcm/
Dpinctrl-bcm281xx.c1102 unsigned num_configs, in bcm281xx_std_pin_update() argument
1111 for (i = 0; i < num_configs; i++) { in bcm281xx_std_pin_update()
1218 unsigned num_configs, in bcm281xx_i2c_pin_update() argument
1227 for (i = 0; i < num_configs; i++) { in bcm281xx_i2c_pin_update()
1288 unsigned num_configs, in bcm281xx_hdmi_pin_update() argument
1297 for (i = 0; i < num_configs; i++) { in bcm281xx_hdmi_pin_update()
1332 unsigned num_configs) in bcm281xx_pinctrl_pin_config_set() argument
1348 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1353 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1358 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c129 new_map[i].data.configs.num_configs = 1; in mxs_dt_node_to_map()
245 unsigned num_configs) in mxs_pinconf_set() argument
262 unsigned num_configs) in mxs_pinconf_group_set() argument
273 for (n = 0; n < num_configs; n++) { in mxs_pinconf_group_set()
/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c828 unsigned long *configs, unsigned num_configs) in abx500_dt_add_map_configs() argument
835 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), in abx500_dt_add_map_configs()
844 (*map)[*num_maps].data.configs.num_configs = num_configs; in abx500_dt_add_map_configs()
968 unsigned num_configs) in abx500_pin_config_set() argument
978 for (i = 0; i < num_configs; i++) { in abx500_pin_config_set()
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c463 unsigned num_configs) in uniphier_conf_pin_config_set() argument
468 for (i = 0; i < num_configs; i++) { in uniphier_conf_pin_config_set()
505 unsigned num_configs) in uniphier_conf_pin_config_group_set() argument
514 configs, num_configs); in uniphier_conf_pin_config_group_set()
/drivers/pinctrl/meson/
Dpinctrl-meson.c256 unsigned long *configs, unsigned num_configs) in meson_pinconf_set() argument
269 for (i = 0; i < num_configs; i++) { in meson_pinconf_set()
385 unsigned long *configs, unsigned num_configs) in meson_pinconf_group_set() argument
395 num_configs); in meson_pinconf_group_set()
/drivers/pinctrl/stm32/
Dpinctrl-stm32.c366 unsigned int num_configs; in stm32_pctrl_dt_subnode_to_map() local
381 &num_configs); in stm32_pctrl_dt_subnode_to_map()
385 if (num_configs) in stm32_pctrl_dt_subnode_to_map()
440 configs, num_configs, in stm32_pctrl_dt_subnode_to_map()
822 unsigned long *configs, unsigned num_configs) in stm32_pconf_group_set() argument
828 for (i = 0; i < num_configs; i++) { in stm32_pconf_group_set()
/drivers/pinctrl/vt8500/
Dpinctrl-wmt.c285 map->data.configs.num_configs = 1; in wmt_pctl_dt_node_to_map_pull()
428 unsigned long *configs, unsigned num_configs) in wmt_pinconf_set() argument
445 for (i = 0; i < num_configs; i++) { in wmt_pinconf_set()

123