/kernel/linux/linux-5.10/drivers/pinctrl/spear/ |
D | pinctrl-spear1340.c | 262 .npins = ARRAY_SIZE(pads_as_gpio_pins), 295 .npins = ARRAY_SIZE(fsmc_8bit_pins), 324 .npins = ARRAY_SIZE(fsmc_16bit_pins), 355 .npins = ARRAY_SIZE(fsmc_pnor_pins), 393 .npins = ARRAY_SIZE(keyboard_row_col_pins), 422 .npins = ARRAY_SIZE(keyboard_col5_pins), 455 .npins = ARRAY_SIZE(spdif_in_pins), 491 .npins = ARRAY_SIZE(spdif_out_pins), 531 .npins = ARRAY_SIZE(gpt_0_1_pins), 567 .npins = ARRAY_SIZE(pwm0_pins), [all …]
|
D | pinctrl-spear3xx.c | 42 .npins = ARRAY_SIZE(firda_pins), 75 .npins = ARRAY_SIZE(i2c_pins), 108 .npins = ARRAY_SIZE(ssp_cs_pins), 141 .npins = ARRAY_SIZE(ssp_pins), 175 .npins = ARRAY_SIZE(mii_pins), 208 .npins = ARRAY_SIZE(gpio0_pin0_pins), 234 .npins = ARRAY_SIZE(gpio0_pin1_pins), 260 .npins = ARRAY_SIZE(gpio0_pin2_pins), 286 .npins = ARRAY_SIZE(gpio0_pin3_pins), 312 .npins = ARRAY_SIZE(gpio0_pin4_pins), [all …]
|
D | pinctrl-spear320.c | 502 .npins = ARRAY_SIZE(clcd_pins), 585 .npins = ARRAY_SIZE(emi_pins), 631 .npins = ARRAY_SIZE(fsmc_8bit_pins), 678 .npins = ARRAY_SIZE(fsmc_16bit_pins), 724 .npins = ARRAY_SIZE(spp_pins), 769 .npins = ARRAY_SIZE(sdhci_led_pins), 872 .npins = ARRAY_SIZE(sdhci_cd_12_pins), 878 .npins = ARRAY_SIZE(sdhci_cd_51_pins), 934 .npins = ARRAY_SIZE(i2s_pins), 980 .npins = ARRAY_SIZE(uart1_pins), [all …]
|
D | pinctrl-spear310.c | 43 .npins = ARRAY_SIZE(emi_cs_0_to_5_pins), 75 .npins = ARRAY_SIZE(uart1_pins), 107 .npins = ARRAY_SIZE(uart2_pins), 139 .npins = ARRAY_SIZE(uart3_pins), 171 .npins = ARRAY_SIZE(uart4_pins), 203 .npins = ARRAY_SIZE(uart5_pins), 235 .npins = ARRAY_SIZE(fsmc_pins), 267 .npins = ARRAY_SIZE(rs485_0_pins), 299 .npins = ARRAY_SIZE(rs485_1_pins), 331 .npins = ARRAY_SIZE(tdm_pins),
|
D | pinctrl-spear1310.c | 260 .npins = ARRAY_SIZE(i2c0_pins), 296 .npins = ARRAY_SIZE(ssp0_pins), 325 .npins = ARRAY_SIZE(ssp0_cs0_pins), 354 .npins = ARRAY_SIZE(ssp0_cs1_2_pins), 391 .npins = ARRAY_SIZE(i2s0_pins), 427 .npins = ARRAY_SIZE(i2s1_pins), 465 .npins = ARRAY_SIZE(clcd_pins), 494 .npins = ARRAY_SIZE(clcd_high_res_pins), 538 .npins = ARRAY_SIZE(arm_gpio_pins), 574 .npins = ARRAY_SIZE(smi_2_chips_pins), [all …]
|
D | pinctrl-spear300.c | 181 .npins = ARRAY_SIZE(fsmc_2chips_pins), 208 .npins = ARRAY_SIZE(fsmc_4chips_pins), 243 .npins = ARRAY_SIZE(clcd_lcdmode_pins), 269 .npins = ARRAY_SIZE(clcd_pfmode_pins), 307 .npins = ARRAY_SIZE(tdm_pins), 343 .npins = ARRAY_SIZE(i2c_clk_pins), 376 .npins = ARRAY_SIZE(caml_pins), 402 .npins = ARRAY_SIZE(camu_pins), 436 .npins = ARRAY_SIZE(dac_pins), 472 .npins = ARRAY_SIZE(i2s_pins), [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
D | pinctrl-rza2.c | 48 int npins; member 245 chip.ngpio = priv->npins; in rza2_gpio_register() 256 (of_args.args[2] != priv->npins)) { in rza2_gpio_register() 262 priv->gpio_range.npins = priv->npins; in rza2_gpio_register() 285 pins = devm_kcalloc(priv->dev, priv->npins, sizeof(*pins), GFP_KERNEL); in rza2_pinctrl_register() 291 priv->desc.npins = priv->npins; in rza2_pinctrl_register() 293 for (i = 0; i < priv->npins; i++) { in rza2_pinctrl_register() 332 int i, ret, npins, gsel, fsel; in rza2_dt_node_to_map() local 342 npins = of_pins->length / sizeof(u32); in rza2_dt_node_to_map() 344 pins = devm_kcalloc(priv->dev, npins, sizeof(*pins), GFP_KERNEL); in rza2_dt_node_to_map() [all …]
|
D | pinctrl-rza1.c | 91 const unsigned int npins; member 109 const unsigned int npins; member 511 for (i = 0; i < entry->npins; ++i) { in rza1_pinmux_get_bidir() 529 for (i = 0; i < table->npins; ++i) { in rza1_pinmux_get_swio() 857 unsigned int npins; in rza1_dt_node_pin_count() local 863 npins = 0; in rza1_dt_node_pin_count() 871 npins += of_pins->length / sizeof(u32); in rza1_dt_node_pin_count() 874 return npins; in rza1_dt_node_pin_count() 895 unsigned int npins; in rza1_parse_pinmux_node() local 905 npins = of_pins->length / sizeof(u32); in rza1_parse_pinmux_node() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/pxa/ |
D | pinctrl-pxa2xx.c | 71 for (i = 0; i < pctl->npins; i++) { in pxa_desc_by_func_group() 277 functions = devm_kcalloc(pctl->dev, pctl->npins * 6, in pxa2xx_build_functions() 282 for (i = 0; i < pctl->npins; i++) in pxa2xx_build_functions() 303 gtmp = devm_kmalloc_array(pctl->dev, pctl->npins, sizeof(*gtmp), in pxa2xx_build_groups() 310 for (j = 0; j < pctl->npins; j++) in pxa2xx_build_groups() 333 const struct pxa_desc_pin *ppins, int npins) in pxa2xx_build_state() argument 339 pctl->npins = npins; in pxa2xx_build_state() 341 pctl->ngroups = npins; in pxa2xx_build_state() 343 pctl->desc.npins = npins; in pxa2xx_build_state() 344 pins = devm_kcalloc(pctl->dev, npins, sizeof(*pins), GFP_KERNEL); in pxa2xx_build_state() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-axp209.c | 45 unsigned int npins; member 83 .npins = ARRAY_SIZE(axp209_pins), 92 .npins = ARRAY_SIZE(axp813_pins), 288 return pctl->desc->npins; in axp20x_groups_cnt() 348 int i, ret, pin, npins = pctl->desc->npins; in axp20x_build_funcs_groups() local 364 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups() 366 npins, sizeof(char *), in axp20x_build_funcs_groups() 370 for (pin = 0; pin < npins; pin++) in axp20x_build_funcs_groups() 375 npins, &pctl->funcs[AXP20X_FUNC_LDO], in axp20x_build_funcs_groups() 381 npins, &pctl->funcs[AXP20X_FUNC_ADC], in axp20x_build_funcs_groups() [all …]
|
D | pinctrl-amd.h | 80 unsigned npins; member 302 .npins = 2, 307 .npins = 2, 312 .npins = 2, 317 .npins = 2, 322 .npins = 5, 327 .npins = 5,
|
/kernel/linux/linux-5.10/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 190 unsigned *npins) in imx1_get_group_pins() argument 199 *npins = info->groups[selector].npins; in imx1_get_group_pins() 241 for (i = 0; i < grp->npins; i++) in imx1_dt_node_to_map() 265 for (i = j = 0; i < grp->npins; i++) { in imx1_dt_node_to_map() 301 unsigned int npins; in imx1_pmx_set() local 309 npins = info->groups[group].npins; in imx1_pmx_set() 311 WARN_ON(!pins || !npins); in imx1_pmx_set() 316 for (i = 0; i < npins; i++) { in imx1_pmx_set() 436 for (i = 0; i < grp->npins; i++) { in imx1_pinconf_group_dbg_show() 484 grp->npins = size / 12; in imx1_pinctrl_parse_groups() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/sprd/ |
D | pinctrl-sprd.c | 122 unsigned int npins; member 138 unsigned int npins; member 165 for (i = 0; i < info->npins; i++) { in sprd_pinctrl_get_id_by_name() 180 for (i = 0; i < info->npins; i++) { in sprd_pinctrl_get_pin_by_id() 228 unsigned int *npins) in sprd_pctrl_group_pins() argument 237 *npins = info->groups[selector].npins; in sprd_pctrl_group_pins() 391 unsigned int i, grp_pins = grp->npins; in sprd_pmx_set_mux() 773 for (i = 0; i < grp->npins; i++) { in sprd_pinconf_group_set() 834 for (i = 0; i < grp->npins; i++, config++) { in sprd_pinconf_group_dbg_show() 893 grp->npins = ret; in sprd_pinctrl_parse_groups() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/nomadik/ |
D | pinctrl-abx500.h | 54 const unsigned npins; member 131 unsigned int npins; member 135 #define ABX500_PINRANGE(a, b, c) { .offset = a, .npins = b, .altfunc = c } 166 unsigned npins; member
|
/kernel/linux/linux-5.10/drivers/pinctrl/qcom/ |
D | pinctrl-ssbi-mpp.c | 131 unsigned npins; member 244 return pctrl->npins; in pm8xxx_get_groups_count() 294 *num_groups = pctrl->npins; in pm8xxx_get_function_groups() 753 int i, npins; in pm8xxx_mpp_probe() local 760 npins = platform_irq_count(pdev); in pm8xxx_mpp_probe() 761 if (!npins) in pm8xxx_mpp_probe() 763 if (npins < 0) in pm8xxx_mpp_probe() 764 return npins; in pm8xxx_mpp_probe() 765 pctrl->npins = npins; in pm8xxx_mpp_probe() 774 pctrl->desc.npins = pctrl->npins; in pm8xxx_mpp_probe() [all …]
|
D | pinctrl-spmi-mpp.c | 207 return pctldev->desc->npins; in pmic_mpp_get_groups_count() 250 *num_qgroups = pctldev->desc->npins; in pmic_mpp_get_function_groups() 806 int ret, npins, i; in pmic_mpp_probe() local 815 npins = platform_irq_count(pdev); in pmic_mpp_probe() 816 if (!npins) in pmic_mpp_probe() 818 if (npins < 0) in pmic_mpp_probe() 819 return npins; in pmic_mpp_probe() 821 BUG_ON(npins > ARRAY_SIZE(pmic_mpp_groups)); in pmic_mpp_probe() 832 pindesc = devm_kcalloc(dev, npins, sizeof(*pindesc), GFP_KERNEL); in pmic_mpp_probe() 836 pads = devm_kcalloc(dev, npins, sizeof(*pads), GFP_KERNEL); in pmic_mpp_probe() [all …]
|
/kernel/linux/linux-5.10/drivers/pinctrl/intel/ |
D | pinctrl-merrifield.c | 67 size_t npins; member 76 .npins = (e) - (s) + 1, \ 83 .npins = (e) - (s) + 1, \ 437 size_t npins; member 451 pin < family->pin_base + family->npins) in mrfld_get_family() 527 const unsigned int **pins, unsigned int *npins) in mrfld_get_group_pins() argument 532 *npins = mp->groups[group].npins; in mrfld_get_group_pins() 607 for (i = 0; i < grp->npins; i++) { in mrfld_pinmux_set_mux() 614 for (i = 0; i < grp->npins; i++) in mrfld_pinmux_set_mux() 846 unsigned int npins; in mrfld_config_group_get() local [all …]
|
D | pinctrl-intel.h | 37 size_t npins; member 129 size_t npins; member 159 .npins = ARRAY_SIZE((p)), \ 191 size_t npins; member
|
/kernel/linux/linux-5.10/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 44 unsigned npins; member 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 391 *num_pins = pctl->groups[gid].npins; in mvebu_pinctrl_get_group_pins() 495 int num = 0, funcsize = pctl->desc.npins; in mvebu_pinctrl_build_functions() 522 pctl->desc.npins); in mvebu_pinctrl_build_functions() 601 pctl->desc.npins = 0; in mvebu_pinctrl_probe() 605 pctl->desc.npins += ctrl->npins; in mvebu_pinctrl_probe() 607 for (k = 0; k < ctrl->npins; k++) in mvebu_pinctrl_probe() 616 pctl->num_groups += ctrl->npins; in mvebu_pinctrl_probe() 617 noname += ctrl->npins; in mvebu_pinctrl_probe() [all …]
|
D | pinctrl-mvebu.h | 50 u8 npins; member 137 .npins = _idh - _idl + 1, \ 149 .npins = _idh - _idl + 1, \ 190 .npins = _npins, \
|
/kernel/linux/linux-5.10/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.c | 30 unsigned int *npins) in aspeed_pinctrl_get_group_pins() argument 35 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 231 for (i = 0; i < pgroup->npins; i++) { in aspeed_pinmux_set_mux() 618 unsigned int npins; in aspeed_pin_config_group_get() local 621 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_get() 625 if (!npins) in aspeed_pin_config_group_get() 639 unsigned int npins; in aspeed_pin_config_group_set() local 645 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_set() 649 for (i = 0; i < npins; i++) { in aspeed_pin_config_group_set()
|
/kernel/linux/linux-5.10/drivers/pinctrl/vt8500/ |
D | pinctrl-wmt.h | 32 .npins = ARRAY_SIZE(__data), \ 48 const unsigned npins; member 62 u32 npins; member
|
/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/ |
D | pinctrl-paris.c | 85 if (pin >= hw->soc->npins) { in mtk_pinconf_get() 199 if (pin >= hw->soc->npins) { in mtk_pinconf_set() 341 for (i = 0; i < hw->soc->npins; i++) { in mtk_pctrl_is_function_valid() 447 if (pin >= hw->soc->npins || in mtk_pctrl_dt_subnode_to_map() 546 if (gpio >= hw->soc->npins) in mtk_hw_get_value_wrap() 585 if (gpio >= hw->soc->npins) in mtk_pctrl_show_one_pin() 769 if (gpio >= hw->soc->npins) in mtk_gpio_get_direction() 797 if (gpio >= hw->soc->npins) in mtk_gpio_get() 814 if (gpio >= hw->soc->npins) in mtk_gpio_set() 826 if (gpio >= hw->soc->npins) in mtk_gpio_direction_input() [all …]
|
D | pinctrl-moore.c | 354 unsigned int i, npins, old = 0; in mtk_pinconf_group_get() local 357 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins); in mtk_pinconf_group_get() 361 for (i = 0; i < npins; i++) { in mtk_pinconf_group_get() 380 unsigned int i, npins; in mtk_pinconf_group_set() local 383 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins); in mtk_pinconf_group_set() 387 for (i = 0; i < npins; i++) { in mtk_pinconf_group_set() 520 chip->ngpio = hw->soc->npins; in mtk_build_gpiochip() 623 pins = devm_kmalloc_array(&pdev->dev, hw->soc->npins, sizeof(*pins), in mtk_moore_pinctrl_probe() 628 for (i = 0; i < hw->soc->npins; i++) { in mtk_moore_pinctrl_probe() 635 mtk_desc.npins = hw->soc->npins; in mtk_moore_pinctrl_probe()
|
/kernel/linux/linux-5.10/drivers/gpio/ |
D | gpio-rcar.c | 412 static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins) in gpio_rcar_parse_dt() argument 424 *npins = ret == 0 ? args.args[2] : RCAR_MAX_GPIO_PER_BANK; in gpio_rcar_parse_dt() 426 if (*npins == 0 || *npins > RCAR_MAX_GPIO_PER_BANK) { in gpio_rcar_parse_dt() 428 *npins, RCAR_MAX_GPIO_PER_BANK); in gpio_rcar_parse_dt() 429 *npins = RCAR_MAX_GPIO_PER_BANK; in gpio_rcar_parse_dt() 444 unsigned int npins; in gpio_rcar_probe() local 455 ret = gpio_rcar_parse_dt(p, &npins); in gpio_rcar_probe() 489 gpio_chip->ngpio = npins; in gpio_rcar_probe() 523 dev_info(dev, "driving %d GPIOs\n", npins); in gpio_rcar_probe()
|