Lines Matching refs:ios

958 static int sdhc_esp32_set_io(const struct device *dev, struct sdhc_io *ios)  in sdhc_esp32_set_io()  argument
967 cfg->slot, ios->bus_width, ios->clock, in sdhc_esp32_set_io()
968 ios->power_mode == SDHC_POWER_ON ? "ON" : "OFF", in sdhc_esp32_set_io()
969 ios->signal_voltage == SD_VOL_1_8_V ? "1.8V" : "3.3V"); in sdhc_esp32_set_io()
971 if (ios->clock) { in sdhc_esp32_set_io()
973 if (ios->clock > cfg->props.f_max || ios->clock < cfg->props.f_min) { in sdhc_esp32_set_io()
978 if (data->bus_clock != (uint32_t)ios->clock) { in sdhc_esp32_set_io()
980 ret = sdmmc_host_set_card_clk(sdio_hw, cfg->slot, (ios->clock / 1000)); in sdhc_esp32_set_io()
983 LOG_INF("Bus clock successfully set to %d kHz", ios->clock / 1000); in sdhc_esp32_set_io()
989 data->bus_clock = (uint32_t)ios->clock; in sdhc_esp32_set_io()
993 if (ios->bus_width > 0) { in sdhc_esp32_set_io()
995 switch (ios->bus_width) { in sdhc_esp32_set_io()
1021 if ((data->power_mode != ios->power_mode) && (cfg->pwr_gpio.port)) { in sdhc_esp32_set_io()
1022 if (ios->power_mode == SDHC_POWER_OFF) { in sdhc_esp32_set_io()
1024 } else if (ios->power_mode == SDHC_POWER_ON) { in sdhc_esp32_set_io()
1027 data->power_mode = ios->power_mode; in sdhc_esp32_set_io()
1030 if (ios->timing > 0) { in sdhc_esp32_set_io()
1032 if (data->timing != ios->timing) { in sdhc_esp32_set_io()
1033 switch (ios->timing) { in sdhc_esp32_set_io()
1058 LOG_INF("Bus timing successfully changed to %s", timingStr[ios->timing]); in sdhc_esp32_set_io()
1059 data->timing = ios->timing; in sdhc_esp32_set_io()