gpios 101 arch/arm/mach-pxa/am200epd.c static int gpios[] = { LED_GPIO_PIN , STDBY_GPIO_PIN , RST_GPIO_PIN, gpios 110 arch/arm/mach-pxa/am200epd.c for (i = 0; i < ARRAY_SIZE(gpios); i++) { gpios 111 arch/arm/mach-pxa/am200epd.c err = gpio_request(gpios[i], gpio_names[i]); gpios 132 arch/arm/mach-pxa/am200epd.c gpio_free(gpios[i]); gpios 143 arch/arm/mach-pxa/am200epd.c for (i = 0; i < ARRAY_SIZE(gpios); i++) gpios 144 arch/arm/mach-pxa/am200epd.c gpio_free(gpios[i]); gpios 94 arch/arm/mach-pxa/am300epd.c static int gpios[] = { PWR_GPIO_PIN, CFG_GPIO_PIN, RDY_GPIO_PIN, DC_GPIO_PIN, gpios 113 arch/arm/mach-pxa/am300epd.c for (i = 0; i < ARRAY_SIZE(gpios); i++) { gpios 114 arch/arm/mach-pxa/am300epd.c err = gpio_request(gpios[i], gpio_names[i]); gpios 163 arch/arm/mach-pxa/am300epd.c i = ARRAY_SIZE(gpios); gpios 166 arch/arm/mach-pxa/am300epd.c gpio_free(gpios[i]); gpios 182 arch/arm/mach-pxa/am300epd.c for (i = 0; i < ARRAY_SIZE(gpios); i++) gpios 183 arch/arm/mach-pxa/am300epd.c gpio_free(gpios[i]); gpios 705 arch/arm/mach-pxa/hx4700.c { .value = 100000, .gpios = (0 << 0) }, gpios 706 arch/arm/mach-pxa/hx4700.c { .value = 500000, .gpios = (1 << 0) }, gpios 648 arch/arm/mach-pxa/magician.c { .value = 100000, .gpios = (0 << 0) }, gpios 649 arch/arm/mach-pxa/magician.c { .value = 500000, .gpios = (1 << 0) }, gpios 720 arch/arm/mach-s3c64xx/mach-crag6410.c .gpios = { gpios 138 drivers/bus/ts-nbus.c struct gpio_descs *gpios = ts_nbus->data; gpios 143 drivers/bus/ts-nbus.c ret = gpiod_get_value_cansleep(gpios->desc[i]); gpios 158 drivers/bus/ts-nbus.c struct gpio_descs *gpios = ts_nbus->data; gpios 163 drivers/bus/ts-nbus.c gpiod_set_array_value_cansleep(8, gpios->desc, gpios->info, values); gpios 93 drivers/gpio/gpio-adp5520.c int ret, i, gpios; gpios 112 drivers/gpio/gpio-adp5520.c for (gpios = 0, i = 0; i < ADP5520_MAXGPIOS; i++) gpios 114 drivers/gpio/gpio-adp5520.c dev->lut[gpios++] = 1 << i; gpios 116 drivers/gpio/gpio-adp5520.c if (gpios < 1) { gpios 129 drivers/gpio/gpio-adp5520.c gc->ngpio = gpios; gpios 540 drivers/gpio/gpio-pca953x.c static void pca953x_setup_gpio(struct pca953x_chip *chip, int gpios) gpios 556 drivers/gpio/gpio-pca953x.c gc->ngpio = gpios; gpios 132 drivers/gpio/gpio-winbond.c unsigned long gpios; gpios 357 drivers/gpio/gpio-winbond.c for_each_set_bit(i, ¶ms.gpios, BITS_PER_LONG) { gpios 574 drivers/gpio/gpio-winbond.c for_each_set_bit(i, ¶ms.gpios, BITS_PER_LONG) gpios 576 drivers/gpio/gpio-winbond.c __clear_bit(i, ¶ms.gpios); gpios 578 drivers/gpio/gpio-winbond.c if (!params.gpios) { gpios 616 drivers/gpio/gpio-winbond.c gpios_rem = params.gpios & ~GENMASK(ARRAY_SIZE(winbond_gpio_infos) - 1, gpios 621 drivers/gpio/gpio-winbond.c params.gpios &= ~gpios_rem; gpios 670 drivers/gpio/gpio-winbond.c winbond_gpio_chip.ngpio = hweight_long(params.gpios) * 8; gpios 676 drivers/gpio/gpio-winbond.c if (params.gpios & BIT(5)) gpios 699 drivers/gpio/gpio-winbond.c module_param_named(gpios, params.gpios, ulong, 0444); gpios 700 drivers/gpio/gpio-winbond.c MODULE_PARM_DESC(gpios, gpios 447 drivers/gpio/gpiolib-acpi.c const struct acpi_gpio_mapping *gpios) gpios 449 drivers/gpio/gpiolib-acpi.c if (adev && gpios) { gpios 450 drivers/gpio/gpiolib-acpi.c adev->driver_gpios = gpios; gpios 470 drivers/gpio/gpiolib-acpi.c const struct acpi_gpio_mapping *gpios) gpios 479 drivers/gpio/gpiolib-acpi.c ret = acpi_dev_add_driver_gpios(ACPI_COMPANION(dev), gpios); gpios 1124 drivers/gpio/gpiolib-acpi.c u32 gpios[2]; gpios 1131 drivers/gpio/gpiolib-acpi.c ret = fwnode_property_read_u32_array(fwnode, "gpios", gpios, gpios 1132 drivers/gpio/gpiolib-acpi.c ARRAY_SIZE(gpios)); gpios 1136 drivers/gpio/gpiolib-acpi.c desc = gpiochip_get_desc(chip, gpios[0]); gpios 1140 drivers/gpio/gpiolib-acpi.c if (gpios[1]) gpios 41 drivers/gpio/gpiolib-devres.c struct gpio_descs **this = res, **gpios = data; gpios 43 drivers/gpio/gpiolib-devres.c return *this == *gpios; gpios 581 drivers/gpu/drm/msm/hdmi/hdmi.c hdmi_cfg->gpios[i].gpiod = gpiod; gpios 584 drivers/gpu/drm/msm/hdmi/hdmi.c hdmi_cfg->gpios[i].output = msm_hdmi_gpio_pdata[i].output; gpios 585 drivers/gpu/drm/msm/hdmi/hdmi.c hdmi_cfg->gpios[i].value = msm_hdmi_gpio_pdata[i].value; gpios 112 drivers/gpu/drm/msm/hdmi/hdmi.h struct hdmi_gpio_data gpios[HDMI_MAX_NUM_GPIO]; gpios 77 drivers/gpu/drm/msm/hdmi/hdmi_connector.c struct hdmi_gpio_data gpio = config->gpios[i]; gpios 94 drivers/gpu/drm/msm/hdmi/hdmi_connector.c struct hdmi_gpio_data gpio = config->gpios[i]; gpios 295 drivers/gpu/drm/msm/hdmi/hdmi_connector.c struct hdmi_gpio_data hpd_gpio = config->gpios[HPD_GPIO_INDEX]; gpios 308 drivers/gpu/drm/msm/hdmi/hdmi_connector.c struct hdmi_gpio_data hpd_gpio = config->gpios[HPD_GPIO_INDEX]; gpios 40 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c } gpios; gpios 60 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c gpiod_set_value(ctx->gpios.power, 1); gpios 62 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c gpiod_set_value(ctx->gpios.reset, 1); gpios 71 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c gpiod_set_value(ctx->gpios.reset, 0); gpios 72 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c gpiod_set_value(ctx->gpios.power, 0); gpios 180 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c ctx->gpios.reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW); gpios 181 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c if (IS_ERR(ctx->gpios.reset)) { gpios 183 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c return PTR_ERR(ctx->gpios.reset); gpios 186 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c ctx->gpios.power = devm_gpiod_get(&dsi->dev, "power", GPIOD_OUT_LOW); gpios 187 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c if (IS_ERR(ctx->gpios.power)) { gpios 189 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c return PTR_ERR(ctx->gpios.power); gpios 196 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c ctx->gpios.updn = devm_gpiod_get(&dsi->dev, "updn", GPIOD_OUT_LOW); gpios 197 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c if (IS_ERR(ctx->gpios.updn)) { gpios 199 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c return PTR_ERR(ctx->gpios.updn); gpios 206 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c ctx->gpios.shlr = devm_gpiod_get(&dsi->dev, "shlr", GPIOD_OUT_LOW); gpios 207 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c if (IS_ERR(ctx->gpios.shlr)) { gpios 209 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c return PTR_ERR(ctx->gpios.shlr); gpios 33 drivers/hsi/clients/nokia-modem.c struct nokia_modem_gpio *gpios; gpios 67 drivers/hsi/clients/nokia-modem.c sysfs_remove_link(&dev->kobj, modem->gpios[i].name); gpios 68 drivers/hsi/clients/nokia-modem.c gpiod_unexport(modem->gpios[i].gpio); gpios 92 drivers/hsi/clients/nokia-modem.c modem->gpios = devm_kcalloc(dev, gpio_count, sizeof(*modem->gpios), gpios 94 drivers/hsi/clients/nokia-modem.c if (!modem->gpios) gpios 100 drivers/hsi/clients/nokia-modem.c modem->gpios[i].gpio = devm_gpiod_get_index(dev, NULL, i, gpios 102 drivers/hsi/clients/nokia-modem.c if (IS_ERR(modem->gpios[i].gpio)) { gpios 104 drivers/hsi/clients/nokia-modem.c return PTR_ERR(modem->gpios[i].gpio); gpios 108 drivers/hsi/clients/nokia-modem.c &(modem->gpios[i].name)); gpios 114 drivers/hsi/clients/nokia-modem.c err = gpiod_export(modem->gpios[i].gpio, 0); gpios 118 drivers/hsi/clients/nokia-modem.c err = gpiod_export_link(dev, modem->gpios[i].name, gpios 119 drivers/hsi/clients/nokia-modem.c modem->gpios[i].gpio); gpios 36 drivers/hwmon/gpio-fan.c struct gpio_desc **gpios; gpios 110 drivers/hwmon/gpio-fan.c gpiod_set_value_cansleep(fan_data->gpios[i], gpios 122 drivers/hwmon/gpio-fan.c value = gpiod_get_value_cansleep(fan_data->gpios[i]); gpios 307 drivers/hwmon/gpio-fan.c if (index > 0 && !data->gpios) gpios 338 drivers/hwmon/gpio-fan.c struct gpio_desc **gpios = fan_data->gpios; gpios 348 drivers/hwmon/gpio-fan.c err = gpiod_direction_output(gpios[i], gpios 349 drivers/hwmon/gpio-fan.c gpiod_get_value_cansleep(gpios[i])); gpios 412 drivers/hwmon/gpio-fan.c struct gpio_desc **gpios; gpios 431 drivers/hwmon/gpio-fan.c gpios = devm_kcalloc(dev, gpios 434 drivers/hwmon/gpio-fan.c if (!gpios) gpios 437 drivers/hwmon/gpio-fan.c gpios[i] = devm_gpiod_get_index(dev, NULL, i, GPIOD_ASIS); gpios 438 drivers/hwmon/gpio-fan.c if (IS_ERR(gpios[i])) gpios 439 drivers/hwmon/gpio-fan.c return PTR_ERR(gpios[i]); gpios 441 drivers/hwmon/gpio-fan.c fan_data->gpios = gpios; gpios 514 drivers/hwmon/gpio-fan.c if (fan_data->gpios && fan_data->num_gpios > 0) { gpios 553 drivers/hwmon/gpio-fan.c if (fan_data->gpios) gpios 562 drivers/hwmon/gpio-fan.c if (fan_data->gpios) { gpios 574 drivers/hwmon/gpio-fan.c if (fan_data->gpios) gpios 66 drivers/hwmon/ltc4245.c int gpios[3]; gpios 85 drivers/hwmon/ltc4245.c data->gpios[0] = data->vregs[LTC4245_GPIOADC - 0x10]; gpios 94 drivers/hwmon/ltc4245.c for (i = 0; i < ARRAY_SIZE(data->gpios); i++) gpios 95 drivers/hwmon/ltc4245.c data->gpios[i] = -EAGAIN; gpios 110 drivers/hwmon/ltc4245.c data->gpios[gpio_curr] = data->vregs[LTC4245_GPIOADC - 0x10]; gpios 113 drivers/hwmon/ltc4245.c gpio_next = (gpio_curr + 1) % ARRAY_SIZE(data->gpios); gpios 295 drivers/hwmon/ltc4245.c int regval = data->gpios[channel - 8]; gpios 244 drivers/i2c/busses/i2c-i801.c unsigned gpios[2]; /* Relative to gpio_chip->base */ gpios 1324 drivers/i2c/busses/i2c-i801.c .gpios = { 52, 53 }, gpios 1333 drivers/i2c/busses/i2c-i801.c .gpios = { 52, 53 }, gpios 1434 drivers/i2c/busses/i2c-i801.c lookup->table[i].chip_hwnum = mux_config->gpios[i]; gpios 116 drivers/i2c/busses/i2c-s3c2410.c struct gpio_desc *gpios[2]; gpios 957 drivers/i2c/busses/i2c-s3c2410.c i2c->gpios[i] = devm_gpiod_get_index(i2c->dev, NULL, gpios 959 drivers/i2c/busses/i2c-s3c2410.c if (IS_ERR(i2c->gpios[i])) { gpios 22 drivers/i2c/muxes/i2c-mux-gpio.c struct gpio_desc **gpios; gpios 31 drivers/i2c/muxes/i2c-mux-gpio.c gpiod_set_array_value_cansleep(mux->ngpios, mux->gpios, NULL, values); gpios 141 drivers/i2c/muxes/i2c-mux-gpio.c ngpios * sizeof(*mux->gpios), 0, gpios 147 drivers/i2c/muxes/i2c-mux-gpio.c mux->gpios = muxc->priv; gpios 178 drivers/i2c/muxes/i2c-mux-gpio.c mux->gpios[i] = gpiod; gpios 37 drivers/iio/adc/ad7266.c struct gpio gpios[3]; gpios 120 drivers/iio/adc/ad7266.c gpio_set_value(st->gpios[i].gpio, (bool)(nr & BIT(i))); gpios 421 drivers/iio/adc/ad7266.c for (i = 0; i < ARRAY_SIZE(st->gpios); ++i) { gpios 422 drivers/iio/adc/ad7266.c st->gpios[i].gpio = pdata->addr_gpios[i]; gpios 423 drivers/iio/adc/ad7266.c st->gpios[i].flags = GPIOF_OUT_INIT_LOW; gpios 424 drivers/iio/adc/ad7266.c st->gpios[i].label = ad7266_gpio_labels[i]; gpios 426 drivers/iio/adc/ad7266.c ret = gpio_request_array(st->gpios, gpios 427 drivers/iio/adc/ad7266.c ARRAY_SIZE(st->gpios)); gpios 480 drivers/iio/adc/ad7266.c gpio_free_array(st->gpios, ARRAY_SIZE(st->gpios)); gpios 496 drivers/iio/adc/ad7266.c gpio_free_array(st->gpios, ARRAY_SIZE(st->gpios)); gpios 405 drivers/input/keyboard/matrix_keypad.c unsigned int *gpios; gpios 442 drivers/input/keyboard/matrix_keypad.c gpios = devm_kcalloc(dev, gpios 446 drivers/input/keyboard/matrix_keypad.c if (!gpios) { gpios 455 drivers/input/keyboard/matrix_keypad.c gpios[i] = ret; gpios 462 drivers/input/keyboard/matrix_keypad.c gpios[nrow + i] = ret; gpios 465 drivers/input/keyboard/matrix_keypad.c pdata->row_gpios = gpios; gpios 466 drivers/input/keyboard/matrix_keypad.c pdata->col_gpios = &gpios[pdata->num_row_gpios]; gpios 36 drivers/input/misc/gpio_decoder.c struct gpio_descs *gpios = decoder->input_gpios; gpios 40 drivers/input/misc/gpio_decoder.c for (i = 0; i < gpios->ndescs; i++) { gpios 41 drivers/input/misc/gpio_decoder.c val = gpiod_get_value_cansleep(gpios->desc[i]); gpios 45 drivers/input/misc/gpio_decoder.c desc_to_gpio(gpios->desc[i]), val); gpios 46 drivers/input/misc/rotary_encoder.c struct gpio_descs *gpios; gpios 61 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) { gpios 62 drivers/input/misc/rotary_encoder.c int val = gpiod_get_value_cansleep(encoder->gpios->desc[i]); gpios 238 drivers/input/misc/rotary_encoder.c encoder->gpios = devm_gpiod_get_array(dev, NULL, GPIOD_IN); gpios 239 drivers/input/misc/rotary_encoder.c if (IS_ERR(encoder->gpios)) { gpios 240 drivers/input/misc/rotary_encoder.c err = PTR_ERR(encoder->gpios); gpios 245 drivers/input/misc/rotary_encoder.c if (encoder->gpios->ndescs < 2) { gpios 266 drivers/input/misc/rotary_encoder.c switch (steps_per_period >> (encoder->gpios->ndescs - 2)) { gpios 286 drivers/input/misc/rotary_encoder.c encoder->gpios->ndescs, sizeof(*encoder->irq), gpios 291 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) { gpios 292 drivers/input/misc/rotary_encoder.c encoder->irq[i] = gpiod_to_irq(encoder->gpios->desc[i]); gpios 326 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) gpios 339 drivers/input/misc/rotary_encoder.c for (i = 0; i < encoder->gpios->ndescs; ++i) gpios 355 drivers/leds/leds-pca9532.c int gpios = 0; gpios 377 drivers/leds/leds-pca9532.c gpios++; gpios 432 drivers/leds/leds-pca9532.c if (gpios) { gpios 637 drivers/leds/leds-tca6507.c int gpios = 0; gpios 642 drivers/leds/leds-tca6507.c tca->gpio_name[gpios] = pdata->leds.leds[i].name; gpios 643 drivers/leds/leds-tca6507.c tca->gpio_map[gpios] = i; gpios 644 drivers/leds/leds-tca6507.c gpios++; gpios 647 drivers/leds/leds-tca6507.c if (!gpios) gpios 652 drivers/leds/leds-tca6507.c tca->gpio.ngpio = gpios; gpios 252 drivers/media/i2c/ov9650.c struct gpio_desc *gpios[NUM_GPIOS]; gpios 516 drivers/media/i2c/ov9650.c gpiod_set_value_cansleep(ov965x->gpios[GPIO_PWDN], 0); gpios 517 drivers/media/i2c/ov9650.c gpiod_set_value_cansleep(ov965x->gpios[GPIO_RST], 0); gpios 520 drivers/media/i2c/ov9650.c gpiod_set_value_cansleep(ov965x->gpios[GPIO_RST], 1); gpios 521 drivers/media/i2c/ov9650.c gpiod_set_value_cansleep(ov965x->gpios[GPIO_PWDN], 1); gpios 1411 drivers/media/i2c/ov9650.c int gpios[NUM_GPIOS]; gpios 1414 drivers/media/i2c/ov9650.c gpios[GPIO_PWDN] = pdata->gpio_pwdn; gpios 1415 drivers/media/i2c/ov9650.c gpios[GPIO_RST] = pdata->gpio_reset; gpios 1417 drivers/media/i2c/ov9650.c for (i = 0; i < ARRAY_SIZE(ov965x->gpios); i++) { gpios 1418 drivers/media/i2c/ov9650.c int gpio = gpios[i]; gpios 1430 drivers/media/i2c/ov9650.c ov965x->gpios[i] = gpio_to_desc(gpio); gpios 1440 drivers/media/i2c/ov9650.c ov965x->gpios[GPIO_PWDN] = devm_gpiod_get_optional(dev, "powerdown", gpios 1442 drivers/media/i2c/ov9650.c if (IS_ERR(ov965x->gpios[GPIO_PWDN])) { gpios 1444 drivers/media/i2c/ov9650.c return PTR_ERR(ov965x->gpios[GPIO_PWDN]); gpios 1447 drivers/media/i2c/ov9650.c ov965x->gpios[GPIO_RST] = devm_gpiod_get_optional(dev, "reset", gpios 1449 drivers/media/i2c/ov9650.c if (IS_ERR(ov965x->gpios[GPIO_RST])) { gpios 1451 drivers/media/i2c/ov9650.c return PTR_ERR(ov965x->gpios[GPIO_RST]); gpios 288 drivers/media/i2c/s5k5baf.c struct s5k5baf_gpio gpios[NUM_GPIOS]; gpios 940 drivers/media/i2c/s5k5baf.c struct s5k5baf_gpio *gpio = &state->gpios[id]; gpios 947 drivers/media/i2c/s5k5baf.c struct s5k5baf_gpio *gpio = &state->gpios[id]; gpios 1798 drivers/media/i2c/s5k5baf.c struct s5k5baf_gpio *g = state->gpios; gpios 1814 drivers/media/i2c/s5k5baf.c static int s5k5baf_parse_gpios(struct s5k5baf_gpio *gpios, struct device *dev) gpios 1830 drivers/media/i2c/s5k5baf.c gpios[i].gpio = ret; gpios 1831 drivers/media/i2c/s5k5baf.c gpios[i].level = !(flags & OF_GPIO_ACTIVE_LOW); gpios 1857 drivers/media/i2c/s5k5baf.c ret = s5k5baf_parse_gpios(state->gpios, dev); gpios 57 drivers/mtd/maps/physmap-core.c struct gpio_descs *gpios; gpios 129 drivers/mtd/maps/physmap-core.c for (i = 0; i < info->gpios->ndescs; i++) { gpios 133 drivers/mtd/maps/physmap-core.c gpiod_set_value(info->gpios->desc[i], !!(BIT(i) & ofs)); gpios 472 drivers/mtd/maps/physmap-core.c info->gpios = devm_gpiod_get_array_optional(&dev->dev, "addr", gpios 474 drivers/mtd/maps/physmap-core.c if (IS_ERR(info->gpios)) gpios 475 drivers/mtd/maps/physmap-core.c return PTR_ERR(info->gpios); gpios 477 drivers/mtd/maps/physmap-core.c if (info->gpios && info->nmaps > 1) { gpios 510 drivers/mtd/maps/physmap-core.c (info->gpios ? gpios 511 drivers/mtd/maps/physmap-core.c info->gpios->ndescs : 0)); gpios 515 drivers/mtd/maps/physmap-core.c if (info->gpios) { gpios 19 drivers/mux/gpio.c struct gpio_descs *gpios; gpios 29 drivers/mux/gpio.c gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, gpios 30 drivers/mux/gpio.c mux_gpio->gpios->desc, gpios 31 drivers/mux/gpio.c mux_gpio->gpios->info, values); gpios 66 drivers/mux/gpio.c mux_gpio->gpios = devm_gpiod_get_array(dev, "mux", GPIOD_OUT_LOW); gpios 67 drivers/mux/gpio.c if (IS_ERR(mux_gpio->gpios)) { gpios 68 drivers/mux/gpio.c ret = PTR_ERR(mux_gpio->gpios); gpios 73 drivers/mux/gpio.c WARN_ON(pins != mux_gpio->gpios->ndescs); gpios 18 drivers/net/phy/mdio-mux-gpio.c struct gpio_descs *gpios; gpios 33 drivers/net/phy/mdio-mux-gpio.c gpiod_set_array_value_cansleep(s->gpios->ndescs, s->gpios->desc, gpios 34 drivers/net/phy/mdio-mux-gpio.c s->gpios->info, values); gpios 42 drivers/net/phy/mdio-mux-gpio.c struct gpio_descs *gpios; gpios 45 drivers/net/phy/mdio-mux-gpio.c gpios = gpiod_get_array(&pdev->dev, NULL, GPIOD_OUT_LOW); gpios 46 drivers/net/phy/mdio-mux-gpio.c if (IS_ERR(gpios)) gpios 47 drivers/net/phy/mdio-mux-gpio.c return PTR_ERR(gpios); gpios 51 drivers/net/phy/mdio-mux-gpio.c gpiod_put_array(gpios); gpios 55 drivers/net/phy/mdio-mux-gpio.c s->gpios = gpios; gpios 61 drivers/net/phy/mdio-mux-gpio.c gpiod_put_array(s->gpios); gpios 73 drivers/net/phy/mdio-mux-gpio.c gpiod_put_array(s->gpios); gpios 169 drivers/net/phy/sfp.c unsigned int gpios; gpios 217 drivers/net/phy/sfp.c .gpios = SFP_F_LOS | SFP_F_TX_FAULT | SFP_F_TX_DISABLE, gpios 228 drivers/net/phy/sfp.c .gpios = SFP_F_PRESENT | SFP_F_LOS | SFP_F_TX_FAULT | gpios 1935 drivers/net/phy/sfp.c if (sff->gpios & BIT(i)) { gpios 1806 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.c gpios), gpios 553 drivers/net/wireless/ath/ath10k/qmi_wlfw_v01.h u32 gpios[QMI_WLFW_MAX_NUM_GPIO_V01]; gpios 17 drivers/pcmcia/pxa2xx_hx4700.c static struct gpio gpios[] = { gpios 26 drivers/pcmcia/pxa2xx_hx4700.c ret = gpio_request_array(gpios, ARRAY_SIZE(gpios)); gpios 50 drivers/pcmcia/pxa2xx_hx4700.c gpio_free_array(gpios, ARRAY_SIZE(gpios)); gpios 488 drivers/pinctrl/pinctrl-tb10x.c DECLARE_BITMAP(gpios, MAX_PIN + 1); gpios 659 drivers/pinctrl/pinctrl-tb10x.c set_bit(pin, state->gpios); gpios 683 drivers/pinctrl/pinctrl-tb10x.c clear_bit(pin, state->gpios); gpios 715 drivers/pinctrl/pinctrl-tb10x.c if (test_bit(grp->pins[i], state->gpios)) { gpios 40 drivers/pinctrl/qcom/pinctrl-qdf2xxx.c u8 gpios[MAX_GPIOS]; /* An array of supported GPIOs */ gpios 70 drivers/pinctrl/qcom/pinctrl-qdf2xxx.c ret = device_property_read_u8_array(&pdev->dev, "gpios", gpios, gpios 98 drivers/pinctrl/qcom/pinctrl-qdf2xxx.c unsigned int gpio = gpios[i]; gpios 204 drivers/pinctrl/sh-pfc/gpio.c const short *gpios = pfc->info->gpio_irq[i].gpios; gpios 206 drivers/pinctrl/sh-pfc/gpio.c for (k = 0; gpios[k] >= 0; k++) { gpios 207 drivers/pinctrl/sh-pfc/gpio.c if (gpios[k] == offset) gpios 218 drivers/pinctrl/sh-pfc/sh_pfc.h const short *gpios; gpios 226 drivers/pinctrl/sh-pfc/sh_pfc.h { .gpios = (const short []) { ids, -1 } } gpios 51 drivers/regulator/gpio-regulator.c if (data->states[ptr].gpios == data->state) gpios 68 drivers/regulator/gpio-regulator.c target = data->states[ptr].gpios; gpios 107 drivers/regulator/gpio-regulator.c target = data->states[ptr].gpios; gpios 200 drivers/regulator/gpio-regulator.c &config->states[i].gpios); gpios 130 drivers/spi/spi-ppc4xx.c int *gpios; gpios 274 drivers/spi/spi-ppc4xx.c if (!hw->master->num_chipselect || hw->gpios[cs] == -EEXIST) gpios 281 drivers/spi/spi-ppc4xx.c gpio_set_value(hw->gpios[cs], cspol); gpios 367 drivers/spi/spi-ppc4xx.c if (gpio_is_valid(hw->gpios[i])) gpios 368 drivers/spi/spi-ppc4xx.c gpio_free(hw->gpios[i]); gpios 370 drivers/spi/spi-ppc4xx.c kfree(hw->gpios); gpios 371 drivers/spi/spi-ppc4xx.c hw->gpios = NULL; gpios 411 drivers/spi/spi-ppc4xx.c hw->gpios = kcalloc(num_gpios, sizeof(*hw->gpios), GFP_KERNEL); gpios 412 drivers/spi/spi-ppc4xx.c if (!hw->gpios) { gpios 422 drivers/spi/spi-ppc4xx.c hw->gpios[i] = gpio; gpios 78 drivers/staging/iio/resolver/ad2s1210.c static const struct ad2s1210_gpio gpios[] = { gpios 91 drivers/staging/iio/resolver/ad2s1210.c struct gpio_desc *gpios[5]; gpios 110 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_A0], ad2s1210_mode_vals[mode][0]); gpios 111 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_A1], ad2s1210_mode_vals[mode][1]); gpios 182 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_RES0], gpios 184 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_RES1], gpios 407 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); gpios 410 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); gpios 414 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); gpios 415 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); gpios 472 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 0); gpios 518 drivers/staging/iio/resolver/ad2s1210.c gpiod_set_value(st->gpios[AD2S1210_SAMPLE], 1); gpios 636 drivers/staging/iio/resolver/ad2s1210.c for (i = 0; i < ARRAY_SIZE(gpios); i++) { gpios 637 drivers/staging/iio/resolver/ad2s1210.c st->gpios[i] = devm_gpiod_get(&spi->dev, gpios[i].name, gpios 638 drivers/staging/iio/resolver/ad2s1210.c gpios[i].flags); gpios 639 drivers/staging/iio/resolver/ad2s1210.c if (IS_ERR(st->gpios[i])) { gpios 640 drivers/staging/iio/resolver/ad2s1210.c ret = PTR_ERR(st->gpios[i]); gpios 643 drivers/staging/iio/resolver/ad2s1210.c gpios[i].name, ret); gpios 37 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c static struct gpio_desc *gpios[5]; gpios 46 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name, gpios 48 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c if (IS_ERR(gpios[i])) { gpios 49 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c ret = PTR_ERR(gpios[i]); gpios 75 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_direction_input(gpios[OLPC_DCON_STAT0]); gpios 76 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_direction_input(gpios[OLPC_DCON_STAT1]); gpios 77 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_direction_input(gpios[OLPC_DCON_IRQ]); gpios 78 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_direction_input(gpios[OLPC_DCON_BLANK]); gpios 79 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_direction_output(gpios[OLPC_DCON_LOAD], gpios 182 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c gpiod_set_value(gpios[OLPC_DCON_LOAD], val); gpios 187 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c *status = gpiod_get_value(gpios[OLPC_DCON_STAT0]); gpios 188 drivers/staging/olpc_dcon/olpc_dcon_xo_1.c *status |= gpiod_get_value(gpios[OLPC_DCON_STAT1]) << 1; gpios 68 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c static struct gpio_desc *gpios[3]; gpios 99 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c gpios[i] = devm_gpiod_get(&dcon->client->dev, pin[i].name, gpios 101 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c if (IS_ERR(gpios[i])) { gpios 102 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c ret = PTR_ERR(gpios[i]); gpios 182 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c gpiod_set_value(gpios[OLPC_DCON_LOAD], val); gpios 191 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c *status = gpiod_get_value(gpios[OLPC_DCON_STAT0]); gpios 192 drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c *status |= gpiod_get_value(gpios[OLPC_DCON_STAT1]) << 1; gpios 220 drivers/tty/serial/8250/8250.h if (up->gpios) gpios 221 drivers/tty/serial/8250/8250.h mctrl_gpio_set(up->gpios, serial8250_MCR_to_TIOCM(value)); gpios 230 drivers/tty/serial/8250/8250.h if (up->gpios) { gpios 233 drivers/tty/serial/8250/8250.h mctrl_gpio = mctrl_gpio_get_outputs(up->gpios, &mctrl_gpio); gpios 985 drivers/tty/serial/8250/8250_core.c struct mctrl_gpios *gpios; gpios 1026 drivers/tty/serial/8250/8250_core.c gpios = mctrl_gpio_init(&uart->port, 0); gpios 1027 drivers/tty/serial/8250/8250_core.c if (IS_ERR(gpios)) { gpios 1028 drivers/tty/serial/8250/8250_core.c ret = PTR_ERR(gpios); gpios 1031 drivers/tty/serial/8250/8250_core.c uart->gpios = gpios; gpios 144 drivers/tty/serial/8250/8250_omap.c if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { gpios 459 drivers/tty/serial/8250/8250_omap.c !mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS) && gpios 460 drivers/tty/serial/8250/8250_omap.c !mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_CTS)) { gpios 1616 drivers/tty/serial/8250/8250_port.c mctrl_gpio_disable_ms(up->gpios); gpios 1630 drivers/tty/serial/8250/8250_port.c mctrl_gpio_enable_ms(up->gpios); gpios 1909 drivers/tty/serial/8250/8250_port.c if (up->gpios) gpios 1910 drivers/tty/serial/8250/8250_port.c return mctrl_gpio_get(up->gpios, &val); gpios 150 drivers/tty/serial/atmel_serial.c struct mctrl_gpios *gpios; gpios 516 drivers/tty/serial/atmel_serial.c mctrl_gpio_set(atmel_port->gpios, mctrl); gpios 550 drivers/tty/serial/atmel_serial.c return mctrl_gpio_get(atmel_port->gpios, &ret); gpios 666 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_CTS)) gpios 669 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DSR)) gpios 672 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_RI)) gpios 675 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DCD)) gpios 680 drivers/tty/serial/atmel_serial.c mctrl_gpio_enable_ms(atmel_port->gpios); gpios 699 drivers/tty/serial/atmel_serial.c mctrl_gpio_disable_ms(atmel_port->gpios); gpios 701 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_CTS)) gpios 704 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DSR)) gpios 707 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_RI)) gpios 710 drivers/tty/serial/atmel_serial.c if (!mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_DCD)) gpios 2246 drivers/tty/serial/atmel_serial.c !mctrl_gpio_to_gpiod(atmel_port->gpios, UART_GPIO_CTS)) { gpios 2891 drivers/tty/serial/atmel_serial.c atmel_port->gpios = mctrl_gpio_init(&atmel_port->uart, 0); gpios 2892 drivers/tty/serial/atmel_serial.c if (IS_ERR(atmel_port->gpios)) { gpios 2893 drivers/tty/serial/atmel_serial.c ret = PTR_ERR(atmel_port->gpios); gpios 63 drivers/tty/serial/clps711x.c struct mctrl_gpios *gpios; gpios 202 drivers/tty/serial/clps711x.c return mctrl_gpio_get(s->gpios, &result); gpios 209 drivers/tty/serial/clps711x.c mctrl_gpio_set(s->gpios, mctrl); gpios 488 drivers/tty/serial/clps711x.c s->gpios = mctrl_gpio_init_noauto(&pdev->dev, 0); gpios 489 drivers/tty/serial/clps711x.c if (IS_ERR(s->gpios)) gpios 490 drivers/tty/serial/clps711x.c return PTR_ERR(s->gpios); gpios 83 drivers/tty/serial/cpm_uart/cpm_uart.h int gpios[NUM_GPIOS]; gpios 95 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_RTS] >= 0) gpios 96 drivers/tty/serial/cpm_uart/cpm_uart_core.c gpio_set_value(pinfo->gpios[GPIO_RTS], !(mctrl & TIOCM_RTS)); gpios 98 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_DTR] >= 0) gpios 99 drivers/tty/serial/cpm_uart/cpm_uart_core.c gpio_set_value(pinfo->gpios[GPIO_DTR], !(mctrl & TIOCM_DTR)); gpios 108 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_CTS] >= 0) { gpios 109 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (gpio_get_value(pinfo->gpios[GPIO_CTS])) gpios 113 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_DSR] >= 0) { gpios 114 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (gpio_get_value(pinfo->gpios[GPIO_DSR])) gpios 118 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_DCD] >= 0) { gpios 119 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (gpio_get_value(pinfo->gpios[GPIO_DCD])) gpios 123 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (pinfo->gpios[GPIO_RI] >= 0) { gpios 124 drivers/tty/serial/cpm_uart/cpm_uart_core.c if (!gpio_get_value(pinfo->gpios[GPIO_RI])) gpios 1221 drivers/tty/serial/cpm_uart/cpm_uart_core.c pinfo->gpios[i] = -1; gpios 1241 drivers/tty/serial/cpm_uart/cpm_uart_core.c pinfo->gpios[i] = gpio; gpios 206 drivers/tty/serial/imx.c struct mctrl_gpios *gpios; gpios 392 drivers/tty/serial/imx.c mctrl_gpio_set(sport->gpios, sport->port.mctrl); gpios 402 drivers/tty/serial/imx.c mctrl_gpio_set(sport->gpios, sport->port.mctrl); gpios 490 drivers/tty/serial/imx.c mctrl_gpio_enable_ms(sport->gpios); gpios 977 drivers/tty/serial/imx.c mctrl_gpio_get(sport->gpios, &ret); gpios 1020 drivers/tty/serial/imx.c mctrl_gpio_set(sport->gpios, mctrl); gpios 1479 drivers/tty/serial/imx.c mctrl_gpio_disable_ms(sport->gpios); gpios 2265 drivers/tty/serial/imx.c sport->gpios = mctrl_gpio_init(&sport->port, 0); gpios 2266 drivers/tty/serial/imx.c if (IS_ERR(sport->gpios)) gpios 2267 drivers/tty/serial/imx.c return PTR_ERR(sport->gpios); gpios 445 drivers/tty/serial/mxs-auart.c struct mctrl_gpios *gpios; gpios 751 drivers/tty/serial/mxs-auart.c mctrl_gpio_set(s->gpios, mctrl); gpios 786 drivers/tty/serial/mxs-auart.c return mctrl_gpio_get(s->gpios, &mctrl); gpios 972 drivers/tty/serial/mxs-auart.c #define RTS_AT_AUART() !mctrl_gpio_to_gpiod(s->gpios, UART_GPIO_RTS) gpios 973 drivers/tty/serial/mxs-auart.c #define CTS_AT_AUART() !mctrl_gpio_to_gpiod(s->gpios, UART_GPIO_CTS) gpios 1148 drivers/tty/serial/mxs-auart.c mctrl_gpio_get(s->gpios, &mctrl_temp)); gpios 1244 drivers/tty/serial/mxs-auart.c mctrl_gpio_get(s->gpios, &s->mctrl_prev); gpios 1583 drivers/tty/serial/mxs-auart.c s->gpios = mctrl_gpio_init_noauto(dev, 0); gpios 1584 drivers/tty/serial/mxs-auart.c if (IS_ERR(s->gpios)) gpios 1585 drivers/tty/serial/mxs-auart.c return PTR_ERR(s->gpios); gpios 1596 drivers/tty/serial/mxs-auart.c gpiod = mctrl_gpio_to_gpiod(s->gpios, i); gpios 82 drivers/tty/serial/sa1100.c struct mctrl_gpios *gpios; gpios 181 drivers/tty/serial/sa1100.c mctrl_gpio_enable_ms(sport->gpios); gpios 334 drivers/tty/serial/sa1100.c mctrl_gpio_get(sport->gpios, &ret); gpios 344 drivers/tty/serial/sa1100.c mctrl_gpio_set(sport->gpios, mctrl); gpios 867 drivers/tty/serial/sa1100.c sport->gpios = mctrl_gpio_init_noauto(sport->port.dev, 0); gpios 868 drivers/tty/serial/sa1100.c if (IS_ERR(sport->gpios)) { gpios 869 drivers/tty/serial/sa1100.c int err = PTR_ERR(sport->gpios); gpios 877 drivers/tty/serial/sa1100.c sport->gpios = NULL; gpios 45 drivers/tty/serial/serial_mctrl_gpio.c void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) gpios 52 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 56 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) { gpios 57 drivers/tty/serial/serial_mctrl_gpio.c desc_array[count] = gpios->gpio[i]; gpios 66 drivers/tty/serial/serial_mctrl_gpio.c struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, gpios 69 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 72 drivers/tty/serial/serial_mctrl_gpio.c return gpios->gpio[gidx]; gpios 76 drivers/tty/serial/serial_mctrl_gpio.c unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) gpios 80 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 84 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->gpio[i] && !mctrl_gpio_flags_is_dir_out(i)) { gpios 85 drivers/tty/serial/serial_mctrl_gpio.c if (gpiod_get_value(gpios->gpio[i])) gpios 97 drivers/tty/serial/serial_mctrl_gpio.c mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) gpios 101 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 105 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->gpio[i] && mctrl_gpio_flags_is_dir_out(i)) { gpios 106 drivers/tty/serial/serial_mctrl_gpio.c if (gpiod_get_value(gpios->gpio[i])) gpios 119 drivers/tty/serial/serial_mctrl_gpio.c struct mctrl_gpios *gpios; gpios 122 drivers/tty/serial/serial_mctrl_gpio.c gpios = devm_kzalloc(dev, sizeof(*gpios), GFP_KERNEL); gpios 123 drivers/tty/serial/serial_mctrl_gpio.c if (!gpios) gpios 141 drivers/tty/serial/serial_mctrl_gpio.c gpios->gpio[i] = gpios 147 drivers/tty/serial/serial_mctrl_gpio.c if (IS_ERR(gpios->gpio[i])) gpios 148 drivers/tty/serial/serial_mctrl_gpio.c return ERR_CAST(gpios->gpio[i]); gpios 151 drivers/tty/serial/serial_mctrl_gpio.c return gpios; gpios 158 drivers/tty/serial/serial_mctrl_gpio.c struct mctrl_gpios *gpios = context; gpios 159 drivers/tty/serial/serial_mctrl_gpio.c struct uart_port *port = gpios->port; gpios 160 drivers/tty/serial/serial_mctrl_gpio.c u32 mctrl = gpios->mctrl_prev; gpios 164 drivers/tty/serial/serial_mctrl_gpio.c mctrl_gpio_get(gpios, &mctrl); gpios 168 drivers/tty/serial/serial_mctrl_gpio.c mctrl_diff = mctrl ^ gpios->mctrl_prev; gpios 169 drivers/tty/serial/serial_mctrl_gpio.c gpios->mctrl_prev = mctrl; gpios 194 drivers/tty/serial/serial_mctrl_gpio.c struct mctrl_gpios *gpios; gpios 197 drivers/tty/serial/serial_mctrl_gpio.c gpios = mctrl_gpio_init_noauto(port->dev, idx); gpios 198 drivers/tty/serial/serial_mctrl_gpio.c if (IS_ERR(gpios)) gpios 199 drivers/tty/serial/serial_mctrl_gpio.c return gpios; gpios 201 drivers/tty/serial/serial_mctrl_gpio.c gpios->port = port; gpios 206 drivers/tty/serial/serial_mctrl_gpio.c if (!gpios->gpio[i] || mctrl_gpio_flags_is_dir_out(i)) gpios 209 drivers/tty/serial/serial_mctrl_gpio.c ret = gpiod_to_irq(gpios->gpio[i]); gpios 216 drivers/tty/serial/serial_mctrl_gpio.c gpios->irq[i] = ret; gpios 219 drivers/tty/serial/serial_mctrl_gpio.c irq_set_status_flags(gpios->irq[i], IRQ_NOAUTOEN); gpios 221 drivers/tty/serial/serial_mctrl_gpio.c ret = devm_request_irq(port->dev, gpios->irq[i], gpios 224 drivers/tty/serial/serial_mctrl_gpio.c gpios); gpios 234 drivers/tty/serial/serial_mctrl_gpio.c return gpios; gpios 238 drivers/tty/serial/serial_mctrl_gpio.c void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios) gpios 242 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 246 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->irq[i]) gpios 247 drivers/tty/serial/serial_mctrl_gpio.c devm_free_irq(gpios->port->dev, gpios->irq[i], gpios); gpios 249 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->gpio[i]) gpios 250 drivers/tty/serial/serial_mctrl_gpio.c devm_gpiod_put(dev, gpios->gpio[i]); gpios 252 drivers/tty/serial/serial_mctrl_gpio.c devm_kfree(dev, gpios); gpios 256 drivers/tty/serial/serial_mctrl_gpio.c void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios) gpios 260 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 264 drivers/tty/serial/serial_mctrl_gpio.c if (gpios->mctrl_on) gpios 267 drivers/tty/serial/serial_mctrl_gpio.c gpios->mctrl_on = true; gpios 270 drivers/tty/serial/serial_mctrl_gpio.c mctrl_gpio_get(gpios, &gpios->mctrl_prev); gpios 273 drivers/tty/serial/serial_mctrl_gpio.c if (!gpios->irq[i]) gpios 276 drivers/tty/serial/serial_mctrl_gpio.c enable_irq(gpios->irq[i]); gpios 281 drivers/tty/serial/serial_mctrl_gpio.c void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios) gpios 285 drivers/tty/serial/serial_mctrl_gpio.c if (gpios == NULL) gpios 288 drivers/tty/serial/serial_mctrl_gpio.c if (!gpios->mctrl_on) gpios 291 drivers/tty/serial/serial_mctrl_gpio.c gpios->mctrl_on = false; gpios 294 drivers/tty/serial/serial_mctrl_gpio.c if (!gpios->irq[i]) gpios 297 drivers/tty/serial/serial_mctrl_gpio.c disable_irq(gpios->irq[i]); gpios 38 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl); gpios 44 drivers/tty/serial/serial_mctrl_gpio.h unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl); gpios 51 drivers/tty/serial/serial_mctrl_gpio.h mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl); gpios 56 drivers/tty/serial/serial_mctrl_gpio.h struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, gpios 82 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios); gpios 87 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios); gpios 92 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios); gpios 97 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl) gpios 102 drivers/tty/serial/serial_mctrl_gpio.h unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl) gpios 108 drivers/tty/serial/serial_mctrl_gpio.h mctrl_gpio_get_outputs(struct mctrl_gpios *gpios, unsigned int *mctrl) gpios 114 drivers/tty/serial/serial_mctrl_gpio.h struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios, gpios 133 drivers/tty/serial/serial_mctrl_gpio.h void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios) gpios 137 drivers/tty/serial/serial_mctrl_gpio.h static inline void mctrl_gpio_enable_ms(struct mctrl_gpios *gpios) gpios 141 drivers/tty/serial/serial_mctrl_gpio.h static inline void mctrl_gpio_disable_ms(struct mctrl_gpios *gpios) gpios 127 drivers/tty/serial/sh-sci.c struct mctrl_gpios *gpios; gpios 2066 drivers/tty/serial/sh-sci.c mctrl_gpio_set(s->gpios, mctrl); gpios 2097 drivers/tty/serial/sh-sci.c struct mctrl_gpios *gpios = s->gpios; gpios 2100 drivers/tty/serial/sh-sci.c mctrl_gpio_get(gpios, &mctrl); gpios 2109 drivers/tty/serial/sh-sci.c } else if (!mctrl_gpio_to_gpiod(gpios, UART_GPIO_CTS)) { gpios 2112 drivers/tty/serial/sh-sci.c if (!mctrl_gpio_to_gpiod(gpios, UART_GPIO_DSR)) gpios 2114 drivers/tty/serial/sh-sci.c if (!mctrl_gpio_to_gpiod(gpios, UART_GPIO_DCD)) gpios 2122 drivers/tty/serial/sh-sci.c mctrl_gpio_enable_ms(to_sci_port(port)->gpios); gpios 2183 drivers/tty/serial/sh-sci.c mctrl_gpio_disable_ms(to_sci_port(port)->gpios); gpios 3294 drivers/tty/serial/sh-sci.c sciport->gpios = mctrl_gpio_init(&sciport->port, 0); gpios 3295 drivers/tty/serial/sh-sci.c if (IS_ERR(sciport->gpios)) gpios 3296 drivers/tty/serial/sh-sci.c return PTR_ERR(sciport->gpios); gpios 3299 drivers/tty/serial/sh-sci.c if (mctrl_gpio_to_gpiod(sciport->gpios, UART_GPIO_CTS) || gpios 3300 drivers/tty/serial/sh-sci.c mctrl_gpio_to_gpiod(sciport->gpios, UART_GPIO_RTS)) { gpios 153 drivers/usb/host/fhci-hcd.c if (!gpio_get_value(fhci->gpios[GPIO_USBOE])) gpios 157 drivers/usb/host/fhci-hcd.c if (gpio_get_value(fhci->gpios[GPIO_USBRP])) gpios 161 drivers/usb/host/fhci-hcd.c if (gpio_get_value(fhci->gpios[GPIO_USBRN])) gpios 637 drivers/usb/host/fhci-hcd.c fhci->gpios[i] = gpio; gpios 770 drivers/usb/host/fhci-hcd.c if (gpio_is_valid(fhci->gpios[i])) gpios 771 drivers/usb/host/fhci-hcd.c gpio_free(fhci->gpios[i]); gpios 793 drivers/usb/host/fhci-hcd.c if (!gpio_is_valid(fhci->gpios[i])) gpios 795 drivers/usb/host/fhci-hcd.c gpio_free(fhci->gpios[i]); gpios 41 drivers/usb/host/fhci-hub.c int gpio = fhci->gpios[gpio_nr]; gpios 132 drivers/usb/host/fhci-hub.c gpio_direction_output(fhci->gpios[GPIO_USBOE], 0); gpios 133 drivers/usb/host/fhci-hub.c gpio_direction_output(fhci->gpios[GPIO_USBTP], 0); gpios 134 drivers/usb/host/fhci-hub.c gpio_direction_output(fhci->gpios[GPIO_USBTN], 0); gpios 245 drivers/usb/host/fhci.h int gpios[NUM_GPIOS]; gpios 34 drivers/watchdog/mena21_wdt.c struct gpio_desc *gpios[NUM_GPIOS]; gpios 46 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; gpios 47 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; gpios 48 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; gpios 57 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); gpios 66 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); gpios 75 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 0); gpios 77 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 1); gpios 99 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_FAST], 1); gpios 101 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_FAST], 0); gpios 156 drivers/watchdog/mena21_wdt.c drv->gpios[i] = devm_gpiod_get_index(dev, NULL, i, gflags); gpios 157 drivers/watchdog/mena21_wdt.c if (IS_ERR(drv->gpios[i])) gpios 158 drivers/watchdog/mena21_wdt.c return PTR_ERR(drv->gpios[i]); gpios 160 drivers/watchdog/mena21_wdt.c gpiod_set_consumer_name(drv->gpios[i], "MEN A21 Watchdog"); gpios 169 drivers/watchdog/mena21_wdt.c val = gpiod_get_value(drv->gpios[i]); gpios 170 drivers/watchdog/mena21_wdt.c gpiod_direction_output(drv->gpios[i], val); gpios 205 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); gpios 641 include/linux/gpio/consumer.h const struct acpi_gpio_mapping *gpios); gpios 645 include/linux/gpio/consumer.h const struct acpi_gpio_mapping *gpios); gpios 653 include/linux/gpio/consumer.h const struct acpi_gpio_mapping *gpios) gpios 660 include/linux/gpio/consumer.h const struct acpi_gpio_mapping *gpios) gpios 39 include/linux/regulator/gpio-regulator.h int gpios; gpios 113 include/linux/serial_8250.h struct mctrl_gpios *gpios; gpios 510 include/sound/soc.h struct snd_soc_jack_gpio *gpios); gpios 513 include/sound/soc.h int count, struct snd_soc_jack_gpio *gpios); gpios 515 include/sound/soc.h struct snd_soc_jack_gpio *gpios); gpios 518 include/sound/soc.h struct snd_soc_jack_gpio *gpios) gpios 526 include/sound/soc.h struct snd_soc_jack_gpio *gpios) gpios 532 include/sound/soc.h struct snd_soc_jack_gpio *gpios) gpios 21 include/sound/wm1250-ev1.h int gpios[WM1250_EV1_NUM_GPIOS]; gpios 27 sound/soc/codecs/wm1250-ev1.c struct gpio gpios[WM1250_EV1_NUM_GPIOS]; gpios 37 sound/soc/codecs/wm1250-ev1.c ena = wm1250->gpios[WM1250_EV1_GPIO_CLK_ENA].gpio; gpios 83 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, gpios 85 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, gpios 89 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, gpios 91 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, gpios 95 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, gpios 97 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, gpios 101 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].gpio, gpios 103 sound/soc/codecs/wm1250-ev1.c gpio_set_value(wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].gpio, gpios 165 sound/soc/codecs/wm1250-ev1.c for (i = 0; i < ARRAY_SIZE(wm1250->gpios); i++) { gpios 166 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[i].gpio = pdata->gpios[i]; gpios 167 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[i].label = wm1250_gpio_names[i]; gpios 168 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[i].flags = GPIOF_OUT_INIT_LOW; gpios 170 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL0].flags = GPIOF_OUT_INIT_HIGH; gpios 171 sound/soc/codecs/wm1250-ev1.c wm1250->gpios[WM1250_EV1_GPIO_CLK_SEL1].flags = GPIOF_OUT_INIT_HIGH; gpios 173 sound/soc/codecs/wm1250-ev1.c ret = gpio_request_array(wm1250->gpios, ARRAY_SIZE(wm1250->gpios)); gpios 192 sound/soc/codecs/wm1250-ev1.c gpio_free_array(wm1250->gpios, ARRAY_SIZE(wm1250->gpios)); gpios 23 sound/soc/soc-jack.c struct snd_soc_jack_gpio *gpios; gpios 319 sound/soc/soc-jack.c struct snd_soc_jack_gpio *gpios) gpios 324 sound/soc/soc-jack.c gpiod_unexport(gpios[i].desc); gpios 325 sound/soc/soc-jack.c unregister_pm_notifier(&gpios[i].pm_notifier); gpios 326 sound/soc/soc-jack.c free_irq(gpiod_to_irq(gpios[i].desc), &gpios[i]); gpios 327 sound/soc/soc-jack.c cancel_delayed_work_sync(&gpios[i].work); gpios 328 sound/soc/soc-jack.c gpiod_put(gpios[i].desc); gpios 329 sound/soc/soc-jack.c gpios[i].jack = NULL; gpios 337 sound/soc/soc-jack.c jack_free_gpios(tbl->jack, tbl->count, tbl->gpios); gpios 351 sound/soc/soc-jack.c struct snd_soc_jack_gpio *gpios) gpios 361 sound/soc/soc-jack.c tbl->gpios = gpios; gpios 364 sound/soc/soc-jack.c if (!gpios[i].name) { gpios 371 sound/soc/soc-jack.c if (gpios[i].desc) { gpios 374 sound/soc/soc-jack.c } else if (gpios[i].gpiod_dev) { gpios 376 sound/soc/soc-jack.c gpios[i].desc = gpiod_get_index(gpios[i].gpiod_dev, gpios 377 sound/soc/soc-jack.c gpios[i].name, gpios 378 sound/soc/soc-jack.c gpios[i].idx, GPIOD_IN); gpios 379 sound/soc/soc-jack.c if (IS_ERR(gpios[i].desc)) { gpios 380 sound/soc/soc-jack.c ret = PTR_ERR(gpios[i].desc); gpios 381 sound/soc/soc-jack.c dev_err(gpios[i].gpiod_dev, gpios 388 sound/soc/soc-jack.c if (!gpio_is_valid(gpios[i].gpio)) { gpios 391 sound/soc/soc-jack.c gpios[i].gpio); gpios 396 sound/soc/soc-jack.c ret = gpio_request_one(gpios[i].gpio, GPIOF_IN, gpios 397 sound/soc/soc-jack.c gpios[i].name); gpios 401 sound/soc/soc-jack.c gpios[i].desc = gpio_to_desc(gpios[i].gpio); gpios 404 sound/soc/soc-jack.c INIT_DELAYED_WORK(&gpios[i].work, gpio_work); gpios 405 sound/soc/soc-jack.c gpios[i].jack = jack; gpios 407 sound/soc/soc-jack.c ret = request_any_context_irq(gpiod_to_irq(gpios[i].desc), gpios 411 sound/soc/soc-jack.c gpios[i].name, gpios 412 sound/soc/soc-jack.c &gpios[i]); gpios 416 sound/soc/soc-jack.c if (gpios[i].wake) { gpios 417 sound/soc/soc-jack.c ret = irq_set_irq_wake(gpiod_to_irq(gpios[i].desc), 1); gpios 428 sound/soc/soc-jack.c gpios[i].pm_notifier.notifier_call = snd_soc_jack_pm_notifier; gpios 429 sound/soc/soc-jack.c register_pm_notifier(&gpios[i].pm_notifier); gpios 432 sound/soc/soc-jack.c gpiod_export(gpios[i].desc, false); gpios 435 sound/soc/soc-jack.c schedule_delayed_work(&gpios[i].work, gpios 436 sound/soc/soc-jack.c msecs_to_jiffies(gpios[i].debounce_time)); gpios 443 sound/soc/soc-jack.c gpio_free(gpios[i].gpio); gpios 445 sound/soc/soc-jack.c jack_free_gpios(jack, i, gpios); gpios 465 sound/soc/soc-jack.c int count, struct snd_soc_jack_gpio *gpios) gpios 470 sound/soc/soc-jack.c gpios[i].gpiod_dev = gpiod_dev; gpios 472 sound/soc/soc-jack.c return snd_soc_jack_add_gpios(jack, count, gpios); gpios 486 sound/soc/soc-jack.c struct snd_soc_jack_gpio *gpios) gpios 488 sound/soc/soc-jack.c jack_free_gpios(jack, count, gpios);