Lines Matching refs:cd
83 struct gpio_dt_spec cd; member
560 if (!priv->cd.port) { in stm32_sdmmc_card_present()
564 err = gpio_pin_get_dt(&priv->cd); in stm32_sdmmc_card_present()
603 if (!priv->cd.port) { in stm32_sdmmc_card_detect_init()
607 if (!gpio_is_ready_dt(&priv->cd)) { in stm32_sdmmc_card_detect_init()
612 1 << priv->cd.pin); in stm32_sdmmc_card_detect_init()
614 err = gpio_add_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_init()
619 err = gpio_pin_configure_dt(&priv->cd, GPIO_INPUT); in stm32_sdmmc_card_detect_init()
624 err = gpio_pin_interrupt_configure_dt(&priv->cd, GPIO_INT_EDGE_BOTH); in stm32_sdmmc_card_detect_init()
631 gpio_pin_configure_dt(&priv->cd, GPIO_DISCONNECTED); in stm32_sdmmc_card_detect_init()
633 gpio_remove_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_init()
639 if (!priv->cd.port) { in stm32_sdmmc_card_detect_uninit()
643 gpio_pin_interrupt_configure_dt(&priv->cd, GPIO_INT_MODE_DISABLED); in stm32_sdmmc_card_detect_uninit()
644 gpio_pin_configure_dt(&priv->cd, GPIO_DISCONNECTED); in stm32_sdmmc_card_detect_uninit()
645 gpio_remove_callback(priv->cd.port, &priv->cd_cb); in stm32_sdmmc_card_detect_uninit()
808 .cd = GPIO_DT_SPEC_INST_GET(0, cd_gpios),