/linux/drivers/video/fbdev/via/ |
A D | via-gpio.c | 152 .ngpio = 0, 213 int i, ngpio = 0, ret; in viafb_gpio_probe() local 227 viafb_gpio_config.active_gpios[ngpio] = gpio; in viafb_gpio_probe() 228 viafb_gpio_config.gpio_names[ngpio] = in viafb_gpio_probe() 230 ngpio++; in viafb_gpio_probe() 233 viafb_gpio_config.gpio_chip.ngpio = ngpio; in viafb_gpio_probe() 236 if (ngpio == 0) { in viafb_gpio_probe() 245 for (i = 0; i < ngpio; i += 2) in viafb_gpio_probe() 256 viafb_gpio_config.gpio_chip.ngpio = 0; in viafb_gpio_probe() 277 if (viafb_gpio_config.gpio_chip.ngpio > 0) { in viafb_gpio_remove() [all …]
|
/linux/arch/arm/mach-s3c/ |
A D | gpio-samsung.c | 913 .ngpio = 11, 920 .ngpio = 16, 927 .ngpio = 16, 934 .ngpio = 16, 941 .ngpio = 8, 950 .ngpio = 16, 958 .ngpio = 15, 968 .ngpio = 16, 976 .ngpio = 16, 984 .ngpio = 15, [all …]
|
/linux/drivers/gpio/ |
A D | gpio-grgpio.c | 106 if (offset >= gc->ngpio) in grgpio_to_irq() 197 int ngpio = priv->gc.ngpio; in grgpio_irq_handler() local 208 for (i = 0; i < ngpio; i++) { in grgpio_irq_handler() 287 int ngpio = priv->gc.ngpio; in grgpio_irq_unmap() local 297 for (i = 0; i < ngpio; i++) { in grgpio_irq_unmap() 369 gc->ngpio = GRGPIO_MAX_NGPIO; in grgpio_probe() 373 gc->ngpio = prop; in grgpio_probe() 382 if (size < gc->ngpio) { in grgpio_probe() 385 size, gc->ngpio); in grgpio_probe() 389 priv->domain = irq_domain_add_linear(np, gc->ngpio, in grgpio_probe() [all …]
|
A D | gpio-creg-snps.c | 16 u8 ngpio; member 87 if (hcg->layout->ngpio < 1 || hcg->layout->ngpio > MAX_GPIO) in creg_gpio_validate() 90 if (ngpios < 1 || ngpios > hcg->layout->ngpio) { in creg_gpio_validate() 91 dev_err(dev, "ngpios must be in [1:%u]\n", hcg->layout->ngpio); in creg_gpio_validate() 95 for (i = 0; i < hcg->layout->ngpio; i++) { in creg_gpio_validate() 110 .ngpio = 10, 118 .ngpio = 1, 168 hcg->gc.ngpio = ngpios; in creg_gpio_probe()
|
A D | gpio-xlp.c | 228 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_output() 238 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_input() 248 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_get() 256 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_set() 296 int ngpio; in xlp_gpio_probe() local 333 ngpio = 41; in xlp_gpio_probe() 357 ngpio = 66; in xlp_gpio_probe() 359 ngpio = 67; in xlp_gpio_probe() 361 ngpio = 70; in xlp_gpio_probe() 376 gc->ngpio = ngpio; in xlp_gpio_probe() [all …]
|
A D | gpio-mockup.c | 107 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple() 139 for_each_set_bit(bit, mask, gc->ngpio) in gpio_mockup_set_multiple() 358 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_debugfs_setup() 382 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_dispose_mappings() 396 u16 ngpio; in gpio_mockup_probe() local 420 gc->ngpio = ngpio; in gpio_mockup_probe() 435 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe() 440 for (i = 0; i < gc->ngpio; i++) in gpio_mockup_probe() 444 gc->ngpio); in gpio_mockup_probe() 524 u16 ngpio; in gpio_mockup_register_chip() local [all …]
|
A D | gpio-davinci.c | 175 pdata->ngpio = val; in davinci_gpio_get_pdata() 193 unsigned int ngpio, nbank, nirq; in davinci_gpio_probe() local 211 ngpio = pdata->ngpio; in davinci_gpio_probe() 212 if (ngpio == 0) { in davinci_gpio_probe() 217 if (WARN_ON(ARCH_NR_GPIOS < ngpio)) in davinci_gpio_probe() 218 ngpio = ARCH_NR_GPIOS; in davinci_gpio_probe() 228 nirq = DIV_ROUND_UP(ngpio, 16); in davinci_gpio_probe() 251 chips->chip.ngpio = ngpio; in davinci_gpio_probe() 263 nbank = DIV_ROUND_UP(ngpio, 32); in davinci_gpio_probe() 487 unsigned ngpio; in davinci_gpio_irq_setup() local [all …]
|
A D | gpio-ich.c | 59 uint ngpio; member 277 chip->ngpio = ichx_priv.desc->ngpio; in ichx_gpiolib_setup() 291 .ngpio = 50, 313 .ngpio = 50, 320 .ngpio = 50, 328 .ngpio = 61, 336 .ngpio = 61, 342 .ngpio = 72, 350 .ngpio = 76, 360 .ngpio = 60, [all …]
|
A D | gpio-tps65910.c | 81 int ngpio = min(chip_ngpio, TPS6591X_MAX_NUM_GPIO); in tps65910_parse_dt_for_gpio() local 87 "ti,en-gpio-sleep", prop_array, ngpio); in tps65910_parse_dt_for_gpio() 93 for (idx = 0; idx < ngpio; idx++) in tps65910_parse_dt_for_gpio() 126 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe() 129 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; in tps65910_gpio_probe() 150 tps65910_gpio->gpio_chip.ngpio); in tps65910_gpio_probe() 156 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) { in tps65910_gpio_probe()
|
A D | gpio-pca953x.c | 218 return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_bank_shift() 616 gc->ngpio = gpios; in pca953x_setup_gpio() 689 for_each_set_bit(level, irq_mask, gc->ngpio) in pca953x_irq_bus_sync_unlock() 749 return !bitmap_empty(pending, gc->ngpio); in pca953x_irq_pending() 759 bitmap_copy(old_stat, chip->irq_stat, gc->ngpio); in pca953x_irq_pending() 765 if (bitmap_empty(trigger, gc->ngpio)) in pca953x_irq_pending() 768 bitmap_copy(chip->irq_stat, new_stat, gc->ngpio); in pca953x_irq_pending() 775 return !bitmap_empty(pending, gc->ngpio); in pca953x_irq_pending() 795 for_each_set_bit(level, pending, gc->ngpio) { in pca953x_irq_handler() 1074 chip->gpio_chip.ngpio, pdata->context); in pca953x_probe() [all …]
|
A D | gpio-virtio.c | 425 WARN_ON(gpio >= vgpio->gc.ngpio); in virtio_gpio_event_vq() 496 u32 gpio_names_size, u16 ngpio) in virtio_gpio_get_names() argument 520 names = devm_kcalloc(dev, ngpio, sizeof(*names), GFP_KERNEL); in virtio_gpio_get_names() 527 for (i = 0, str = gpio_names; i < ngpio; i++) { in virtio_gpio_get_names() 546 u16 ngpio; in virtio_gpio_probe() local 556 ngpio = le16_to_cpu(config.ngpio); in virtio_gpio_probe() 557 if (!ngpio) { in virtio_gpio_probe() 566 for (i = 0; i < ngpio; i++) { in virtio_gpio_probe() 581 vgpio->gc.ngpio = ngpio; in virtio_gpio_probe() 602 for (i = 0; i < ngpio; i++) { in virtio_gpio_probe() [all …]
|
A D | gpio-thunderx.c | 433 int ngpio, i; in thunderx_gpio_probe() local 467 ngpio = 50; in thunderx_gpio_probe() 472 ngpio = c & GPIO_CONST_GPIOS_MASK; in thunderx_gpio_probe() 477 ngpio, sizeof(struct msix_entry), in thunderx_gpio_probe() 485 ngpio, in thunderx_gpio_probe() 493 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe() 515 err = pci_enable_msix_range(pdev, txgpio->msix_entries, ngpio, ngpio); in thunderx_gpio_probe() 525 chip->ngpio = ngpio; in thunderx_gpio_probe() 548 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe() 563 ngpio, chip->base); in thunderx_gpio_probe() [all …]
|
A D | gpio-madera.c | 143 madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS; in madera_gpio_probe() 146 madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS; in madera_gpio_probe() 150 madera_gpio->gpio_chip.ngpio = CS47L85_NUM_GPIOS; in madera_gpio_probe() 154 madera_gpio->gpio_chip.ngpio = CS47L90_NUM_GPIOS; in madera_gpio_probe() 159 madera_gpio->gpio_chip.ngpio = CS47L92_NUM_GPIOS; in madera_gpio_probe() 190 0, 0, madera_gpio->gpio_chip.ngpio); in madera_gpio_probe()
|
A D | gpiolib.c | 146 if (hwnum >= gdev->ngpio) in gpiochip_get_desc() 422 if (count > chip->ngpio) in devprop_gpiochip_set_names() 423 count = chip->ngpio; in devprop_gpiochip_set_names() 442 bitmap_fill(p, gc->ngpio); in gpiochip_allocate_mask() 464 gc->ngpio); in gpiochip_init_valid_mask() 649 if (gc->ngpio == 0) { in gpiochip_add_data_with_key() 665 gdev->ngpio = gc->ngpio; in gpiochip_add_data_with_key() 861 if (i != gdev->ngpio) in gpiochip_remove() 1185 gc->ngpio, in gpiochip_hierarchy_add_domain() 1528 gc->ngpio, in gpiochip_add_irqchip() [all …]
|
A D | gpio-tb10x.c | 114 u32 ngpio; in tb10x_gpio_probe() local 119 if (of_property_read_u32(np, "abilis,ngpio", &ngpio)) in tb10x_gpio_probe() 158 tb10x_gpio->gc.ngpio = ngpio; in tb10x_gpio_probe() 187 tb10x_gpio->gc.ngpio, in tb10x_gpio_probe() 194 tb10x_gpio->gc.ngpio, 1, tb10x_gpio->gc.label, in tb10x_gpio_probe() 220 BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0); in tb10x_gpio_remove()
|
A D | gpio-it87.c | 298 it87_gpio->chip.ngpio = 64; /* has 48, use 64 for convenient calc */ in it87_gpio_init() 306 it87_gpio->chip.ngpio = 64; in it87_gpio_init() 318 it87_gpio->chip.ngpio = 64; in it87_gpio_init() 325 it87_gpio->chip.ngpio = 16; in it87_gpio_init() 348 chip_type, chip_rev, it87_gpio->chip.ngpio, in it87_gpio_init() 365 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init() 367 labels_table = kcalloc(it87_gpio->chip.ngpio, sizeof(const char *), in it87_gpio_init() 375 for (i = 0; i < it87_gpio->chip.ngpio; i++) { in it87_gpio_init()
|
A D | gpio-pisosr.c | 105 bitmap_zero(bits, chip->ngpio); in pisosr_gpio_get_multiple() 106 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in pisosr_gpio_get_multiple() 123 .ngpio = DEFAULT_NGPIO, 141 of_property_read_u16(dev->of_node, "ngpios", &gpio->chip.ngpio); in pisosr_gpio_probe() 145 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe()
|
A D | gpio-ts4900.c | 135 u32 ngpio; in ts4900_gpio_probe() local 138 if (of_property_read_u32(client->dev.of_node, "ngpios", &ngpio)) in ts4900_gpio_probe() 139 ngpio = DEFAULT_PIN_NUMBER; in ts4900_gpio_probe() 147 priv->gpio_chip.ngpio = ngpio; in ts4900_gpio_probe()
|
A D | gpio-sifive.c | 66 if (offset < 0 || offset >= gc->ngpio) in sifive_gpio_irq_set_type() 182 int ret, ngpio, i; in sifive_gpio_probe() local 199 ngpio = of_irq_count(node); in sifive_gpio_probe() 200 if (ngpio > SIFIVE_GPIO_MAX) { in sifive_gpio_probe() 217 for (i = 0; i < ngpio; i++) in sifive_gpio_probe() 240 chip->gc.ngpio = ngpio; in sifive_gpio_probe()
|
/linux/drivers/pinctrl/ |
A D | pinctrl-mcp23s08_spi.c | 21 unsigned ngpio; member 92 mcp->chip.ngpio = 8; in mcp23s08_spi_regmap_init() 101 mcp->chip.ngpio = 16; in mcp23s08_spi_regmap_init() 110 mcp->chip.ngpio = 16; in mcp23s08_spi_regmap_init() 141 unsigned int ngpio = 0; in mcp23s08_probe() local 194 ngpio += data->mcp[addr]->chip.ngpio; in mcp23s08_probe() 196 data->ngpio = ngpio; in mcp23s08_probe()
|
/linux/arch/arc/boot/dts/ |
A D | abilis_tb100.dtsi | 162 abilis,ngpio = <3>; 175 abilis,ngpio = <2>; 188 abilis,ngpio = <3>; 201 abilis,ngpio = <2>; 214 abilis,ngpio = <3>; 227 abilis,ngpio = <2>; 240 abilis,ngpio = <3>; 253 abilis,ngpio = <2>; 305 abilis,ngpio = <4>; 318 abilis,ngpio = <4>; [all …]
|
A D | abilis_tb101.dtsi | 171 abilis,ngpio = <3>; 184 abilis,ngpio = <2>; 197 abilis,ngpio = <3>; 210 abilis,ngpio = <2>; 223 abilis,ngpio = <3>; 236 abilis,ngpio = <2>; 249 abilis,ngpio = <3>; 262 abilis,ngpio = <2>; 314 abilis,ngpio = <4>; 327 abilis,ngpio = <4>; [all …]
|
/linux/drivers/ssb/ |
A D | driver_gpio.c | 134 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_chipco_handler() 150 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, in ssb_gpio_irq_chipco_domain_init() 156 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init() 176 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init() 197 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_exit() 231 chip->ngpio = 16; in ssb_gpio_chipco_init() 332 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler() 354 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() 373 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() 393 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_exit() [all …]
|
/linux/arch/mips/bcm63xx/ |
A D | gpio.c | 46 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set() 72 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_get() 93 BUG_ON(gpio >= chip->ngpio); in bcm63xx_gpio_set_direction() 144 bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); in bcm63xx_gpio_init() 145 pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); in bcm63xx_gpio_init()
|
/linux/drivers/mfd/ |
A D | vexpress-sysreg.c | 44 .ngpio = 8, 50 .ngpio = 2, 56 .ngpio = 1, 120 mmc_gpio_chip->ngpio = 2; in vexpress_sysreg_probe()
|