/drivers/video/fbdev/via/ |
H A D | via-gpio.c | 158 .ngpio = 0, 187 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i += 2) 205 for (i = 0; i < viafb_gpio_config.gpio_chip.ngpio; i++) 219 int i, ngpio = 0, ret; local 233 viafb_gpio_config.active_gpios[ngpio] = gpio; 234 viafb_gpio_config.gpio_names[ngpio] = 236 ngpio++; 239 viafb_gpio_config.gpio_chip.ngpio = ngpio; 242 if (ngpio [all...] |
/drivers/gpio/ |
H A D | gpio-twl6040.c | 94 twl6040gpo_chip.ngpio = 3; /* twl6040 have 3 GPO */ 96 twl6040gpo_chip.ngpio = 1; /* twl6041 have 1 GPO */ 106 twl6040gpo_chip.ngpio = 0;
|
H A D | gpio-xilinx.c | 200 u32 ngpio; local 219 if (of_property_read_u32(np, "xlnx,gpio-width", &ngpio)) 220 ngpio = 32; 221 chip->mmchip.gc.ngpio = (u16)ngpio; 267 if (of_property_read_u32(np, "xlnx,gpio2-width", &ngpio)) 268 ngpio = 32; 269 chip->mmchip.gc.ngpio = (u16)ngpio;
|
H A D | gpio-grgpio.c | 124 if (offset > gc->ngpio) 205 int ngpio = priv->bgc.gc.ngpio; local 216 for (i = 0; i < ngpio; i++) { 301 int ngpio = priv->bgc.gc.ngpio; local 314 for (i = 0; i < ngpio; i++) { 387 gc->ngpio = GRGPIO_MAX_NGPIO; 389 "No or invalid nbits property: assume %d\n", gc->ngpio); 391 gc->ngpio [all...] |
H A D | gpio-samsung.c | 248 if (off < 8 && chip->chip.ngpio > 8) 283 if (off < 8 && chip->chip.ngpio > 8) 709 for (i = 0; i < chip->chip.ngpio; i++, gpn++) { 733 BUG_ON(!gc->ngpio); 907 .ngpio = 27, 916 .ngpio = 11, 923 .ngpio = 16, 930 .ngpio = 16, 937 .ngpio = 16, 944 .ngpio [all...] |
H A D | gpio-davinci.c | 158 ret = of_property_read_u32(dn, "ti,ngpio", &val); 162 pdata->ngpio = val; 185 if (gpiospec->args[0] > pdata->ngpio) 201 unsigned ngpio; local 218 * and "ngpio" is one more than the largest zero-based 221 ngpio = pdata->ngpio; 222 if (ngpio == 0) { 227 if (WARN_ON(ARCH_NR_GPIOS < ngpio)) 228 ngpio 474 unsigned ngpio, bank_irq; local [all...] |
H A D | gpio-intel-mid.c | 45 * nreg = ngpio / 32; 66 u16 ngpio; /* number of gpio pins */ member in struct:intel_mid_gpio_ddata 90 unsigned nreg = chip->ngpio / 32; 100 unsigned nreg = chip->ngpio / 32; 195 if (gpio >= priv->chip.ngpio) 237 .ngpio = 64, 241 .ngpio = 96, 246 .ngpio = 96, 251 .ngpio = 96, 256 .ngpio [all...] |
H A D | gpio-tps65910.c | 91 int ngpio = min(chip_ngpio, TPS6591X_MAX_NUM_GPIO); local 97 "ti,en-gpio-sleep", prop_array, ngpio); 103 for (idx = 0; idx < ngpio; idx++) 136 tps65910_gpio->gpio_chip.ngpio = TPS65910_NUM_GPIO; 139 tps65910_gpio->gpio_chip.ngpio = TPS65911_NUM_GPIO; 160 tps65910_gpio->gpio_chip.ngpio); 166 for (i = 0; i < tps65910_gpio->gpio_chip.ngpio; ++i) {
|
H A D | gpio-ich.c | 73 uint ngpio; member in struct:ichx_desc 292 chip->ngpio = ichx_priv.desc->ngpio; 306 .ngpio = 50, 328 .ngpio = 50, 335 .ngpio = 50, 343 .ngpio = 61, 351 .ngpio = 61, 357 .ngpio = 72, 365 .ngpio [all...] |
H A D | gpio-ucb1400.c | 60 ucb->gc.ngpio = 10; 74 err = ucb->gpio_setup(&dev->dev, ucb->gc.ngpio); 87 err = ucb->gpio_teardown(&dev->dev, ucb->gc.ngpio);
|
H A D | gpio-sch.c | 244 sch_gpio_core.ngpio = 10; 246 sch_gpio_resume.ngpio = 4; 262 sch_gpio_core.ngpio = 5; 264 sch_gpio_resume.ngpio = 9; 269 sch_gpio_core.ngpio = 21; 271 sch_gpio_resume.ngpio = 9;
|
H A D | gpio-pcf857x.c | 212 for_each_set_bit(i, &change, gpio->chip.ngpio) 256 gpio->chip.ngpio, 315 gpio->chip.ngpio = id->driver_data; 337 if (gpio->chip.ngpio == 8) { 355 } else if (gpio->chip.ngpio == 16) { 406 gpio->chip.base, gpio->chip.ngpio, 435 gpio->chip.base, gpio->chip.ngpio,
|
H A D | gpio-tb10x.c | 190 u32 ngpio; local 195 if (of_property_read_u32(dn, "abilis,ngpio", &ngpio)) 224 tb10x_gpio->gc.ngpio = ngpio; 255 tb10x_gpio->gc.ngpio, 263 tb10x_gpio->gc.ngpio, 1, tb10x_gpio->gc.label, 297 BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0);
|
H A D | gpio-palmas.c | 35 int ngpio; member in struct:palmas_device_data 144 .ngpio = 8, 148 .ngpio = 16, 182 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio;
|
H A D | gpiolib.c | 52 #define GPIO_OFFSET_VALID(chip, offset) (offset >= 0 && offset < chip->ngpio) 81 if (hwnum >= chip->ngpio) 110 static int gpiochip_find_base(int ngpio) argument 113 int base = ARCH_NR_GPIOS - ngpio; 117 if (chip->base + chip->ngpio <= base) 121 base = chip->base - ngpio; 186 if (_chip->base >= chip->base + chip->ngpio) 193 if (_chip->base + _chip->ngpio > chip->base) { 230 if ((!gpio_is_valid(base) || !gpio_is_valid(base + chip->ngpio - 1)) 239 base = gpiochip_find_base(chip->ngpio); [all...] |
H A D | gpio-pca953x.c | 78 #define NBANK(chip) (chip->gpio_chip.ngpio / BANK_SZ) 109 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); 128 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); 146 if (chip->gpio_chip.ngpio <= 8) 148 else if (chip->gpio_chip.ngpio >= 24) { 149 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); 183 if (chip->gpio_chip.ngpio <= 8) { 186 } else if (chip->gpio_chip.ngpio >= 24) { 187 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); 356 gc->ngpio [all...] |
H A D | gpio-xtensa.c | 132 .ngpio = 32, 141 .ngpio = 32,
|
H A D | gpio-msic.c | 170 if (gpio >= mg->chip.ngpio) 246 for (i = 0; i < (mg->chip.ngpio / BITS_PER_BYTE); i++) { 294 mg->chip.ngpio = MSIC_NUM_GPIO; 306 for (i = 0; i < mg->chip.ngpio; i++) {
|
H A D | gpio-sa1100.c | 64 .ngpio = GPIO_MAX + 1,
|
H A D | gpio-lpc32xx.c | 372 if (pin < chip->ngpio) 449 .ngpio = LPC32XX_GPIO_P0_MAX, 465 .ngpio = LPC32XX_GPIO_P1_MAX, 480 .ngpio = LPC32XX_GPIO_P2_MAX, 496 .ngpio = LPC32XX_GPIO_P3_MAX, 510 .ngpio = LPC32XX_GPI_P3_MAX, 524 .ngpio = LPC32XX_GPO_P3_MAX,
|
H A D | gpio-vr41xx.c | 338 if (pin >= chip->ngpio) 423 if (pin >= chip->ngpio) 452 if (pin >= chip->ngpio) 497 if (offset >= chip->ngpio) 523 vr41xx_gpio_chip.ngpio = 50; 526 vr41xx_gpio_chip.ngpio = 36; 530 vr41xx_gpio_chip.ngpio = 48;
|
/drivers/staging/gs_fpgaboot/ |
H A D | io.h | 74 int ngpio; member in struct:gpiobus
|
/drivers/bcma/ |
H A D | driver_gpio.c | 126 for_each_set_bit(gpio, &irqs, cc->gpio.ngpio) 141 cc->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, 147 for (gpio = 0; gpio < chip->ngpio; gpio++) { 167 for (gpio = 0; gpio < chip->ngpio; gpio++) { 187 for (gpio = 0; gpio < chip->ngpio; gpio++) { 228 chip->ngpio = 32; 231 chip->ngpio = 16;
|
/drivers/ssb/ |
H A D | driver_gpio.c | 139 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) 155 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, 161 for (gpio = 0; gpio < chip->ngpio; gpio++) { 181 for (gpio = 0; gpio < chip->ngpio; gpio++) { 202 for (gpio = 0; gpio < chip->ngpio; gpio++) { 236 chip->ngpio = 16; 336 for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) 352 bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, 358 for (gpio = 0; gpio < chip->ngpio; gpio++) { 377 for (gpio = 0; gpio < chip->ngpio; gpi [all...] |
/drivers/mfd/ |
H A D | vexpress-sysreg.c | 124 .ngpio = 8, 130 .ngpio = 2, 136 .ngpio = 1, 245 mmc_gpio_chip->gc.ngpio = 2;
|