/linux/drivers/pinctrl/spear/ |
A D | pinctrl-spear1340.c | 567 .npins = ARRAY_SIZE(pwm0_pins), 596 .npins = ARRAY_SIZE(pwm1_pins), 625 .npins = ARRAY_SIZE(pwm2_pins), 654 .npins = ARRAY_SIZE(pwm3_pins), 853 .npins = ARRAY_SIZE(cam0_pins), 894 .npins = ARRAY_SIZE(cam1_pins), 931 .npins = ARRAY_SIZE(cam2_pins), 972 .npins = ARRAY_SIZE(cam3_pins), 1004 .npins = ARRAY_SIZE(smi_pins), 1036 .npins = ARRAY_SIZE(ssp0_pins), [all …]
|
A 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), 373 .npins = ARRAY_SIZE(uart0_ext_pins), 406 .npins = ARRAY_SIZE(uart0_pins), [all …]
|
A D | pinctrl-spear320.c | 502 .npins = ARRAY_SIZE(clcd_pins), 585 .npins = ARRAY_SIZE(emi_pins), 631 .npins = ARRAY_SIZE(fsmc_8bit_pins), 724 .npins = ARRAY_SIZE(spp_pins), 934 .npins = ARRAY_SIZE(i2s_pins), 980 .npins = ARRAY_SIZE(uart1_pins), 1192 .npins = ARRAY_SIZE(uart2_pins), 1823 .npins = ARRAY_SIZE(rs485_pins), 1918 .npins = ARRAY_SIZE(can0_pins), 1963 .npins = ARRAY_SIZE(can1_pins), [all …]
|
A D | pinctrl-spear1310.c | 260 .npins = ARRAY_SIZE(i2c0_pins), 296 .npins = ARRAY_SIZE(ssp0_pins), 391 .npins = ARRAY_SIZE(i2s0_pins), 427 .npins = ARRAY_SIZE(i2s1_pins), 465 .npins = ARRAY_SIZE(clcd_pins), 648 .npins = ARRAY_SIZE(gmii_pins), 702 .npins = ARRAY_SIZE(rgmii_pins), 1211 .npins = ARRAY_SIZE(mcif_pins), 1243 .npins = ARRAY_SIZE(mcif_pins), 1275 .npins = ARRAY_SIZE(mcif_pins), [all …]
|
A 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),
|
A D | pinctrl-spear300.c | 181 .npins = ARRAY_SIZE(fsmc_2chips_pins), 208 .npins = ARRAY_SIZE(fsmc_4chips_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), 510 .npins = ARRAY_SIZE(sdhci_4bit_pins), [all …]
|
/linux/drivers/pinctrl/renesas/ |
A 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() 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() 345 psel_val = devm_kcalloc(priv->dev, npins, sizeof(*psel_val), in rza2_dt_node_to_map() 352 for (i = 0; i < npins; ++i) { in rza2_dt_node_to_map() [all …]
|
A D | pinctrl-rza1.c | 91 const unsigned int npins; member 109 const unsigned int npins; member 857 unsigned int npins; in rza1_dt_node_pin_count() local 863 npins = 0; 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 943 for (i = 0; i < npins; ++i) { in rza1_parse_pinmux_node() 968 return npins; in rza1_parse_pinmux_node() 992 int ret, npins; in rza1_dt_node_to_map() local 996 if (npins < 0) { in rza1_dt_node_to_map() [all …]
|
A D | pinctrl-rzn1.c | 102 unsigned int npins; member 312 unsigned int *npins) in rzn1_get_group_pins() argument 320 *npins = ipctl->groups[selector].npins; in rzn1_get_group_pins() 390 grp->func, grp->name, grp->npins); in rzn1_dt_node_to_map_one() 465 unsigned int i, grp_pins = grp->npins; in rzn1_set_mux() 630 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_get() 657 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_set() 717 grp->npins = size / sizeof(list[0]); in rzn1_pinctrl_parse_groups() 719 grp->npins, sizeof(grp->pin_ids[0]), in rzn1_pinctrl_parse_groups() 727 for (i = 0; i < grp->npins; i++) { in rzn1_pinctrl_parse_groups() [all …]
|
/linux/drivers/pinctrl/pxa/ |
A D | pinctrl-pxa2xx.c | 71 for (i = 0; i < pctl->npins; i++) { in pxa_desc_by_func_group() 282 for (i = 0; i < pctl->npins; i++) in pxa2xx_build_functions() 310 for (j = 0; j < pctl->npins; j++) in pxa2xx_build_groups() 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() 349 for (i = 0; i < npins; i++) in pxa2xx_build_state() 357 for (i = 0; i < npins; i++) { in pxa2xx_build_state() 375 const struct pxa_desc_pin *ppins, int npins, in pxa2xx_pinctrl_init() argument 382 for (i = 0; i < npins; i++) in pxa2xx_pinctrl_init() [all …]
|
/linux/drivers/pinctrl/ |
A 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() 431 pctl->chip.ngpio = pctl->desc->npins; in axp20x_pctl_probe() 451 pctrl_desc->npins = pctl->desc->npins; in axp20x_pctl_probe() [all …]
|
A D | pinctrl-amd.h | 80 unsigned npins; member 303 .npins = 2, 308 .npins = 2, 313 .npins = 2, 318 .npins = 2, 323 .npins = 5, 328 .npins = 5,
|
A D | pinctrl-zynqmp.c | 88 unsigned int npins; member 111 unsigned int *npins) in zynqmp_pctrl_get_group_pins() argument 116 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins() 199 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinmux_set_mux() 460 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinconf_group_set() 644 group->pins[group->npins++] = pin; in zynqmp_pinctrl_group_add_pin() 790 *npins = payload[1]; in zynqmp_pinctrl_get_num_pins() 809 unsigned int *npins) in zynqmp_pinctrl_prepare_pin_desc() argument 815 ret = zynqmp_pinctrl_get_num_pins(npins); in zynqmp_pinctrl_prepare_pin_desc() 823 for (i = 0; i < *npins; i++) { in zynqmp_pinctrl_prepare_pin_desc() [all …]
|
A D | pinctrl-apple-gpio.c | 384 pctl->gpio_chip.ngpio = pctl->pinctrl_desc.npins; in apple_gpio_register() 433 unsigned int npins; in apple_gpio_pinctrl_probe() local 456 if (of_property_read_u32(pdev->dev.of_node, "apple,npins", &npins)) in apple_gpio_pinctrl_probe() 460 pins = devm_kmalloc_array(&pdev->dev, npins, sizeof(pins[0]), in apple_gpio_pinctrl_probe() 462 pin_names = devm_kmalloc_array(&pdev->dev, npins, sizeof(pin_names[0]), in apple_gpio_pinctrl_probe() 464 pin_nums = devm_kmalloc_array(&pdev->dev, npins, sizeof(pin_nums[0]), in apple_gpio_pinctrl_probe() 478 for (i = 0; i < npins; i++) { in apple_gpio_pinctrl_probe() 488 pctl->pinctrl_desc.npins = npins; in apple_gpio_pinctrl_probe() 497 for (i = 0; i < npins; i++) { in apple_gpio_pinctrl_probe() 507 pin_names, npins, pctl); in apple_gpio_pinctrl_probe()
|
/linux/drivers/pinctrl/freescale/ |
A 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() 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() 493 for (i = 0; i < grp->npins; i++) { in imx1_pinctrl_parse_groups() [all …]
|
/linux/drivers/pinctrl/sprd/ |
A 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() 773 for (i = 0; i < grp->npins; i++) { in sprd_pinconf_group_set() 893 grp->npins = ret; in sprd_pinctrl_parse_groups() 1001 info->npins = pins_cnt; in sprd_pinctrl_add_pins() 1084 pinctrl_info->npins, in sprd_pinctrl_core_probe() [all …]
|
/linux/drivers/pinctrl/intel/ |
A 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() 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 865 unsigned int npins; in mrfld_config_group_set() local [all …]
|
A D | pinctrl-intel.h | 37 size_t npins; member 129 size_t npins; member 163 .npins = ARRAY_SIZE((p)), \ 195 size_t npins; member
|
/linux/drivers/pinctrl/mvebu/ |
A D | pinctrl-mvebu.c | 44 unsigned npins; member 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 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() 617 noname += ctrl->npins; in mvebu_pinctrl_probe() 624 pctl->desc.npins, in mvebu_pinctrl_probe() 657 pctl->groups[gid].npins = ctrl->npins; in mvebu_pinctrl_probe() 666 pctl->groups[gid].npins = 1; in mvebu_pinctrl_probe() [all …]
|
A D | pinctrl-mvebu.h | 50 u8 npins; member 137 .npins = _idh - _idl + 1, \ 149 .npins = _idh - _idl + 1, \ 190 .npins = _npins, \
|
/linux/drivers/pinctrl/aspeed/ |
A 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() 232 for (i = 0; i < pgroup->npins; i++) { in aspeed_pinmux_set_mux() 619 unsigned int npins; in aspeed_pin_config_group_get() local 622 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_get() 626 if (!npins) in aspeed_pin_config_group_get() 640 unsigned int npins; in aspeed_pin_config_group_set() local 646 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_set() 650 for (i = 0; i < npins; i++) { in aspeed_pin_config_group_set()
|
/linux/drivers/pinctrl/nomadik/ |
A 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
|
/linux/drivers/pinctrl/mediatek/ |
A D | pinctrl-paris.c | 85 if (pin >= hw->soc->npins) { in mtk_pinconf_get() 199 if (pin >= hw->soc->npins) { in mtk_pinconf_set() 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() 586 if (gpio >= hw->soc->npins) in mtk_pctrl_show_one_pin() 787 if (gpio >= hw->soc->npins) in mtk_gpio_get_direction() 815 if (gpio >= hw->soc->npins) in mtk_gpio_get() 832 if (gpio >= hw->soc->npins) in mtk_gpio_set() 844 if (gpio >= hw->soc->npins) in mtk_gpio_direction_input() 855 if (gpio >= hw->soc->npins) in mtk_gpio_direction_output() [all …]
|
A D | pinctrl-moore.c | 364 unsigned int i, npins, old = 0; in mtk_pinconf_group_get() local 367 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins); in mtk_pinconf_group_get() 371 for (i = 0; i < npins; i++) { in mtk_pinconf_group_get() 390 unsigned int i, npins; in mtk_pinconf_group_set() local 393 ret = pinctrl_generic_get_group_pins(pctldev, group, &pins, &npins); in mtk_pinconf_group_set() 397 for (i = 0; i < npins; i++) { in mtk_pinconf_group_set() 538 chip->ngpio = hw->soc->npins; in mtk_build_gpiochip() 643 pins = devm_kmalloc_array(&pdev->dev, hw->soc->npins, sizeof(*pins), in mtk_moore_pinctrl_probe() 648 for (i = 0; i < hw->soc->npins; i++) { in mtk_moore_pinctrl_probe() 655 mtk_desc.npins = hw->soc->npins; in mtk_moore_pinctrl_probe()
|
/linux/drivers/pinctrl/vt8500/ |
A D | pinctrl-wmt.h | 32 .npins = ARRAY_SIZE(__data), \ 48 const unsigned npins; member 62 u32 npins; member
|