/Linux-v6.6/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-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-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-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 …]
|
/Linux-v6.6/drivers/pinctrl/renesas/ |
D | pinctrl-rza2.c | 50 int npins; member 247 chip.ngpio = priv->npins; in rza2_gpio_register() 258 (of_args.args[2] != priv->npins)) { in rza2_gpio_register() 264 priv->gpio_range.npins = priv->npins; in rza2_gpio_register() 287 pins = devm_kcalloc(priv->dev, priv->npins, sizeof(*pins), GFP_KERNEL); in rza2_pinctrl_register() 293 priv->desc.npins = priv->npins; in rza2_pinctrl_register() 295 for (i = 0; i < priv->npins; i++) { in rza2_pinctrl_register() 334 int i, ret, npins, gsel, fsel; in rza2_dt_node_to_map() local 344 npins = of_pins->length / sizeof(u32); in rza2_dt_node_to_map() 346 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 …]
|
D | pinctrl-rzn1.c | 106 unsigned int npins; member 316 unsigned int *npins) in rzn1_get_group_pins() argument 324 *npins = ipctl->groups[selector].npins; in rzn1_get_group_pins() 394 grp->func, grp->name, grp->npins); in rzn1_dt_node_to_map_one() 469 unsigned int i, grp_pins = grp->npins; in rzn1_set_mux() 634 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_get() 661 for (i = 0; i < grp->npins; i++) { in rzn1_pinconf_group_set() 721 grp->npins = size / sizeof(list[0]); in rzn1_pinctrl_parse_groups() 723 grp->npins, sizeof(grp->pin_ids[0]), in rzn1_pinctrl_parse_groups() 726 grp->npins, sizeof(grp->pins[0]), in rzn1_pinctrl_parse_groups() [all …]
|
/Linux-v6.6/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 …]
|
/Linux-v6.6/drivers/pinctrl/ |
D | pinctrl-axp209.c | 51 unsigned int npins; member 90 .npins = ARRAY_SIZE(axp209_pins), 99 .npins = ARRAY_SIZE(axp22x_pins), 106 .npins = ARRAY_SIZE(axp22x_pins), 338 return pctl->desc->npins; in axp20x_groups_cnt() 398 int i, ret, pin, npins = pctl->desc->npins; in axp20x_build_funcs_groups() local 414 pctl->funcs[i].ngroups = npins; in axp20x_build_funcs_groups() 416 npins, sizeof(char *), in axp20x_build_funcs_groups() 420 for (pin = 0; pin < npins; pin++) in axp20x_build_funcs_groups() 425 npins, &pctl->funcs[AXP20X_FUNC_LDO], in axp20x_build_funcs_groups() [all …]
|
D | pinctrl-zynqmp.c | 91 unsigned int npins; member 114 unsigned int *npins) in zynqmp_pctrl_get_group_pins() argument 119 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins() 204 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinmux_set_mux() 474 for (i = 0; i < pgrp->npins; i++) { in zynqmp_pinconf_group_set() 658 group->pins[group->npins++] = pin; in zynqmp_pinctrl_group_add_pin() 720 for (pin = 0; pin < zynqmp_desc.npins; pin++) { in zynqmp_pinctrl_prepare_group_pins() 792 static int zynqmp_pinctrl_get_num_pins(unsigned int *npins) in zynqmp_pinctrl_get_num_pins() argument 804 *npins = payload[1]; in zynqmp_pinctrl_get_num_pins() 823 unsigned int *npins) in zynqmp_pinctrl_prepare_pin_desc() argument [all …]
|
D | pinctrl-apple-gpio.c | 381 pctl->gpio_chip.ngpio = pctl->pinctrl_desc.npins; in apple_gpio_register() 429 unsigned int npins; in apple_gpio_pinctrl_probe() local 452 if (of_property_read_u32(pdev->dev.of_node, "apple,npins", &npins)) in apple_gpio_pinctrl_probe() 456 pins = devm_kmalloc_array(&pdev->dev, npins, sizeof(pins[0]), in apple_gpio_pinctrl_probe() 458 pin_names = devm_kmalloc_array(&pdev->dev, npins, sizeof(pin_names[0]), in apple_gpio_pinctrl_probe() 460 pin_nums = devm_kmalloc_array(&pdev->dev, npins, sizeof(pin_nums[0]), in apple_gpio_pinctrl_probe() 474 for (i = 0; i < npins; i++) { in apple_gpio_pinctrl_probe() 484 pctl->pinctrl_desc.npins = npins; in apple_gpio_pinctrl_probe() 493 for (i = 0; i < npins; i++) { in apple_gpio_pinctrl_probe() 503 pin_names, npins, pctl); in apple_gpio_pinctrl_probe()
|
/Linux-v6.6/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 193 unsigned *npins) in imx1_get_group_pins() argument 202 *npins = info->groups[selector].npins; in imx1_get_group_pins() 244 for (i = 0; i < grp->npins; i++) in imx1_dt_node_to_map() 268 for (i = j = 0; i < grp->npins; i++) { in imx1_dt_node_to_map() 304 unsigned int npins; in imx1_pmx_set() local 312 npins = info->groups[group].npins; in imx1_pmx_set() 314 WARN_ON(!pins || !npins); in imx1_pmx_set() 319 for (i = 0; i < npins; i++) { in imx1_pmx_set() 439 for (i = 0; i < grp->npins; i++) { in imx1_pinconf_group_dbg_show() 487 grp->npins = size / 12; in imx1_pinctrl_parse_groups() [all …]
|
/Linux-v6.6/drivers/pinctrl/intel/ |
D | pinctrl-tangier.h | 38 size_t npins; member 47 .npins = (e) - (s) + 1, \ 54 .npins = (e) - (s) + 1, \ 87 size_t npins; member
|
D | pinctrl-tangier.c | 76 pin < family->pin_base + family->npins) in tng_get_family() 150 const unsigned int **pins, unsigned int *npins) in tng_get_group_pins() argument 155 *npins = tp->groups[group].grp.npins; in tng_get_group_pins() 230 for (i = 0; i < grp->grp.npins; i++) { in tng_pinmux_set_mux() 237 for (i = 0; i < grp->grp.npins; i++) in tng_pinmux_set_mux() 477 unsigned int npins; in tng_config_group_get() local 480 ret = tng_get_group_pins(pctldev, group, &pins, &npins); in tng_config_group_get() 492 unsigned int npins; in tng_config_group_set() local 495 ret = tng_get_group_pins(pctldev, group, &pins, &npins); in tng_config_group_set() 499 for (i = 0; i < npins; i++) { in tng_config_group_set() [all …]
|
D | pinctrl-intel.h | 123 size_t npins; member 156 .npins = ((e) - (s) + 1), \ 205 size_t npins; member 274 const unsigned int **pins, unsigned int *npins);
|
/Linux-v6.6/drivers/pinctrl/sprd/ |
D | pinctrl-sprd.c | 124 unsigned int npins; member 140 unsigned int npins; member 167 for (i = 0; i < info->npins; i++) { in sprd_pinctrl_get_id_by_name() 182 for (i = 0; i < info->npins; i++) { in sprd_pinctrl_get_pin_by_id() 230 unsigned int *npins) in sprd_pctrl_group_pins() argument 239 *npins = info->groups[selector].npins; in sprd_pctrl_group_pins() 393 unsigned int i, grp_pins = grp->npins; in sprd_pmx_set_mux() 775 for (i = 0; i < grp->npins; i++) { in sprd_pinconf_group_set() 836 for (i = 0; i < grp->npins; i++, config++) { in sprd_pinconf_group_dbg_show() 895 grp->npins = ret; in sprd_pinctrl_parse_groups() [all …]
|
/Linux-v6.6/drivers/pinctrl/nxp/ |
D | pinctrl-s32cc.c | 196 unsigned int *npins) in s32_get_group_pins() argument 202 *npins = info->groups[selector].data.npins; in s32_get_group_pins() 322 for (i = 0; i < grp->data.npins; i++) { in s32_pmx_set() 330 for (i = 0, ret = 0; i < grp->data.npins && !ret; i++) { in s32_pmx_set() 611 for (i = 0; i < grp->data.npins; i++) { in s32_pconf_group_set() 646 for (i = 0; i < grp->data.npins; i++) { in s32_pinconf_group_dbg_show() 693 for (i = 0; i < info->soc_data->npins; i++) { in s32_pinctrl_suspend() 718 for (i = 0; i < info->soc_data->npins; i++) { in s32_pinctrl_resume() 742 int i, npins; in s32_pinctrl_parse_groups() local 752 npins = of_property_count_elems_of_size(np, "pinmux", sizeof(u32)); in s32_pinctrl_parse_groups() [all …]
|
/Linux-v6.6/drivers/pinctrl/nomadik/ |
D | pinctrl-abx500.h | 58 const unsigned npins; member 135 unsigned int npins; member 139 #define ABX500_PINRANGE(a, b, c) { .offset = a, .npins = b, .altfunc = c } 170 unsigned npins; member
|
/Linux-v6.6/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 44 unsigned npins; member 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 401 *num_pins = pctl->groups[gid].npins; in mvebu_pinctrl_get_group_pins() 505 int num = 0, funcsize = pctl->desc.npins; in mvebu_pinctrl_build_functions() 532 pctl->desc.npins); in mvebu_pinctrl_build_functions() 611 pctl->desc.npins = 0; in mvebu_pinctrl_probe() 615 pctl->desc.npins += ctrl->npins; in mvebu_pinctrl_probe() 617 for (k = 0; k < ctrl->npins; k++) in mvebu_pinctrl_probe() 626 pctl->num_groups += ctrl->npins; in mvebu_pinctrl_probe() 627 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, \
|
/Linux-v6.6/drivers/pinctrl/aspeed/ |
D | pinctrl-aspeed.c | 31 unsigned int *npins) in aspeed_pinctrl_get_group_pins() argument 36 *npins = pdata->pinmux.groups[group].npins; in aspeed_pinctrl_get_group_pins() 233 for (i = 0; i < pgroup->npins; i++) { in aspeed_pinmux_set_mux() 620 unsigned int npins; in aspeed_pin_config_group_get() local 623 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_get() 627 if (!npins) in aspeed_pin_config_group_get() 641 unsigned int npins; in aspeed_pin_config_group_set() local 647 rc = aspeed_pinctrl_get_group_pins(pctldev, selector, &pins, &npins); in aspeed_pin_config_group_set() 651 for (i = 0; i < npins; i++) { in aspeed_pin_config_group_set()
|
/Linux-v6.6/drivers/pinctrl/vt8500/ |
D | pinctrl-wmt.h | 32 .npins = ARRAY_SIZE(__data), \ 48 const unsigned npins; member 62 u32 npins; member
|
/Linux-v6.6/include/linux/pinctrl/ |
D | pinctrl.h | 38 size_t npins; member 46 .npins = _npins, \ 84 unsigned int npins; member 153 unsigned int npins; member
|