/Linux-v5.4/drivers/video/fbdev/via/ |
D | via-gpio.c | 152 .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-v5.4/arch/arm/plat-samsung/ |
D | gpio-samsung.c | 245 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_setcfg_4bit() 280 if (off < 8 && chip->chip.ngpio > 8) in samsung_gpio_getcfg_4bit() 706 for (i = 0; i < chip->chip.ngpio; i++, gpn++) { in s3c_gpiolib_track() 730 BUG_ON(!gc->ngpio); in samsung_gpiolib_add() 904 .ngpio = 27, 913 .ngpio = 11, 920 .ngpio = 16, 927 .ngpio = 16, 934 .ngpio = 16, 941 .ngpio = 8, [all …]
|
/Linux-v5.4/drivers/gpio/ |
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()
|
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() 288 int ngpio = priv->gc.ngpio; in grgpio_irq_unmap() local 298 for (i = 0; i < ngpio; i++) { in grgpio_irq_unmap() 367 gc->ngpio = GRGPIO_MAX_NGPIO; in grgpio_probe() 369 "No or invalid nbits property: assume %d\n", gc->ngpio); in grgpio_probe() 371 gc->ngpio = prop; in grgpio_probe() 380 if (size < gc->ngpio) { in grgpio_probe() 383 size, gc->ngpio); in grgpio_probe() [all …]
|
D | gpio-xlp.c | 229 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_output() 239 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_dir_input() 249 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_get() 257 BUG_ON(gpio >= gc->ngpio); in xlp_gpio_set() 297 int ngpio; in xlp_gpio_probe() local 334 ngpio = 41; in xlp_gpio_probe() 345 ngpio = (soc_type == XLP_GPIO_VARIANT_XLP208) ? 42 : 57; in xlp_gpio_probe() 358 ngpio = 66; in xlp_gpio_probe() 360 ngpio = 67; in xlp_gpio_probe() 362 ngpio = 70; in xlp_gpio_probe() [all …]
|
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() 255 chips->chip.ngpio = ngpio; in davinci_gpio_probe() 270 nbank = DIV_ROUND_UP(ngpio, 32); in davinci_gpio_probe() 495 unsigned ngpio; in davinci_gpio_irq_setup() local [all …]
|
D | gpio-intel-mid.c | 56 u16 ngpio; /* number of gpio pins */ member 71 unsigned nreg = chip->ngpio / 32; in gpio_reg() 81 unsigned nreg = chip->ngpio / 32; in gpio_reg_2bit() 176 if (gpio >= priv->chip.ngpio) in intel_mid_irq_type() 218 .ngpio = 64, 222 .ngpio = 96, 227 .ngpio = 96, 232 .ngpio = 96, 237 .ngpio = 96, 281 for (base = 0; base < priv->chip.ngpio; base += 32) { in intel_mid_irq_handler() [all …]
|
D | gpio-ich.c | 61 uint ngpio; member 276 chip->ngpio = ichx_priv.desc->ngpio; in ichx_gpiolib_setup() 290 .ngpio = 50, 312 .ngpio = 50, 319 .ngpio = 50, 327 .ngpio = 61, 335 .ngpio = 61, 341 .ngpio = 72, 349 .ngpio = 76, 359 .ngpio = 60, [all …]
|
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()
|
D | gpio-mockup.c | 112 for_each_set_bit(bit, mask, gc->ngpio) { in gpio_mockup_get_multiple() 144 for_each_set_bit(bit, mask, gc->ngpio) in gpio_mockup_set_multiple() 329 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_debugfs_setup() 356 names = devm_kcalloc(dev, gc->ngpio, sizeof(char *), GFP_KERNEL); in gpio_mockup_name_lines() 360 for (i = 0; i < gc->ngpio; i++) { in gpio_mockup_name_lines() 379 u16 ngpio; in gpio_mockup_probe() local 387 rv = device_property_read_u16(dev, "nr-gpios", &ngpio); in gpio_mockup_probe() 410 gc->ngpio = ngpio; in gpio_mockup_probe() 424 chip->lines = devm_kcalloc(dev, gc->ngpio, in gpio_mockup_probe() 435 rv = devm_irq_sim_init(dev, &chip->irqsim, gc->ngpio); in gpio_mockup_probe() [all …]
|
D | gpio-thunderx.c | 277 for (bank = 0; bank <= chip->ngpio / 64; bank++) { in thunderx_gpio_set_multiple() 409 int ngpio, i; in thunderx_gpio_probe() local 443 ngpio = 50; in thunderx_gpio_probe() 448 ngpio = c & GPIO_CONST_GPIOS_MASK; in thunderx_gpio_probe() 453 ngpio, sizeof(struct msix_entry), in thunderx_gpio_probe() 461 ngpio, in thunderx_gpio_probe() 469 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe() 491 err = pci_enable_msix_range(pdev, txgpio->msix_entries, ngpio, ngpio); in thunderx_gpio_probe() 501 chip->ngpio = ngpio; in thunderx_gpio_probe() 523 for (i = 0; i < ngpio; i++) { in thunderx_gpio_probe() [all …]
|
D | gpio-madera.c | 140 madera_gpio->gpio_chip.ngpio = CS47L15_NUM_GPIOS; in madera_gpio_probe() 143 madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS; in madera_gpio_probe() 147 madera_gpio->gpio_chip.ngpio = CS47L85_NUM_GPIOS; in madera_gpio_probe() 151 madera_gpio->gpio_chip.ngpio = CS47L90_NUM_GPIOS; in madera_gpio_probe() 156 madera_gpio->gpio_chip.ngpio = CS47L92_NUM_GPIOS; in madera_gpio_probe() 187 0, 0, madera_gpio->gpio_chip.ngpio); in madera_gpio_probe()
|
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()
|
D | gpio-pisosr.c | 99 unsigned int nbytes = DIV_ROUND_UP(chip->ngpio, 8); in pisosr_gpio_get_multiple() 104 bitmap_zero(bits, 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()
|
D | gpio-ts4900.c | 132 u32 ngpio; in ts4900_gpio_probe() local 135 if (of_property_read_u32(client->dev.of_node, "ngpios", &ngpio)) in ts4900_gpio_probe() 136 ngpio = DEFAULT_PIN_NUMBER; in ts4900_gpio_probe() 144 priv->gpio_chip.ngpio = ngpio; in ts4900_gpio_probe()
|
D | gpio-it87.c | 306 it87_gpio->chip.ngpio = 64; /* has 48, use 64 for convenient calc */ in it87_gpio_init() 314 it87_gpio->chip.ngpio = 64; in it87_gpio_init() 326 it87_gpio->chip.ngpio = 64; in it87_gpio_init() 333 it87_gpio->chip.ngpio = 16; in it87_gpio_init() 356 chip_type, chip_rev, it87_gpio->chip.ngpio, in it87_gpio_init() 373 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init() 375 labels_table = kcalloc(it87_gpio->chip.ngpio, sizeof(const char *), in it87_gpio_init() 383 for (i = 0; i < it87_gpio->chip.ngpio; i++) { in it87_gpio_init()
|
D | gpiolib.c | 117 gdev->base + gdev->ngpio > gpio) { in gpio_to_desc() 147 if (hwnum >= gdev->ngpio) in gpiochip_get_desc() 183 static int gpiochip_find_base(int ngpio) in gpiochip_find_base() argument 186 int base = ARCH_NR_GPIOS - ngpio; in gpiochip_find_base() 190 if (gdev->base + gdev->ngpio <= base) in gpiochip_find_base() 194 base = gdev->base - ngpio; in gpiochip_find_base() 258 if (gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list() 265 if (prev->base + prev->ngpio <= gdev->base) { in gpiodev_add_to_list() 277 if (prev->base + prev->ngpio <= gdev->base in gpiodev_add_to_list() 278 && gdev->base + gdev->ngpio <= next->base) { in gpiodev_add_to_list() [all …]
|
D | gpio-palmas.c | 24 int ngpio; member 130 .ngpio = 8, 134 .ngpio = 16, 165 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio; in palmas_gpio_probe()
|
D | gpio-twl6040.c | 87 twl6040gpo_chip.ngpio = 3; /* twl6040 have 3 GPO */ in gpo_twl6040_probe() 89 twl6040gpo_chip.ngpio = 1; /* twl6041 have 1 GPO */ in gpo_twl6040_probe() 99 twl6040gpo_chip.ngpio = 0; in gpo_twl6040_probe()
|
/Linux-v5.4/tools/testing/selftests/gpio/ |
D | gpio-mockup-sysfs.sh | 109 ngpio=`cat $chip/ngpio` 110 printf "%-10s %-5s %-5s\n" $name $base $ngpio 111 if [ $ngpio = "0" ]; then 115 test_one_pin $(($base + $ngpio - 1)) 116 test_one_pin $((( RANDOM % $ngpio ) + $base ))
|
/Linux-v5.4/arch/arc/boot/dts/ |
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>; 266 abilis,ngpio = <12>; 279 abilis,ngpio = <32>; [all …]
|
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>; 275 abilis,ngpio = <12>; 288 abilis,ngpio = <32>; [all …]
|
/Linux-v5.4/arch/mips/bcm63xx/ |
D | gpio.c | 46 if (gpio >= chip->ngpio) in bcm63xx_gpio_set() 73 if (gpio >= chip->ngpio) in bcm63xx_gpio_get() 95 if (gpio >= chip->ngpio) in bcm63xx_gpio_set_direction() 147 bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); in bcm63xx_gpio_init() 148 pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); in bcm63xx_gpio_init()
|
/Linux-v5.4/drivers/ssb/ |
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() 331 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) in ssb_gpio_irq_extif_handler() 347 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, in ssb_gpio_irq_extif_domain_init() 353 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() 372 for (gpio = 0; gpio < chip->ngpio; gpio++) { in ssb_gpio_irq_extif_domain_init() [all …]
|
/Linux-v5.4/include/linux/ |
D | ucb1400.h | 87 int (*gpio_setup)(struct device *dev, int ngpio); 88 int (*gpio_teardown)(struct device *dev, int ngpio); 108 int (*gpio_setup)(struct device *dev, int ngpio); 109 int (*gpio_teardown)(struct device *dev, int ngpio);
|