Home
last modified time | relevance | path

Searched refs:nfuncs (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v5.15/drivers/pinctrl/
Dpinctrl-zynqmp.c76 unsigned int nfuncs; member
147 return pctrl->nfuncs; in zynqmp_pmux_get_functions_count()
605 static int zynqmp_pinctrl_get_num_functions(unsigned int *nfuncs) in zynqmp_pinctrl_get_num_functions() argument
617 *nfuncs = payload[1]; in zynqmp_pinctrl_get_num_functions()
739 ret = zynqmp_pinctrl_get_num_functions(&pctrl->nfuncs); in zynqmp_pinctrl_prepare_function_info()
743 funcs = devm_kzalloc(dev, sizeof(*funcs) * pctrl->nfuncs, GFP_KERNEL); in zynqmp_pinctrl_prepare_function_info()
747 for (i = 0; i < pctrl->nfuncs; i++) { in zynqmp_pinctrl_prepare_function_info()
761 for (i = 0; i < pctrl->nfuncs; i++) { in zynqmp_pinctrl_prepare_function_info()
Dpinmux.c35 unsigned nfuncs; in pinmux_check_ops() local
48 nfuncs = ops->get_functions_count(pctldev); in pinmux_check_ops()
49 while (selector < nfuncs) { in pinmux_check_ops()
324 unsigned nfuncs = ops->get_functions_count(pctldev); in pinmux_func_name_to_selector() local
328 while (selector < nfuncs) { in pinmux_func_name_to_selector()
543 unsigned nfuncs; in pinmux_functions_show() local
550 nfuncs = pmxops->get_functions_count(pctldev); in pinmux_functions_show()
551 while (func_selector < nfuncs) { in pinmux_functions_show()
Dpinctrl-keembay.c123 unsigned int nfuncs; member
1573 for (j = 0; j < kpc->nfuncs; j++) { in keembay_add_functions()
1578 if (j == kpc->nfuncs) in keembay_add_functions()
1604 for (i = 0; i < kpc->nfuncs; i++) { in keembay_add_functions()
1621 kpc->nfuncs = 0; in keembay_build_functions()
1647 kpc->nfuncs++; in keembay_build_functions()
1655 new_funcs = krealloc(keembay_funcs, kpc->nfuncs * sizeof(*new_funcs), GFP_KERNEL); in keembay_build_functions()
Dpinctrl-zynq.c47 unsigned int nfuncs; member
865 return pctrl->nfuncs; in zynq_pmux_get_functions_count()
1187 pctrl->nfuncs = ARRAY_SIZE(zynq_pmux_functions); in zynq_pinctrl_probe()
Dpinctrl-bm1880.c38 unsigned int nfuncs; member
958 return pctrl->nfuncs; in bm1880_pmux_get_functions_count()
1325 pctrl->nfuncs = ARRAY_SIZE(bm1880_pmux_functions); in bm1880_pinctrl_probe()
/Linux-v5.15/drivers/comedi/drivers/
Daddi_apci_3501.c231 unsigned char nfuncs; in apci3501_eeprom_get_ao_n_chan() local
234 nfuncs = apci3501_eeprom_readw(devpriv->amcc, 10) & 0xff; in apci3501_eeprom_get_ao_n_chan()
237 for (i = 0; i < nfuncs; i++) { in apci3501_eeprom_get_ao_n_chan()
/Linux-v5.15/drivers/pinctrl/pxa/
Dpinctrl-pxa2xx.c121 return pctl->nfuncs; in pxa2xx_get_functions_count()
285 (functions + pctl->nfuncs++)->name = df->name; in pxa2xx_build_functions()
287 pctl->nfuncs * sizeof(*functions), in pxa2xx_build_functions()
308 for (i = 0; i < pctl->nfuncs; i++) { in pxa2xx_build_groups()
Dpinctrl-pxa2xx.h78 unsigned nfuncs; member
/Linux-v5.15/drivers/pinctrl/freescale/
Dpinctrl-imx1-core.c550 u32 nfuncs = 0; in imx1_pinctrl_parse_dt() local
558 ++nfuncs; in imx1_pinctrl_parse_dt()
562 if (!nfuncs) { in imx1_pinctrl_parse_dt()
567 info->nfunctions = nfuncs; in imx1_pinctrl_parse_dt()
569 nfuncs, sizeof(struct imx1_pmx_func), GFP_KERNEL); in imx1_pinctrl_parse_dt()
Dpinctrl-imx.c726 u32 nfuncs = 0; in imx_pinctrl_probe_dt() local
735 nfuncs = 1; in imx_pinctrl_probe_dt()
737 nfuncs = of_get_child_count(np); in imx_pinctrl_probe_dt()
738 if (nfuncs == 0) { in imx_pinctrl_probe_dt()
744 for (i = 0; i < nfuncs; i++) { in imx_pinctrl_probe_dt()
756 pctl->num_functions = nfuncs; in imx_pinctrl_probe_dt()
/Linux-v5.15/drivers/pinctrl/actions/
Dpinctrl-owl.h24 .nfuncs = ARRAY_SIZE(group_name##_funcs), \
213 unsigned int nfuncs; member
Dpinctrl-owl.c174 for (id = 0; id < g->nfuncs; id++) { in get_group_mfp_mask_val()
178 if (WARN_ON(id == g->nfuncs)) in get_group_mfp_mask_val()
/Linux-v5.15/drivers/pinctrl/qcom/
Dpinctrl-msm.h64 unsigned nfuncs; member
Dpinctrl-lpass-lpi.c66 .nfuncs = 5, \
77 unsigned int nfuncs; member
325 for (i = 0; i < g->nfuncs; i++) { in lpi_gpio_set_mux()
330 if (WARN_ON(i == g->nfuncs)) in lpi_gpio_set_mux()
Dpinctrl-msm.c194 mask = GENMASK(g->mux_bit + order_base_2(g->nfuncs) - 1, g->mux_bit); in msm_pinmux_set_mux()
196 for (i = 0; i < g->nfuncs; i++) { in msm_pinmux_set_mux()
201 if (WARN_ON(i == g->nfuncs)) in msm_pinmux_set_mux()
252 if (!g->nfuncs) in msm_pinmux_request_gpio()
Dpinctrl-msm8x74.c350 .nfuncs = 8, \
407 .nfuncs = 2, \
/Linux-v5.15/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c818 int nfuncs = 0; in rzn1_pinctrl_probe_dt() local
821 nfuncs = of_get_child_count(np); in rzn1_pinctrl_probe_dt()
822 if (nfuncs <= 0) in rzn1_pinctrl_probe_dt()
825 ipctl->nfunctions = nfuncs; in rzn1_pinctrl_probe_dt()
826 ipctl->functions = devm_kmalloc_array(&pdev->dev, nfuncs, in rzn1_pinctrl_probe_dt()
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-intel.c31 size_t nfuncs; member
54 for (n = 0; n < dmi_data->nfuncs; n++, func_data++) in stmmac_pci_find_phy_addr()
806 .nfuncs = ARRAY_SIZE(galileo_stmmac_func_data),
822 .nfuncs = ARRAY_SIZE(iot2040_stmmac_func_data),
/Linux-v5.15/drivers/pinctrl/mvebu/
Dpinctrl-armada-37xx.c109 unsigned int nfuncs; member
315 return info->nfuncs; in armada_37xx_pmx_get_funcs_count()
910 info->nfuncs = num; in armada_37xx_fill_group()
930 for (n = 0; n < info->nfuncs; n++) { in armada_37xx_fill_func()
/Linux-v5.15/drivers/pinctrl/cirrus/
Dpinctrl-lochnagar.c712 unsigned int nfuncs; member
765 return priv->nfuncs; in lochnagar_get_funcs_count()
1171 priv->nfuncs = ARRAY_SIZE(lochnagar1_funcs); in lochnagar_pin_probe()
1181 priv->nfuncs = ARRAY_SIZE(lochnagar2_funcs); in lochnagar_pin_probe()
/Linux-v5.15/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.h200 unsigned int nfuncs; member
Dpinctrl-mt7629.c414 .nfuncs = ARRAY_SIZE(mt7629_functions),
Dpinctrl-paris.c590 if (pinmux >= hw->soc->nfuncs) in mtk_pctrl_show_one_pin()
591 pinmux -= hw->soc->nfuncs; in mtk_pctrl_show_one_pin()
Dpinctrl-mt8195.c816 .nfuncs = 8,
Dpinctrl-mt7622.c858 .nfuncs = ARRAY_SIZE(mt7622_functions),

123