Home
last modified time | relevance | path

Searched refs:nr_pins (Results 1 – 25 of 55) sorted by relevance

123

/drivers/pinctrl/samsung/
Dpinctrl-exynos.h55 .nr_pins = pins, \
64 .nr_pins = pins, \
74 .nr_pins = pins, \
84 .nr_pins = pins, \
94 .nr_pins = pins, \
104 .nr_pins = pins, \
115 .nr_pins = pins, \
124 .nr_pins = pins, \
134 .nr_pins = pins, \
Dpinctrl-s3c64xx.c100 .nr_pins = pins, \
109 .nr_pins = pins, \
121 .nr_pins = pins, \
133 .nr_pins = pins, \
145 .nr_pins = pins, \
157 .nr_pins = pins, \
166 .nr_pins = pins, \
175 .nr_pins = pins, \
187 .nr_pins = pins, \
Dpinctrl-samsung.c366 ((b->pin_base + b->nr_pins - 1) < pin)) in pin_to_reg_bank()
870 drvdata->nr_pins, sizeof(*pindesc), in samsung_pinctrl_register()
875 ctrldesc->npins = drvdata->nr_pins; in samsung_pinctrl_register()
887 drvdata->nr_pins), in samsung_pinctrl_register()
895 for (pin = 0; pin < pin_bank->nr_pins; pin++) { in samsung_pinctrl_register()
921 pin_bank->grange.npins = pin_bank->nr_pins; in samsung_pinctrl_register()
967 gc->ngpio = bank->nr_pins; in samsung_gpiolib_register()
1063 bank->nr_pins = bdata->nr_pins; in samsung_pinctrl_get_soc_data()
1072 bank->pin_base = d->nr_pins; in samsung_pinctrl_get_soc_data()
1073 d->nr_pins += bank->nr_pins; in samsung_pinctrl_get_soc_data()
[all …]
Dpinctrl-samsung.h123 u8 nr_pins; member
158 u8 nr_pins; member
287 unsigned int nr_pins; member
Dpinctrl-s3c24xx.c56 .nr_pins = pins, \
65 .nr_pins = pins, \
74 .nr_pins = pins, \
529 bank->nr_pins, ops, ddata); in s3c24xx_eint_init()
Dpinctrl-exynos.c311 bank->nr_pins, &exynos_eint_irqd_ops, bank); in exynos_eint_gpio_init()
564 bank->nr_pins, &exynos_eint_irqd_ops, bank); in exynos_eint_wkup_init()
578 bank->nr_pins, sizeof(*weint_data), in exynos_eint_wkup_init()
585 for (idx = 0; idx < bank->nr_pins; ++idx) { in exynos_eint_wkup_init()
/drivers/pinctrl/visconti/
Dpinctrl-common.h49 unsigned int nr_pins; member
57 .nr_pins = ARRAY_SIZE(group_name ## _pins), \
82 unsigned int nr_pins; member
Dpinctrl-common.c133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set()
178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins()
301 pins = devm_kcalloc(dev, devdata->nr_pins, in visconti_pinctrl_probe()
306 for (i = 0; i < devdata->nr_pins; i++) in visconti_pinctrl_probe()
312 priv->pctl_desc.npins = devdata->nr_pins; in visconti_pinctrl_probe()
Dpinctrl-tmpv7700.c324 .nr_pins = ARRAY_SIZE(pins_tmpv7700),
/drivers/pinctrl/
Dpinctrl-equilibrium.c235 ret = bgpio_init(&gctrl->chip, dev, gctrl->bank->nr_pins / 8, in gpiolib_reg()
267 (pin - bank->pin_base) < bank->nr_pins) in find_pinbank_via_pin()
777 unsigned int nr_pins; in pinctrl_reg() local
790 for (i = 0, nr_pins = 0; i < drvdata->nr_banks; i++) in pinctrl_reg()
791 nr_pins += drvdata->pin_banks[i].nr_pins; in pinctrl_reg()
793 pdesc = devm_kcalloc(dev, nr_pins, sizeof(*pdesc), GFP_KERNEL); in pinctrl_reg()
796 pin_names = devm_kcalloc(dev, nr_pins, PIN_NAME_LEN, GFP_KERNEL); in pinctrl_reg()
800 for (i = 0; i < nr_pins; i++) { in pinctrl_reg()
807 pctl_desc->npins = nr_pins; in pinctrl_reg()
808 dev_dbg(dev, "pinctrl total pin number: %u\n", nr_pins); in pinctrl_reg()
[all …]
Dpinctrl-rockchip.h156 u8 nr_pins; member
221 u32 nr_pins; member
Dpinctrl-rockchip.c62 .nr_pins = pins, \
75 .nr_pins = pins, \
88 .nr_pins = pins, \
109 .nr_pins = pins, \
135 .nr_pins = pins, \
159 .nr_pins = pins, \
227 while (pin >= (b->pin_base + b->nr_pins)) in pin_to_bank()
2604 pindesc = devm_kcalloc(dev, info->ctrl->nr_pins, sizeof(*pindesc), GFP_KERNEL); in rockchip_pinctrl_register()
2609 ctrldesc->npins = info->ctrl->nr_pins; in rockchip_pinctrl_register()
2614 for (pin = 0; pin < pin_bank->nr_pins; pin++, k++) { in rockchip_pinctrl_register()
[all …]
Dpinctrl-equilibrium.h94 unsigned int nr_pins; member
Dpinctrl-single.c728 int mux_bytes, nr_pins, i; in pcs_allocate_pin_table() local
734 nr_pins = (pcs->size * BITS_PER_BYTE) / pcs->bits_per_pin; in pcs_allocate_pin_table()
736 nr_pins = pcs->size / mux_bytes; in pcs_allocate_pin_table()
739 dev_dbg(pcs->dev, "allocating %i pins\n", nr_pins); in pcs_allocate_pin_table()
741 nr_pins, sizeof(*pcs->pins.pa), in pcs_allocate_pin_table()
747 pcs->desc.npins = nr_pins; in pcs_allocate_pin_table()
/drivers/pinctrl/mvebu/
Dpinctrl-armada-37xx.c72 u8 nr_pins; member
210 .nr_pins = 36,
217 .nr_pins = 30,
805 gc->ngpio = info->data->nr_pins; in armada_37xx_gpiochip_register()
865 int n, num = 0, funcsize = info->data->nr_pins; in armada_37xx_fill_group()
891 info->data->nr_pins); in armada_37xx_fill_group()
965 pindesc = devm_kcalloc(dev, pin_data->nr_pins, sizeof(*pindesc), GFP_KERNEL); in armada_37xx_pinctrl_register()
970 ctrldesc->npins = pin_data->nr_pins; in armada_37xx_pinctrl_register()
973 for (pin = 0; pin < pin_data->nr_pins; pin++) { in armada_37xx_pinctrl_register()
984 info->funcs = devm_kcalloc(dev, pin_data->nr_pins, sizeof(*info->funcs), GFP_KERNEL); in armada_37xx_pinctrl_register()
/drivers/pinctrl/renesas/
Dpinctrl.c69 *num_pins = pmx->pfc->info->groups[selector].nr_pins; in sh_pfc_get_group_pins()
356 for (i = 0; i < grp->nr_pins; ++i) { in sh_pfc_func_set_mux()
375 for (i = 0; i < grp->nr_pins; ++i) { in sh_pfc_func_set_mux()
761 num_pins = pmx->pfc->info->groups[group].nr_pins; in sh_pfc_pinconf_group_set()
787 pfc->info->nr_pins, sizeof(*pmx->pins), in sh_pfc_map_pins()
793 pfc->info->nr_pins, sizeof(*pmx->configs), in sh_pfc_map_pins()
798 for (i = 0; i < pfc->info->nr_pins; ++i) { in sh_pfc_map_pins()
831 pmx->pctl_desc.npins = pfc->info->nr_pins; in sh_pfc_register_pinctrl()
Dcore.c414 pfc->ranges->end = pfc->info->nr_pins - 1; in sh_pfc_init_ranges()
415 pfc->nr_gpio_pins = pfc->info->nr_pins; in sh_pfc_init_ranges()
424 for (i = 1, nr_ranges = 1; i < pfc->info->nr_pins; ++i) { in sh_pfc_init_ranges()
438 for (i = 1; i < pfc->info->nr_pins; ++i) { in sh_pfc_init_ranges()
837 for (i = 0; i < info->nr_pins; i++) { in sh_pfc_check_pin()
926 for (i = 0; i < info->nr_pins; i++) { in sh_pfc_check_info()
Dgpio.c117 for (i = 0; i < pfc->info->nr_pins; i++) { in gpio_setup_data_regs()
222 pfc->info->nr_pins, sizeof(*chip->pins), in gpio_pin_setup()
Dsh_pfc.h57 .nr_pins = ARRAY_SIZE(n##_pins) + \
66 unsigned int nr_pins; member
80 .nr_pins = ARRAY_SIZE(n##__VA_ARGS__##_pins.data##s), \
293 unsigned int nr_pins; member
Dpfc-shx3.c551 .nr_pins = ARRAY_SIZE(pinmux_pins),
Dpfc-sh7786.c806 .nr_pins = ARRAY_SIZE(pinmux_pins),
/drivers/pinctrl/ti/
Dpinctrl-ti-iodelay.c748 int nr_pins, i; in ti_iodelay_alloc_pins() local
750 nr_pins = ti_iodelay_offset_to_pin(iod, r->regmap_config->max_register); in ti_iodelay_alloc_pins()
751 dev_dbg(dev, "Allocating %i pins\n", nr_pins); in ti_iodelay_alloc_pins()
753 iod->pa = devm_kcalloc(dev, nr_pins, sizeof(*iod->pa), GFP_KERNEL); in ti_iodelay_alloc_pins()
758 iod->desc.npins = nr_pins; in ti_iodelay_alloc_pins()
762 for (i = 0; i < nr_pins; i++, phy_reg += 4) { in ti_iodelay_alloc_pins()
/drivers/gpio/
Dgpio-timberdale.c224 if (!pdata || pdata->nr_pins > 32) { in timbgpio_probe()
253 gc->ngpio = pdata->nr_pins; in timbgpio_probe()
268 for (i = 0; i < pdata->nr_pins; i++) { in timbgpio_probe()
Dgpio-rockchip.c549 gc->wake_enabled = IRQ_MSK(bank->nr_pins); in rockchip_interrupts_register()
576 gc->ngpio = bank->nr_pins; in rockchip_gpiolib_register()
/drivers/mfd/
Dtimberdale.c176 .nr_pins = GPIO_NR_PINS,

123