Home
last modified time | relevance | path

Searched refs:cd_gpio (Results 1 – 4 of 4) sorted by relevance

/drivers/mmc/core/
Dslot-gpio.c23 struct gpio_desc *cd_gpio; member
89 if (!ctx || !ctx->cd_gpio) in mmc_gpio_get_cd()
92 cansleep = gpiod_cansleep(ctx->cd_gpio); in mmc_gpio_get_cd()
94 gpiod_get_value_cansleep(ctx->cd_gpio) : in mmc_gpio_get_cd()
95 gpiod_get_value(ctx->cd_gpio); in mmc_gpio_get_cd()
105 if (host->slot.cd_irq >= 0 || !ctx || !ctx->cd_gpio) in mmc_gpiod_request_cd_irq()
113 irq = gpiod_to_irq(ctx->cd_gpio); in mmc_gpiod_request_cd_irq()
206 ctx->cd_gpio = desc; in mmc_gpiod_request_cd()
216 return ctx->cd_gpio ? true : false; in mmc_can_gpio_cd()
/drivers/pcmcia/
Dpxa2xx_viper.c45 skt->stat[SOC_STAT_CD].gpio = pdata->cd_gpio; in viper_pcmcia_hw_init()
/drivers/mmc/host/
Dsdhci-pci.h163 int cd_gpio; member
Dsdhci-pci-core.c361 int err, irq, gpio = slot->cd_gpio; in sdhci_pci_add_own_cd()
363 slot->cd_gpio = -EINVAL; in sdhci_pci_add_own_cd()
386 slot->cd_gpio = gpio; in sdhci_pci_add_own_cd()
2160 slot->cd_gpio = -EINVAL; in sdhci_pci_probe_slot()
2176 slot->cd_gpio = slot->data->cd_gpio; in sdhci_pci_probe_slot()
2255 !gpio_is_valid(slot->cd_gpio) && slot->cd_idx < 0) in sdhci_pci_probe_slot()