gpiod 85 arch/arm/mach-omap1/ams-delta-fiq.c struct gpio_desc *gpiod, *data = NULL, *clk = NULL; gpiod 101 arch/arm/mach-omap1/ams-delta-fiq.c gpiod = gpiochip_request_own_desc(chip, i, pin_name[i], gpiod 103 arch/arm/mach-omap1/ams-delta-fiq.c if (IS_ERR(gpiod)) { gpiod 105 arch/arm/mach-omap1/ams-delta-fiq.c __func__, i, PTR_ERR(gpiod)); gpiod 109 arch/arm/mach-omap1/ams-delta-fiq.c irq_data[i] = irq_get_irq_data(gpiod_to_irq(gpiod)); gpiod 118 arch/arm/mach-omap1/ams-delta-fiq.c data = gpiod; gpiod 122 arch/arm/mach-omap1/ams-delta-fiq.c clk = gpiod; gpiod 126 arch/arm/mach-omap1/ams-delta-fiq.c gpiochip_free_own_desc(gpiod); gpiod 609 arch/arm/mach-omap1/board-ams-delta.c struct gpio_desc *gpiod; gpiod 611 arch/arm/mach-omap1/board-ams-delta.c gpiod = gpiochip_request_own_desc(chip, AMS_DELTA_GPIO_PIN_MODEM_IRQ, gpiod 614 arch/arm/mach-omap1/board-ams-delta.c if (IS_ERR(gpiod)) { gpiod 616 arch/arm/mach-omap1/board-ams-delta.c PTR_ERR(gpiod)); gpiod 618 arch/arm/mach-omap1/board-ams-delta.c ams_delta_modem_ports[0].irq = gpiod_to_irq(gpiod); gpiod 1257 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_gpio_domain_data *gpiod = d->host_data; gpiod 1261 arch/mips/cavium-octeon/octeon-irq.c line = (hw + gpiod->base_hwirq) >> 6; gpiod 1262 arch/mips/cavium-octeon/octeon-irq.c bit = (hw + gpiod->base_hwirq) & 63; gpiod 1573 arch/mips/cavium-octeon/octeon-irq.c struct octeon_irq_gpio_domain_data *gpiod; gpiod 1611 arch/mips/cavium-octeon/octeon-irq.c gpiod = kzalloc(sizeof(*gpiod), GFP_KERNEL); gpiod 1612 arch/mips/cavium-octeon/octeon-irq.c if (gpiod) { gpiod 1614 arch/mips/cavium-octeon/octeon-irq.c gpiod->base_hwirq = base_hwirq; gpiod 1616 arch/mips/cavium-octeon/octeon-irq.c gpio_node, 16, &octeon_irq_domain_gpio_ops, gpiod); gpiod 26 arch/mips/include/asm/mach-rc32434/gpio.h u32 gpiod; /* GPIO Data Register gpiod 105 drivers/ata/pata_rb532_cf.c struct gpio_desc *gpiod; gpiod 123 drivers/ata/pata_rb532_cf.c gpiod = devm_gpiod_get(&pdev->dev, NULL, GPIOD_IN); gpiod 124 drivers/ata/pata_rb532_cf.c if (IS_ERR(gpiod)) { gpiod 126 drivers/ata/pata_rb532_cf.c return PTR_ERR(gpiod); gpiod 128 drivers/ata/pata_rb532_cf.c gpiod_set_consumer_name(gpiod, DRV_NAME); gpiod 140 drivers/ata/pata_rb532_cf.c info->gpio_line = gpiod; gpiod 186 drivers/ata/sata_highbank.c struct gpio_desc *gpiod; gpiod 188 drivers/ata/sata_highbank.c gpiod = devm_gpiod_get_index(dev, "calxeda,sgpio", i, gpiod 190 drivers/ata/sata_highbank.c if (IS_ERR(gpiod)) { gpiod 194 drivers/ata/sata_highbank.c gpiod_set_consumer_name(gpiod, "CX SGPIO"); gpiod 196 drivers/ata/sata_highbank.c pdata->sgpio_gpiod[i] = gpiod; gpiod 35 drivers/clk/clk-gpio.c gpiod_set_value(clk->gpiod, 1); gpiod 44 drivers/clk/clk-gpio.c gpiod_set_value(clk->gpiod, 0); gpiod 51 drivers/clk/clk-gpio.c return gpiod_get_value(clk->gpiod); gpiod 65 drivers/clk/clk-gpio.c gpiod_set_value_cansleep(clk->gpiod, 1); gpiod 74 drivers/clk/clk-gpio.c gpiod_set_value_cansleep(clk->gpiod, 0); gpiod 81 drivers/clk/clk-gpio.c return gpiod_get_value_cansleep(clk->gpiod); gpiod 102 drivers/clk/clk-gpio.c return gpiod_get_value_cansleep(clk->gpiod); gpiod 109 drivers/clk/clk-gpio.c gpiod_set_value_cansleep(clk->gpiod, index); gpiod 122 drivers/clk/clk-gpio.c const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, gpiod 144 drivers/clk/clk-gpio.c clk_gpio->gpiod = gpiod; gpiod 173 drivers/clk/clk-gpio.c const char *parent_name, struct gpio_desc *gpiod, gpiod 178 drivers/clk/clk-gpio.c if (gpiod_cansleep(gpiod)) gpiod 185 drivers/clk/clk-gpio.c (parent_name ? 1 : 0), gpiod, flags, ops); gpiod 190 drivers/clk/clk-gpio.c const char *parent_name, struct gpio_desc *gpiod, gpiod 195 drivers/clk/clk-gpio.c hw = clk_hw_register_gpio_gate(dev, name, parent_name, gpiod, flags); gpiod 212 drivers/clk/clk-gpio.c const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, gpiod 221 drivers/clk/clk-gpio.c gpiod, flags, &clk_gpio_mux_ops); gpiod 226 drivers/clk/clk-gpio.c const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, gpiod 232 drivers/clk/clk-gpio.c gpiod, flags); gpiod 244 drivers/clk/clk-gpio.c struct gpio_desc *gpiod; gpiod 264 drivers/clk/clk-gpio.c gpiod = devm_gpiod_get(&pdev->dev, gpio_name, GPIOD_OUT_LOW); gpiod 265 drivers/clk/clk-gpio.c if (IS_ERR(gpiod)) { gpiod 266 drivers/clk/clk-gpio.c ret = PTR_ERR(gpiod); gpiod 279 drivers/clk/clk-gpio.c parent_names, num_parents, gpiod, 0); gpiod 282 drivers/clk/clk-gpio.c parent_names ? parent_names[0] : NULL, gpiod, gpiod 38 drivers/extcon/extcon-gpio.c struct gpio_desc *gpiod; gpiod 51 drivers/extcon/extcon-gpio.c state = gpiod_get_value_cansleep(data->gpiod); gpiod 86 drivers/extcon/extcon-gpio.c data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); gpiod 87 drivers/extcon/extcon-gpio.c if (IS_ERR(data->gpiod)) gpiod 88 drivers/extcon/extcon-gpio.c return PTR_ERR(data->gpiod); gpiod 89 drivers/extcon/extcon-gpio.c irq = gpiod_to_irq(data->gpiod); gpiod 99 drivers/extcon/extcon-gpio.c if (gpiod_is_active_low(data->gpiod)) gpiod 58 drivers/extcon/extcon-max3355.c struct gpio_desc *gpiod; gpiod 66 drivers/extcon/extcon-max3355.c gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); gpiod 67 drivers/extcon/extcon-max3355.c if (IS_ERR(gpiod)) { gpiod 69 drivers/extcon/extcon-max3355.c return PTR_ERR(gpiod); gpiod 71 drivers/extcon/extcon-max3355.c data->id_gpiod = gpiod; gpiod 73 drivers/extcon/extcon-max3355.c gpiod = devm_gpiod_get(&pdev->dev, "maxim,shdn", GPIOD_OUT_HIGH); gpiod 74 drivers/extcon/extcon-max3355.c if (IS_ERR(gpiod)) { gpiod 76 drivers/extcon/extcon-max3355.c return PTR_ERR(gpiod); gpiod 78 drivers/extcon/extcon-max3355.c data->shdn_gpiod = gpiod; gpiod 99 drivers/gpio/gpio-mvebu.c struct gpio_desc *gpiod; gpiod 618 drivers/gpio/gpio-mvebu.c if (mvpwm->gpiod) { gpiod 630 drivers/gpio/gpio-mvebu.c mvpwm->gpiod = desc; gpiod 643 drivers/gpio/gpio-mvebu.c gpiochip_free_own_desc(mvpwm->gpiod); gpiod 644 drivers/gpio/gpio-mvebu.c mvpwm->gpiod = NULL; gpiod 554 drivers/gpu/drm/msm/hdmi/hdmi.c struct gpio_desc *gpiod; gpiod 561 drivers/gpu/drm/msm/hdmi/hdmi.c gpiod = devm_gpiod_get_optional(dev, name, GPIOD_ASIS); gpiod 563 drivers/gpu/drm/msm/hdmi/hdmi.c if (IS_ERR(gpiod)) gpiod 564 drivers/gpu/drm/msm/hdmi/hdmi.c return PTR_ERR(gpiod); gpiod 565 drivers/gpu/drm/msm/hdmi/hdmi.c if (!gpiod) { gpiod 575 drivers/gpu/drm/msm/hdmi/hdmi.c gpiod = devm_gpiod_get_optional(dev, name3, GPIOD_ASIS); gpiod 576 drivers/gpu/drm/msm/hdmi/hdmi.c if (IS_ERR(gpiod)) gpiod 577 drivers/gpu/drm/msm/hdmi/hdmi.c return PTR_ERR(gpiod); gpiod 578 drivers/gpu/drm/msm/hdmi/hdmi.c if (!gpiod) gpiod 581 drivers/gpu/drm/msm/hdmi/hdmi.c hdmi_cfg->gpios[i].gpiod = gpiod; gpiod 582 drivers/gpu/drm/msm/hdmi/hdmi.c if (gpiod) gpiod 583 drivers/gpu/drm/msm/hdmi/hdmi.c gpiod_set_consumer_name(gpiod, msm_hdmi_gpio_pdata[i].label); gpiod 26 drivers/gpu/drm/msm/hdmi/hdmi.h struct gpio_desc *gpiod; gpiod 79 drivers/gpu/drm/msm/hdmi/hdmi_connector.c if (gpio.gpiod) { gpiod 81 drivers/gpu/drm/msm/hdmi/hdmi_connector.c gpiod_direction_output(gpio.gpiod, gpiod 84 drivers/gpu/drm/msm/hdmi/hdmi_connector.c gpiod_direction_input(gpio.gpiod); gpiod 85 drivers/gpu/drm/msm/hdmi/hdmi_connector.c gpiod_set_value_cansleep(gpio.gpiod, gpiod 96 drivers/gpu/drm/msm/hdmi/hdmi_connector.c if (!gpio.gpiod) gpiod 102 drivers/gpu/drm/msm/hdmi/hdmi_connector.c gpiod_set_value_cansleep(gpio.gpiod, value); gpiod 297 drivers/gpu/drm/msm/hdmi/hdmi_connector.c return gpiod_get_value(hpd_gpio.gpiod) ? gpiod 316 drivers/gpu/drm/msm/hdmi/hdmi_connector.c if (!hpd_gpio.gpiod) gpiod 165 drivers/i2c/muxes/i2c-mux-gpio.c struct gpio_desc *gpiod; gpiod 172 drivers/i2c/muxes/i2c-mux-gpio.c gpiod = devm_gpiod_get_index(&pdev->dev, "mux", i, flag); gpiod 173 drivers/i2c/muxes/i2c-mux-gpio.c if (IS_ERR(gpiod)) { gpiod 174 drivers/i2c/muxes/i2c-mux-gpio.c ret = PTR_ERR(gpiod); gpiod 178 drivers/i2c/muxes/i2c-mux-gpio.c mux->gpios[i] = gpiod; gpiod 184 drivers/i2c/muxes/i2c-mux-gpio.c gpio_dev = &gpiod->gdev->dev; gpiod 74 drivers/iio/humidity/dht11.c struct gpio_desc *gpiod; gpiod 181 drivers/iio/humidity/dht11.c gpiod_get_value(dht11->gpiod); gpiod 219 drivers/iio/humidity/dht11.c ret = gpiod_direction_output(dht11->gpiod, 0); gpiod 224 drivers/iio/humidity/dht11.c ret = gpiod_direction_input(dht11->gpiod); gpiod 307 drivers/iio/humidity/dht11.c dht11->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); gpiod 308 drivers/iio/humidity/dht11.c if (IS_ERR(dht11->gpiod)) gpiod 309 drivers/iio/humidity/dht11.c return PTR_ERR(dht11->gpiod); gpiod 311 drivers/iio/humidity/dht11.c dht11->irq = gpiod_to_irq(dht11->gpiod); gpiod 313 drivers/iio/humidity/dht11.c dev_err(dev, "GPIO %d has no interrupt\n", desc_to_gpio(dht11->gpiod)); gpiod 992 drivers/iio/pressure/bmp280-core.c struct gpio_desc *gpiod; gpiod 1061 drivers/iio/pressure/bmp280-core.c gpiod = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); gpiod 1063 drivers/iio/pressure/bmp280-core.c if (!IS_ERR(gpiod)) { gpiod 1065 drivers/iio/pressure/bmp280-core.c gpiod_set_value(gpiod, 0); gpiod 35 drivers/input/keyboard/gpio_keys.c struct gpio_desc *gpiod; gpiod 146 drivers/input/keyboard/gpio_keys.c if (bdata->gpiod) gpiod 363 drivers/input/keyboard/gpio_keys.c state = gpiod_get_value_cansleep(bdata->gpiod); gpiod 471 drivers/input/keyboard/gpio_keys.c if (bdata->gpiod) gpiod 497 drivers/input/keyboard/gpio_keys.c bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, gpiod 501 drivers/input/keyboard/gpio_keys.c if (IS_ERR(bdata->gpiod)) { gpiod 502 drivers/input/keyboard/gpio_keys.c error = PTR_ERR(bdata->gpiod); gpiod 508 drivers/input/keyboard/gpio_keys.c bdata->gpiod = NULL; gpiod 533 drivers/input/keyboard/gpio_keys.c bdata->gpiod = gpio_to_desc(button->gpio); gpiod 534 drivers/input/keyboard/gpio_keys.c if (!bdata->gpiod) gpiod 538 drivers/input/keyboard/gpio_keys.c if (bdata->gpiod) { gpiod 539 drivers/input/keyboard/gpio_keys.c bool active_low = gpiod_is_active_low(bdata->gpiod); gpiod 542 drivers/input/keyboard/gpio_keys.c error = gpiod_set_debounce(bdata->gpiod, gpiod 553 drivers/input/keyboard/gpio_keys.c irq = gpiod_to_irq(bdata->gpiod); gpiod 652 drivers/input/keyboard/gpio_keys.c if (bdata->gpiod) gpiod 30 drivers/input/keyboard/gpio_keys_polled.c struct gpio_desc *gpiod; gpiod 75 drivers/input/keyboard/gpio_keys_polled.c state = gpiod_get_value_cansleep(bdata->gpiod); gpiod 303 drivers/input/keyboard/gpio_keys_polled.c bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, gpiod 307 drivers/input/keyboard/gpio_keys_polled.c if (IS_ERR(bdata->gpiod)) { gpiod 308 drivers/input/keyboard/gpio_keys_polled.c error = PTR_ERR(bdata->gpiod); gpiod 335 drivers/input/keyboard/gpio_keys_polled.c bdata->gpiod = gpio_to_desc(button->gpio); gpiod 336 drivers/input/keyboard/gpio_keys_polled.c if (!bdata->gpiod) { gpiod 572 drivers/input/touchscreen/goodix.c struct gpio_desc *gpiod; gpiod 597 drivers/input/touchscreen/goodix.c gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_INT_NAME, GPIOD_IN); gpiod 598 drivers/input/touchscreen/goodix.c if (IS_ERR(gpiod)) { gpiod 599 drivers/input/touchscreen/goodix.c error = PTR_ERR(gpiod); gpiod 606 drivers/input/touchscreen/goodix.c ts->gpiod_int = gpiod; gpiod 609 drivers/input/touchscreen/goodix.c gpiod = devm_gpiod_get_optional(dev, GOODIX_GPIO_RST_NAME, GPIOD_IN); gpiod 610 drivers/input/touchscreen/goodix.c if (IS_ERR(gpiod)) { gpiod 611 drivers/input/touchscreen/goodix.c error = PTR_ERR(gpiod); gpiod 618 drivers/input/touchscreen/goodix.c ts->gpiod_rst = gpiod; gpiod 228 drivers/input/touchscreen/surface3_spi.c struct gpio_desc *gpiod; gpiod 235 drivers/input/touchscreen/surface3_spi.c gpiod = devm_gpiod_get_index(dev, NULL, i, GPIOD_OUT_LOW); gpiod 236 drivers/input/touchscreen/surface3_spi.c if (IS_ERR(gpiod)) { gpiod 237 drivers/input/touchscreen/surface3_spi.c error = PTR_ERR(gpiod); gpiod 246 drivers/input/touchscreen/surface3_spi.c data->gpiod_rst[i] = gpiod; gpiod 22 drivers/leds/leds-gpio.c struct gpio_desc *gpiod; gpiod 46 drivers/leds/leds-gpio.c led_dat->platform_gpio_blink_set(led_dat->gpiod, level, gpiod 51 drivers/leds/leds-gpio.c gpiod_set_value_cansleep(led_dat->gpiod, level); gpiod 53 drivers/leds/leds-gpio.c gpiod_set_value(led_dat->gpiod, level); gpiod 70 drivers/leds/leds-gpio.c return led_dat->platform_gpio_blink_set(led_dat->gpiod, GPIO_LED_BLINK, gpiod 82 drivers/leds/leds-gpio.c led_dat->can_sleep = gpiod_cansleep(led_dat->gpiod); gpiod 93 drivers/leds/leds-gpio.c state = gpiod_get_value_cansleep(led_dat->gpiod); gpiod 107 drivers/leds/leds-gpio.c ret = gpiod_direction_output(led_dat->gpiod, state); gpiod 159 drivers/leds/leds-gpio.c led.gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, child, gpiod 162 drivers/leds/leds-gpio.c if (IS_ERR(led.gpiod)) { gpiod 164 drivers/leds/leds-gpio.c return ERR_CAST(led.gpiod); gpiod 167 drivers/leds/leds-gpio.c led_dat->gpiod = led.gpiod; gpiod 195 drivers/leds/leds-gpio.c gpiod_set_consumer_name(led_dat->gpiod, gpiod 213 drivers/leds/leds-gpio.c struct gpio_desc *gpiod; gpiod 223 drivers/leds/leds-gpio.c gpiod = devm_gpiod_get_index(dev, NULL, idx, flags); gpiod 224 drivers/leds/leds-gpio.c if (!IS_ERR(gpiod)) { gpiod 225 drivers/leds/leds-gpio.c gpiod_set_consumer_name(gpiod, template->name); gpiod 226 drivers/leds/leds-gpio.c return gpiod; gpiod 228 drivers/leds/leds-gpio.c if (PTR_ERR(gpiod) != -ENOENT) gpiod 229 drivers/leds/leds-gpio.c return gpiod; gpiod 249 drivers/leds/leds-gpio.c gpiod = gpio_to_desc(template->gpio); gpiod 250 drivers/leds/leds-gpio.c if (!gpiod) gpiod 253 drivers/leds/leds-gpio.c return gpiod; gpiod 274 drivers/leds/leds-gpio.c if (template->gpiod) gpiod 275 drivers/leds/leds-gpio.c led_dat->gpiod = template->gpiod; gpiod 277 drivers/leds/leds-gpio.c led_dat->gpiod = gpiod 280 drivers/leds/leds-gpio.c if (IS_ERR(led_dat->gpiod)) { gpiod 18 drivers/leds/leds-lt3593.c struct gpio_desc *gpiod; gpiod 38 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 0); gpiod 45 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 0); gpiod 47 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 1); gpiod 51 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 1); gpiod 54 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 0); gpiod 56 drivers/leds/leds-lt3593.c gpiod_set_value_cansleep(led_dat->gpiod, 1); gpiod 84 drivers/leds/leds-lt3593.c led_data->gpiod = devm_gpiod_get(dev, "lltc,ctrl", 0); gpiod 85 drivers/leds/leds-lt3593.c if (IS_ERR(led_data->gpiod)) gpiod 86 drivers/leds/leds-lt3593.c return PTR_ERR(led_data->gpiod); gpiod 21 drivers/media/rc/gpio-ir-recv.c struct gpio_desc *gpiod; gpiod 30 drivers/media/rc/gpio-ir-recv.c val = gpiod_get_value(gpio_dev->gpiod); gpiod 52 drivers/media/rc/gpio-ir-recv.c gpio_dev->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); gpiod 53 drivers/media/rc/gpio-ir-recv.c if (IS_ERR(gpio_dev->gpiod)) { gpiod 54 drivers/media/rc/gpio-ir-recv.c rc = PTR_ERR(gpio_dev->gpiod); gpiod 60 drivers/media/rc/gpio-ir-recv.c gpio_dev->irq = gpiod_to_irq(gpio_dev->gpiod); gpiod 731 drivers/mtd/nand/raw/nand_base.c int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod, gpiod 737 drivers/mtd/nand/raw/nand_base.c if (gpiod_get_value_cansleep(gpiod)) gpiod 743 drivers/mtd/nand/raw/nand_base.c return gpiod_get_value_cansleep(gpiod) ? 0 : -ETIMEDOUT; gpiod 2138 drivers/net/dsa/mv88e6xxx/chip.c struct gpio_desc *gpiod = chip->reset; gpiod 2141 drivers/net/dsa/mv88e6xxx/chip.c if (gpiod) { gpiod 2142 drivers/net/dsa/mv88e6xxx/chip.c gpiod_set_value_cansleep(gpiod, 1); gpiod 2144 drivers/net/dsa/mv88e6xxx/chip.c gpiod_set_value_cansleep(gpiod, 0); gpiod 139 drivers/net/phy/fixed_phy.c struct gpio_desc *gpiod) gpiod 160 drivers/net/phy/fixed_phy.c fp->link_gpiod = gpiod; gpiod 199 drivers/net/phy/fixed_phy.c struct gpio_desc *gpiod; gpiod 213 drivers/net/phy/fixed_phy.c gpiod = gpiod_get_from_of_node(fixed_link_node, "link-gpios", 0, gpiod 215 drivers/net/phy/fixed_phy.c if (IS_ERR(gpiod) && PTR_ERR(gpiod) != -EPROBE_DEFER) { gpiod 216 drivers/net/phy/fixed_phy.c if (PTR_ERR(gpiod) != -ENOENT) gpiod 219 drivers/net/phy/fixed_phy.c gpiod = NULL; gpiod 223 drivers/net/phy/fixed_phy.c return gpiod; gpiod 235 drivers/net/phy/fixed_phy.c struct gpio_desc *gpiod) gpiod 246 drivers/net/phy/fixed_phy.c if (!gpiod) { gpiod 247 drivers/net/phy/fixed_phy.c gpiod = fixed_phy_get_gpiod(np); gpiod 248 drivers/net/phy/fixed_phy.c if (IS_ERR(gpiod)) gpiod 249 drivers/net/phy/fixed_phy.c return ERR_CAST(gpiod); gpiod 257 drivers/net/phy/fixed_phy.c ret = fixed_phy_add_gpiod(irq, phy_addr, status, gpiod); gpiod 327 drivers/net/phy/fixed_phy.c struct gpio_desc *gpiod) gpiod 329 drivers/net/phy/fixed_phy.c return __fixed_phy_register(irq, status, NULL, gpiod); gpiod 373 drivers/net/phy/mdio_bus.c struct gpio_desc *gpiod; gpiod 397 drivers/net/phy/mdio_bus.c gpiod = devm_gpiod_get_optional(&bus->dev, "reset", GPIOD_OUT_LOW); gpiod 398 drivers/net/phy/mdio_bus.c if (IS_ERR(gpiod)) { gpiod 402 drivers/net/phy/mdio_bus.c return PTR_ERR(gpiod); gpiod 403 drivers/net/phy/mdio_bus.c } else if (gpiod) { gpiod 404 drivers/net/phy/mdio_bus.c bus->reset_gpiod = gpiod; gpiod 406 drivers/net/phy/mdio_bus.c gpiod_set_value_cansleep(gpiod, 1); gpiod 408 drivers/net/phy/mdio_bus.c gpiod_set_value_cansleep(gpiod, 0); gpiod 1196 drivers/pci/controller/dwc/pci-keystone.c struct gpio_desc *gpiod; gpiod 1299 drivers/pci/controller/dwc/pci-keystone.c gpiod = devm_gpiod_get_optional(dev, "reset", gpiod 1301 drivers/pci/controller/dwc/pci-keystone.c if (IS_ERR(gpiod)) { gpiod 1302 drivers/pci/controller/dwc/pci-keystone.c ret = PTR_ERR(gpiod); gpiod 1368 drivers/pci/controller/dwc/pci-keystone.c if (gpiod) { gpiod 1370 drivers/pci/controller/dwc/pci-keystone.c gpiod_set_value_cansleep(gpiod, 1); gpiod 443 drivers/pinctrl/pinctrl-tb10x.c DEFPINFUNCGRP(gpiod, -1, 0, 1), gpiod 28 drivers/power/supply/gpio-charger.c struct gpio_desc *gpiod; gpiod 53 drivers/power/supply/gpio-charger.c val->intval = gpiod_get_value_cansleep(gpio_charger->gpiod); gpiod 145 drivers/power/supply/gpio-charger.c gpio_charger->gpiod = devm_gpiod_get(dev, NULL, GPIOD_IN); gpiod 151 drivers/power/supply/gpio-charger.c if (IS_ERR(gpio_charger->gpiod) && !dev->of_node) { gpiod 167 drivers/power/supply/gpio-charger.c gpio_charger->gpiod = gpio_to_desc(pdata->gpio); gpiod 168 drivers/power/supply/gpio-charger.c } else if (IS_ERR(gpio_charger->gpiod)) { gpiod 170 drivers/power/supply/gpio-charger.c if (PTR_ERR(gpio_charger->gpiod) == -EPROBE_DEFER) gpiod 173 drivers/power/supply/gpio-charger.c return PTR_ERR(gpio_charger->gpiod); gpiod 214 drivers/power/supply/gpio-charger.c gpio_charger->gpiod); gpiod 94 drivers/power/supply/sc27xx_fuel_gauge.c struct gpio_desc *gpiod; gpiod 823 drivers/power/supply/sc27xx_fuel_gauge.c state = gpiod_get_value_cansleep(data->gpiod); gpiod 1066 drivers/power/supply/sc27xx_fuel_gauge.c data->gpiod = devm_gpiod_get(dev, "bat-detect", GPIOD_IN); gpiod 1067 drivers/power/supply/sc27xx_fuel_gauge.c if (IS_ERR(data->gpiod)) { gpiod 1069 drivers/power/supply/sc27xx_fuel_gauge.c return PTR_ERR(data->gpiod); gpiod 1072 drivers/power/supply/sc27xx_fuel_gauge.c ret = gpiod_get_value_cansleep(data->gpiod); gpiod 1119 drivers/power/supply/sc27xx_fuel_gauge.c irq = gpiod_to_irq(data->gpiod); gpiod 77 drivers/regulator/core.c struct gpio_desc *gpiod; gpiod 2221 drivers/regulator/core.c struct gpio_desc *gpiod; gpiod 2223 drivers/regulator/core.c gpiod = config->ena_gpiod; gpiod 2226 drivers/regulator/core.c if (pin->gpiod == gpiod) { gpiod 2236 drivers/regulator/core.c pin->gpiod = gpiod; gpiod 2254 drivers/regulator/core.c if (pin->gpiod == rdev->ena_pin->gpiod) { gpiod 2257 drivers/regulator/core.c gpiod_put(pin->gpiod); gpiod 2287 drivers/regulator/core.c gpiod_set_value_cansleep(pin->gpiod, 1); gpiod 2298 drivers/regulator/core.c gpiod_set_value_cansleep(pin->gpiod, 0); gpiod 320 drivers/regulator/lm363x-regulator.c struct gpio_desc *gpiod; gpiod 330 drivers/regulator/lm363x-regulator.c gpiod = lm363x_regulator_of_get_enable_gpio(dev, id); gpiod 331 drivers/regulator/lm363x-regulator.c if (IS_ERR(gpiod)) gpiod 332 drivers/regulator/lm363x-regulator.c return PTR_ERR(gpiod); gpiod 334 drivers/regulator/lm363x-regulator.c if (gpiod) { gpiod 335 drivers/regulator/lm363x-regulator.c cfg.ena_gpiod = gpiod; gpiod 338 drivers/regulator/lm363x-regulator.c gpiod_put(gpiod); gpiod 182 drivers/regulator/max8952.c struct gpio_desc *gpiod; gpiod 220 drivers/regulator/max8952.c gpiod = gpiod_get_optional(&client->dev, gpiod 223 drivers/regulator/max8952.c if (IS_ERR(gpiod)) gpiod 224 drivers/regulator/max8952.c return PTR_ERR(gpiod); gpiod 225 drivers/regulator/max8952.c if (gpiod) gpiod 226 drivers/regulator/max8952.c config.ena_gpiod = gpiod; gpiod 635 drivers/regulator/max8973-regulator.c struct gpio_desc *gpiod; gpiod 762 drivers/regulator/max8973-regulator.c gpiod = devm_gpiod_get_optional(&client->dev, gpiod 765 drivers/regulator/max8973-regulator.c if (IS_ERR(gpiod)) gpiod 766 drivers/regulator/max8973-regulator.c return PTR_ERR(gpiod); gpiod 767 drivers/regulator/max8973-regulator.c if (gpiod) { gpiod 768 drivers/regulator/max8973-regulator.c config.ena_gpiod = gpiod; gpiod 779 drivers/regulator/max8973-regulator.c gpiod = devm_gpiod_get_optional(&client->dev, gpiod 782 drivers/regulator/max8973-regulator.c if (IS_ERR(gpiod)) gpiod 783 drivers/regulator/max8973-regulator.c return PTR_ERR(gpiod); gpiod 784 drivers/regulator/max8973-regulator.c if (gpiod) gpiod 369 drivers/regulator/tps65090-regulator.c rpdata->gpiod = devm_gpiod_get_from_of_node(&pdev->dev, gpiod 374 drivers/regulator/tps65090-regulator.c if (PTR_ERR(rpdata->gpiod) == -ENOENT) { gpiod 377 drivers/regulator/tps65090-regulator.c rpdata->gpiod = NULL; gpiod 378 drivers/regulator/tps65090-regulator.c } else if (IS_ERR(rpdata->gpiod)) gpiod 379 drivers/regulator/tps65090-regulator.c return ERR_CAST(rpdata->gpiod); gpiod 449 drivers/regulator/tps65090-regulator.c config.ena_gpiod = tps_pdata->gpiod; gpiod 127 drivers/regulator/wm8994-regulator.c struct gpio_desc *gpiod; gpiod 149 drivers/regulator/wm8994-regulator.c gpiod = gpiod_get_optional(pdev->dev.parent, gpiod 153 drivers/regulator/wm8994-regulator.c if (IS_ERR(gpiod)) gpiod 154 drivers/regulator/wm8994-regulator.c return PTR_ERR(gpiod); gpiod 155 drivers/regulator/wm8994-regulator.c config.ena_gpiod = gpiod; gpiod 164 drivers/regulator/wm8994-regulator.c if (!gpiod) gpiod 783 drivers/scsi/qla2xxx/qla_def.h uint16_t gpiod; /* GPIO Data register. */ gpiod 1078 drivers/scsi/qla2xxx/qla_fw.h uint32_t gpiod; /* GPIO Data register. */ gpiod 1589 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); gpiod 1592 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_WORD(®->gpiod); gpiod 1615 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); gpiod 1617 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_WORD(®->gpiod, gpio_data); gpiod 1618 drivers/scsi/qla2xxx/qla_sup.c RD_REG_WORD(®->gpiod); gpiod 1646 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_WORD_PIO(PIO_REG(ha, gpiod)); gpiod 1649 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_WORD(®->gpiod); gpiod 1664 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_WORD_PIO(PIO_REG(ha, gpiod), gpio_data); gpiod 1666 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_WORD(®->gpiod, gpio_data); gpiod 1667 drivers/scsi/qla2xxx/qla_sup.c RD_REG_WORD(®->gpiod); gpiod 1734 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_DWORD(®->gpiod); gpiod 1739 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_DWORD(®->gpiod, gpio_data); gpiod 1740 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_DWORD(®->gpiod); gpiod 1752 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_DWORD(®->gpiod, gpio_data); gpiod 1753 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_DWORD(®->gpiod); gpiod 1884 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_DWORD(®->gpiod); gpiod 1888 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_DWORD(®->gpiod, gpio_data); gpiod 1889 drivers/scsi/qla2xxx/qla_sup.c RD_REG_DWORD(®->gpiod); gpiod 1932 drivers/scsi/qla2xxx/qla_sup.c gpio_data = RD_REG_DWORD(®->gpiod); gpiod 1936 drivers/scsi/qla2xxx/qla_sup.c WRT_REG_DWORD(®->gpiod, gpio_data); gpiod 1937 drivers/scsi/qla2xxx/qla_sup.c RD_REG_DWORD(®->gpiod); gpiod 1196 drivers/spi/spi-pxa2xx.c struct gpio_desc *gpiod; gpiod 1203 drivers/spi/spi-pxa2xx.c gpiod = drv_data->cs_gpiods[spi->chip_select]; gpiod 1204 drivers/spi/spi-pxa2xx.c if (gpiod) { gpiod 1205 drivers/spi/spi-pxa2xx.c chip->gpiod_cs = gpiod; gpiod 1207 drivers/spi/spi-pxa2xx.c gpiod_set_value(gpiod, chip->gpio_cs_inverted); gpiod 1238 drivers/spi/spi-pxa2xx.c gpiod = gpio_to_desc(chip_info->gpio_cs); gpiod 1239 drivers/spi/spi-pxa2xx.c chip->gpiod_cs = gpiod; gpiod 1242 drivers/spi/spi-pxa2xx.c err = gpiod_direction_output(gpiod, !chip->gpio_cs_inverted); gpiod 1851 drivers/spi/spi-pxa2xx.c struct gpio_desc *gpiod; gpiod 1853 drivers/spi/spi-pxa2xx.c gpiod = devm_gpiod_get_index(dev, "cs", i, GPIOD_ASIS); gpiod 1854 drivers/spi/spi-pxa2xx.c if (IS_ERR(gpiod)) { gpiod 1856 drivers/spi/spi-pxa2xx.c if (PTR_ERR(gpiod) == -ENOENT) gpiod 1859 drivers/spi/spi-pxa2xx.c status = PTR_ERR(gpiod); gpiod 1862 drivers/spi/spi-pxa2xx.c drv_data->cs_gpiods[i] = gpiod; gpiod 1141 drivers/spi/spi-sh-msiof.c struct gpio_desc *gpiod; gpiod 1143 drivers/spi/spi-sh-msiof.c gpiod = devm_gpiod_get_index(dev, "cs", i, GPIOD_ASIS); gpiod 1144 drivers/spi/spi-sh-msiof.c if (!IS_ERR(gpiod)) { gpiod 1145 drivers/spi/spi-sh-msiof.c devm_gpiod_put(dev, gpiod); gpiod 1150 drivers/spi/spi-sh-msiof.c if (PTR_ERR(gpiod) != -ENOENT) gpiod 1151 drivers/spi/spi-sh-msiof.c return PTR_ERR(gpiod); gpiod 238 drivers/staging/nvec/nvec.c gpiod_get_value(nvec->gpiod), value); gpiod 239 drivers/staging/nvec/nvec.c gpiod_set_value(nvec->gpiod, value); gpiod 828 drivers/staging/nvec/nvec.c nvec->gpiod = devm_gpiod_get(dev, "request", GPIOD_OUT_HIGH); gpiod 829 drivers/staging/nvec/nvec.c if (IS_ERR(nvec->gpiod)) { gpiod 831 drivers/staging/nvec/nvec.c return PTR_ERR(nvec->gpiod); gpiod 135 drivers/staging/nvec/nvec.h struct gpio_desc *gpiod; gpiod 76 drivers/staging/pi433/pi433_if.c struct gpio_desc *gpiod[NUM_DIO]; gpiod 998 drivers/staging/pi433/pi433_if.c device->gpiod[i] = gpiod_get(&device->spi->dev, name, gpiod 1001 drivers/staging/pi433/pi433_if.c if (device->gpiod[i] == ERR_PTR(-ENOENT)) { gpiod 1007 drivers/staging/pi433/pi433_if.c if (device->gpiod[i] == ERR_PTR(-EBUSY)) gpiod 1010 drivers/staging/pi433/pi433_if.c if (IS_ERR(device->gpiod[i])) { gpiod 1011 drivers/staging/pi433/pi433_if.c retval = PTR_ERR(device->gpiod[i]); gpiod 1015 drivers/staging/pi433/pi433_if.c gpiod_put(device->gpiod[i]); gpiod 1021 drivers/staging/pi433/pi433_if.c gpiod_unexport(device->gpiod[i]); gpiod 1022 drivers/staging/pi433/pi433_if.c retval = gpiod_direction_input(device->gpiod[i]); gpiod 1027 drivers/staging/pi433/pi433_if.c device->irq_num[i] = gpiod_to_irq(device->gpiod[i]); gpiod 1029 drivers/staging/pi433/pi433_if.c device->gpiod[i] = ERR_PTR(-EINVAL); gpiod 1053 drivers/staging/pi433/pi433_if.c if (IS_ERR(device->gpiod[i])) gpiod 1057 drivers/staging/pi433/pi433_if.c gpiod_put(device->gpiod[i]); gpiod 1581 drivers/tty/serial/mxs-auart.c struct gpio_desc *gpiod; gpiod 1596 drivers/tty/serial/mxs-auart.c gpiod = mctrl_gpio_to_gpiod(s->gpios, i); gpiod 1597 drivers/tty/serial/mxs-auart.c if (gpiod && (gpiod_get_direction(gpiod) == 1)) gpiod 1598 drivers/tty/serial/mxs-auart.c s->gpio_irq[i] = gpiod_to_irq(gpiod); gpiod 512 drivers/tty/serial/st-asc.c struct gpio_desc *gpiod; gpiod 573 drivers/tty/serial/st-asc.c gpiod = devm_fwnode_get_gpiod_from_child(port->dev, gpiod 578 drivers/tty/serial/st-asc.c if (!IS_ERR(gpiod)) gpiod 579 drivers/tty/serial/st-asc.c ascport->rts = gpiod; gpiod 1428 drivers/usb/gadget/udc/pxa27x_udc.c if (udc->gpiod) { gpiod 1429 drivers/usb/gadget/udc/pxa27x_udc.c gpiod_set_value(udc->gpiod, on); gpiod 1525 drivers/usb/gadget/udc/pxa27x_udc.c if (!udc->gpiod && !udc->udc_command) gpiod 2374 drivers/usb/gadget/udc/pxa27x_udc.c udc->gpiod = gpio_to_desc(mach->gpio_pullup); gpiod 2378 drivers/usb/gadget/udc/pxa27x_udc.c udc->gpiod = devm_gpiod_get(&pdev->dev, NULL, GPIOD_ASIS); gpiod 2399 drivers/usb/gadget/udc/pxa27x_udc.c if (IS_ERR(udc->gpiod)) { gpiod 2401 drivers/usb/gadget/udc/pxa27x_udc.c PTR_ERR(udc->gpiod)); gpiod 2402 drivers/usb/gadget/udc/pxa27x_udc.c return PTR_ERR(udc->gpiod); gpiod 2404 drivers/usb/gadget/udc/pxa27x_udc.c if (udc->gpiod) gpiod 2405 drivers/usb/gadget/udc/pxa27x_udc.c gpiod_direction_output(udc->gpiod, 0); gpiod 457 drivers/usb/gadget/udc/pxa27x_udc.h struct gpio_desc *gpiod; gpiod 25 drivers/video/backlight/gpio_backlight.c struct gpio_desc *gpiod; gpiod 39 drivers/video/backlight/gpio_backlight.c gpiod_set_value_cansleep(gbl->gpiod, brightness); gpiod 66 drivers/video/backlight/gpio_backlight.c gbl->gpiod = devm_gpiod_get(dev, NULL, GPIOD_ASIS); gpiod 67 drivers/video/backlight/gpio_backlight.c if (IS_ERR(gbl->gpiod)) { gpiod 68 drivers/video/backlight/gpio_backlight.c ret = PTR_ERR(gbl->gpiod); gpiod 89 drivers/video/backlight/gpio_backlight.c if (gpiod_get_value_cansleep(gbl->gpiod) == 0) gpiod 133 drivers/video/backlight/gpio_backlight.c gbl->gpiod = gpio_to_desc(pdata->gpio); gpiod 134 drivers/video/backlight/gpio_backlight.c if (!gbl->gpiod) gpiod 65 drivers/video/fbdev/atmel_lcdfb.c struct gpio_desc *gpiod; gpiod 937 drivers/video/fbdev/atmel_lcdfb.c gpiod_set_value(og->gpiod, on); gpiod 951 drivers/video/fbdev/atmel_lcdfb.c struct gpio_desc *gpiod; gpiod 992 drivers/video/fbdev/atmel_lcdfb.c gpiod = devm_gpiod_get_index(dev, "atmel,power-control", gpiod 994 drivers/video/fbdev/atmel_lcdfb.c if (IS_ERR(gpiod)) gpiod 1001 drivers/video/fbdev/atmel_lcdfb.c og->gpiod = gpiod; gpiod 1004 drivers/video/fbdev/atmel_lcdfb.c ret = gpiod_direction_output(gpiod, gpiod_is_active_low(gpiod)); gpiod 197 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c const char *desc, struct gpio_desc **gpiod) gpiod 201 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c *gpiod = NULL; gpiod 207 drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c *gpiod = gd; gpiod 33 drivers/w1/masters/w1-gpio.c gpiod_set_raw_value(pdata->gpiod, 1); gpiod 39 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->gpiod, 1); gpiod 51 drivers/w1/masters/w1-gpio.c gpiod_set_value(pdata->gpiod, bit); gpiod 58 drivers/w1/masters/w1-gpio.c return gpiod_get_value(pdata->gpiod) ? 1 : 0; gpiod 109 drivers/w1/masters/w1-gpio.c pdata->gpiod = devm_gpiod_get_index(dev, NULL, 0, gflags); gpiod 110 drivers/w1/masters/w1-gpio.c if (IS_ERR(pdata->gpiod)) { gpiod 112 drivers/w1/masters/w1-gpio.c return PTR_ERR(pdata->gpiod); gpiod 125 drivers/w1/masters/w1-gpio.c gpiod_direction_output(pdata->gpiod, 1); gpiod 31 drivers/watchdog/gpio_wdt.c struct gpio_desc *gpiod; gpiod 41 drivers/watchdog/gpio_wdt.c gpiod_set_value_cansleep(priv->gpiod, 1); gpiod 45 drivers/watchdog/gpio_wdt.c gpiod_direction_input(priv->gpiod); gpiod 56 drivers/watchdog/gpio_wdt.c gpiod_set_value_cansleep(priv->gpiod, priv->state); gpiod 60 drivers/watchdog/gpio_wdt.c gpiod_set_value_cansleep(priv->gpiod, 1); gpiod 62 drivers/watchdog/gpio_wdt.c gpiod_set_value_cansleep(priv->gpiod, 0); gpiod 73 drivers/watchdog/gpio_wdt.c gpiod_direction_output(priv->gpiod, priv->state); gpiod 135 drivers/watchdog/gpio_wdt.c priv->gpiod = devm_gpiod_get(dev, NULL, gflags); gpiod 136 drivers/watchdog/gpio_wdt.c if (IS_ERR(priv->gpiod)) gpiod 137 drivers/watchdog/gpio_wdt.c return PTR_ERR(priv->gpiod); gpiod 58 drivers/watchdog/mtx-1_wdt.c struct gpio_desc *gpiod; gpiod 70 drivers/watchdog/mtx-1_wdt.c gpiod_set_value(mtx1_wdt_device.gpiod, mtx1_wdt_device.gstate); gpiod 93 drivers/watchdog/mtx-1_wdt.c gpiod_set_value(mtx1_wdt_device.gpiod, 1); gpiod 108 drivers/watchdog/mtx-1_wdt.c gpiod_set_value(mtx1_wdt_device.gpiod, 0); gpiod 201 drivers/watchdog/mtx-1_wdt.c mtx1_wdt_device.gpiod = devm_gpiod_get(&pdev->dev, gpiod 203 drivers/watchdog/mtx-1_wdt.c if (IS_ERR(mtx1_wdt_device.gpiod)) { gpiod 205 drivers/watchdog/mtx-1_wdt.c return PTR_ERR(mtx1_wdt_device.gpiod); gpiod 770 include/linux/clk-provider.h struct gpio_desc *gpiod; gpiod 777 include/linux/clk-provider.h const char *parent_name, struct gpio_desc *gpiod, gpiod 780 include/linux/clk-provider.h const char *parent_name, struct gpio_desc *gpiod, gpiod 786 include/linux/clk-provider.h const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, gpiod 789 include/linux/clk-provider.h const char * const *parent_names, u8 num_parents, struct gpio_desc *gpiod, gpiod 518 include/linux/leds.h struct gpio_desc *gpiod; gpiod 95 include/linux/mfd/tps65090.h struct gpio_desc *gpiod; gpiod 1380 include/linux/mtd/rawnand.h int nand_gpio_waitrdy(struct nand_chip *chip, struct gpio_desc *gpiod, gpiod 27 include/linux/phy_fixed.h struct gpio_desc *gpiod); gpiod 49 include/linux/phy_fixed.h struct gpio_desc *gpiod) gpiod 16 include/linux/w1-gpio.h struct gpio_desc *gpiod;