Home
last modified time | relevance | path

Searched refs:ngpio (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/linux-6.12.1/drivers/video/fbdev/via/
Dvia-gpio.c153 .ngpio = 0,
182 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i += 2) in viafb_gpio_resume()
209 int i, ngpio = 0, ret; in viafb_gpio_probe() local
223 viafb_gpio_config.active_gpios[ngpio] = gpio; in viafb_gpio_probe()
224 viafb_gpio_config.gpio_names[ngpio] = in viafb_gpio_probe()
226 ngpio++; in viafb_gpio_probe()
229 viafb_gpio_config.gpio_chip.ngpio = ngpio; in viafb_gpio_probe()
232 if (ngpio == 0) { in viafb_gpio_probe()
241 for (i = 0; i < ngpio; i += 2) in viafb_gpio_probe()
253 viafb_gpio_config.gpio_chip.ngpio = 0; in viafb_gpio_probe()
[all …]
/linux-6.12.1/arch/arm/mach-s3c/
Dgpio-samsung.c138 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_setcfg_4bit()
173 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_getcfg_4bit()
485 for (i = 0; i < chip->chip.ngpio; i++, gpn++) { in s3c_gpiolib_track()
509 BUG_ON(!gc->ngpio); in samsung_gpiolib_add()
659 .ngpio = S3C64XX_GPIO_A_NR,
665 .ngpio = S3C64XX_GPIO_B_NR,
671 .ngpio = S3C64XX_GPIO_C_NR,
677 .ngpio = S3C64XX_GPIO_D_NR,
684 .ngpio = S3C64XX_GPIO_E_NR,
691 .ngpio = S3C64XX_GPIO_G_NR,
[all …]
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c21 unsigned ngpio; member
123 mcp->chip.ngpio = info->ngpio; in mcp23s08_spi_regmap_init()
142 unsigned int ngpio = 0; in mcp23s08_probe() local
192 ngpio += data->mcp[addr]->chip.ngpio; in mcp23s08_probe()
194 data->ngpio = ngpio; in mcp23s08_probe()
202 .ngpio = 8,
209 .ngpio = 16,
217 .ngpio = 16,
Dpinctrl-mcp23s08_i2c.c27 mcp->chip.ngpio = info->ngpio; in mcp230xx_probe()
49 .ngpio = 8,
57 .ngpio = 16,
65 .ngpio = 16,
/linux-6.12.1/drivers/gpio/
Dgpio-grgpio.c106 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()
368 gc->ngpio = GRGPIO_MAX_NGPIO; in grgpio_probe()
370 "No or invalid nbits property: assume %d\n", gc->ngpio); in grgpio_probe()
372 gc->ngpio = prop; in grgpio_probe()
381 if (size < gc->ngpio) { in grgpio_probe()
384 size, gc->ngpio); in grgpio_probe()
[all …]
Dgpio-mockup.c110 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple()
143 for_each_set_bit(bit, mask, gc->ngpio) in gpio_mockup_set_multiple()
375 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_debugfs_setup()
405 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_dispose_mappings()
419 u16 ngpio; in gpio_mockup_probe() local
427 rv = device_property_read_u16(dev, "nr-gpios", &ngpio); in gpio_mockup_probe()
443 gc->ngpio = ngpio; in gpio_mockup_probe()
459 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe()
464 for (i = 0; i < gc->ngpio; i++) in gpio_mockup_probe()
468 gc->ngpio); in gpio_mockup_probe()
[all …]
Dgpio-creg-snps.c16 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,
169 hcg->gc.ngpio = ngpios; in creg_gpio_probe()
Dgpio-tn48m.c24 int ngpio; member
30 .ngpio = 4,
36 .ngpio = 4,
66 config.ngpio = gpio_config->ngpio; in tn48m_gpio_probe()
Dgpio-ich.c59 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 …]
Dgpio-sifive.c66 if (offset < 0 || offset >= gc->ngpio) in sifive_gpio_irq_set_type()
187 int ret, ngpio; in sifive_gpio_probe() local
204 for (ngpio = 0; ngpio < SIFIVE_GPIO_MAX; ngpio++) { in sifive_gpio_probe()
205 ret = platform_get_irq_optional(pdev, ngpio); in sifive_gpio_probe()
208 chip->irq_number[ngpio] = ret; in sifive_gpio_probe()
210 if (!ngpio) { in sifive_gpio_probe()
241 chip->gc.ngpio = ngpio; in sifive_gpio_probe()
Dgpio-tps65910.c81 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()
128 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; in tps65910_gpio_probe()
131 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()
Dgpio-pca9570.c26 u16 ngpio; member
131 gpio->chip.ngpio = gpio->chip_data->ngpio; in pca9570_probe()
145 .ngpio = 4,
149 .ngpio = 8,
153 .ngpio = 8,
Dgpio-davinci.c159 unsigned int ngpio, nbank, nirq, gpio_unbanked; in davinci_gpio_probe() local
169 ret = of_property_read_u32(dn, "ti,ngpio", &ngpio); in davinci_gpio_probe()
172 if (ngpio == 0) in davinci_gpio_probe()
188 nirq = DIV_ROUND_UP(ngpio, 16); in davinci_gpio_probe()
216 chips->chip.ngpio = ngpio; in davinci_gpio_probe()
228 nbank = DIV_ROUND_UP(ngpio, 32); in davinci_gpio_probe()
451 unsigned ngpio; in davinci_gpio_irq_setup() local
467 ngpio = chips->chip.ngpio; in davinci_gpio_irq_setup()
476 irq = devm_irq_alloc_descs(dev, -1, 0, ngpio, 0); in davinci_gpio_irq_setup()
482 irq_domain = irq_domain_add_legacy(dev->of_node, ngpio, irq, 0, in davinci_gpio_irq_setup()
[all …]
Dgpio-ds4520.c28 u32 ngpio; in ds4520_gpio_probe() local
36 ret = device_property_read_u32(dev, "ngpios", &ngpio); in ds4520_gpio_probe()
47 config.ngpio = ngpio; in ds4520_gpio_probe()
Dgpio-virtio.c425 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()
562 vgpio->lines = devm_kcalloc(dev, ngpio, sizeof(*vgpio->lines), GFP_KERNEL); in virtio_gpio_probe()
566 for (i = 0; i < ngpio; i++) { in virtio_gpio_probe()
581 vgpio->gc.ngpio = ngpio; in virtio_gpio_probe()
[all …]
Dgpio-madera.c143 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()
Dgpio-thunderx.c280 for (bank = 0; bank <= chip->ngpio / 64; bank++) { in thunderx_gpio_set_multiple()
435 int ngpio, i; in thunderx_gpio_probe() local
469 ngpio = 50; in thunderx_gpio_probe()
474 ngpio = c & GPIO_CONST_GPIOS_MASK; in thunderx_gpio_probe()
479 ngpio, sizeof(struct msix_entry), in thunderx_gpio_probe()
487 ngpio, in thunderx_gpio_probe()
495 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe()
517 err = pci_enable_msix_range(pdev, txgpio->msix_entries, ngpio, ngpio); in thunderx_gpio_probe()
527 chip->ngpio = ngpio; in thunderx_gpio_probe()
550 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe()
[all …]
Dgpio-tb10x.c114 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()
224 BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0); in tb10x_gpio_remove()
Dgpio-pca953x.c184 #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ)
235 return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_bank_shift()
615 bitmap_replace(bits, bits, reg_val, mask, gc->ngpio); in pca953x_gpio_get_multiple()
632 bitmap_replace(reg_val, reg_val, bits, mask, gc->ngpio); in pca953x_gpio_set_multiple()
704 gc->ngpio = gpios; in pca953x_setup_gpio()
766 bitmap_complement(irq_mask, chip->irq_mask, gc->ngpio); in pca953x_irq_bus_sync_unlock()
775 bitmap_or(irq_mask, chip->irq_trig_fall, chip->irq_trig_raise, gc->ngpio); in pca953x_irq_bus_sync_unlock()
776 bitmap_complement(reg_direction, reg_direction, gc->ngpio); in pca953x_irq_bus_sync_unlock()
777 bitmap_and(irq_mask, irq_mask, reg_direction, gc->ngpio); in pca953x_irq_bus_sync_unlock()
780 for_each_set_bit(level, irq_mask, gc->ngpio) in pca953x_irq_bus_sync_unlock()
[all …]
Dgpio-it87.c298 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()
Dgpio-pisosr.c97 bitmap_zero(bits, chip->ngpio); in pisosr_gpio_get_multiple()
98 for_each_set_clump8(offset, gpio_mask, mask, chip->ngpio) { in pisosr_gpio_get_multiple()
115 .ngpio = DEFAULT_NGPIO,
136 of_property_read_u16(dev->of_node, "ngpios", &gpio->chip.ngpio); in pisosr_gpio_probe()
140 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe()
/linux-6.12.1/arch/arc/boot/dts/
Dabilis_tb100.dtsi162 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>;
266 abilis,ngpio = <12>;
279 abilis,ngpio = <32>;
[all …]
Dabilis_tb101.dtsi171 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>;
275 abilis,ngpio = <12>;
288 abilis,ngpio = <32>;
[all …]
/linux-6.12.1/drivers/ssb/
Ddriver_gpio.c134 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_chipco_handler()
151 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, in ssb_gpio_irq_chipco_domain_init()
157 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init()
177 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_init()
198 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_chipco_domain_exit()
232 chip->ngpio = 16; in ssb_gpio_chipco_init()
333 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler()
350 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, in ssb_gpio_irq_extif_domain_init()
356 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init()
375 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init()
[all …]
/linux-6.12.1/arch/mips/bcm63xx/
Dgpio.c46 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()

12345678910>>...16