Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.1.9/drivers/video/fbdev/via/
Dvia-gpio.c152 .ngpio = 0,
181 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i += 2) in viafb_gpio_resume()
199 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i++) in viafb_gpio_lookup()
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()
[all …]
/linux-6.1.9/arch/arm/mach-s3c/
Dgpio-samsung.c246 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_setcfg_4bit()
281 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_getcfg_4bit()
707 for (i = 0; i < chip->chip.ngpio; i++, gpn++) { in s3c_gpiolib_track()
731 BUG_ON(!gc->ngpio); in samsung_gpiolib_add()
905 .ngpio = 27,
914 .ngpio = 11,
921 .ngpio = 16,
928 .ngpio = 16,
935 .ngpio = 16,
942 .ngpio = 8,
[all …]
/linux-6.1.9/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-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-mockup.c107 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()
389 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_dispose_mappings()
403 u16 ngpio; in gpio_mockup_probe() local
411 rv = device_property_read_u16(dev, "nr-gpios", &ngpio); in gpio_mockup_probe()
427 gc->ngpio = ngpio; in gpio_mockup_probe()
442 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe()
447 for (i = 0; i < gc->ngpio; i++) in gpio_mockup_probe()
451 gc->ngpio); in gpio_mockup_probe()
[all …]
Dgpio-davinci.c178 pdata->ngpio = val; in davinci_gpio_get_pdata()
196 unsigned int ngpio, nbank, nirq; in davinci_gpio_probe() local
214 ngpio = pdata->ngpio; in davinci_gpio_probe()
215 if (ngpio == 0) { in davinci_gpio_probe()
220 if (WARN_ON(ARCH_NR_GPIOS < ngpio)) in davinci_gpio_probe()
221 ngpio = ARCH_NR_GPIOS; in davinci_gpio_probe()
231 nirq = DIV_ROUND_UP(ngpio, 16); in davinci_gpio_probe()
254 chips->chip.ngpio = ngpio; in davinci_gpio_probe()
265 nbank = DIV_ROUND_UP(ngpio, 32); in davinci_gpio_probe()
489 unsigned ngpio; in davinci_gpio_irq_setup() local
[all …]
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-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-gpio-mm.c89 i8255_get_multiple(gpiommgpio->ppi, mask, bits, chip->ngpio); in gpiomm_gpio_get_multiple()
108 chip->ngpio); in gpiomm_gpio_set_multiple()
126 const unsigned long ngpio = 24; in gpiomm_init_dio() local
127 const unsigned long mask = GENMASK(ngpio - 1, 0); in gpiomm_init_dio()
134 i8255_set_multiple(&ppi[i], &ppi_state[i], &mask, &bits, ngpio); in gpiomm_init_dio()
162 gpiommgpio->chip.ngpio = GPIOMM_NGPIO; in gpiomm_probe()
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-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-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()
220 BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0); in tb10x_gpio_remove()
Dgpio-thunderx.c279 for (bank = 0; bank <= chip->ngpio / 64; bank++) { in thunderx_gpio_set_multiple()
428 int ngpio, i; in thunderx_gpio_probe() local
462 ngpio = 50; in thunderx_gpio_probe()
467 ngpio = c & GPIO_CONST_GPIOS_MASK; in thunderx_gpio_probe()
472 ngpio, sizeof(struct msix_entry), in thunderx_gpio_probe()
480 ngpio, in thunderx_gpio_probe()
488 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe()
510 err = pci_enable_msix_range(pdev, txgpio->msix_entries, ngpio, ngpio); in thunderx_gpio_probe()
520 chip->ngpio = ngpio; in thunderx_gpio_probe()
543 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe()
[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,
133 of_property_read_u16(dev->of_node, "ngpios", &gpio->chip.ngpio); in pisosr_gpio_probe()
137 gpio->buffer_size = DIV_ROUND_UP(gpio->chip.ngpio, 8); in pisosr_gpio_probe()
Dgpio-pca953x.c173 #define NBANK(chip) DIV_ROUND_UP(chip->gpio_chip.ngpio, BANK_SZ)
225 return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); in pca953x_bank_shift()
616 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()
713 gc->ngpio = gpios; in pca953x_setup_gpio()
774 bitmap_complement(irq_mask, chip->irq_mask, gc->ngpio); in pca953x_irq_bus_sync_unlock()
783 bitmap_or(irq_mask, chip->irq_trig_fall, chip->irq_trig_raise, gc->ngpio); in pca953x_irq_bus_sync_unlock()
784 bitmap_complement(reg_direction, reg_direction, gc->ngpio); in pca953x_irq_bus_sync_unlock()
785 bitmap_and(irq_mask, irq_mask, reg_direction, gc->ngpio); in pca953x_irq_bus_sync_unlock()
788 for_each_set_bit(level, irq_mask, gc->ngpio) in pca953x_irq_bus_sync_unlock()
[all …]
Dgpio-ts4900.c143 u32 ngpio; in ts4900_gpio_probe() local
146 if (of_property_read_u32(client->dev.of_node, "ngpios", &ngpio)) in ts4900_gpio_probe()
147 ngpio = DEFAULT_PIN_NUMBER; in ts4900_gpio_probe()
155 priv->gpio_chip.ngpio = ngpio; in ts4900_gpio_probe()
Dgpio-imx-scu.c39 if (offset >= chip->ngpio) in imx_scu_gpio_get()
62 if (offset >= chip->ngpio) in imx_scu_gpio_set()
79 if (offset >= chip->ngpio) in imx_scu_gpio_get_direction()
106 gc->ngpio = sizeof(scu_rsrc_arr)/sizeof(unsigned int); in imx_scu_gpio_probe()
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-mcp23s08_spi.c21 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-6.1.9/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.1.9/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()
/linux-6.1.9/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.1.9/drivers/mfd/
Dvexpress-sysreg.c44 .ngpio = 8,
50 .ngpio = 2,
56 .ngpio = 1,
120 mmc_gpio_chip->ngpio = 2; in vexpress_sysreg_probe()

12345678910>>...15