Lines Matching refs:ios
1007 static int emmc_set_io(const struct device *dev, struct sdhc_io *ios) in emmc_set_io() argument
1014 LOG_DBG("emmc I/O: DW %d, Clk %d Hz, card power state %s, voltage %s", ios->bus_width, in emmc_set_io()
1015 ios->clock, ios->power_mode == SDHC_POWER_ON ? "ON" : "OFF", in emmc_set_io()
1016 ios->signal_voltage == SD_VOL_1_8_V ? "1.8V" : "3.3V"); in emmc_set_io()
1018 if (ios->clock && (ios->clock > emmc->props.f_max || ios->clock < emmc->props.f_min)) { in emmc_set_io()
1019 LOG_ERR("Invalid argument for clock freq: %d Support max:%d and Min:%d", ios->clock, in emmc_set_io()
1025 if (host_io->clock != ios->clock) { in emmc_set_io()
1027 if (ios->clock != 0) { in emmc_set_io()
1029 LOG_DBG("CLOCK: %d", ios->clock); in emmc_set_io()
1030 if (!emmc_clock_set(dev, ios->clock)) { in emmc_set_io()
1036 host_io->clock = ios->clock; in emmc_set_io()
1040 if (host_io->bus_width != ios->bus_width) { in emmc_set_io()
1043 if (ios->bus_width == SDHC_BUS_WIDTH4BIT) { in emmc_set_io()
1046 ios->bus_width == SDHC_BUS_WIDTH8BIT ? 1 : 0); in emmc_set_io()
1050 ios->bus_width == SDHC_BUS_WIDTH4BIT ? 1 : 0); in emmc_set_io()
1052 host_io->bus_width = ios->bus_width; in emmc_set_io()
1056 if (ios->signal_voltage != host_io->signal_voltage) { in emmc_set_io()
1057 LOG_DBG("signal_voltage: %d", ios->signal_voltage); in emmc_set_io()
1058 ret = emmc_set_voltage(dev, ios->signal_voltage); in emmc_set_io()
1063 host_io->signal_voltage = ios->signal_voltage; in emmc_set_io()
1067 if (host_io->power_mode != ios->power_mode) { in emmc_set_io()
1068 LOG_DBG("power_mode: %d", ios->power_mode); in emmc_set_io()
1070 ret = emmc_set_power(dev, ios->power_mode); in emmc_set_io()
1075 host_io->power_mode = ios->power_mode; in emmc_set_io()
1079 if (host_io->timing != ios->timing) { in emmc_set_io()
1080 LOG_DBG("timing: %d", ios->timing); in emmc_set_io()
1082 ret = set_timing(dev, ios->timing); in emmc_set_io()
1087 host_io->timing = ios->timing; in emmc_set_io()