Home
last modified time | relevance | path

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

12345

/linux/drivers/pinctrl/
H A Dpinctrl-scmi.c313 pinctrl_scmi_alloc_configs(struct pinctrl_dev *pctldev, u32 num_configs, in pinctrl_scmi_alloc_configs() argument
317 if (num_configs <= SCMI_NUM_CONFIGS) in pinctrl_scmi_alloc_configs()
320 *p_config_value = kcalloc(num_configs, sizeof(**p_config_value), GFP_KERNEL); in pinctrl_scmi_alloc_configs()
324 *p_config_type = kcalloc(num_configs, sizeof(**p_config_type), GFP_KERNEL); in pinctrl_scmi_alloc_configs()
334 pinctrl_scmi_free_configs(struct pinctrl_dev *pctldev, u32 num_configs, in pinctrl_scmi_free_configs() argument
338 if (num_configs <= SCMI_NUM_CONFIGS) in pinctrl_scmi_free_configs()
348 unsigned int num_configs) in pinctrl_scmi_pinconf_set() argument
358 if (!configs || !num_configs) in pinctrl_scmi_pinconf_set()
361 ret = pinctrl_scmi_alloc_configs(pctldev, num_configs, &p_config_type, in pinctrl_scmi_pinconf_set()
366 for (i = 0; i < num_configs; i++) { in pinctrl_scmi_pinconf_set()
[all …]
H A Dpinctrl-utils.c65 unsigned long *configs, unsigned int num_configs, in pinctrl_utils_add_map_configs() argument
73 dup_configs = kmemdup_array(configs, num_configs, in pinctrl_utils_add_map_configs()
81 (*map)[*num_maps].data.configs.num_configs = num_configs; in pinctrl_utils_add_map_configs()
89 unsigned long **configs, unsigned int *num_configs, in pinctrl_utils_add_config() argument
92 unsigned int old_num = *num_configs; in pinctrl_utils_add_config()
106 *num_configs = new_num; in pinctrl_utils_add_config()
H A Dpinctrl-lantiq.c74 unsigned num_configs = 0; in ltq_pinctrl_dt_subnode_to_map() local
108 configs[num_configs++] = in ltq_pinctrl_dt_subnode_to_map()
113 if (!num_configs) in ltq_pinctrl_dt_subnode_to_map()
118 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
123 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
128 num_configs * sizeof(unsigned long), in ltq_pinctrl_dt_subnode_to_map()
133 (*map)->data.configs.num_configs = num_configs; in ltq_pinctrl_dt_subnode_to_map()
H A Dpinconf.c48 if (!map->data.configs.num_configs || in pinconf_validate_map()
140 setting->data.configs.num_configs = map->data.configs.num_configs; in pinconf_map_to_setting()
170 setting->data.configs.num_configs); in pinconf_apply_setting()
187 setting->data.configs.num_configs); in pinconf_apply_setting()
217 unsigned long *configs, unsigned int num_configs) in pinconf_show_config() argument
227 for (i = 0; i < num_configs; i++) { in pinconf_show_config()
258 map->data.configs.num_configs); in pinconf_show_map()
290 setting->data.configs.num_configs); in pinconf_show_setting()
H A Dpinctrl-utils.h27 unsigned long *configs, unsigned int num_configs,
30 unsigned long **configs, unsigned int *num_configs,
H A Dpinconf-generic.c307 unsigned int num_configs = 0; in pinconf_generic_dt_subnode_to_map() local
338 &num_configs); in pinconf_generic_dt_subnode_to_map()
347 if (num_configs) in pinconf_generic_dt_subnode_to_map()
366 if (num_configs) { in pinconf_generic_dt_subnode_to_map()
369 num_configs, type); in pinconf_generic_dt_subnode_to_map()
H 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()
767 unsigned int num_configs = 0; in k210_pinctrl_dt_subnode_to_map() local
783 &num_configs); in k210_pinctrl_dt_subnode_to_map()
790 reserve = pinmux_groups * (1 + num_configs); in k210_pinctrl_dt_subnode_to_map()
821 if (num_configs) { in k210_pinctrl_dt_subnode_to_map()
824 configs, num_configs, in k210_pinctrl_dt_subnode_to_map()
/linux/drivers/usb/core/
H A Dgeneric.c59 int num_configs; in usb_choose_configuration() local
84 num_configs = udev->descriptor.bNumConfigurations; in usb_choose_configuration()
85 for (i = 0; i < num_configs; (i++, c++)) { in usb_choose_configuration()
167 if (i == 0 && num_configs > 1 && desc && in usb_choose_configuration()
203 i, num_configs, plural(num_configs)); in usb_choose_configuration()
208 num_configs, plural(num_configs)); in usb_choose_configuration()
/linux/drivers/pinctrl/freescale/
H A Dpinctrl-imx-scmi.c138 new_map[i].data.configs.num_configs = ncfg; in pinctrl_scmi_imx_dt_node_to_map()
205 unsigned int num_configs) in pinctrl_scmi_imx_pinconf_set() argument
215 if (!configs || !num_configs) in pinctrl_scmi_imx_pinconf_set()
218 if (num_configs > IMX_SCMI_NUM_CFG) { in pinctrl_scmi_imx_pinconf_set()
219 dev_err(pmx->dev, "num_configs(%d) too large\n", num_configs); in pinctrl_scmi_imx_pinconf_set()
223 for (i = 0; i < num_configs; i++) { in pinctrl_scmi_imx_pinconf_set()
233 ret = pmx->ops->settings_conf(pmx->ph, pin, PIN_TYPE, num_configs, in pinctrl_scmi_imx_pinconf_set()
H A Dpinctrl-scu.c87 unsigned long *configs, unsigned num_configs) in imx_pinconf_set_scu() argument
97 if (num_configs == 1) { in imx_pinconf_set_scu()
117 WARN_ON(num_configs != 2); in imx_pinconf_set_scu()
H A Dpinctrl-imx.h101 unsigned long *configs, unsigned int num_configs);
131 unsigned long *configs, unsigned num_configs);
/linux/drivers/iio/adc/
H A Dad7173.c164 unsigned int num_configs; member
266 .num_configs = 8,
285 .num_configs = 8,
304 .num_configs = 8,
322 .num_configs = 8,
339 .num_configs = 8,
356 .num_configs = 8,
373 .num_configs = 4,
389 .num_configs = 8,
404 .num_configs = 8,
[all …]
/linux/drivers/clk/tegra/
H 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/
H A Dpinctrl.c82 unsigned int num_configs) in sh_pfc_map_add_config() argument
86 cfgs = kmemdup_array(configs, num_configs, sizeof(*cfgs), GFP_KERNEL); in sh_pfc_map_add_config()
93 map->data.configs.num_configs = num_configs; in sh_pfc_map_add_config()
108 unsigned int num_configs; in sh_pfc_dt_subnode_to_map() local
127 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in sh_pfc_dt_subnode_to_map()
131 if (!function && num_configs == 0) { in sh_pfc_dt_subnode_to_map()
191 configs, num_configs); in sh_pfc_dt_subnode_to_map()
207 configs, num_configs); in sh_pfc_dt_subnode_to_map()
641 unsigned long *configs, unsigned num_configs) in sh_pfc_pinconf_set() argument
649 for (i = 0; i < num_configs; i++) { in sh_pfc_pinconf_set()
[all …]
H A Dpinctrl-rzv2m.c195 unsigned int num_configs) in rzv2m_map_add_config() argument
199 cfgs = kmemdup_array(configs, num_configs, sizeof(*cfgs), GFP_KERNEL); in rzv2m_map_add_config()
206 map->data.configs.num_configs = num_configs; in rzv2m_map_add_config()
226 unsigned int num_configs; in rzv2m_dt_subnode_to_map() local
257 ret = pinconf_generic_parse_dt_config(np, NULL, &configs, &num_configs); in rzv2m_dt_subnode_to_map()
261 if (num_pins && !num_configs) { in rzv2m_dt_subnode_to_map()
285 configs, num_configs); in rzv2m_dt_subnode_to_map()
559 unsigned int num_configs) in rzv2m_pinctrl_pinconf_set() argument
587 for (i = 0; i < num_configs; i++) { in rzv2m_pinctrl_pinconf_set()
674 unsigned int num_configs) in rzv2m_pinctrl_pinconf_group_set() argument
[all …]
H A Dpinctrl-rzn1.c346 unsigned int num_configs = 0; in rzn1_dt_node_to_map_one() local
361 &num_configs); in rzn1_dt_node_to_map_one()
368 if (num_configs) in rzn1_dt_node_to_map_one()
383 if (num_configs) { in rzn1_dt_node_to_map_one()
387 configs, num_configs, in rzn1_dt_node_to_map_one()
539 unsigned long *configs, unsigned int num_configs) in rzn1_pinconf_set() argument
554 for (i = 0; i < num_configs; i++) { in rzn1_pinconf_set()
648 unsigned int num_configs) in rzn1_pinconf_group_set() argument
656 grp->name, selector, configs, num_configs); in rzn1_pinconf_group_set()
661 ret = rzn1_pinconf_set(pctldev, pin, configs, num_configs); in rzn1_pinconf_group_set()
/linux/drivers/pinctrl/sprd/
H A Dpinctrl-sprd.c252 unsigned int num_configs = 0; in sprd_dt_node_to_map() local
285 &num_configs); in sprd_dt_node_to_map()
297 if (num_configs) in sprd_dt_node_to_map()
313 if (num_configs) { in sprd_dt_node_to_map()
327 num_configs, type); in sprd_dt_node_to_map()
578 unsigned int num_configs) in sprd_pinctrl_check_sleep_config() argument
583 for (i = 0; i < num_configs; i++) { in sprd_pinctrl_check_sleep_config()
593 unsigned long *configs, unsigned int num_configs) in sprd_pinconf_set() argument
604 is_sleep_config = sprd_pinctrl_check_sleep_config(configs, num_configs); in sprd_pinconf_set()
606 for (i = 0; i < num_configs; i++) { in sprd_pinconf_set()
[all …]
/linux/include/linux/pinctrl/
H A Dpinconf.h48 unsigned int num_configs);
55 unsigned int num_configs);
H A Dmachine.h50 unsigned int num_configs; member
117 .num_configs = ARRAY_SIZE(cfgs), \
139 .num_configs = ARRAY_SIZE(cfgs), \
/linux/drivers/pinctrl/visconti/
H 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/samsung/
H A Dpinctrl-samsung.c118 unsigned num_configs) in add_map_configs() argument
125 dup_configs = kmemdup_array(configs, num_configs, sizeof(*dup_configs), in add_map_configs()
133 (*map)[*num_maps].data.configs.num_configs = num_configs; in add_map_configs()
140 unsigned *num_configs, unsigned long config) in add_config() argument
142 unsigned old_num = *num_configs; in add_config()
154 *num_configs = new_num; in add_config()
183 unsigned num_configs = 0; in samsung_dt_subnode_to_map() local
197 ret = add_config(dev, &configs, &num_configs, config); in samsung_dt_subnode_to_map()
210 if (num_configs) in samsung_dt_subnode_to_map()
231 if (num_configs) { in samsung_dt_subnode_to_map()
[all …]
/linux/drivers/pinctrl/sophgo/
H A Dpinctrl-cv18xx.c318 &map[nmaps].data.configs.num_configs); in cv1800_pctrl_dt_node_to_map()
333 if (map[nmaps].data.configs.num_configs == 0) in cv1800_pctrl_dt_node_to_map()
576 unsigned int num_configs, in cv1800_pinconf_compute_config() argument
591 for (i = 0; i < num_configs; i++) { in cv1800_pinconf_compute_config()
661 unsigned int num_configs) in cv1800_pconf_set() argument
671 configs, num_configs, &value)) in cv1800_pconf_set()
680 unsigned int num_configs) in cv1800_pconf_group_set() argument
695 configs, num_configs, &value)) in cv1800_pconf_group_set()
/linux/drivers/pinctrl/aspeed/
H A Dpinctrl-aspeed.h110 unsigned long *configs, unsigned int num_configs);
117 unsigned int num_configs);
/linux/drivers/pinctrl/bcm/
H A Dpinctrl-bcm281xx.c1096 unsigned num_configs, in bcm281xx_std_pin_update() argument
1105 for (i = 0; i < num_configs; i++) { in bcm281xx_std_pin_update()
1212 unsigned num_configs, in bcm281xx_i2c_pin_update() argument
1221 for (i = 0; i < num_configs; i++) { in bcm281xx_i2c_pin_update()
1282 unsigned num_configs, in bcm281xx_hdmi_pin_update() argument
1291 for (i = 0; i < num_configs; i++) { in bcm281xx_hdmi_pin_update()
1326 unsigned num_configs) in bcm281xx_pinctrl_pin_config_set() argument
1342 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1347 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
1352 num_configs, &cfg_val, &cfg_mask); in bcm281xx_pinctrl_pin_config_set()
/linux/drivers/pinctrl/tegra/
H A Dpinctrl-tegra.c113 unsigned num_configs = 0; in tegra_pinctrl_dt_subnode_to_map() local
132 &num_configs, config); in tegra_pinctrl_dt_subnode_to_map()
145 if (num_configs) in tegra_pinctrl_dt_subnode_to_map()
168 if (num_configs) { in tegra_pinctrl_dt_subnode_to_map()
171 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()

12345