Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/pinctrl/
A Dpinctrl-zynqmp.c79 unsigned int nfuncs; member
150 return pctrl->nfuncs; in zynqmp_pmux_get_functions_count()
610 static int zynqmp_pinctrl_get_num_functions(unsigned int *nfuncs) in zynqmp_pinctrl_get_num_functions() argument
622 *nfuncs = payload[1]; in zynqmp_pinctrl_get_num_functions()
744 ret = zynqmp_pinctrl_get_num_functions(&pctrl->nfuncs); in zynqmp_pinctrl_prepare_function_info()
748 funcs = devm_kzalloc(dev, sizeof(*funcs) * pctrl->nfuncs, GFP_KERNEL); in zynqmp_pinctrl_prepare_function_info()
752 for (i = 0; i < pctrl->nfuncs; i++) { in zynqmp_pinctrl_prepare_function_info()
766 for (i = 0; i < pctrl->nfuncs; i++) { in zynqmp_pinctrl_prepare_function_info()
A Dpinmux.c38 unsigned nfuncs; in pinmux_check_ops() local
51 nfuncs = ops->get_functions_count(pctldev); in pinmux_check_ops()
52 while (selector < nfuncs) { in pinmux_check_ops()
327 unsigned nfuncs = ops->get_functions_count(pctldev); in pinmux_func_name_to_selector() local
331 while (selector < nfuncs) { in pinmux_func_name_to_selector()
546 unsigned nfuncs; in pinmux_functions_show() local
553 nfuncs = pmxops->get_functions_count(pctldev); in pinmux_functions_show()
554 while (func_selector < nfuncs) { in pinmux_functions_show()
A Dpinctrl-thunderbay.c98 unsigned int nfuncs; member
779 for (i = 0; i < tpc->nfuncs; i++) { in thunderbay_add_functions()
804 for (i = 0; i < tpc->nfuncs; i++) { in thunderbay_add_functions()
826 tpc->nfuncs = 0; in thunderbay_build_functions()
852 tpc->nfuncs++; in thunderbay_build_functions()
859 tpc->nfuncs * sizeof(*thunderbay_funcs), GFP_KERNEL); in thunderbay_build_functions()
A Dpinctrl-keembay.c123 unsigned int nfuncs; member
1563 for (i = 0; i < kpc->nfuncs; i++) { in keembay_add_functions()
1588 for (i = 0; i < kpc->nfuncs; i++) { in keembay_add_functions()
1608 kpc->nfuncs = 0; in keembay_build_functions()
1634 kpc->nfuncs++; in keembay_build_functions()
1640 new_funcs = krealloc(keembay_funcs, kpc->nfuncs * sizeof(*new_funcs), GFP_KERNEL); in keembay_build_functions()
A Dpinctrl-zynq.c48 unsigned int nfuncs; member
866 return pctrl->nfuncs; in zynq_pmux_get_functions_count()
1188 pctrl->nfuncs = ARRAY_SIZE(zynq_pmux_functions); in zynq_pinctrl_probe()
A Dpinctrl-bm1880.c40 unsigned int nfuncs; member
960 return pctrl->nfuncs; in bm1880_pmux_get_functions_count()
1327 pctrl->nfuncs = ARRAY_SIZE(bm1880_pmux_functions); in bm1880_pinctrl_probe()
/linux-6.3-rc2/drivers/pinctrl/qcom/
A Dpinctrl-lpass-lpi.h60 .nfuncs = 5, \
69 unsigned int nfuncs; member
A Dpinctrl-msm.h69 unsigned nfuncs; member
A Dpinctrl-lpass-lpi.c94 for (i = 0; i < g->nfuncs; i++) { in lpi_gpio_set_mux()
99 if (WARN_ON(i == g->nfuncs)) in lpi_gpio_set_mux()
A Dpinctrl-msm.c198 mask = GENMASK(g->mux_bit + order_base_2(g->nfuncs) - 1, g->mux_bit); in msm_pinmux_set_mux()
200 for (i = 0; i < g->nfuncs; i++) { in msm_pinmux_set_mux()
205 if (WARN_ON(i == g->nfuncs)) in msm_pinmux_set_mux()
285 if (!g->nfuncs) in msm_pinmux_request_gpio()
/linux-6.3-rc2/drivers/comedi/drivers/
A 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-6.3-rc2/drivers/pinctrl/pxa/
A 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()
A Dpinctrl-pxa2xx.h78 unsigned nfuncs; member
/linux-6.3-rc2/drivers/pinctrl/freescale/
A Dpinctrl-imx1-core.c552 u32 nfuncs = 0; in imx1_pinctrl_parse_dt() local
560 ++nfuncs; in imx1_pinctrl_parse_dt()
564 if (!nfuncs) { in imx1_pinctrl_parse_dt()
569 info->nfunctions = nfuncs; in imx1_pinctrl_parse_dt()
571 nfuncs, sizeof(struct imx1_pmx_func), GFP_KERNEL); in imx1_pinctrl_parse_dt()
A Dpinctrl-imx.c733 u32 nfuncs = 0; in imx_pinctrl_probe_dt() local
742 nfuncs = 1; in imx_pinctrl_probe_dt()
744 nfuncs = of_get_child_count(np); in imx_pinctrl_probe_dt()
745 if (nfuncs == 0) { in imx_pinctrl_probe_dt()
751 for (i = 0; i < nfuncs; i++) { in imx_pinctrl_probe_dt()
763 pctl->num_functions = nfuncs; in imx_pinctrl_probe_dt()
/linux-6.3-rc2/drivers/pinctrl/actions/
A Dpinctrl-owl.h24 .nfuncs = ARRAY_SIZE(group_name##_funcs), \
213 unsigned int nfuncs; member
A 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-6.3-rc2/drivers/pinctrl/renesas/
A Dpinctrl-rzn1.c822 int nfuncs = 0; in rzn1_pinctrl_probe_dt() local
825 nfuncs = of_get_child_count(np); in rzn1_pinctrl_probe_dt()
826 if (nfuncs <= 0) in rzn1_pinctrl_probe_dt()
829 ipctl->nfunctions = nfuncs; in rzn1_pinctrl_probe_dt()
830 ipctl->functions = devm_kmalloc_array(&pdev->dev, nfuncs, in rzn1_pinctrl_probe_dt()
/linux-6.3-rc2/drivers/net/ethernet/stmicro/stmmac/
A Ddwmac-intel.c31 size_t nfuncs; member
54 for (n = 0; n < dmi_data->nfuncs; n++, func_data++) in stmmac_pci_find_phy_addr()
849 .nfuncs = ARRAY_SIZE(galileo_stmmac_func_data),
865 .nfuncs = ARRAY_SIZE(iot2040_stmmac_func_data),
/linux-6.3-rc2/drivers/pinctrl/mvebu/
A Dpinctrl-armada-37xx.c111 unsigned int nfuncs; member
321 return info->nfuncs; in armada_37xx_pmx_get_funcs_count()
893 info->nfuncs = num; in armada_37xx_fill_group()
914 for (n = 0; n < info->nfuncs; n++) { in armada_37xx_fill_func()
/linux-6.3-rc2/drivers/pinctrl/cirrus/
A Dpinctrl-lochnagar.c714 unsigned int nfuncs; member
767 return priv->nfuncs; in lochnagar_get_funcs_count()
1170 priv->nfuncs = ARRAY_SIZE(lochnagar1_funcs); in lochnagar_pin_probe()
1180 priv->nfuncs = ARRAY_SIZE(lochnagar2_funcs); in lochnagar_pin_probe()
/linux-6.3-rc2/drivers/pinctrl/mediatek/
A Dpinctrl-mt7629.c415 .nfuncs = ARRAY_SIZE(mt7629_functions),
A Dpinctrl-mtk-common-v2.h241 unsigned int nfuncs; member
A Dpinctrl-mt7986.c919 .nfuncs = ARRAY_SIZE(mt7986_functions),
941 .nfuncs = ARRAY_SIZE(mt7986_functions),
A Dpinctrl-mt6795.c588 .nfuncs = 8,

Completed in 74 milliseconds

1234