Home
last modified time | relevance | path

Searched refs:sdhc_dev (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/drivers/sdhc/src/
Dmain.c12 static const struct device *const sdhc_dev = DEVICE_DT_GET(DT_ALIAS(sdhc0)); variable
25 ret = sdhc_get_host_props(sdhc_dev, &props); in sdhc_power_on()
35 ret = sdhc_set_io(sdhc_dev, &io); in sdhc_power_on()
46 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
48 ret = sdhc_hw_reset(sdhc_dev); in ZTEST()
57 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
66 ret = sdhc_get_host_props(sdhc_dev, &props); in ZTEST()
82 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
91 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
99 ret = sdhc_set_io(sdhc_dev, &io); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/sd/sdio/src/
Dmain.c13 static const struct device *sdhc_dev = DEVICE_DT_GET(DT_ALIAS(sdhc0)); variable
24 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
26 ret = sd_is_card_present(sdhc_dev); in ZTEST()
29 ret = sd_init(sdhc_dev, &card); in ZTEST()
/Zephyr-latest/subsys/sd/
Dsd.c234 int sd_init(const struct device *sdhc_dev, struct sd_card *card) in sd_init() argument
238 if (!sdhc_dev) { in sd_init()
241 card->sdhc = sdhc_dev; in sd_init()
313 bool sd_is_card_present(const struct device *sdhc_dev) in sd_is_card_present() argument
315 if (!sdhc_dev) { in sd_is_card_present()
318 return sdhc_card_present(sdhc_dev) == 1; in sd_is_card_present()
/Zephyr-latest/include/zephyr/sd/
Dsd.h105 int sd_init(const struct device *sdhc_dev, struct sd_card *card);
114 bool sd_is_card_present(const struct device *sdhc_dev);
/Zephyr-latest/tests/subsys/sd/sdmmc/src/
Dmain.c17 static const struct device *const sdhc_dev = DEVICE_DT_GET(DT_ALIAS(sdhc0)); variable
35 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
37 ret = sd_is_card_present(sdhc_dev); in ZTEST()
40 ret = sd_init(sdhc_dev, &card); in ZTEST()
/Zephyr-latest/tests/subsys/sd/mmc/src/
Dmain.c16 static const struct device *const sdhc_dev = DEVICE_DT_GET(DT_ALIAS(sdhc0)); variable
33 zassert_true(device_is_ready(sdhc_dev), "SDHC device is not ready"); in ZTEST()
35 ret = sd_init(sdhc_dev, &card); in ZTEST()