Home
last modified time | relevance | path

Searched refs:ngpios (Results 1 – 24 of 24) sorted by relevance

/drivers/gpio/
Dgpio-sx150x.c54 u8 ngpios; member
66 u8 ngpios; member
105 .ngpios = 8,
123 .ngpios = 16
143 .ngpios = 16
194 return (chip->dev_cfg->ngpios == offset); in offset_is_oscio()
405 for (i = (chip->dev_cfg->ngpios / 8) - 1; i >= 0; --i) { in sx150x_irq_thread_fn()
484 chip->gpio_chip.ngpio = chip->dev_cfg->ngpios; in sx150x_init_chip()
512 for (n = 0; err >= 0 && n < (chip->dev_cfg->ngpios / 8); ++n) in sx150x_init_io()
Dgpio-em.c279 unsigned int ngpios; in em_gio_probe() local
319 if (of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios)) { in em_gio_probe()
338 gpio_chip->ngpio = ngpios; in em_gio_probe()
349 p->irq_domain = irq_domain_add_simple(pdev->dev.of_node, ngpios, 0, in em_gio_probe()
Dgpio-mvebu.c665 unsigned int ngpios; in mvebu_gpio_probe() local
683 if (of_property_read_u32(pdev->dev.of_node, "ngpios", &ngpios)) { in mvebu_gpio_probe()
710 mvchip->chip.ngpio = ngpios; in mvebu_gpio_probe()
784 mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1); in mvebu_gpio_probe()
816 irq_setup_generic_chip(gc, IRQ_MSK(ngpios), 0, in mvebu_gpio_probe()
834 irq_remove_generic_chip(gc, IRQ_MSK(ngpios), IRQ_NOREQUEST, in mvebu_gpio_probe()
Dgpio-ath79.c165 ath79_gpio_count = pdata->ngpios; in ath79_gpio_probe()
/drivers/spi/
Dspi-fsl-spi.c716 int ngpios; in of_fsl_spi_get_chipselects() local
720 ngpios = of_gpio_count(np); in of_fsl_spi_get_chipselects()
721 if (ngpios <= 0) { in of_fsl_spi_get_chipselects()
730 pinfo->gpios = kmalloc(ngpios * sizeof(*pinfo->gpios), GFP_KERNEL); in of_fsl_spi_get_chipselects()
733 memset(pinfo->gpios, -1, ngpios * sizeof(*pinfo->gpios)); in of_fsl_spi_get_chipselects()
735 pinfo->alow_flags = kzalloc(ngpios * sizeof(*pinfo->alow_flags), in of_fsl_spi_get_chipselects()
742 for (; i < ngpios; i++) { in of_fsl_spi_get_chipselects()
771 pdata->max_chipselect = ngpios; in of_fsl_spi_get_chipselects()
/drivers/pinctrl/bcm/
Dpinctrl-cygnus-gpio.c682 u32 ngpios; in cygnus_gpio_probe() local
691 ngpios = gpio_data->num_gpios; in cygnus_gpio_probe()
720 gc->ngpio = ngpios; in cygnus_gpio_probe()
721 chip->num_banks = (ngpios + NGPIOS_PER_BANK - 1) / NGPIOS_PER_BANK; in cygnus_gpio_probe()
/drivers/pinctrl/qcom/
Dpinctrl-msm.h117 unsigned ngpios; member
Dpinctrl-qdf2xxx.c89 qdf2xxx_pinctrl.ngpios = num_gpios; in qdf2xxx_pinctrl_probe()
Dpinctrl-ipq8064.c632 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-apq8064.c599 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-msm.c790 unsigned ngpio = pctrl->soc->ngpios; in msm_gpio_init()
Dpinctrl-msm8916.c969 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-apq8084.c1208 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-msm8660.c947 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-msm8x74.c1030 .ngpios = NUM_GPIO_PINGROUPS,
Dpinctrl-msm8960.c1246 .ngpios = NUM_GPIO_PINGROUPS,
/drivers/pinctrl/
Dpinctrl-tegra.h178 unsigned ngpios; member
Dpinctrl-tegra.c697 tegra_pinctrl_gpio_range.npins = pmx->soc->ngpios; in tegra_pinctrl_probe()
Dpinctrl-tegra210.c1553 .ngpios = NUM_GPIOS,
Dpinctrl-tegra20.c2217 .ngpios = NUM_GPIOS,
Dpinctrl-tegra114.c1837 .ngpios = NUM_GPIOS,
Dpinctrl-tegra124.c2049 .ngpios = NUM_GPIOS,
Dpinctrl-tegra30.c2472 .ngpios = NUM_GPIOS,
/drivers/pinctrl/intel/
Dpinctrl-cherryview.c148 size_t ngpios; member
400 .ngpios = ARRAY_SIZE(southwest_pins),
483 .ngpios = ARRAY_SIZE(north_pins),
525 .ngpios = ARRAY_SIZE(east_pins),
650 .ngpios = ARRAY_SIZE(southeast_pins),
1446 chip->ngpio = pctrl->community->ngpios; in chv_gpio_probe()