Home
last modified time | relevance | path

Searched refs:ngroups (Results 1 – 25 of 211) sorted by relevance

123456789

/drivers/pinctrl/berlin/
A Dberlin.c39 return pctrl->desc->ngroups; in berlin_pinctrl_get_group_count()
59 int ret, ngroups; in berlin_pinctrl_dt_node_to_map() local
72 if (ngroups < 0) { in berlin_pinctrl_dt_node_to_map()
79 num_maps, ngroups); in berlin_pinctrl_dt_node_to_map()
123 unsigned * const ngroups) in berlin_pinmux_get_function_groups() argument
128 *ngroups = pctrl->functions[function].ngroups; in berlin_pinmux_get_function_groups()
187 function->ngroups++; in berlin_pinctrl_add_function()
194 function->ngroups = 1; in berlin_pinctrl_add_function()
211 for (i = 0; i < pctrl->desc->ngroups; i++) { in berlin_pinctrl_build_state()
223 for (i = 0; i < pctrl->desc->ngroups; i++) { in berlin_pinctrl_build_state()
[all …]
/drivers/pinctrl/spear/
A Dpinctrl-spear310.c52 .ngroups = ARRAY_SIZE(emi_cs_0_to_5_grps),
84 .ngroups = ARRAY_SIZE(uart1_grps),
116 .ngroups = ARRAY_SIZE(uart2_grps),
148 .ngroups = ARRAY_SIZE(uart3_grps),
180 .ngroups = ARRAY_SIZE(uart4_grps),
212 .ngroups = ARRAY_SIZE(uart5_grps),
244 .ngroups = ARRAY_SIZE(fsmc_grps),
276 .ngroups = ARRAY_SIZE(rs485_0_grps),
308 .ngroups = ARRAY_SIZE(rs485_1_grps),
340 .ngroups = ARRAY_SIZE(tdm_grps),
[all …]
A Dpinctrl-spear1340.c365 .ngroups = ARRAY_SIZE(fsmc_grps),
664 .ngroups = ARRAY_SIZE(pwm_grps),
825 .ngroups = ARRAY_SIZE(vip_grps),
862 .ngroups = ARRAY_SIZE(cam0_grps),
903 .ngroups = ARRAY_SIZE(cam1_grps),
940 .ngroups = ARRAY_SIZE(cam2_grps),
981 .ngroups = ARRAY_SIZE(cam3_grps),
1013 .ngroups = ARRAY_SIZE(smi_grps),
1283 .ngroups = ARRAY_SIZE(i2s_grps),
1618 .ngroups = ARRAY_SIZE(cf_grps),
[all …]
A Dpinctrl-spear3xx.c51 .ngroups = ARRAY_SIZE(firda_grps),
84 .ngroups = ARRAY_SIZE(i2c_grps),
117 .ngroups = ARRAY_SIZE(ssp_cs_grps),
150 .ngroups = ARRAY_SIZE(ssp_grps),
184 .ngroups = ARRAY_SIZE(mii_grps),
349 .ngroups = ARRAY_SIZE(gpio0_grps),
382 .ngroups = ARRAY_SIZE(uart0_ext_grps),
415 .ngroups = ARRAY_SIZE(uart0_grps),
448 .ngroups = ARRAY_SIZE(timer_0_1_grps),
481 .ngroups = ARRAY_SIZE(timer_2_3_grps),
A Dpinctrl-spear1310.c269 .ngroups = ARRAY_SIZE(i2c0_grps),
364 .ngroups = ARRAY_SIZE(ssp0_grps),
400 .ngroups = ARRAY_SIZE(i2s0_grps),
436 .ngroups = ARRAY_SIZE(i2s1_grps),
503 .ngroups = ARRAY_SIZE(clcd_grps),
619 .ngroups = ARRAY_SIZE(smi_grps),
657 .ngroups = ARRAY_SIZE(gmii_grps),
893 .ngroups = ARRAY_SIZE(nand_grps),
1252 .ngroups = ARRAY_SIZE(cf_grps),
1284 .ngroups = ARRAY_SIZE(xd_grps),
[all …]
A Dpinctrl-spear300.c218 .ngroups = ARRAY_SIZE(fsmc_grps),
279 .ngroups = ARRAY_SIZE(clcd_grps),
316 .ngroups = ARRAY_SIZE(tdm_grps),
352 .ngroups = ARRAY_SIZE(i2c_grps),
411 .ngroups = ARRAY_SIZE(cam_grps),
445 .ngroups = ARRAY_SIZE(dac_grps),
481 .ngroups = ARRAY_SIZE(i2s_grps),
551 .ngroups = ARRAY_SIZE(sdhci_grps),
612 .ngroups = ARRAY_SIZE(gpio1_grps),
658 spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); in spear300_pinctrl_probe()
A Dpinctrl-spear320.c511 .ngroups = ARRAY_SIZE(clcd_grps),
594 .ngroups = ARRAY_SIZE(emi_grps),
687 .ngroups = ARRAY_SIZE(fsmc_grps),
733 .ngroups = ARRAY_SIZE(spp_grps),
890 .ngroups = ARRAY_SIZE(sdhci_grps),
943 .ngroups = ARRAY_SIZE(i2s_grps),
989 .ngroups = ARRAY_SIZE(uart1_grps),
1927 .ngroups = ARRAY_SIZE(can0_grps),
1972 .ngroups = ARRAY_SIZE(can1_grps),
2393 .ngroups = ARRAY_SIZE(pwm2_grps),
[all …]
A Dpinctrl-spear.c103 for (group = 0; group < machdata->ngroups; group++) { in pmx_init_addr()
120 return pmx->machdata->ngroups; in spear_pinctrl_get_groups_cnt()
228 unsigned * const ngroups) in spear_pinctrl_get_func_groups() argument
233 *ngroups = pmx->machdata->functions[function]->ngroups; in spear_pinctrl_get_func_groups()
/drivers/pinctrl/
A Dpinctrl-zynqmp.c66 unsigned int ngroups; member
84 unsigned int ngroups; member
109 return pctrl->ngroups + zynqmp_desc.npins; in zynqmp_pctrl_get_groups_count()
117 if (selector < pctrl->ngroups) in zynqmp_pctrl_get_group_name()
130 if (selector < pctrl->ngroups) { in zynqmp_pctrl_get_group_pins()
197 *num_groups = pctrl->funcs[selector].ngroups; in zynqmp_pmux_get_function_groups()
548 *ngroups = payload[1]; in zynqmp_pinctrl_get_func_num_groups()
622 for (i = 0; i < func->ngroups; i++) { in zynqmp_pinctrl_prepare_func_groups()
634 func->ngroups += npins; in zynqmp_pinctrl_prepare_func_groups()
752 unsigned int ngroups) in zynqmp_pinctrl_prepare_group_pins() argument
[all …]
A Dpinctrl-k230.c64 unsigned int ngroups; member
73 unsigned int ngroups; member
90 return info->ngroups; in k230_get_groups_count()
108 if (selector >= info->ngroups) in k230_get_group_pins()
207 for (i = 0; i < func->ngroups; ++i) { in k230_dt_node_to_map()
220 for (i = 0; i < func->ngroups; ++i) { in k230_dt_node_to_map()
523 func->ngroups = of_get_child_count(np); in k230_pinctrl_parse_functions()
524 if (func->ngroups <= 0) in k230_pinctrl_parse_functions()
527 func->groups = devm_kcalloc(dev, func->ngroups, in k230_pinctrl_parse_functions()
554 info->ngroups += of_get_child_count(child); in k230_pinctrl_child_count()
[all …]
A Dpinctrl-rk805.c37 unsigned int ngroups; member
153 .ngroups = ARRAY_SIZE(rk805_gpio_groups),
162 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
168 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
174 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
180 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
186 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
192 .ngroups = ARRAY_SIZE(rk806_gpio_groups),
201 .ngroups = ARRAY_SIZE(rk816_gpio_groups),
207 .ngroups = ARRAY_SIZE(rk816_gpio_groups),
[all …]
A Dpinctrl-axp209.c64 unsigned int ngroups; member
265 *num_groups = pctl->funcs[selector].ngroups; in axp20x_pmx_func_groups()
365 unsigned int ngroups = hweight8(mask); in axp20x_funcs_groups_from_mask() local
368 func->ngroups = ngroups; in axp20x_funcs_groups_from_mask()
369 if (func->ngroups > 0) { in axp20x_funcs_groups_from_mask()
371 ngroups, sizeof(const char *), in axp20x_funcs_groups_from_mask()
404 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups()
A Dpinctrl-eic7700.c479 *num_groups = pc->functions[selector].ngroups; in eic7700_get_function_groups()
556 unsigned int ngroups = 0; in eic7700_pinctrl_init_function_groups() local
575 function->ngroups++; in eic7700_pinctrl_init_function_groups()
576 ngroups++; in eic7700_pinctrl_init_function_groups()
580 groups = devm_kcalloc(dev, ngroups, sizeof(*groups), GFP_KERNEL); in eic7700_pinctrl_init_function_groups()
589 groups += function->ngroups; in eic7700_pinctrl_init_function_groups()
592 function->ngroups = 0; in eic7700_pinctrl_init_function_groups()
612 ((const char **)function->groups)[function->ngroups++] = desc->name; in eic7700_pinctrl_init_function_groups()
A Dpinctrl-amdisp.h47 unsigned int ngroups; member
54 .ngroups = ARRAY_SIZE(fname##_groups), \
/drivers/infiniband/hw/hfi1/
A Dexp_rcv.c40 u32 ngroups; in hfi1_alloc_ctxt_rcv_groups() local
42 ngroups = rcd->expected_count / dd->rcv_entries.group_size; in hfi1_alloc_ctxt_rcv_groups()
44 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups()
49 for (i = 0; i < ngroups; i++) { in hfi1_alloc_ctxt_rcv_groups()
/drivers/pinctrl/pxa/
A Dpinctrl-pxa2xx.c28 return pctl->ngroups; in pxa2xx_pctrl_get_groups_count()
133 *num_groups = pf->ngroups; in pxa2xx_pmx_get_func_groups()
295 int i, j, ngroups; in pxa2xx_build_groups() local
306 ngroups = 0; in pxa2xx_build_groups()
312 gtmp[ngroups++] = (char *) in pxa2xx_build_groups()
315 func->ngroups = ngroups; in pxa2xx_build_groups()
316 func->groups = devm_kmemdup_array(pctl->dev, gtmp, ngroups, in pxa2xx_build_groups()
335 pctl->ngroups = npins; in pxa2xx_build_state()
346 pctl->groups = devm_kmalloc_array(pctl->dev, pctl->ngroups, in pxa2xx_build_state()
/drivers/pinctrl/mvebu/
A Dpinctrl-armada-37xx.c76 int ngroups; member
82 unsigned int ngroups; member
107 unsigned int ngroups; member
240 while (*grp < info->ngroups) { in armada_37xx_find_next_grp_by_pin()
275 return info->ngroups; in armada_37xx_get_groups_count()
293 if (selector >= info->ngroups) in armada_37xx_get_group_pins()
845 while (funcs->ngroups) { in armada_37xx_add_function()
848 funcs->ngroups++; in armada_37xx_add_function()
857 funcs->ngroups = 1; in armada_37xx_add_function()
877 for (n = 0; n < info->ngroups; n++) { in armada_37xx_fill_group()
[all …]
/drivers/pinctrl/qcom/
A Dpinctrl-lpass-lpi.h43 .ngroups = ARRAY_SIZE(fname##_groups), \
77 unsigned int ngroups; member
84 int ngroups; member
/drivers/pinctrl/sprd/
A Dpinctrl-sprd.c138 unsigned int ngroups; member
200 for (i = 0; i < info->ngroups; i++) { in sprd_pinctrl_find_group_by_name()
215 return info->ngroups; in sprd_pctrl_group_count()
235 if (selector >= info->ngroups) in sprd_pctrl_group_pins()
381 *num_groups = info->ngroups; in sprd_pmx_get_function_groups()
397 if (group_selector >= info->ngroups) in sprd_pmx_set_mux()
751 if (selector >= info->ngroups) in sprd_pinconf_group_get()
770 if (selector >= info->ngroups) in sprd_pinconf_group_set()
830 if (selector >= info->ngroups) in sprd_pinconf_group_dbg_show()
945 if (!info->ngroups) in sprd_pinctrl_parse_dt()
[all …]
/drivers/pinctrl/sophgo/
A Dpinctrl-sophgo-common.c86 int ngroups = 0; in sophgo_pctrl_dt_node_to_map() local
91 ngroups += 1; in sophgo_pctrl_dt_node_to_map()
93 grpnames = devm_kcalloc(dev, ngroups, sizeof(*grpnames), GFP_KERNEL); in sophgo_pctrl_dt_node_to_map()
97 map = kcalloc(ngroups * 2, sizeof(*map), GFP_KERNEL); in sophgo_pctrl_dt_node_to_map()
101 ngroups = 0; in sophgo_pctrl_dt_node_to_map()
124 grpnames[ngroups++] = grpname; in sophgo_pctrl_dt_node_to_map()
203 grpnames, ngroups, NULL); in sophgo_pctrl_dt_node_to_map()
/drivers/pinctrl/freescale/
A Dpinctrl-imx1-core.c164 for (i = 0; i < info->ngroups; i++) { in imx1_pinctrl_find_group_by_name()
179 return info->ngroups; in imx1_get_groups_count()
198 if (selector >= info->ngroups) in imx1_get_group_pins()
434 if (group >= info->ngroups) in imx1_pinconf_group_dbg_show()
550 u32 ngroups = 0; in imx1_pinctrl_parse_dt() local
558 ngroups += of_get_child_count(child); in imx1_pinctrl_parse_dt()
570 info->ngroups = ngroups; in imx1_pinctrl_parse_dt()
572 ngroups, sizeof(struct imx1_pin_group), GFP_KERNEL); in imx1_pinctrl_parse_dt()
/drivers/pinctrl/intel/
A Dpinctrl-broxton.c175 .ngroups = ARRAY_SIZE(bxt_north_groups),
292 .ngroups = ARRAY_SIZE(bxt_northwest_groups),
399 .ngroups = ARRAY_SIZE(bxt_west_groups),
475 .ngroups = ARRAY_SIZE(bxt_southwest_groups),
653 .ngroups = ARRAY_SIZE(apl_north_groups),
773 .ngroups = ARRAY_SIZE(apl_northwest_groups),
883 .ngroups = ARRAY_SIZE(apl_west_groups),
975 .ngroups = ARRAY_SIZE(apl_southwest_groups),
/drivers/pinctrl/meson/
A Dpinctrl-amlogic-a4.c75 unsigned int ngroups; member
105 int ngroups; member
238 *ngrps = info->functions[selector].ngroups; in aml_pmx_get_groups()
643 return info->ngroups; in aml_get_groups_count()
660 if (selector >= info->ngroups) in aml_get_group_pins()
695 func->ngroups = of_get_child_count(np); in aml_pctl_parse_functions()
696 if (func->ngroups == 0) in aml_pctl_parse_functions()
699 func->groups = devm_kcalloc(dev, func->ngroups, sizeof(*func->groups), GFP_KERNEL); in aml_pctl_parse_functions()
773 info->ngroups += of_get_child_count(child); in aml_pctl_dt_child_count()
994 dev_dbg(dev, "ngroups = %d\n", info->ngroups); in aml_pctl_probe_dt()
[all …]
/drivers/pinctrl/tegra/
A Dpinctrl-tegra.c46 return pmx->soc->ngroups; in tegra_pinctrl_get_groups_count()
245 *num_groups = pmx->functions[function].ngroups; in tegra_pinctrl_get_func_groups()
290 for (group = 0; group < pmx->soc->ngroups; ++group) { in tegra_pinctrl_get_group_index()
309 if (group_index < 0 || group_index >= pmx->soc->ngroups) in tegra_pinctrl_get_group()
736 for (i = 0; i < pmx->soc->ngroups; ++i) { in tegra_pinctrl_clear_parked_bits()
843 pmx->soc->ngroups, sizeof(*pmx->pingroup_configs), in tegra_pinctrl_probe()
852 pmx->group_pins = devm_kcalloc(&pdev->dev, pmx->soc->ngroups * 4, in tegra_pinctrl_probe()
870 for (gn = 0; gn < pmx->soc->ngroups; gn++) { in tegra_pinctrl_probe()
883 pmx->soc->ngroups * 4); in tegra_pinctrl_probe()
885 func->ngroups++; in tegra_pinctrl_probe()
/drivers/pinctrl/renesas/
A Dpinctrl-rzn1.c122 unsigned int ngroups; member
291 for (i = 0; i < ipctl->ngroups; i++) { in rzn1_pinctrl_find_group_by_name()
303 return ipctl->ngroups; in rzn1_get_groups_count()
320 if (selector >= ipctl->ngroups) in rzn1_get_group_pins()
784 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
790 ipctl->ngroups++; in rzn1_pinctrl_parse_functions()
795 grp = &ipctl->groups[ipctl->ngroups]; in rzn1_pinctrl_parse_functions()
801 ipctl->ngroups++; in rzn1_pinctrl_parse_functions()
830 ipctl->ngroups = 0; in rzn1_pinctrl_probe_dt()

Completed in 70 milliseconds

123456789